后端Lua
后端Lua
后端Lua
给装备添加属性
后端Lua
local newcomer = {} function newcomer.main(actor) -- 使用release_print进行调试输出 release_print(1111111111) -- 获取玩家信息,参数47需要确认是否正确 local newpeople = tonumber(getflagstatus(actor, 500)) release_print("是否为新人:" .. newpeople .. ", 类型:"
后端Lua
local newcomer = {} function newcomer.main(actor) -- 使用release_print进行调试输出 release_print(1111111111) -- 获取玩家信息,参数47需要确认是否正确 local newpeople = tonumber(setflagstatus(actor, 500)) release_print("是否为新人:" .. newpeople .. ", 类型:"
后端Lua
local newcomer = {} function newcomer.main(actor) -- 使用release_print进行调试输出 release_print(1111111111) -- 获取玩家信息,参数47需要确认是否正确 local newpeople = tonumber(getbaseinfo(actor, 47)) release_print("是否为新人:" .. getbaseinfo(actor, 47)
后端Lua
local newcomer = {} p(1111111111) function newcomer.main (actor) local newpeople=tonumber(getbaseinfo(actor,47)) p("是否为新人:"..getbaseinfo(actor,47),type("newpeople")) if newpeople then setsndaitembox(actor,1) giveitem(actor,"回城石",1) giveitem(actor,"随
后端Lua
称号时限的是填哪一行
后端Lua
function main_turntable_lottery(actor) local width = getconst(actor, "$SCREENWIDTH") / 2 --屏幕宽 local height = getconst(actor, "$SCREENHEIGHT") / 2 --屏幕高 local str = string.format([[ <Layout|x=%d|y=%d|width=80|height=80|link=@exit> <Img|
后端Lua
function main_turntable_lottery(actor) local width = getconst(actor, "$SCREENWIDTH") / 2 --屏幕宽 local height = getconst(actor, "$SCREENHEIGHT") / 2 --屏幕高 local str = string.format([[ <Layout|x=%d|y=%d|width=80|height=80|link=@exit> <Img|
后端Lua
say按钮 link=@iWant_donate格式正确吗
后端Lua
local deviceDetect = {} -- 存储玩家设备信息 local playerDevices = {} -- 接收前端发来的设备信息 function deviceDetect.onDeviceInfo(actor, msgid, arg1, arg2, arg3, sMsg) local msgData = json.decode(sMsg) or {} local isMobile = msgData.is_mobile or false loc
后端Lua
-- 注册消息处理 registerNetMsg(58222, deviceDetect.onDeviceInfo)
后端Lua
我添加一个按钮打开角色面板
后端Lua
-- 首先,定义检测手机端的函数 local function CheckIsMobile(actor) local clientType = getbaseinfo(actor, 65) -- 65 代表获取客户端类型 if clientType == 1 then release_print("玩家 " .. actor .. " 是手机端登录,准备添加按钮。") return true else release_pri
后端Lua