为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
在游戏中,它看起来像: