Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为WoW(Lua)制作文本框_Lua_World Of Warcraft - Fatal编程技术网

为WoW(Lua)制作文本框

为WoW(Lua)制作文本框,lua,world-of-warcraft,Lua,World Of Warcraft,我正在一个软件下为魔兽世界(私人)撰写个人资料。您需要检查游戏世界和消息输出。问题是消息显示且配置文件关闭,或者根本不显示 用于检查游戏世界的功能 data.SirusCheck = function() local result = false if (GetRealmName() == "Scourge x2 - 3.3.5a+" or GetRealmName() == "Neltharion x3 - 3.3.5a+"

我正在一个软件下为魔兽世界(私人)撰写个人资料。您需要检查游戏世界和消息输出。问题是消息显示且配置文件关闭,或者根本不显示

用于检查游戏世界的功能

data.SirusCheck = function()
    local result = false
    if (GetRealmName() == "Scourge x2 - 3.3.5a+"
     or GetRealmName() == "Neltharion x3 - 3.3.5a+"
     or GetRealmName() == "Sirus x10 - 3.3.5a+"
     or GetRealmName() == "Algalon x4 - 3.3.5a") then
        result = true
    end
    return result
end
这是一张个人资料

if build == 30300 and data and toolkit and data.SirusCheck() then


---- Whole code here


    ni.bootstrap.profile("Retri_DarhangeR", queue, abilities, OnLoad, OnUnLoad);
else    
    local queue = {
        "Error",
    }
    local abilities = {             
        ["Error"] = function()
            ni.vars.profiles.enabled = false;
            if build > 30300 then
              ni.frames.floatingtext:message("This profile is meant for WotLK 3.3.5a! Sorry!")
            elseif data == nil then
              ni.frames.floatingtext:message("Data file is missing or corrupted!");
            elseif toolkit == nil then
              ni.frames.floatingtext:message("Toolkit file is missing or corrupted!")  
            end
        end,
    }
    ni.bootstrap.profile("Retri_DarhangeR", queue, abilities);
end
这个想法是这样的:

if data.SirusCheck() then
    ni.frames.floatingtext:message("u here!")  
end
在游戏中,它看起来像: