|
現在轉職手機黨,前幾天下了個安卓版龍人來玩
發現它可以用DIY,所以把以前常用的DIY貼了過去
誰知道反而出現了BUG.....
因為以前用的懶人補丁會把F5(全頻切換)改成菜單的選單
但是安卓板龍人只有A/B兩鍵
徵求高手幫忙修改代碼,看是要增加NPC還是用其他的菜單碼
- --[[臨時語句
- JY.Wugong[22]["攻擊力10"]=1000;
- instruct_3(70,64,1,0,5000,0,0,5380,5380,5380,-2,-2,-2);
- OEVENTLUA[5000]=function()
- TalkEx("請選擇:",5,0);
- instruct_0();
- local mainMenu = { {"全員滿狀態",nil,1},
- {"人物滿血內",nil,1},
- {"武功升為極",nil,1},
- {"修正補丁",nil,1},
- {"開局搜刮補丁",nil,1},};
- local r = ShowMenu(mainMenu,5,0,CC.MainSubMenuX,CC.MainSubMenuY+CC.SingleLineHeight,0,0,1,1,CC.DefaultFont,C_ORANGE,C_WHITE);
- instruct_0();
- end
- --]]
- --[[
- --武功等級
- local skillNum = "";
- local skillLevel = "";
- for i = 1,10 do
- skillNum = "武功"..i;
- skillLevel = "武功等級"..i;
- if JY.Person[0][skillNum] > 0 then --判斷是否有武功
- if JY.Person[0][skillLevel] >= 900 then --判斷武功是否已經到達10級
- if JY.Person[0][skillNum] <=88 or JY.Person[0][skillNum] >= 109 then --武功不為內功
- JY.Person[0][skillLevel] = 999;
- else
- if RWTFLB[0] == "絕世天罡" then--武功為內功且稱號為絕世天罡
- JY.Person[0][skillLevel] = 999;
- end
- end
- end
- end
- end
- --]]
- local function FullStatus()
- ---[[
- QZXS("全員滿狀態");
- instruct_12();
- --]]
- end
- local function MaxStatus()
- ---[[
- local maxFlag = false;
- for i = 1,6 do
- local manaMax = 0;
- local absorbFlag = false;
-
- local pid = JY.Base["隊伍"..i];
- if pid >= 0 and JY.Person[pid]["聲望"] ~= 100 then--該位置有隊員且未能力最大化
- while JY.Person[pid]["等級"] ~= 30 do --先判斷是否滿級
- JY.Person[pid]["經驗"] = CC.Exp[JY.Person[pid]["等級"]];
- War_AddPersonLVUP(pid);
- end
-
- JY.Person[pid]["生命最大值"] = 999; --生命最大化
- if JY.Person[pid]["姓名"] ~= "零二七" or JY.Person[pid]["姓名"] ~= "段譽" then
- manaMax = 9500-(math.floor((JY.Person[pid]["資質"]-1)/15)*750);
- else
- manaMax = 10000;
- end
-
- for i = 1,10 do
- if JY.Person[pid]["武功"..i] == 85 or JY.Person[pid]["武功"..i] == 88 then
- absorbFlag = true;
- end
- end
- if absorbFlag == true then
- manaMax = manaMax + 750;
- if manaMax >10000 then
- manaMax = 10000;
- end
- end
- JY.Person[pid]["內力最大值"] = manaMax; --內力最大化
-
- --醫療能力最大化
- if JY.Person[pid]["醫療能力"] >= 20 then
- if pid == 16 or pid ==28 or pid ==45 then
- JY.Person[pid]["醫療能力"] = 500;
- elseif pid == 85 or (pid == 0 and GetS(4,5,5,5) == 7) then
- JY.Person[pid]["醫療能力"] = 400;
- else
- JY.Person[pid]["醫療能力"] = 240;
- end
- end
- --用毒能力最大化
- if JY.Person[pid]["用毒能力"] >= 20 then
- if pid == 17 or pid ==25 or pid ==83 or (pid == 0 and GetS(4,5,5,5) == 7) then
- JY.Person[pid]["用毒能力"] = 400;
- elseif pid == 2 then
- JY.Person[pid]["用毒能力"] = 500;
- else
- JY.Person[pid]["用毒能力"] = 240;
- end
- end
- --解毒能力最大化
- if JY.Person[pid]["解毒能力"] >= 20 then
- JY.Person[pid]["解毒能力"] = 240;
- end
-
- JY.Person[pid]["聲望"] = 100;
- DrawStrBoxWaitKey(string.format("%s 能力最大化",JY.Person[pid]["姓名"]),C_WHITE,CC.DefaultFont);
- maxFlag = true;
- end
- end
- if maxFlag == false then
- QZXS("全員已經能力最大化");
- end
- instruct_12();
- --]]
- end
- local function SkillLevel()
- ---[[
- instruct_0();
- DrawStrBox(CC.MainSubMenuX,CC.MainSubMenuY,"要提升誰的武功",C_WHITE,CC.DefaultFont);
-
- local teamMenu = {}; --菜單生成
- for i=1,6 do
- teamMenu[i] = {"",nil,0};
- local pid = JY.Base["隊伍"..i];
- if pid>=0 then
- teamMenu[i][1] = JY.Person[pid]["姓名"];
- teamMenu[i][3] = 1;
- end
- end
-
- local r = ShowMenu(teamMenu,6,0,CC.MainSubMenuX,CC.MainSubMenuY+CC.SingleLineHeight,0,0,1,1,CC.DefaultFont,C_ORANGE, C_WHITE);
- local personSelect = JY.Base["隊伍"..r];
-
- if r > 0 then
- instruct_0();
- DrawStrBox(CC.MainSubMenuX,CC.MainSubMenuY,"要提升哪個武功的等級",C_WHITE,CC.DefaultFont);
-
- local skillMenu = {}; --菜單生成
- local menuDis = false; --是否顯示菜單
- for i=1,10 do
- skillMenu[i] = {"",nil,0};
- local sid = JY.Person[personSelect]["武功"..i];
- local slv = JY.Person[personSelect]["武功等級"..i];
- if sid>0 and slv >= 900 and slv <=998 then
- skillMenu[i][1] = JY.Wugong[sid]["名稱"];
- skillMenu[i][3] = 1;
- menuDis = true;
- end
- end
-
- instruct_0();
- if menuDis == true then
- local s = ShowMenu(skillMenu,10,0,CC.MainSubMenuX,CC.MainSubMenuY+CC.SingleLineHeight,0,0,1,1,CC.DefaultFont,C_ORANGE, C_WHITE);
- if s > 0 then
- local skillSelect = JY.Person[personSelect]["武功"..s];
- JY.Person[personSelect]["武功等級"..s] = 999;
- DrawStrBoxWaitKey(string.format("%s %s 等級提升為極",JY.Person[personSelect]["姓名"],JY.Wugong[skillSelect]["名稱"]),C_WHITE,CC.DefaultFont);
- end
- else
- DrawStrBoxWaitKey(string.format("%s 沒有武功可以提升",JY.Person[personSelect]["姓名"]),C_WHITE,CC.DefaultFont);
- end
- end
- instruct_0();
- --]]
- end
- local function DIY_Test()
- dofile ".\\script\\Menu\\DIY_Test.lua";
- end
- QZXS("菜單程序載入完成");
- --將全屏選項改為DIY菜單
- function Menu_FullScreen()
- instruct_0();
- local mainMenu = {
- {"全員恢復狀態",FullStatus,1},
- {"人物等級最大化",MaxStatus,1},
- {"人物武功升為極",SkillLevel,1},
- {"目前停用中",DIY_Test,1},
- };
- local x1=(CC.ScreenW-9*CC.DefaultFont-2*CC.MenuBorderPixel)/2;
- local y1=(CC.ScreenH-5*CC.DefaultFont-4*CC.RowPixel-2*CC.MenuBorderPixel)/2;
- local r=ShowMenu(mainMenu,4,0,x1,y1,0,0,1,1,CC.DefaultFont,C_ORANGE, C_WHITE);
- instruct_0();
- end
复制代码 |
|