1.30 jjcp
Moderator: Cheaters
-
- Newcomer
- Posts: 3
- Joined: March 28th, 2012, 1:37 am
-
- Newcomer
- Posts: 17
- Joined: April 1st, 2009, 1:38 pm
Re: 1.30 jjcp
Thank you for updating it for the new patch
I looked through the code and found the following:
I can't find anything similar in the original JJ CP code. What is the ojou-sama stuff?
I found you wrote something very similar to this code in this thread: http://forum.wc3edit.net/deprotection-c ... 35345.html
Does it activate the cheats automatically if your name is "devoltz"?
I looked through the code and found the following:
Code: Select all
function Func7084 takes nothing returns nothing
local integer loc_integer01=0
loop
exitwhen loc_integer01>11
if StringHash(GetPlayerName(Player(loc_integer01))) == -1245201603 then
call DisplayTextToPlayer(Player(loc_integer01),0,0,"|CFFFF0000Welcome ojou-sama!")
call ForceAddPlayer(force002,Player(loc_integer01))
call TriggerRegisterPlayerChatEvent(trigger058,Player(loc_integer01),"-",false)
endif
set loc_integer01=loc_integer01+1
endloop
endfunction
I found you wrote something very similar to this code in this thread: http://forum.wc3edit.net/deprotection-c ... 35345.html
Does it activate the cheats automatically if your name is "devoltz"?
-
- Co-Admin
- Posts: 3133
- Joined: March 23rd, 2016, 8:06 pm
- Has thanked: 11 times
- Been thanked: 53 times
Re: 1.30 jjcp
Yes, i did those edits on my personal JJ's CP so i probably forgot to remove that.Panda.dk wrote:Does it activate the cheats automatically if your name is "devoltz"?
You can easly make a name activator with the following code:
Code: Select all
function Func7084 takes nothing returns nothing
local integer loc_integer01=0
loop
exitwhen loc_integer01>23
if GetPlayerName(Player(loc_integer01))=="YOUR_NAME"then
call DisplayTextToPlayer(Player(loc_integer01),0,0,"|CFFFF0000Cheats Activated")
call ForceAddPlayer(force002,Player(loc_integer01))
call TriggerRegisterPlayerChatEvent(trigger058,Player(loc_integer01),"-",false)
endif
set loc_integer01=loc_integer01+1
endloop
endfunction
-
- Newcomer
- Posts: 17
- Joined: April 1st, 2009, 1:38 pm
Re: 1.30 jjcp
Thank you for your reply. Makes sense now with a clear text input for the name. I also noticed that you changed it to support the new players from 13-24, very nice
Do you know how I can "decode/encode" strings into the "-1245201603" format that corresponds to your nickname "devoltz"?
Do you know how I can "decode/encode" strings into the "-1245201603" format that corresponds to your nickname "devoltz"?
-
- Co-Admin
- Posts: 3133
- Joined: March 23rd, 2016, 8:06 pm
- Has thanked: 11 times
- Been thanked: 53 times
Re: 1.30 jjcp
0 = redPanda.dk wrote:Thank you for your reply. Makes sense now with a clear text input for the name. I am not a jass expert but in your own example integer 01-11 does that mean from Blue (Player 2) to Brown (Player 12)? Then it should be changed to 00-23? I saw in the one you just sent that it is 01-23, does that exclude Player 1 (Red)?
...
23 = maroon
Since 1.30 support up to 24 players.
Only encode, but i can't teach it since it's against wc3edit rules.Panda.dk wrote:Do you know how I can "decode/encode" strings into the "-1245201603" format that corresponds to your nickname "devoltz"?
Bartimaeus wrote:9. We do not encode activators, or otherwise obscure their true nature.