wc3edit.net
https://forum.wc3edit.net/

1.30 jjcp
http://forum.wc3edit.net/deprotection-cheating-f64/1-30-jjcp-t35669.html
Page 1 of 1

Author:  devoltz [ November 11th, 2018, 3:50 pm ]
Post subject:  1.30 jjcp

i had nothing to do, so i did it.

Author:  uriaurikra [ November 12th, 2018, 9:30 am ]
Post subject:  Re: 1.30 jjcp

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


is it works for v1.27b?

Author:  devoltz [ November 12th, 2018, 10:50 am ]
Post subject:  Re: 1.30 jjcp

uriaurikra wrote:
is it works for v1.27b
Use the classic one for 1.30-

Author:  Panda.dk [ December 25th, 2018, 2:58 pm ]
Post subject:  Re: 1.30 jjcp

Thank you for updating it for the new patch :)

I looked through the code and found the following:
Code:
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"?

Author:  devoltz [ December 25th, 2018, 5:36 pm ]
Post subject:  Re: 1.30 jjcp

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:
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

Author:  Panda.dk [ December 25th, 2018, 5:48 pm ]
Post subject:  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"? :)

Author:  devoltz [ December 25th, 2018, 5:53 pm ]
Post subject:  Re: 1.30 jjcp

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/