Thêm = tay
không có soft
Thì trước tiên phải có flash cái đã
Ví dụ mềnh làm item gift có id là 3010
Thì trước tiên phải mở file ini.xml
[SP]<gift>
<item id="3001" className="chaoshiMoonCake" giftName="潮式月饼" num="1" charm="40" />
<item id="3002" className="tanshaoMoonCake" giftName="炭烧月饼" num="1" charm="40" />
<item id="3003" className="guangshiMoonCake" giftName="广式月饼" num="1" charm="40" />
<item id="3004" className="bingpiMoonCake" giftName="冰皮月饼" num="1" charm="40" />
<item id="3005" className="sushiMoonCake" giftName="苏式月饼" num="1" charm="40" />
<item id="3006" className="CronCandy" giftName="糖果玉米" num="1" charm="20" />
<item id="3007" className="Roll" giftName="巧克力卷" num="1" charm="20" />
<item id="3008" className="Kisses" giftName="Kisses巧克力" num="1" charm="20" />
<item id="3009" className="BlackCat" giftName="黑猫南瓜" num="1" charm="20" />
<item id="3010" className="GoodBye2009" giftName="Good Bye 2009" num="1" charm="20" />
</gift>[/SP]
Típ tục mở resources.xml và thêm
[SP]
<file url="module/ui/main/exchang/Halloween.swf?v=0">
<item className="Kisses" type="SimpleSprite" width="68.6" height="90.0" />
<item className="Roll" type="SimpleSprite" width="120.1" height="35.0" />
<item className="CronCandy" type="SimpleSprite" width="81.5" height="65.0" />
<item className="BlackCat" type="SimpleSprite" width="70.6" height="90.0" />
<item className="GoodBye2009" type="SimpleSprite" width="81.6" height="90.0" />
Cái className phải giống như bên ini nhé
</file>[/SP]
Edit farm.php
[SP]$tools = array(
"1" => array(
"tId" => 1,
"tName" => "\\u666e\\u901a\\u5316\\u80a5",
"list" => array(
"1" => array( "price" => 50, "FBPrice" => 0 ),
"10" => array( "price" => 450, "FBPrice" => 0 ),
"100" => array( "price" => 4000, "FBPrice" => 0 )
),
"timeLimit" => "0",
"effect" => "3600",
"depict" => "\\u6bcf\\u4e2a\\u9636\\u6bb5\\u53ea\\u80fd\\u4f7f \\u7528\\u4e00\\u6b21\\uff0c\\u51cf\\u5c11\\u8be5\ \u9636\\u6bb5\\u6210\\u957f\\u65f6\\u95f41\\u5c0f\ \u65f6\\u3002",
"type" => 3
),
"2" => array(
"tId" => 2,
"tName" => "\\u9ad8\\u901f\\u5316\\u80a5",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 2 ),
"10" => array( "price" => 0, "FBPrice" => 12 ),
"100" => array( "price" => 0, "FBPrice" => 100 )
),
"timeLimit" => "0",
"effect" => "9000",
"depict" => "\\u6bcf\\u4e2a\\u9636\\u6bb5\\u53ea\\u80fd\\u4f7f \\u7528\\u4e00\\u6b21\\uff0c\\u51cf\\u5c11\\u8be5\ \u9636\\u6bb5\\u6210\\u957f\\u65f6\\u95f42.5\\u5c0 f\\u65f6\\u3002",
"type" => 3
),
"3" => array(
"tId" => 3,
"tName" => "\\u6781\\u901f\\u5316\\u80a5",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 5 ),
"10" => array( "price" => 0, "FBPrice" => 30 ),
"100" => array( "price" => 0, "FBPrice" => 250 )
),
"timeLimit" => "0",
"effect" => "19800",
"depict" => "\\u6bcf\\u4e2a\\u9636\\u6bb5\\u53ea\\u80fd\\u4f7f \\u7528\\u4e00\\u6b21\\uff0c\\u51cf\\u5c11\\u8be5\ \u9636\\u6bb5\\u6210\\u957f\\u65f6\\u95f45.5\\u5c0 f\\u65f6\\u3002",
"type" => 3
),
"7" => array(
"tId" => 7,
"tName" => "\\u98de\\u901f\\u5316\\u80a5",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 8 ),
"10" => array( "price" => 0, "FBPrice" => 72 ),
"100" => array( "price" => 0, "FBPrice" => 640 )
),
"timeLimit" => "0",
"effect" => "28800",
"depict" => "\\u6bcf\\u4e2a\\u9636\\u6bb5\\u53ea\\u80fd\\u4f7f \\u7528\\u4e00\\u6b21\\uff0c\\u51cf\\u5c11\\u8be5\ \u9636\\u6bb5\\u6210\\u957f\\u65f6\\u95f48\\u5c0f\ \u65f6\\u3002",
"type" => 3
),
"8" => array(
"tId" => 8,
"tName" => "\\u795e\\u901f\\u5316\\u80a5",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 9 ),
"10" => array( "price" => 0, "FBPrice" => 81 ),
"100" => array( "price" => 0, "FBPrice" => 720 )
),
"timeLimit" => "0",
"effect" => "21600",
"depict" => "\\u6bcf\\u4e2a\\u9636\\u6bb5\\u53ea\\u80fd\\u4f7f \\u7528\\u4e00\\u6b21\\uff0c\\u51cf\\u5c11\\u8be5\ \u9636\\u6bb5\\u6210\\u957f\\u65f6\\u95f46\\u5c0f\ \u65f6\\uff0c\\u4eba\\u54c1\\u597d\\u7684\\u8bdd\\ u8fd8\\u6709\\u66f4\\u795e\\u5947\\u7684\\u6548\\u 679c\\u54e6\\uff01",
"type" => 3
),
"4" => array(
"tId" => 4,
"tName" => "\\u53cb\\u60c5\\u5316\\u80a5",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 2 ),
"10" => array( "price" => 0, "FBPrice" => 12 ),
"100" => array( "price" => 0, "FBPrice" => 100 )
),
"timeLimit" => "0",
"effect" => "5400",
"depict" => "\\u53ea\\u80fd\\u5bf9\\u597d\\u53cb\\u571f\\u5730 \\u4e0a\\u7684\\u4f5c\\u7269\\u4f7f\\u7528\\uff0c\ \u51cf\\u5c11\\u597d\\u53cb\\u4f5c\\u7269\\u5f53\\ u524d\\u72b6\\u60011.5\\u5c0f\\u65f6\\u65f6\\u95f4 \\u3002",
"type" => 3
),
"5" => array(
"tId" => 5,
"tName" => "\\u6253\\u72D7\\u68D2",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 2 ),
"10" => array( "price" => 0, "FBPrice" => 12 ),
"100" => array( "price" => 0, "FBPrice" => 100 )
),
"timeLimit" => "0",
"effect" => "180",
"depict" => "\\u53EF\\u4EE5\\u628A\\u597D\\u53CB\\u7684\\u5BA0 \\u7269\\u6253\\u6655\\uFF0C\\u518D\\u8FDB\\u884C\ \u5077\\u7A83\\uFF01",
"type" => 3
),
"9" => array(
"tId" => 9,
"tName" => "\\u57fa\\u56e0\\u5316\\u80a5",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 2 ),
"10" => array( "price" => 0, "FBPrice" => 12 ),
"100" => array( "price" => 0, "FBPrice" => 100 )
),
"timeLimit" => "0",
"effect" => "0",
"depict" => "\\u53ef\\u4ee5\\u968f\\u673a\\u6539\\u53d8\\u9c9c \\u82b1\\u989c\\u8272\\u7684\\u795e\\u5947\\u5316\ \u80a5\\uff01",
"type" => 3
),
"6" => array(
"tId" => 6,
"tName" => "\\u5f3a\\u529b\\u6740\\u866b\\u5242",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 2 ),
"10" => array( "price" => 0, "FBPrice" => 12 ),
"100" => array( "price" => 0, "FBPrice" => 100 )
),
"timeLimit" => "0",
"effect" => "3",
"depict" => "\\u6bd4\\u666e\\u901a\\u6740\\u866b\\u5242\\u5a01 \\u529b\\u66f4\\u5927\\uff0c\\u4f46\\u662f\\u53ea\ \u80fd\\u4e13\\u6740\\u5927\\u866b\\u5b50\\u3002",
"type" => 3
),
"3006" => array(
"tId" => 3006,
"tName" => "\\u7CD6\\u679C\\u7389\\u7C73",
"list" => array(
"1" => array( "price" => 500, "FBPrice" => 0 ),
"10" => array( "price" => 4500, "FBPrice" => 0 ),
"100" => array( "price" => 40000, "FBPrice" => 0 )
),
"timeLimit" => "0",
"effect" => "0",
"depict" => "\\u4E0D\\u7ED9\\u7CD6\\u5C31\\u6363\\u4E71\\u3002 \\u8D76\\u5FEB\\u9001\\u7CD6\\u679C\\u7ED9\\u4F60\ \u7684\\u670B\\u53CB\\u5427,\\u5426\\u5219\\u4ED6\ \u4EEC\\u4F1A\\u6349\\u5F04\\u4F60\\u7684\\u5466\\ u3002",
"type" => 3
),
"3007" => array(
"tId" => 3007,
"tName" => "\\u5DE7\\u514B\\u529B\\u5377",
"list" => array(
"1" => array( "price" => 500, "FBPrice" => 0 ),
"10" => array( "price" => 4500, "FBPrice" => 0 ),
"100" => array( "price" => 40000, "FBPrice" => 0 )
),
"timeLimit" => "0",
"effect" => "0",
"depict" => "\\u4E0D\\u7ED9\\u7CD6\\u5C31\\u6363\\u4E71\\u3002 \\u8D76\\u5FEB\\u9001\\u7CD6\\u679C\\u7ED9\\u4F60\ \u7684\\u670B\\u53CB\\u5427,\\u5426\\u5219\\u4ED6\ \u4EEC\\u4F1A\\u6349\\u5F04\\u4F60\\u7684\\u5466\\ u3002",
"type" => 3
),
"3009" => array(
"tId" => 3009,
"tName" => "\\u5357\\u74DC\\u9ED1\\u732B",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 10 ),
"10" => array( "price" => 0, "FBPrice" => 60 ),
"100" => array( "price" => 0, "FBPrice" => 500 )
),
"3010" => array(
"tId" => 3010,
"tName" => "Good Bye 2009",
"list" => array(
"1" => array( "price" => 0, "FBPrice" => 10 ),
"10" => array( "price" => 0, "FBPrice" => 60 ),
"100" => array( "price" => 0, "FBPrice" => 500 )
),
[/SP]
Edit newfarmjson.php
[SP]echo "{\"3\":[{\"tId\":9,\"tName\":\"\\u57fa\\u56e0\\u5316\\u80a 5\",\"list\":{\"1\":{\"price\":0,\"FBPrice\":2},\" 10\":{\"price\":0,\"FBPrice\":12},\"100\":{\"price \":0,\"FBPrice\":100}},\"timeLimit\":\"0\",\"effec t\":\"0\",\"depict\":\"\\u53ef\\u4ee5\\u968f\\u673 a\\u6539\\u53d8\\u9c9c\\u82b1\\u989c\\u8272\\u7684 \\u795e\\u5947\\u5316\\u80a5\\uff01\",\"type\":3}, {\"tId\":8,\"tName\":\"\\u5E7D\\u7075\",\"list\":{ \"1\":{\"price\":\"0\",\"FBPrice\":\"35\"}},\"effe ct\":\"\",\"depict\":\"\\u4E07\\u5723\\u8282\\u523 0\\u4E86\\uFF0C\\u53CB\\u53CB\\u795D\\u5927\\u5BB6 \\u73A9\\u5F00\\u5FC3\\uFF0C\\u8FD9\\u91CC\\u732E\ \u4E0A\\u4E00\\u53EA\\u201C\\u9B3C\\u201D\\u5427\\ u3002\",\"type\":4},{\"tId\":7,\"tName\":\"\\u82cf \\u683c\\u5170\\u7267\\u7f8a\\u72ac\",\"list\":{\" 1\":{\"price\":\"0\",\"FBPrice\":\"59\"}},\"effect \":\"\",\"depict\":\"\\u5BA0\\u7269\\u53ef\\u4ee5\ \u4fdd\\u62a4\\u4f60\\u7684\\u519c\\u573a\\uff0c\\ u9632\\u6b62\\u597d\\u53cb\\u4f7f\\u574f\\u54e6~\\ u8d2d\\u4e70\\u540c\\u65f6\\u8d60\\u900110\\u5305\ \u7CAE\\u98DF\",\"type\":4},{\"tId\":1,\"tName\":\ "\\u666e\\u901a\\u5316\\u80a5\",\"list\":{\"1\":{\ "price\":50,\"FBPrice\":0},\"10\":{\"price\":450,\ "FBPrice\":0},\"100\":{\"price\":4000,\"FBPrice\": 0}},\"timeLimit\":\"0\",\"effect\":\"3600\",\"depi ct\":\"\\u6bcf\\u4e2a\\u9636\\u6bb5\\u53ea\\u80fd\ \u4f7f\\u7528\\u4e00\\u6b21\\uff0c\\u51cf\\u5c11\\ u8be5\\u9636\\u6bb5\\u6210\\u957f\\u65f6\\u95f41\\ u5c0f\\u65f6\\u3002\",\"type\":3},{\"tId\":2,\"tNa me\":\"\\u9ad8\\u901f\\u5316\\u80a5\",\"list\":{\" 1\":{\"price\":0,\"FBPrice\":2},\"10\":{\"price\": 0,\"FBPrice\":12},\"100\":{\"price\":0,\"FBPrice\" :100}},\"timeLimit\":\"0\",\"effect\":\"9000\",\"d epict\":\"\\u6bcf\\u4e2a\\u9636\\u6bb5\\u53ea\\u80 fd\\u4f7f\\u7528\\u4e00\\u6b21\\uff0c\\u51cf\\u5c1 1\\u8be5\\u9636\\u6bb5\\u6210\\u957f\\u65f6\\u95f4 2.5\\u5c0f\\u65f6\\u3002\",\"type\":3},{\"tId\":3, \"tName\":\"\\u6781\\u901f\\u5316\\u80a5\",\"list\ ":{\"1\":{\"price\":0,\"FBPrice\":5},\"10\":{\"pri ce\":0,\"FBPrice\":30},\"100\":{\"price\":0,\"FBPr ice\":250}},\"timeLimit\":\"0\",\"effect\":\"19800 \",\"depict\":\"\\u6bcf\\u4e2a\\u9636\\u6bb5\\u53e a\\u80fd\\u4f7f\\u7528\\u4e00\\u6b21\\uff0c\\u51cf \\u5c11\\u8be5\\u9636\\u6bb5\\u6210\\u957f\\u65f6\ \u95f45.5\\u5c0f\\u65f6\\u3002\",\"type\":3},{\"tI d\":7,\"tName\":\"\\u98de\\u901f\\u5316\\u80a5\",\ "list\":{\"1\":{\"price\":0,\"FBPrice\":8},\"10\": {\"price\":0,\"FBPrice\":72},\"100\":{\"price\":0, \"FBPrice\":640}},\"timeLimit\":\"0\",\"effect\":\ "28800\",\"depict\":\"\\u6bcf\\u4e2a\\u9636\\u6bb5 \\u53ea\\u80fd\\u4f7f\\u7528\\u4e00\\u6b21\\uff0c\ \u51cf\\u5c11\\u8be5\\u9636\\u6bb5\\u6210\\u957f\\ u65f6\\u95f48\\u5c0f\\u65f6\\u3002\",\"type\":3},{ \"tId\":501,\"tName\":\"\\u7CAE\\u98DF\",\"list\": {\"1\":{\"price\":0,\"FBPrice\":2},\"10\":{\"price \":0,\"FBPrice\":15},\"100\":{\"price\":0,\"FBPric e\":130}},\"timeLimit\":\"0\",\"effect\":\"0\",\"d epict\":\"\\u5BA0\\u7269\\u997F\\u4E86\\u5C31\\u6C A1\\u6CD5\\u5DE5\\u4F5C\\u4E86\\u54DF\\uFF0C\\u8D7 6\\u5FEB\\u7ED9\\u5BA0\\u7269\\u5582\\u98DF\\u5427 \",\"type\":3},{\"tId\":8,\"tName\":\"\\u795e\\u90 1f\\u5316\\u80a5\",\"list\":{\"1\":{\"price\":0,\" FBPrice\":9},\"10\":{\"price\":0,\"FBPrice\":81},\ "100\":{\"price\":0,\"FBPrice\":720}},\"timeLimit\ ":\"0\",\"effect\":\"21600\",\"depict\":\"\\u6bcf\ \u4e2a\\u9636\\u6bb5\\u53ea\\u80fd\\u4f7f\\u7528\\ u4e00\\u6b21\\uff0c\\u51cf\\u5c11\\u8be5\\u9636\\u 6bb5\\u6210\\u957f\\u65f6\\u95f46\\u5c0f\\u65f6\\u ff0c\\u4eba\\u54c1\\u597d\\u7684\\u8bdd\\u8fd8\\u6 709\\u66f4\\u795e\\u5947\\u7684\\u6548\\u679c\\u54 e6\\uff01\",\"type\":3},{\"tId\":4,\"tName\":\"\\u 53cb\\u60c5\\u5316\\u80a5\",\"list\":{\"1\":{\"pri ce\":0,\"FBPrice\":2},\"10\":{\"price\":0,\"FBPric e\":12},\"100\":{\"price\":0,\"FBPrice\":100}},\"t imeLimit\":\"0\",\"effect\":\"5400\",\"depict\":\" \\u53ea\\u80fd\\u5bf9\\u597d\\u53cb\\u571f\\u5730\ \u4e0a\\u7684\\u4f5c\\u7269\\u4f7f\\u7528\\uff0c\\ u51cf\\u5c11\\u597d\\u53cb\\u4f5c\\u7269\\u5f53\\u 524d\\u72b6\\u60011.5\\u5c0f\\u65f6\\u65f6\\u95f4\ \u3002\",\"type\":3},{\"tId\":5,\"tName\":\"\\u625 3\\u72D7\\u68D2\",\"list\":{\"1\":{\"price\":0,\"F BPrice\":2},\"10\":{\"price\":0,\"FBPrice\":12},\" 100\":{\"price\":0,\"FBPrice\":100}},\"timeLimit\" :\"0\",\"effect\":\"18\",\"depict\":\"\\u8BA9\\u5B A0\\u7269\\u66553\\u5206\\u949F\",\"type\":3},{\"t Id\":6,\"tName\":\"\\u5F3A\\u529B\\u6740\\u866B\\u 5242\",\"list\":{\"1\":{\"price\":0,\"FBPrice\":2} ,\"10\":{\"price\":0,\"FBPrice\":12},\"100\":{\"pr ice\":0,\"FBPrice\":100}},\"timeLimit\":\"0\",\"ef fect\":\"3\",\"depict\":\"\\u6BD4\\u666E\\u901A\\u 6740\\u866B\\u5242\\u5A01\\u529B\\u66F4\\u5927\\uF F0C\\u4F46\\u662F\\u53EA\\u80FD\\u4E13\\u6740\\u59 27\\u866B\\u5B50\\u3002\",\"type\":3},{\"tId\":300 6,\"tName\":\"\\u7CD6\\u679C\\u7389\\u7C73\",\"lis t\":{\"1\":{\"price\":500,\"FBPrice\":0}},\"timeLi mit\":\"0\",\"effect\":\"0\",\"depict\":\"\\u4E0D\ \u7ED9\\u7CD6\\u5C31\\u6363\\u4E71\\u3002\\u8D76\\ u5FEB\\u9001\\u7CD6\\u679C\\u7ED9\\u4F60\\u7684\\u 670B\\u53CB\\u5427,\\u5426\\u5219\\u4ED6\\u4EEC\\u 4F1A\\u6349\\u5F04\\u4F60\\u7684\\u5466\\u3002\",\ "type\":3},{\"tId\":3007,\"tName\":\"\\u5DE7\\u514 B\\u529B\\u5377\",\"list\":{\"1\":{\"price\":500,\ "FBPrice\":0}},\"timeLimit\":\"0\",\"effect\":\"0\ ",\"depict\":\"\\u4E0D\\u7ED9\\u7CD6\\u5C31\\u6363 \\u4E71\\u3002\\u8D76\\u5FEB\\u9001\\u7CD6\\u679C\ \u7ED9\\u4F60\\u7684\\u670B\\u53CB\\u5427,\\u5426\ \u5219\\u4ED6\\u4EEC\\u4F1A\\u6349\\u5F04\\u4F60\\ u7684\\u5466\\u3002\",\"type\":3},{\"tId\":3008,\" tName\":\"Kisses\",\"list\":{\"1\":{\"price\":0,\" FBPrice\":5}},\"timeLimit\":\"0\",\"effect\":\"0\" ,\"depict\":\"\\u4E0D\\u7ED9\\u7CD6\\u5C31\\u6363\ \u4E71\\u3002\\u8D76\\u5FEB\\u9001\\u7CD6\\u679C\\ u7ED9\\u4F60\\u7684\\u670B\\u53CB\\u5427,\\u5426\\ u5219\\u4ED6\\u4EEC\\u4F1A\\u6349\\u5F04\\u4F60\\u 7684\\u5466\\u3002\",\"type\":3},{\"tId\":3009,\"t Name\":\"\\u5357\\u74DC\\u9ED1\\u732B\",\"list\":{ \"1\":{\"price\":0,\"FBPrice\":10}},\"timeLimit\": \"0\",\"effect\":\"0\",\"depict\":\"\\u9001\\u5357 \\u74DC\\u9ED1\\u732B\\u7ED9\\u4F60\\u7684\\u670B\ \u53CB\\u5427\\uFF0C\\u8FD9\\u4E00\\u5B9A\\u4F1A\\ u7ED9\\u4ED6\\u4EEC\\u5E26\\u53BB\\u597D\\u8FD0\\u 7684\\u3002\",\"type\":3},
{\"tId\":3010,\"tName\":\"Good Bye 2009",\"list\":{\"1\":{\"price\":0,\"FBPrice\":10} },\"timeLimit\":\"0\",\"effect\":\"0\",\"depict\": \"Test test",\"type\":3}][/SP]
Xong rồi
Riêng cái gift làm rất dễ