JJ's Name's Activator?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Yoichi-Hiruma
Newcomer
Posts: 22
Joined: December 19th, 2010, 3:10 am
Title: Demon
Location: Philippines, Manila

JJ's Name's Activator?

Post 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
Image





LET'S RIP THEIR HEADS OFF YA-HA
User avatar
Risugami
Senior Member
Posts: 134
Joined: September 25th, 2011, 1:15 pm
Title: Slacking

Re: JJ's Name's Activator?

Post 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.
Image Image
(Made by: Risugami) | Risugami's Signature Workshop

"As a young boy, I was taught in high school that hacking was cool. - Kevin Mitnick"
User avatar
Yoichi-Hiruma
Newcomer
Posts: 22
Joined: December 19th, 2010, 3:10 am
Title: Demon
Location: Philippines, Manila

Re: JJ's Name's Activator?

Post by Yoichi-Hiruma »

ok thanks for helping me again risugami. how many string activator that i can make?
Image





LET'S RIP THEIR HEADS OFF YA-HA
User avatar
Risugami
Senior Member
Posts: 134
Joined: September 25th, 2011, 1:15 pm
Title: Slacking

Re: JJ's Name's Activator?

Post by Risugami »

How many names you can make? I think there's no limit to that.
Image Image
(Made by: Risugami) | Risugami's Signature Workshop

"As a young boy, I was taught in high school that hacking was cool. - Kevin Mitnick"
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: JJ's Name's Activator?

Post 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