|
- --[[临时语句
- 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
复制代码 有大神能帮忙改成安卓板的DIY吗?? |
|