赞
踩
D:\study-project\testweb\upload\source\plugin\qqfarm\core\data
plugin\qqfarm\core\data
你不更改加入了id大于2000直接删除种子
D:\study-project\testweb\upload\source\plugin\qqfarm\core\source\nc\mod\repertory_getuserseed.php
也就是core\source\nc\mod\repertory_getuserseed.php
$value > 0 && $key > 0 && array_key_exists($key, $cropstype) && $key < 2000
更改为
$value > 0 && $key > 0 && array_key_exists($key, $cropstype)
快捷操作(改改变只添加了种子)
截止到2024年4月08日,种子文件下载完成,你可以直接将下面文件,解压后,放置在对应位置,即可更新完成,swf农场id开始为2578
下载地址(任选其一下载)
https://wwi.lanzoup.com/b01wzc23fc密码:8eza
https://cloudreve.123916.xyz/s/mLTz (里面有swf文件)
nc_data.php
core\source\xml\mod\nc_data.php
D:\study-project\testweb\upload\source\plugin\qqfarm\core\source\xml\mod\nc_data.php
cropstime.php
core\config\nc\cropstime.php
D:\study-project\testweb\upload\source\plugin\qqfarm\core\config\nc\cropstime.php
cropstype.php
core\config\nc\cropstype.php
D:\study-project\testweb\upload\source\plugin\qqfarm\core\config\nc\cropstype.php
农场swf文件-crops-swf-20240408-dreamlove
core\module\ui\allcrops
D:\study-project\testweb\upload\source\plugin\qqfarm\core\module\ui\allcrops
\plugins\qqfarm\core\module\ui\allcrops
D:\study-project\farm.dreamlove.top\plugins\qqfarm\core\module\ui\allcrops
plugins\qqfarm\core\config\nc
D:\study-project\farm.dreamlove.top\plugins\qqfarm\core\config\nc
data_zh_CN_v_1736.xml
元素的crops
6097
的数据,里面的cropGrow
则为成长信息plugins\qqfarm\core\config\nc\cropstime.php
"6097"=>array(10800,21600,32400,46800,68400,2000000000)
plugins\qqfarm\core\config\nc\cropstype.php
6081
和一个草莓作物"6081"=> array("cId"=>6081,"cLevel"=>0,"cName"=>"瑞雪-君子兰","cType"=>1,"cropExp"=>100,"expect"=>19500,"growthCycle"=>68400,"maturingTime"=>2,"output"=>30,"price"=>1000,"sale"=>650) //对应的json字段注释 { "6081": { "cId": 6081, // 作物ID "cLevel": 0, // 作物种植等级(作物等级) "cName": "瑞雪-君子兰", // 作物名称 "cType": 1, // 作物类型 "cropExp": 100, // 每季种植收获经验值 "expect": 19500, // 预期金币价值 "growthCycle": 68400, // 成熟时间(秒) "maturingTime": 2, // 多少季作物 "output": 30, // 预计产量 "price": 1000, // 种子价格 "sale": 650 // 单个果实销售价格 } } //再看下 "1"=> array("cId"=>1,"cLevel"=>10,"cName"=>"草莓","cType"=>1,"cropExp"=>20,"expect"=>1296,"growthCycle"=>86400,"maturingTime"=>2,"output"=>24,"price"=>605,"sale"=>27), { "1": { "cId": 1, // 作物ID "cLevel": 10, // 作物种植等级(作物等级) "cName": "草莓", // 作物名称 "cType": 1, // 作物类型 "cropExp": 20, // 每季种植收获经验值 "expect": 1296, // 预期金币价值 "growthCycle": 86400, // 成熟时间(秒) "maturingTime": 2, // 多少季作物 "output": 24, // 预计产量 "price": 605, // 种子价格 "sale": 27 // 单个果实销售价格 } }
6097
的数据,我们就搜索data_zh_CN_v_1736.xml
,找到子元素cropsParames
,找到对应的id<crop id="6097" show="0" score="0" parent_id="0" star="0" output="30" sale="1000" coupon_price="0" price="6500" qdprice="500" exp="100" g_opt="0" />
字段含义
show:是否显示,0隐藏,1显示
score:
parent_id
star
output产量
sale果实售价
coupon_price
price种子价格
qdprice种子售卖价格??
exp收获经验
g_opt
crops
元素找到数据如下{"asset_id": {"m": "83207", "m0": "83208", "m1": "83209", "m2": "83210", "m3": "83211", "m4": "83212", "s": "83213"}, "cropGrow": "10800,21600,32400,46800,68400,2000000000", "eo": 30, "gossip": "", "harvestNum": 2, "id": 6097, "insect": "0,0,0,0,0,0|71,-4,81,21,105,4|54,7,69,-33,110,-1|0,0,0,0,0,0", "lv": 0, "name": "春分-含笑花", "nextText": "种子,发芽,小叶子,大叶子,初熟,成熟", "offsetX": 0, "offsetY": 0, "qd": 500, "sr": 310, "tip": "小贴士:", "type": 1, "vipDesc": "黄钻简单描述"},
"6097"=> array("cId"=>6097,"cLevel"=>0,"cName"=>"春分-含笑花","cType"=>1,"cropExp"=>100,"expect"=>60000,"growthCycle"=>68400,"maturingTime"=>2,"output"=>30,"price"=>1000,"sale"=>1000), //字段对应关系如下 { "6097": { "cId": 6097, // 作物ID => 对应 cropsParames的id 字段 "cLevel": 0, // 作物种植等级(作物等级) 对应 crops的 lv字段 "cName": "春分-含笑花", // 作物名称 对应 crops的 name字段 "cType": 1, // 作物类型 对应 crops的 type字段 "cropExp": 100, // 每季种植收获经验值 对应 cropsParames的 exp 字段 "expect": 60000, // 预期金币价值 cropsParames的 sale字段 * cropsParames的output字段* crops的harvestNum "growthCycle": 68400, // 成熟时间(秒) 对应 crops的 cropGrow字段的倒数第二个值 "maturingTime": 2, // 多少季作物 对应 crops的 harvestNum字段 "output": 30, // 预计产量 对应 cropsParames的 output字段 "price": 1000, // 种子价格 对应 cropsParames的 price "sale": 1000 // 单个果实销售价格 对应 cropsParames的sale字段 } }
data_zh_CN_v_1736.xml
文件,assets
元素下的对应素材id的swf文件<asset id="83207" src="http://appimg1.qq.com/happyfarm/module/ui/allcrops/Crop_6097.swf" /> <asset id="83208" src="http://appimg1.qq.com/happyfarm/module/ui/allcrops/Crop_6097_0.swf" /> <asset id="83209" src="http://appimg1.qq.com/happyfarm/module/ui/allcrops/Crop_6097_1.swf" /> <asset id="83210" src="http://appimg1.qq.com/happyfarm/module/ui/allcrops/Crop_6097_2.swf" /> <asset id="83211" src="http://appimg1.qq.com/happyfarm/module/ui/allcrops/Crop_6097_3.swf" /> <asset id="83212" src="http://appimg1.qq.com/happyfarm/module/ui/allcrops/Crop_6097_4.swf" /> <asset id="83213" src="http://appimg1.qq.com/happyfarm/module/ui/allcrops/Crop_6097_Seed.swf" /> 并将http://appimg1.qq.com/happyfarm替换为$url <asset id="83207" src="$url/module/ui/allcrops/Crop_6097.swf" /> <asset id="83208" src="$url/module/ui/allcrops/Crop_6097_0.swf" /> <asset id="83209" src="$url/module/ui/allcrops/Crop_6097_1.swf" /> <asset id="83210" src="$url/module/ui/allcrops/Crop_6097_2.swf" /> <asset id="83211" src="$url/module/ui/allcrops/Crop_6097_3.swf" /> <asset id="83212" src="$url/module/ui/allcrops/Crop_6097_4.swf" /> <asset id="83213" src="$url/module/ui/allcrops/Crop_6097_Seed.swf" />
定位到目录D:\study-project\farm.dreamlove.top\plugins\qqfarm\core\source\xml\mod\nc_data.php
plugins\qqfarm\core\source\xml\mod\nc_data.php
将内容添加进此项元素里面plugins\qqfarm\core\source\xml\mod\nc_data.php
的assets
元素里面
data_zh_CN_v_1736.xml
的crops
元素找到id为6097的数据{"asset_id": {"m": "83207", "m0": "83208", "m1": "83209", "m2": "83210", "m3": "83211", "m4": "83212", "s": "83213"}, "cropGrow": "10800,21600,32400,46800,68400,2000000000", "eo": 30, "gossip": "", "harvestNum": 2, "id": 6097, "insect": "0,0,0,0,0,0|71,-4,81,21,105,4|54,7,69,-33,110,-1|0,0,0,0,0,0", "lv": 0, "name": "春分-含笑花", "nextText": "种子,发芽,小叶子,大叶子,初熟,成熟", "offsetX": 0, "offsetY": 0, "qd": 500, "sr": 310, "tip": "小贴士:", "type": 1, "vipDesc": "黄钻简单描述"},
plugins\qqfarm\core\source\xml\mod\nc_data.php
的crops
元素里面D:\study-project\testweb\upload\source\plugin\qqfarm\core\module\ui\farm\fish
D:\study-project\farm.dreamlove.top\plugins\qqfarm\core\source\xml\mod\nc_data.php
core\source\xml\mod\nc_data.php
nc_data.php
找到<assets>
标签others_v_1189.xml
里面的将数据添加进去 <asset id="29422" src="$url/module/ui/farm/fish/Fish_Seed_27.swf"/>
<asset id="29423" src="$url/module/ui/farm/fish/Fish_27.swf"/>
<asset id="29887" src="$url/module/ui/farm/fish/fish_seed_19.swf"/>
<asset id="29888" src="$url/module/ui/farm/fish/fish_19.swf"/>
<asset id="30023" src="$url/module/ui/farm/fish/fish_seed_28.swf"/>
<asset id="30024" src="$url/module/ui/farm/fish/fish_28.swf"/>
<asset id="33929" src="$url/module/ui/farm/fish/fish_seed_20.swf"/>
<asset id="33930" src="$url/module/ui/farm/fish/fish_20.swf"/>
nc_data.php
找到<waterPool type="json">
others_v_1189.xml
里面的数据nc_data.php
D:\study-project\farm.dreamlove.top\plugins\qqfarm\core\config\nc\fishtype.php
对应qqfarm\core\config\nc\fishtype.php
我们有了上面的池塘鱼的数据,就可以计算生成数据了
最终要生成下面这种数据
"17"=> array("crop_name"=> "金鱼", "cycle"=> array(28800,57600,90000), "exp"=> 45, "id"=> 17, "isMill"=> 1, "isRestaurant"=> 1, "lock_crystal"=> array(0,0), "lock_money"=> 0, "mature"=> 25, "output"=> 30, "pool_size"=> 1, "price"=> 800, "sale"=> 100, "show"=> 0, "tip"=> "小贴士:可爱的小金鱼。")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。