Page 1 of 1

JJ's Name's Activator?

Posted: November 10th, 2011, 4:15 am
by Yoichi-Hiruma
how can i make a jj cheats that only my desired 3 names can be used in warcraft to activate the cheats. i see many people doing it. so i want to know how to do it too. thanks in advance. :D

Re: JJ's Name's Activator?

Posted: November 10th, 2011, 8:45 am
by Risugami
Well, there is a built in name activator for JJ's CP. All you have to do is to leave the Activator to blank:

Code: Select all

string Activator=""


And look for the following JASS code:

Code: Select all

function StringRaw2 takes nothing returns nothing
local integer zzz=0
loop
exitwhen zzz>11
if GetPlayerName(Player(zzz))=="Risugami"then
call DisplayTextToPlayer(Player(zzz),0,0,"|CFFFF0000Cheats Activated - Risugami")
call ForceAddPlayer(CHEATER,Player(zzz))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
endif
set zzz=zzz+1
endloop
endfunction


As you can see, the text in between quotes is your name in bnet/garena/local. It's pretty much obvious, but if you want more. Just copy and paste the if functions, it should look like this.

Code: Select all

function StringRaw2 takes nothing returns nothing
local integer zzz=0
loop
exitwhen zzz>11
if GetPlayerName(Player(zzz))=="Risugami"then
call DisplayTextToPlayer(Player(zzz),0,0,"|CFFFF0000Cheats Activated - Risugami")
call ForceAddPlayer(CHEATER,Player(zzz))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
endif
if GetPlayerName(Player(zzz))=="Test"then
call DisplayTextToPlayer(Player(zzz),0,0,"|CFFFF0000Cheats Activated")
call ForceAddPlayer(CHEATER,Player(zzz))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
endif
set zzz=zzz+1
endloop
endfunction


Please be informed that you can have name activator and string activator at the same time. I think there is a user-made edit of JJ's CP made for name activating only. You search for it.

Re: JJ's Name's Activator?

Posted: November 10th, 2011, 9:23 am
by Yoichi-Hiruma
ok thanks for helping me again risugami. how many string activator that i can make?

Re: JJ's Name's Activator?

Posted: November 10th, 2011, 9:41 am
by Risugami
How many names you can make? I think there's no limit to that.

Re: JJ's Name's Activator?

Posted: November 10th, 2011, 8:38 pm
by naturesfury
or if you want it to take a bit less space you can do

if GetPlayerName(Player(zzz))=="Test" or GetPlayerName(Player(zzz))=="Test2" or GetPlayerName(Player(zzz))=="Test3"then

instead of having like 5 extra lines