wc3edit.net

United Warcraft 3 map hacking!
It is currently March 28th, 2024, 9:17 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [help]simple cheat
PostPosted: October 22nd, 2012, 6:54 am 
Offline
Newcomer

Joined: March 15th, 2012, 10:20 pm
Posts: 18
i am trying to learn this... i have read other topics and i copied, tried to understand and tried make it work. when i typed try it gives me 1000 gold and when i level up it give me 5 stats in str agi and int, thats 2 for normal stats and 3 for cheat stat so that gives 5. can u help me or give me a clue on how to do this, when i will type try it will give me 1000 gold and +3 to str agi and int.... i want to learn... when i get passed by this i will try to learn how to make activator.. hope you can help me.

Code:
globals
trigger gg_trg_blubb=null
constant integer AMOUNT_OF_STATS_TO_ADD=3


Code:
endglobals
function Trig_blubb_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
    call SetHeroStr(GetTriggerUnit(),GetHeroStr(GetTriggerUnit(),false)+AMOUNT_OF_STATS_TO_ADD,true)
    call SetHeroAgi(GetTriggerUnit(),GetHeroAgi(GetTriggerUnit(),false)+AMOUNT_OF_STATS_TO_ADD,true)
    call SetHeroInt(GetTriggerUnit(),GetHeroInt(GetTriggerUnit(),false)+AMOUNT_OF_STATS_TO_ADD,true)
endfunction
function InitTrig_blubb takes nothing returns nothing
    set gg_trg_blubb = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(12), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(11), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(10), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(9), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(8), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(7), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(6), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(5), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(4), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(3), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(2), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(1), "try", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_blubb, Player(0), "try", true )
    call TriggerAddAction( gg_trg_blubb, function Trig_blubb_Actions )
endfunction
function statsMain takes nothing returns nothing
local integer index=0
loop
exitwhen index>11
call TriggerRegisterPlayerUnitEvent( gg_trg_blubb,Player(index),ConvertPlayerUnitEvent(41),null)
set index=index+1
endloop
call TriggerAddAction( gg_trg_blubb,function Trig_blubb_Actions )
endfunction


Code:
fmain
call InitTrig_blubb(  )
call statsMain()


Top
 Profile  
 
 Post subject: Re: [help]simple cheat
PostPosted: November 6th, 2012, 12:29 am 
Offline
Old Wrinkly Member
User avatar

Joined: April 19th, 2009, 12:46 pm
Posts: 234
Wait; so do you want an explanation of each part of this or is it not working or what.

_________________
ImageImageImage


Top
 Profile  
 
 Post subject: Re: [help]simple cheat
PostPosted: November 18th, 2012, 6:02 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
If you want to get 5000 gold each level it won't work by the way I see it. You are adding 5k to the triggering player yet the action is being triggered by a unit unless you want the 5000 to be added only by the string message?

_________________
Image
Spoiler:
(02:24:09)
Code:
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:

(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:
(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:
(15:42:51) Lanaya: can i suck , . . .

Code:
(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:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(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:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)