*How can i Change -gold???? (Help Pls)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

danken14
Newcomer
Posts: 2
Joined: April 4th, 2008, 6:56 am

*How can i Change -gold???? (Help Pls)

Post by danken14 »

How can i chnge -gold to -go, coz my friends let me type -gold 99999 den my gold turns 1M because
dey let me type it... can sumbody help me change it to " -go " in Aeros CP #3...??
Help pls.. so that everytym i type -gold XXX theres no value anymor insted for -go XXXX. haha!!
Tnx...!!
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: *How can i Change -gold???? (Help Pls)

Post by Kryptonyte »

Well, find the part that says...

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)))
And change the "-gold" to "-go"
Image
Made by the late ILikeHacking

My quote from SKillER
Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲
Apparently, SKillER is a newfag.
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: *How can i Change -gold???? (Help Pls)

Post by Senethior459 »

Kryptonyte wrote:Well, find the part that says...

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)))
And change the "-gold" to "-go"
Shouldn't you also change the modifiers before it? As in, if he wants it to be -go, then it would be like this:

Code: Select all

if SubString(s2s,0,4)=="-go "then
call SetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD)+S2I(SubString(s2s,6,13)))
Those are the two differences that you would need, correct? Because if you change the command, then you need to change that entire part to reflect the amount of characters, correct? As in, change the 6 to a 4, because you are removing two characters?
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: *How can i Change -gold???? (Help Pls)

Post by Kryptonyte »

Yeah, thanks for correcting me.
I posted that right before I went to school,
and didn't check it over. = /
But really, as long as he said
-go 9999 it would have worked.
The numbers before are the MIN characters
that can be in the chat string, so as long as
he had more 6 characters in the -go chat string,
it would have worked just fine.
Image
Made by the late ILikeHacking

My quote from SKillER
Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲
Apparently, SKillER is a newfag.
danken14
Newcomer
Posts: 2
Joined: April 4th, 2008, 6:56 am

Re: *How can i Change -gold???? (Help Pls)

Post by danken14 »

Tnx a Lot kRyptOnyte and Senethior459 ... it WorkZ!!