[help]simple cheat

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

markardee
Newcomer
Posts: 11
Joined: March 15th, 2012, 10:20 pm

[help]simple cheat

Post by markardee »

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: Select all

globals
trigger gg_trg_blubb=null
constant integer AMOUNT_OF_STATS_TO_ADD=3

Code: Select all

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: Select all

fmain
call InitTrig_blubb(  )
call statsMain()
User avatar
Durge
Senior Member
Posts: 199
Joined: April 19th, 2009, 12:46 pm

Re: [help]simple cheat

Post by Durge »

Wait; so do you want an explanation of each part of this or is it not working or what.
ImageImageImage
User avatar
haxorico
Super Moderator
Posts: 3195
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: [help]simple cheat

Post by haxorico »

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: 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?