后端Lua
全部技术档案
后端Lua
写个传送
TXT语法专家
跨服沙巴克怎么配置
浮生梦专用2
--前端开始]] local npc = { } -- 类 npc.CONFIG = { -- 配置 MSG_ID = 6011, -- 通信协议号 UI_NAME = "my_wqhc", -- UI界面名称 } function npc:Lmain() -- 前端的入口处 local ui = GUI:npcUi(self.CONFIG.UI_NAME) -- 调用export self.ui = ui local data = { -- name = "", -- 名字过滤:包含关键字
浮生梦专用2
--前端开始]] local npc = { } -- 类 npc.CONFIG = { -- 配置 MSG_ID = 6011, -- 通信协议号 UI_NAME = "my_wqhc", -- UI界面名称 } function npc:Lmain() -- 前端的入口处 local ui = GUI:npcUi(self.CONFIG.UI_NAME) -- 调用export self.ui = ui local data
后端Lua
function feijianhit(actor, sMsg) local msgdata = json2tbl(sMsg) local mapid = getbaseinfo(actor, 3) local monobj = getmonbyuserid(mapid, msgdata.paramList[1]) if monobj then humanhp(monobj, "-", 10000) sendattackeff(mo
后端Lua
<$GETSTRVALUE(T50,飞剑伤害)>比如这个
后端Lua
可以用键值对吗?
后端Lua
function feijianhit(actor, sMsg) local msgdata = json2tbl(sMsg) local mapid = getbaseinfo(actor, 3) local monobj = getmonbyuserid(mapid, msgdata.paramList[1]) if monobj then humanhp(monobj, "-", 10000) sendattackeff(mo
后端Lua
function feijianhit(actor, sMsg) local msgdata = json2tbl(sMsg) local mapid = getbaseinfo(actor, 3) local monobj = getmonbyuserid(mapid, msgdata.paramList[1]) if monobj then humanhp(monobj, "-", "U220") sendattackeff(m
后端Lua
Print:打开界面错误,...server\Mir200\Envir/scripts/game/NPC/xingyunzhuanlun.lua:71: attempt to index global 'SL' (a nil value) -- 后端代码 local xingyunzhuanlun = {} -- 转轮帧映射 local frameToValue = {1, 0, -1, 1, 5, 0, 3, -1} local frameToText = {"+1", "0", "-1",
前端Lua
local xingyunzhuanlun = {} -- 根据帧映射描述文本设置对应值 -- frameToText = {"+1", "0", "-1", "+1", "+5", "0", "+3", "-1"} -- 对应的帧映射值 local frameToValue = {1, 0, -1, 1, 5, 0, 3, -1} -- 获取帧对应的描述文本 local frameToText = {"+1", "0", "-1", "+1", "+5", "0", "+3", "-1"}
前端Lua
local xingyunzhuanlun = {} -- 根据帧映射描述文本设置对应值 -- frameToText = {"+1", "0", "-1", "+1", "+5", "0", "+3", "-1"} -- 对应的帧映射值 local frameToValue = {1, 0, -1, 1, 5, 0, 3, -1} -- 获取帧对应的描述文本 local frameToText = {"+1", "0", "-1", "+1", "+5", "0", "+3", "-1"}
前端Lua
-- 幸运转轮后端逻辑 local xingyunzhuanlun = {} -- 转轮帧映射(8帧对应值) local frameToValue = {1, 0, -1, 1, 5, 0, 3, -1} local frameToText = {"+1", "0", "-1", "+1", "+5", "0", "+3", "-1"} -- 每个帧的选中概率(1-100百分比) local frameProbability = {15, 20, 10, 15, 5, 20, 10, 5}
前端Lua