lol nice orbservation. I know what to do. I just relaesed that the memory has already been created in the locals. lol
Weirdone, i really didn't use your codes. Netheir do I used JJ codes.
I hoped I could use them but those codes leak. So I used Aero's suggestion. And add somemore thing I needed.
Your -tele or Jj's -tele was using call location xy right? Since I don't wanna to use the removeLocation thingie I have to do it another way.
all right, Aero, please take a look again and tell as if you can find some leaks.
Code: Select all
function InfMp takes player p7,string s7,integer fei returns nothing
local integer yf7=S2I(SubString(s7,0,3))
local trigger t7=CreateTrigger()
local triggercondition tc7=TriggerAddCondition(t7,Condition(function rmCon))
local triggeraction ta7=TriggerAddAction(t7,function ReMP)
if fei<1then
set yf7=GetPlayerId(p7)+1
elseif yf7<1 or yf7>12then
call clC(p7)
call DisplayTextToPlayer(p7,0,0,"wrong player code, dude")
call TriggerRemoveCondition(t7,tc7)
call TriggerRemoveAction(t7,ta7)
call DestroyTrigger(t7)
set t7=null
set tc7=null
set ta7=null
return
endif
call TriggerRegisterPlayerUnitEvent(t7,Player(yf7-1),EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t7,Player(yf7-1),EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t7,Player(yf7-1),EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t7,Player(yf7-1),EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t7,Player(yf7-1),EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call Waiting(p7,SubString(s7,0,fei+2))
call DisableTrigger(t7)
call TriggerRemoveCondition(t7,tc7)
call TriggerRemoveAction(t7,ta7)
call DestroyTrigger(t7)
set t7=null
set tc7=null
set ta7=null
endfunction
Big Credit to Aero
Just tested with my beta testers.With all functions activated, spamming as much cheat as possible, a total 3x 5v5 dota games in battlenet, yet, no one dc'ed, no one complained about lagginess.
I just want to say thank you to you Aero, without your help I wouldn't have made such a good cheat pack with almost 100%, no lagginess.
p/s the server split was caused by some invalid return. I just knew this "Blizzard bug" recently.
Whenever a function takes something from boolean, if the boolean is "invalid", BLizzard would not return automatically itself, the command will stay there for as long time as possible, till all player dc'ed. Since JASS is still not official codes for Blizzard, these kind of bug will not be fixed in the future patch.
w/e