1.30 jjcp

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

1.30 jjcp

Postby devoltz » November 11th, 2018, 3:50 pm

i had nothing to do, so i did it.
You do not have the required permissions to view the files attached to this post.
User avatar
devoltz
Forum Staff
 
Posts: 3289
Joined: March 23rd, 2016, 8:06 pm

Re: 1.30 jjcp

Postby uriaurikra » November 12th, 2018, 9:30 am

devoltz wrote:i had nothing to do, so i did it.


is it works for v1.27b?
uriaurikra
Newcomer
 
Posts: 4
Joined: March 28th, 2012, 1:37 am

Re: 1.30 jjcp

Postby devoltz » November 12th, 2018, 10:50 am

uriaurikra wrote:is it works for v1.27b
Use the classic one for 1.30-
User avatar
devoltz
Forum Staff
 
Posts: 3289
Joined: March 23rd, 2016, 8:06 pm

Re: 1.30 jjcp

Postby Panda.dk » December 25th, 2018, 2:58 pm

Thank you for updating it for the new patch :)

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 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"?
Panda.dk
Newcomer
 
Posts: 18
Joined: April 1st, 2009, 1:38 pm

Re: 1.30 jjcp

Postby devoltz » December 25th, 2018, 5:36 pm

Panda.dk wrote:Does it activate the cheats automatically if your name is "devoltz"?
Yes, i did those edits on my personal JJ's CP so i probably forgot to remove that.
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
User avatar
devoltz
Forum Staff
 
Posts: 3289
Joined: March 23rd, 2016, 8:06 pm

Re: 1.30 jjcp

Postby Panda.dk » December 25th, 2018, 5:48 pm

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"? :)
Panda.dk
Newcomer
 
Posts: 18
Joined: April 1st, 2009, 1:38 pm

Re: 1.30 jjcp

Postby devoltz » December 25th, 2018, 5:53 pm

Panda.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)?
0 = red
...
23 = maroon
Since 1.30 support up to 24 players.
Panda.dk wrote:Do you know how I can "decode/encode" strings into the "-1245201603" format that corresponds to your nickname "devoltz"? :)
Only encode, but i can't teach it since it's against wc3edit rules.
Bartimaeus wrote:9. We do not encode activators, or otherwise obscure their true nature.
User avatar
devoltz
Forum Staff
 
Posts: 3289
Joined: March 23rd, 2016, 8:06 pm


Return to Map Editing

Who is online

Users browsing this forum: No registered users and 15 guests