后端Lua
后端Lua
后端Lua
local che = {brand = '大众',price = 200000} local mycar = {} setmetatable(mycar,{__index = che}) function newcar() local car = { brand = mycar.brand, price = mycar.price, color = mycar.color } setmetatable(car,{__index = mycar}) function car:setcolor(c
后端Lua
local che = {brand = '大众',price = 200000} local mycar = {} setmetatable(mycar,{__index = che}) function newcar() local car = { brand = mycar.brand, price = mycar.price, color = mycar.color } setmetatable(car,{__i
后端Lua
local che = {brand = '大众',price = 200000} local mycar = {} setmetatable(mycar,{__index = che}) function newcar(color) local car = { brand = brand, price = price, color = color or '白色' } function car:setcolor
后端Lua
local che = {brand = '大众',price = 200000} local mycar = {} setmetatable(mycar,{__index = che}) function newcar(brand,price,color) local car = { brand = brand, price = price, color = color or '白色' } function
后端Lua
local npc = {} EquipPos = {[0] = "衣服",[1] = "武器",[2] = "勋章",[3] = "头盔",[4] = "项链",[5] = "手镯(右)" , [6] = "手镯(左)",[7] = "戒指(右)",[8] = "戒指(左)",[10] = "腰带",[11] = "靴子"} npc.Attribute = { attName = { [1] = "血量", [3] = "攻击下限", [4] = "
后端Lua
-- 添加所有获取到的属性 for attr_key, attr_value in pairs(attributes) do local attr_id = attr_id_map[attr_key] if attr_id and attr_value > 0 then lib:setattrb(actor, attr_id, attr_
后端Lua
-- 魔神原力系统后端处理 local moshenyuanli = {} local var_cfg = { [1] = "U25", [2] = "U26", [3] = "U27", [4] = "U28", [5] = "U29", } function moshenyuanli.link(actor, msgid, arg1, arg2, arg3, sMsg) if not cfg_moshenyuanl
后端Lua
给称号
后端Lua
元素要去表里写好在添加吗
后端Lua
-- 魔神原力系统后端处理 local moshenyuanli={} function moshenyuanli.link(actor, msgid, arg1, arg2, arg3, sMsg) if not cfg_moshenyuanli or not next(cfg_moshenyuanli) then return end if arg2==0 then local levels = {} levels[
后端Lua
Print:魔神原力系统收到消息:0,内容:{"Script":"NPC\/moshenyuanli","SkillType":1,"TargetLevel":11}
后端Lua
-- 魔神原力系统后端处理 local moshenyuanli={} function moshenyuanli.link(actor, msgid, arg1, arg2, arg3, sMsg) if not cfg_moshenyuanli or not next(cfg_moshenyuanli) then return end -- 解析前端发送的JSON消息 local msgData = json2tbl(sMsg)
后端Lua
local moshenyuanli = {} local config = { [1] = {name = "暴击原力Lv1", level = 1, count = 2, type1 = "物品", name1 = "魔神修炼石", value1 = 10, type2 = "货币", name2 = "金币", value2 = 10000, cur_attr_1 = 1, cur_attr_2 = 1, cur_attr_3 = 1, cur_attr_4 = 30},
后端Lua