Cheat gold Help

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Kyzerdrood
Junior Member
Posts: 35
Joined: May 28th, 2008, 9:21 pm
Title: eruliaF

Cheat gold Help

Post by Kyzerdrood »

im trying to make a cheap pack in gui and one by one convert to jass so i can learn how it works and make my own.

But im having trouble with thsi one trigger and i have no clue what im doing wrong... shouldnt this work??

Code: Select all

Gold
    Events
        Player - Player 1 (Red) types a chat message containing g as An exact match
    Conditions
        (Substring((Entered chat string), 1, 1)) Equal to g
    Actions
        Player - Add (Integer((Substring((Entered chat string), 3, 10)))) to (Triggering player) Current gold
Because its not. this is just in a normal Melee map
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Cheat gold Help

Post by Senethior459 »

Hm. Right now, your code says that if red types " g 10000000", it will give him that much.
If you want a dash, period, space, whatever at the beginning, leave it as it is. But if you just want it to be "g XXXXXXXX", then you should change 1,1 to 0,0 and 3,10 to 2,9.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
Kyzerdrood
Junior Member
Posts: 35
Joined: May 28th, 2008, 9:21 pm
Title: eruliaF

Re: Cheat gold Help

Post by Kyzerdrood »

i did what you said and it still doesnt work.

heres the map could you figure out what im doing wrong???



------
Edit. I Got it! Its 1, 1 and i had it as *Exact match* not *A Substring* :)
User avatar
Shamanno1
Forum Staff
Posts: 912
Joined: October 21st, 2007, 6:17 am
Title: 11
Location: WorLd Of WaRcrAfT

Re: Cheat gold Help

Post by Shamanno1 »

Lol

Events
Player - Player 1 (Red) types a chat message containing g as An exact match
Events
Player - Player 1 (Red) types a chat message containing g as As a subtring
Conditions
(Substring((Entered chat string), 1, 1)) Equal to g
Actions
Player - Add (Integer((Substring((Entered chat string), 3,(Length of ( Entered chat string)))))) to (Triggering player) Current gold

Btw how the hell u copy paste from we to forum?You don't actually write all that code ,-,??

edit: bah i thought thats ure sig and i didn't read anyway can somebody answer my question
~Everything changes~
I have met people who have no dreams, who have simply accepted their fate to work, exist, and die. They are the most miserable people I have ever known.
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Cheat gold Help

Post by Syre »

Right-Click the trigger and click "Copy as Text" or something..then paste in the forums as a code.
Image
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Cheat gold Help

Post by Senethior459 »

:shock: Really? You can do that? Wow, I always figured that the people that wrote out triggers from GUI actually typed them...
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Cheat gold Help

Post by Arabidnun »

No, you can't.....
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Cheat gold Help

Post by Syre »

Ah..sorry if i dident make it clear but you can. You have to click the name inside the trigger, not off to the side..for example..

Code: Select all

Melee Initialization <-- Right click here.
    Events
        Map initialization
    Conditions
    Actions
        Melee Game - Use melee time of day (for all players)
        Melee Game - Limit Heroes to 1 per Hero-type (for all players)
        Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
        Melee Game - Set starting resources (for all players)
        Melee Game - Remove creeps and critters from used start locations (for all players)
        Melee Game - Create starting units (for all players)
        Melee Game - Run melee AI scripts (for computer players)
        Melee Game - Enforce victory/defeat conditions (for all players)
Its a lot easier than writing them all down..
Image
Tobias
Senior Member
Posts: 108
Joined: March 18th, 2008, 3:42 pm
Title: Map Maker
Location: Canadadadada

Re: Cheat gold Help

Post by Tobias »

May be slightly dead but
You do not have the required permissions to view the files attached to this post.