- UID
- 2057210
- 主题
- 0
- 阅读权限
- 20
- 帖子
- 17
- 精华
- 0
- 积分
- 9
- 金钱
- 47
- 荣誉
- 0
- 人气
- 0
- 在线时间
- 0 小时
- 评议
- 0
- 帖子
- 17
- 精华
- 0
- 积分
- 9
- 金钱
- 47
- 荣誉
- 0
- 人气
- 0
- 评议
- 0
|
文中对数组的调用方法有错,会导致在第1及第3项作弊时游戏卡死
- for j = 1, mon do -> for j = 1, mon[i] do
- for j = i1, i2 do -> for j = i1[i], i2[i] do
复制代码
全文:- restore_save_q = function()
- selmsg(3, "匡兜")
- setselect(1, "1.絃")
- setselect(2, "2.国")
- setselect(3, "3.")
- sleep(3)
- waitanykey()
- restore_save_ans(getselectanwser())
- end
- restore_cheat_q = function()
- selmsg(6, "匡兜")
- setselect(1, "1.┣")
- setselect(2, "2.珇")
- setselect(3, "3.杆称")
- setselect(4, "4.窥")
- setselect(5, "5.钉ヮ")
- setselect(6, "6.")
- sleep(3)
- waitanykey()
- restore_cheat_ans(getselectanwser())
- end
- restore_cheat_ans = function(x)
- local mainid = get_mainrole()
- local mainname = get_rolename(mainid)
- if x == 1 then
- local mon = {17, 14, 15, 15, 16, 16, 14, 12, 7, 6}
- local a = table.getn(mon)
- for i = 1, a do
- for j = 1, mon[i] do
- addsprite(i * 100 + 900 + j, 1)
- end
- end
- elseif x == 2 then
- for i = 6001, 6028 do
- if i ~= 6024 then
- additem(i, 99)
- end
- end
- for i = 6039, 6046 do
- if i ~= 6040 then
- additem(i, 99)
- end
- end
- elseif x == 3 then
- local i1 = {3001, 3018, 3021, 3041, 3061, 3081, 3101, 4001, 4021, 4041, 5001, 5051}
- local i2 = {3016, 3018, 3034, 3055, 3074, 3090, 3109, 4011, 4030, 4051, 5024, 5063}
- local a = table.getn(i1)
- local b = table.getn(i2)
- local num = 11
- if a == b then
- for i = 1, a do
- for j = i1[i], i2[i] do
- additem(j, num)
- end
- end
- end
- elseif x == 4 then
- addmoney(1000000)
- elseif x == 5 then
- for i = 1, 11 do
- join(i)
- end
- elseif x == 6 then
- else
- restore_cheat_q()
- end
- end
- restore_save_ans = function(x)
- local mainid = get_mainrole()
- local mainname = get_rolename(mainid)
- if x == 1 then
- call_save()
- elseif x == 3 then
- restore_team()
- elseif x == 2 then
- restore_cheat_q()
- else
- restore_save_q()
- end
- end
复制代码
[ 本帖最后由 wuspring 于 2008-1-12 22:45 编辑 ] |
|