Ok, found respond on my first question...
http://www.buddyforum.de/showthread.php?8184-Lua-dll&p=97578&viewfull=1#post97578
Now i have other question..
How i can check if disease on target is mine?
I try
But it not work because of russian lang, any other way to get localized debuff name?
I try Lua.GetLocalizedText(string) ,but i am not sure about i do that correct , any tips?
http://www.buddyforum.de/showthread.php?8184-Lua-dll&p=97578&viewfull=1#post97578
Now i have other question..
How i can check if disease on target is mine?
I try
Code:
public void feverProc2()
{
var fever = Lua.LuaGetReturnValue("return UnitDebuff(\"target\", \"Озноб\")","highvoltz.lua");
if (fever[7] == "player")
{ if (fever[4] == "disease")
{
Slog("#frost fever detected#");
feverProc = true;
}
}
else
feverProc = false;
Slog("frost fever not detected");
}
I try Lua.GetLocalizedText(string) ,but i am not sure about i do that correct , any tips?
Last edited: