本帖最后由 iamxyh 于 2009-11-17 20:55 编辑
让用户在第一次注册农场的时候直接给经验值,文件是newfarm.php,找到
$_SGLOBAL['db']->query( "INSERT INTO ".tname( "plug_newfarm" )." (uid,farmlandstatus,package,fertilizer,decorative,fruit,dog,nosegay,message,animal,mc_package) VALUES(".$_SGLOBAL['supe_uid'].",'".$farmlandstatus."','".$package."','".$fertilizer."','".$decorative."','".$package."','".$dog."','".$nosegay."','".$message."','".$animal."','".$mc_package."')" );
改为(红色字为修改的部分,11000为10级对应的经验值)
$_SGLOBAL['db']->query( "INSERT INTO ".tname( "plug_newfarm" )." (uid,farmlandstatus,package,fertilizer,decorative,fruit,dog,nosegay,message,animal,mc_package,exp) VALUES(".$_SGLOBAL['supe_uid'].",'".$farmlandstatus."','".$package."','".$fertilizer."','".$decorative."','".$package."','".$dog."','".$nosegay."','".$message."','".$animal."','".$mc_package."','11000')" );
同样更新newfarm目录下的同名文件。 |