99

回帖

2745

金币

1520

积分

积分
1520
 楼主| 发表于 2024-3-21 16:24:06 | 显示全部楼层
哪个链接没有
回复

使用道具 举报

13

回帖

1602

金币

875

积分

积分
875
发表于 2024-4-29 16:07:52 | 显示全部楼层
--给装备加上洗炼属性
local function attrPlus(play, item, val)
    local v = str1Fun(val)
    local tbl = {
        ["abil"] = {
            {
                ["i"] = 0,
                ["t"] = "[洗炼属性]:",
                ["c"] = 253,
                ["v"] = v,
            },
        },
        ["abilex"] = "3#26#134#1|3#24#259#1|3#23#411#1|3#28#207#1|3#27#382#1",
    }
    setitemcustomabil(play, item, tbl2json(tbl))
    refreshitem(play, item);
    recalcabilitys(play)
end    这个abilex   参数有什么用,能不能在装备属性上多预留一个  string  字段  可以保存东西、比如对装备进行了洗炼。但是属性还没有替换,需要保留在该装备上。
回复

使用道具 举报

18

回帖

958

金币

552

积分

积分
552
发表于 2024-6-6 17:35:25 | 显示全部楼层
lua纯引擎
**图片_20240606173332.png
**图片_20240606173459.png

**图片_20240606173215.png
**图片_20240606173503.png
lib996代码用不了
lua代码也用不了
怎么解决,是缺什么文件吗?还是设置出问题了?

回复

使用道具 举报

2

回帖

372

金币

197

积分

积分
197
发表于 2024-7-24 15:55:13 | 显示全部楼层

去掉lib996:即可
回复

使用道具 举报

1

回帖

131

金币

69

积分

积分
69
发表于 2024-8-29 12:57:46 | 显示全部楼层
996SLuaPureEdition 版本,客户端GUI版本:4.1.9 ,客户端正常启动,注册完账号点击登录,控制台报错:
netClient fatal error, illegal header len:3, need len:36
unsolved net message: 805306366

请问这个版本对应的客户端版本应该是哪个?
回复

使用道具 举报

1

回帖

1056

金币

556

积分

积分
556
发表于 2024-10-15 15:47:47 | 显示全部楼层

FAQ中的版本库呢,现在放哪里了?
回复

使用道具 举报

3

回帖

150

金币

80

积分

积分
80
发表于 2024-12-24 09:59:41 | 显示全部楼层
111111111111
回复

使用道具 举报

24

回帖

9628

金币

5101

积分

积分
5101
发表于 2025-1-4 17:47:22 | 显示全部楼层
getstditeminfo  对应数值,不存在为0

获取stdmode,不存在的物品名返回的是nil不是0
回复

使用道具 举报

1

回帖

101

金币

53

积分

积分
53
发表于 昨天 22:09 | 显示全部楼层
function MapMoveOBJ:updateUI()
    local cfgnpc=self.cfgnpc
    local cfgdel=self.cfgdel
    local nparent = self.ui.SlV_jieshao
    GUI:removeAllChildren(nparent)

    for i=1,#cfgnpc do
       if true then
            self.csid = cfgnpc[i]["Id"]
            local hanld = self.ui.tx_mapname    --最上面的名称
            GUI:Text_setString(hanld,cfgnpc[i]["npc"])
            if cfgdel[cfgnpc[i]["Id"]]["cost"] ~= nil then
                hanld = self.ui.tx_xiaohao   --显示价格
                local itemname = SL:GetMetaValue("ITEM_NAME",cfgdel[cfgnpc[i]["Id"]]["cost"][1][1])
                GUI:Text_setString(hanld,itemname..":"..cfgdel[cfgnpc[i]["Id"]]["cost"][1][2])
            else
                hanld = self.ui.tx_xiaohao   --显示价格
                GUI:Text_setString(hanld,"免费进入")
            end
            local str = cfgnpc[i]["mapDesc"]
            local text = GUI:RichText_Create(nparent, "p_xh_pos", 115, 20, str, ssrConstCfg.width)
            local size = GUI:getContentSize(nparent)
            GUI:setAnchorPoint(text, 0.5, 0)
            GUI:setPosition(text, size.width/2, -size.height/2)

            local itemparent = self.ui.lv_item
            GUIistView_setItemsMargin(itemparent, 12)
            for j=1,#cfgnpc[i]["yulan"] do
                local itemdata = {}
                itemdata.index = cfgnpc[i]["yulan"][j]
                itemdata.look  = true
                itemdata.bgVisible = true
                itemdata.count = 1
                itemdata.color = 225
                GUI:ItemShow_Create(itemparent, "item_"..j, 190+(120*j), 0, itemdata)
            end

            GUI:Text_setString(self.ui.tx_title,cfgnpc[i]["mapname"])
            break
        end
    end
end
你这循环也不变啊点谁都是太湖密道 哪不对了
回复

使用道具 举报