i tried again the 2.511, but the addon is still going into an endless loop and freezes the game. don't know, maybe someone here want to use his lua-skills and try to bring this addon to work.
the code is still hard to read. here the link:
Filebeam - Free Fast File Hosting
btw. the freeze always happens when you enter combat.
here the 4 functions i changed:
Code:
function Nx.returnnil:orindo() local realm = GetRealmName() local realm_out = "" local char = UnitName("player") local char_out = "" for i = 1,#realm do realm_out = realm_out .. string.format("00%x", string.byte(realm,i)) end for i = 1,#char do char_out = char_out .. string.format("00%x", string.byte(char,i)) end return realm_out, char_out end
function Nx.returnnil:breaktrueself() return GetRealmName(), UnitName("player") end
function Nx.returnnil:thenwhilelocal() local realm_name=GetRealmName() realm_name=self:orroflself(realm_name) local unit_name=UnitName("player") unit_name=self:orroflself(unit_name) local string="" local string_len=12-#unit_name string_len=string_len>5 and 5 or string_len for i=1,string_len do local b=string.byte(realm_name,i) or 0x55 string=string .. string.char(bit.bxor(bit.bxor(b,0xaa),i)) end for i=string_len+1,12 do local b=string.byte(realm_name,i) or 0x55 local b2=string.byte(unit_name,i-string_len) or 0xaa local b3=bit.bxor(bit.bxor(b,b2),i) if b3<0 or b3>255 then break end string=string .. string.char(bit.bxor(bit.bxor(b,b2),i)) end return string end
function Nx.returnnil:notdothis() local s = '' for i=1,12 do local a,b=strbyte('133713371337133713371337',i*2-1,i*2) a=a>=97 and a-87 or a-48 b=b>=97 and b-87 or b-48 s=s .. strchar(a*16+b)end return s end
i deleted the 2 functions Nx:nordam1 and Nx:xiffade
i don't want to invest more time, because i want to bring my DK to 80
