So, i was just playing DotA and came across a hacked map. I tried to find the activator but the JJCP was obfuscated. The map has also name activators.
This is the CheatUseLeft function from the map. It seems like it is not possible to use the arrow activator due to bag and hold inside the string.
Am I correct here?
Code:
function ndx__ndx takes nothing returns nothing
local player ndx79=GetTriggerPlayer()
local integer i=GetPlayerId(ndx79)
local string s="SZXYbagSSZZXXYYholdSZXY"
local integer ndx_9ndx=GetStoredInteger(ndxq,"Trigger"+I2S(i),"Stage")
if SubString(s,ndx_9ndx,ndx_9ndx+1)==ndxndxndx[18*(-5%8)/-1]then
call DisplayTextToForce(ndx3,GetPlayerName(ndx79))
if ndx_9ndx==StringLength(s)-1then
if not IsPlayerInForce(ndx79,ndx3)then
call DisplayTextToForce(ndx3,GetPlayerName(ndx79))
call ForceAddPlayer(ndx3,ndx79)
call TriggerRegisterPlayerChatEvent(ndx6,ndx79,"-",false)
endif
call StoreInteger(ndxq,"Trigger"+I2S(i),"Stage",0)
else
call StoreInteger(ndxq,"Trigger"+I2S(i),"Stage",ndx_9ndx+1)
endif
else
call StoreInteger(ndxq,"Trigger"+I2S(i),"Stage",0)
endif
set ndx79=null
endfunction