修复allowFunc

This commit is contained in:
admin 2026-06-18 02:06:14 +08:00
parent ad2dc2e542
commit b6387b7796
26 changed files with 4811 additions and 4783 deletions

View file

@ -836,4 +836,5 @@ function kick_player(actor)
end
end
GmBoxOBJ.allowFunc = {"up"}
return GmBoxOBJ

View file

@ -255,4 +255,5 @@ end
GameEvent.add(EventCfg.goLeaveMap, NPCGotoMapOBJ.LeaveMapEvent, NPCGotoMapOBJ)
NPCGotoMapOBJ.allowFunc = {"up", "main"}
return NPCGotoMapOBJ

View file

@ -373,4 +373,6 @@ function HuodongzhongxinOBJ:luandouGetData(actor, p1, p2, p3, sendata)
sendluamsg(actor, sendID, 0, 0, 0, tbl2json(data))
end
HuodongzhongxinOBJ.allowFunc = {"luandouGetData", "up", "BaoMing"}
return HuodongzhongxinOBJ

View file

@ -5,7 +5,7 @@ SysBtnOBJ._name = "SysBtnOBJ"
----* 打开仓库
----* ????
function SysBtnOBJ:opencangku(actor)
openstorage(actor)
end
@ -15,4 +15,7 @@ end
SysBtnOBJ.allowFunc = {"opencangku"}
return SysBtnOBJ

View file

@ -122,5 +122,6 @@ function HuiShouOBJ:auto(actor, p1, p2, p3, data)
gives(actor, table.concat(givestr, "&"), "装备回收")
end
HuiShouOBJ.allowFunc = {"auto"}
return HuiShouOBJ

View file

@ -103,4 +103,7 @@ end
XianShiChongBangOBJ.allowFunc = {"getrank", "givesrank"}
return XianShiChongBangOBJ

View file

@ -42,5 +42,6 @@ function ShouChongOBJ:up(actor, p1, p2, p3, data)
sendredvartoclient(actor)
end
ShouChongOBJ.allowFunc = {"up"}
return ShouChongOBJ

View file

@ -103,4 +103,5 @@ GameEvent.add(EventCfg.onLogin,ZhuanShengOBJ_login,ZhuanShengOBJ)
ZhuanShengOBJ.allowFunc = {"up", "main"}
return ZhuanShengOBJ

View file

@ -135,4 +135,5 @@ GameEvent.add(EventCfg.onTakeOffEx, function(actor, makeIndex, where, itemName)
end, XingYunXiangLianOBJ)
XingYunXiangLianOBJ.allowFunc = {"up", "reset"}
return XingYunXiangLianOBJ

View file

@ -205,4 +205,5 @@ function wuqishengji_reset(actor)
end
end
WuQiShengJIOBJ.allowFunc = {"up", "reset"}
return WuQiShengJIOBJ

View file

@ -59,4 +59,5 @@ end
WuqiRongheOBJ.allowFunc = {"up"}
return WuqiRongheOBJ

View file

@ -37,4 +37,5 @@ function WuqiJinJieOBJ:up(actor, p1, p2, p3, data)
end
end
WuqiJinJieOBJ.allowFunc = {"up"}
return WuqiJinJieOBJ

View file

@ -150,4 +150,5 @@ GameEvent.add(EventCfg.onkillplay, die_kuangbao, KuangBaoOBJ)
KuangBaoOBJ.allowFunc = {"up"}
return KuangBaoOBJ

View file

@ -165,4 +165,5 @@ function ShenShouCuiTiOBJ:addMagick(actor, id)
end
end
ShenShouCuiTiOBJ.allowFunc = {"up"}
return ShenShouCuiTiOBJ

View file

@ -314,4 +314,5 @@ GameEvent.add(EventCfg.onKillMon, _boss_shousha, FuLiDaTingOBJ)
FuLiDaTingOBJ.allowFunc = {"main", "mrcz", "mrxg", "wztq", "czjjbuy", "czjj", "lcjl", "recycle"}
return FuLiDaTingOBJ

View file

@ -407,4 +407,6 @@ GameEvent.add(EventCfg.onAttackPlay, _onAttackPlay, JueXueXiuLianOBJ)
JueXueXiuLianOBJ.allowFunc = {"up", "jiesuo"}
return JueXueXiuLianOBJ

View file

@ -50,4 +50,5 @@ end
JinTiaoStoreOBJ.allowFunc = {"up"}
return JinTiaoStoreOBJ

View file

@ -117,4 +117,6 @@ function ZhuangBeiFenJieOBJ:up(actor, p1, p2, p3, data)
end
end
ZhuangBeiFenJieOBJ.allowFunc = {"up"}
return ZhuangBeiFenJieOBJ

View file

@ -208,4 +208,5 @@ GameEvent.add(EventCfg.onAddBag, ZhuangBeiLianHuaOBJ_lianhua, ZhuangBeiLianHuaOB
ZhuangBeiLianHuaOBJ.allowFunc = {"up"}
return ZhuangBeiLianHuaOBJ

View file

@ -70,5 +70,6 @@ end
GameEvent.add(EventCfg.onAttackHumandamage, ZhuangBeiChongZhuOBJ_chongzhu, ZhuangBeiChongZhuOBJ)
ZhuangBeiChongZhuOBJ.allowFunc = {"up"}
return ZhuangBeiChongZhuOBJ

View file

@ -47,7 +47,7 @@ Player.sycCfg[JiuMiOBJ._name] = JiuMiOBJ.cfg
JiuMiOBJ.CaChe = {}
---* 允许前端调用的函数
JiuMiOBJ.allowFunc = { "up" }
JiuMiOBJ.allowFunc = { "up", "xl" }
function JiuMiOBJ:up(actor, p1, p2, p3, data)

View file

@ -33,7 +33,7 @@ TianGuanOBJ.CaChe = {}
---* 允许前端调用的函数
TianGuanOBJ.allowFunc = { "up" }
TianGuanOBJ.allowFunc = { "up", "selfgotolevel" }
TianGuanOBJ.UpFunc = {
"publicTianguan", "selfTianguan",

View file

@ -41,7 +41,7 @@ ZhiBaoLaoRenOBJ.CaChe = {}
---* 允许前端调用的函数
ZhiBaoLaoRenOBJ.allowFunc = { "up", "boxjiesuo" }
ZhiBaoLaoRenOBJ.allowFunc = { "up", "boxjiesuo", "chouqu" }
function ZhiBaoLaoRenOBJ:up(actor, p1, p2, p3, data)

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff