【GM】钱降一位、一键宝物、一键装备(顶级)

(cherry picked from commit 4ef08d456e)
dev_chengFeng
ZhangBiao 2020-12-08 15:03:59 +08:00
parent 2b3ad467dd
commit b9a3f19509
1 changed files with 22 additions and 9 deletions

View File

@ -42,18 +42,17 @@ local _GMConfig = {}
require("Base/BasePanel")
GMPanel = Inherit(BasePanel)
local this = GMPanel
-- local heroList = { "4#10003#12", "4#10006#12", "4#10008#12", "4#10009#12", "4#10013#12", "4#10014#12",
-- "4#10003#11", "4#10006#11", "4#10008#11", "4#10009#11", "4#10013#11", "4#10014#11",
-- "4#10003#9", "4#10006#9", "4#10008#9", "4#10009#9", "4#10013#9", "4#10014#9",
-- "4#10003#8", "4#10006#8", "4#10008#8", "4#10009#8", "4#10013#8", "4#10014#8",
-- "4#10003#7", "4#10006#7", "4#10008#7", "4#10009#7", "4#10013#7", "4#10014#7",
-- "4#10003#6", "4#10006#6", "4#10008#6", "4#10009#6", "4#10013#6", "4#10014#6",
-- "4#10003#5", "4#10006#5", "4#10008#5", "4#10009#5", "4#10013#5", "4#10014#5",
-- "4#10003#4", "4#10006#4", "4#10008#4", "4#10009#4", "4#10013#4", "4#10014#4"}
local heroList = {
"4#10023#10", "4#10022#10", "4#10034#10", "4#10002#10", "4#10014#10","4#10002#10","4#10003#10"
}
local moneyList = {"1#3#999999999", "1#4#999999999", "1#5#999999999", "1#14#999999999", "1#15#999999999", "1#16#999999999"}
local baowuList = {
"1#100005#1", "1#100010#1", "1#100015#1", "1#100020#1", "1#100025#1","1#100030#1", "1#100035#1","1#100040#1"
}
local equipeList = {
"1#60159#1", "1#60184#1", "1#60194#1", "1#60199#1"
}
local moneyList = {"1#3#99999999", "1#4#99999999", "1#5#99999999", "1#14#99999999", "1#15#99999999", "1#16#99999999"}
--初始化组件(用于子类重写)
function GMPanel:InitComponent()
@ -77,6 +76,8 @@ function GMPanel:InitComponent()
-- {type = GMType.Player, subType = GMSubType.Server, inputNum = 0, args = "22#0#0", btnTip = "一键异妖", inputTip = {""}, callBack = nil},
{type = GMType.Player, subType = GMSubType.Func, inputNum = 0, args = "", btnTip = "生成五个12星英雄", inputTip = {""}, callBack = this.FiveHero},
{type = GMType.Player, subType = GMSubType.Func, inputNum = 0, args = "", btnTip = "一键很多钱", inputTip = {""}, callBack = this.GetMoney},
{type = GMType.Player, subType = GMSubType.Func, inputNum = 0, args = "", btnTip = "生成顶级魂灵宝", inputTip = {""}, callBack = this.Baowu},
{type = GMType.Player, subType = GMSubType.Func, inputNum = 0, args = "", btnTip = "生成顶级装备", inputTip = {""}, callBack = this.GetEquipe},
{type = GMType.Function, subType = GMSubType.Func, inputNum = 1, args = "", btnTip = "跳转测试", inputTip = {"输入跳转ID"}, callBack = this.TestJump},
{type = GMType.Function, subType = GMSubType.Server, inputNum = 1, args = "23#0#%s", btnTip = "获取", inputTip = {"天宫秘宝积分"}, callBack = nil},
@ -147,6 +148,18 @@ function this.FiveHero()
NetManager.GMEvent(heroList[i])
end
end
-- 一键几个宝物
function this.Baowu()
for i=1, #baowuList do
NetManager.GMEvent(baowuList[i])
end
end
-- 一键顶级装备
function this.GetEquipe()
for i=1, #equipeList do
NetManager.GMEvent(equipeList[i])
end
end
-- 一键很多钱
function this.GetMoney()
local index = 1