CC...

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

XCraZX
Member
Posts: 56
Joined: November 11th, 2010, 3:35 am

CC...

Post by XCraZX »

I understand that all Cheat packs are just a string of CC's but are there any tips on how to create some? I studied the JJCP to try to figure out how they work but I have no clue... any advice would be great... thanks
User avatar
Nuuby
Forum Staff
Posts: 519
Joined: October 18th, 2010, 8:43 am

Re: CC...

Post by Nuuby »

XCraZX wrote:I understand that all Cheat packs are just a string of CC's but are there any tips on how to create some? I studied the JJCP to try to figure out how they work but I have no clue... any advice would be great... thanks
You obviously haven't 'studied' enough > >

Assuming we're talking about JJ's CP, and when you mean create some, you mean new commands, and when you mean advice you mean whats the format for inserting new commands. Search for the function Cheatz.
You would notice something like... *Under all the locals*

Code: Select all

if SubString(s2s,0,6)=="-gold "then
call SetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD)+S2I(SubString(s2s,6,13)))
elseif SubString(s2s,0,7)=="-lumber"then
call SetPlayerState(p2p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p2p,PLAYER_STATE_RESOURCE_LUMBER)+S2I(SubString(s2s,8,15)))
Notice the "SubString(s2s,0,7)" and the number of letters(+ the dash) in "-lumber". Yeah theres 7 letters just incase you counted it wrongly. Now to insert a command, you make a new line just above the line "elseif SubString(s2s,0,7)=="-lumber"then"
Ok. I'll show you an example, taken from a DoTA command,"-noherolimit".

Code: Select all

elseif SubString(s2s,0,12)=="-noherolimit"then
Then below that, you add all the whatever shizz you wana add. Incase of this command, it would be.

Code: Select all

set xH=false
And so you will end up with something like this.

Code: Select all

if SubString(s2s,0,6)=="-gold "then
call SetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD)+S2I(SubString(s2s,6,13)))
elseif SubString(s2s,0,12)=="-noherolimit"then
set xH=false
elseif SubString(s2s,0,7)=="-lumber"then
call SetPlayerState(p2p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p2p,PLAYER_STATE_RESOURCE_LUMBER)+S2I(SubString(s2s,8,15)))
Something to note. Your command has to be below the "-gold" command.


Of course the shizz you add really depends on the map your adding the cheatpack on. Its called custom commands for a reason. If you want the CC to not depend on the cheatpack, its a whole different topic.
XCraZX
Member
Posts: 56
Joined: November 11th, 2010, 3:35 am

Re: CC...

Post by XCraZX »

Thanks, That makes a lot more sense now... exactly what i was looking for
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: CC...

Post by haxorico »

changing a boolean wont add anything tbh, unless that boolean you changed to false already has something it does in a different function..

as for the question.
Jass is a rather complicated and dumb language (for me utleast) and is confusing (due to the use of triggers I cannot really understand)

If you want to make your own commands that are general like -gold and -lumber. Then ask on the triggering section for help.
If you want custom commands done for some maps, then if you don't know the basics, you shouldnt start with it, tough you can ask it on the triggering section.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?