CC...
Moderator: Cheaters
-
- Forum Staff
- Posts: 519
- Joined: October 18th, 2010, 8:43 am
Re: CC...
You obviously haven't 'studied' enough > >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
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)))
Ok. I'll show you an example, taken from a DoTA command,"-noherolimit".
Code: Select all
elseif SubString(s2s,0,12)=="-noherolimit"then
Code: Select all
set xH=false
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)))
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.
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: CC...
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.
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.