a little cheatpack..

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Bushido

a little cheatpack..

Post by Bushido »

found this on King Rpg...:o
p.S : it's recommend for Rpg's !
This should be better

Globals
Spoiler:
trigger gg_trg_Gold
trigger gg_trg_WOod
trigger gg_trg_Level
trigger gg_trg_Mana
trigger gg_trg_Life
trigger gg_trg_Inteligince
trigger gg_trg_Strength
trigger gg_trg_Agi
trigger gg_trg_Level_Up
trigger gg_trg_Level_Down
trigger gg_trg_Level_Up_Copy
trigger gg_trg_Level_Down_Copy
trigger gg_trg_Level_Up_Copy_Copy
trigger gg_trg_Level_Down_Copy_Copy
Functions = endglobals(?)
Spoiler:
function Trig_Gold_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString()))), GetLocalPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function InitTrig_Gold takes nothing returns nothing
set gg_trg_Gold = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Gold, GetLocalPlayer(), "-gold", false )
call TriggerAddAction( gg_trg_Gold, function Trig_Gold_Actions )
endfunction
function Trig_WOod_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString()))), GetLocalPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function InitTrig_WOod takes nothing returns nothing
set gg_trg_WOod = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_WOod, GetLocalPlayer(), "-wood", false )
call TriggerAddAction( gg_trg_WOod, function Trig_WOod_Actions )
endfunction
function Trig_Level_Func001002 takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), S2I(SubStringBJ(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString()))), false )
endfunction

function Trig_Level_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsSelectedAll(GetLocalPlayer()), function Trig_Level_Func001002 )
endfunction
function InitTrig_Level takes nothing returns nothing
set gg_trg_Level = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Level, GetLocalPlayer(), "-level", false )
call TriggerAddAction( gg_trg_Level, function Trig_Level_Actions )
endfunction
function Trig_Mana_Func001002 takes nothing returns nothing
call SetUnitManaBJ( GetEnumUnit(), S2R(SubStringBJ(GetEventPlayerChatString(), 7, StringLength(GetEventPlayerChatString()))) )
endfunction
function Trig_Mana_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsSelectedAll(GetLocalPlayer()), function Trig_Mana_Func001002 )
endfunction
function InitTrig_Mana takes nothing returns nothing
set gg_trg_Mana = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, GetLocalPlayer(), "-mana", false )
call TriggerAddAction( gg_trg_Mana, function Trig_Mana_Actions )
endfunction
function Trig_Life_Func001002 takes nothing returns nothing
call SetUnitLifeBJ( GetEnumUnit(), S2R(SubStringBJ(GetEventPlayerChatString(), 6, StringLength(GetEventPlayerChatString()))) )
endfunction
function Trig_Life_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsSelectedAll(GetLocalPlayer()), function Trig_Life_Func001002 )
endfunction
function InitTrig_Life takes nothing returns nothing
set gg_trg_Life = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, GetLocalPlayer(), "-life", false )
call TriggerAddAction( gg_trg_Life, function Trig_Life_Actions )
endfunction
function Trig_Inteligince_Func001002 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 6, StringLength(GetEventPlayerChatString()))) )
endfunction
function Trig_Inteligince_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsSelectedAll(GetLocalPlayer()), function Trig_Inteligince_Func001002 )
endfunction
function InitTrig_Inteligince takes nothing returns nothing
set gg_trg_Inteligince = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Inteligince, GetLocalPlayer(), "-int", false )
call TriggerAddAction( gg_trg_Inteligince, function Trig_Inteligince_Actions )
endfunction
function Trig_Strength_Func002002 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 6, StringLength(GetEventPlayerChatString()))) )
endfunction
function Trig_Strength_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsSelectedAll(GetLocalPlayer()), function Trig_Strength_Func002002 )
endfunction
function InitTrig_Strength takes nothing returns nothing
set gg_trg_Strength = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Strength, GetLocalPlayer(), "-str", false )
call TriggerAddAction( gg_trg_Strength, function Trig_Strength_Actions )
endfunction
function Trig_Agi_Func002002 takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_SET, S2I(SubStringBJ(GetEventPlayerChatString(), 6, StringLength(GetEventPlayerChatString()))) )
endfunction
function Trig_Agi_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsSelectedAll(GetLocalPlayer()), function Trig_Agi_Func002002 )
endfunction
function InitTrig_Agi takes nothing returns nothing
set gg_trg_Agi = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Agi, GetLocalPlayer(), "-agi", false )
call TriggerAddAction( gg_trg_Agi, function Trig_Agi_Actions )
endfunction
function Trig_Level_Up_Func002001002 takes nothing returns boolean
return ( IsUnitSelected(GetFilterUnit(), GetLocalPlayer()) == true )
endfunction
function Trig_Level_Up_Func002A takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), ( GetHeroLevel(GetEnumUnit()) + 1 ), true )
endfunction
function Trig_Level_Up_Actions takes nothing returns nothing
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Level_Up_Func002001002)), function Trig_Level_Up_Func002A )
endfunction
function InitTrig_Level_Up takes nothing returns nothing
set gg_trg_Level_Up = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Level_Up, GetLocalPlayer(), "+", false )
call TriggerAddAction( gg_trg_Level_Up, function Trig_Level_Up_Actions )
endfunction
function Trig_Level_Down_Func002001002 takes nothing returns boolean
return ( IsUnitSelected(GetFilterUnit(), GetLocalPlayer()) == true )
endfunction
function Trig_Level_Down_Func002A takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), ( GetHeroLevel(GetEnumUnit()) - 1 ), true )
endfunction
function Trig_Level_Down_Actions takes nothing returns nothing
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Level_Down_Func002001002)), function Trig_Level_Down_Func002A )
endfunction
function InitTrig_Level_Down takes nothing returns nothing
set gg_trg_Level_Down = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Level_Down, GetLocalPlayer(), "-", true )
call TriggerAddAction( gg_trg_Level_Down, function Trig_Level_Down_Actions )
endfunction
function Trig_Level_Up_Copy_Func002001002 takes nothing returns boolean
return ( IsUnitSelected(GetFilterUnit(), GetLocalPlayer()) == true )
endfunction
function Trig_Level_Up_Copy_Func002A takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), ( GetHeroLevel(GetEnumUnit()) + 10 ), true )
endfunction
function Trig_Level_Up_Copy_Actions takes nothing returns nothing
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Level_Up_Copy_Func002001002)), function Trig_Level_Up_Copy_Func002A )
endfunction
function InitTrig_Level_Up_Copy takes nothing returns nothing
set gg_trg_Level_Up_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Level_Up_Copy, GetLocalPlayer(), "+10", false )
call TriggerAddAction( gg_trg_Level_Up_Copy, function Trig_Level_Up_Copy_Actions )
endfunction
function Trig_Level_Down_Copy_Func002001002 takes nothing returns boolean
return ( IsUnitSelected(GetFilterUnit(), GetLocalPlayer()) == true )
endfunction
function Trig_Level_Down_Copy_Func002A takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), ( GetHeroLevel(GetEnumUnit()) - 10 ), true )
endfunction
function Trig_Level_Down_Copy_Actions takes nothing returns nothing
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Level_Down_Copy_Func002001002)), function Trig_Level_Down_Copy_Func002A )
endfunction
function InitTrig_Level_Down_Copy takes nothing returns nothing
set gg_trg_Level_Down_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Level_Down_Copy, GetLocalPlayer(), "-10", true )
call TriggerAddAction( gg_trg_Level_Down_Copy, function Trig_Level_Down_Copy_Actions )
endfunction
function Trig_Level_Up_Copy_Copy_Func002001002 takes nothing returns boolean
return ( IsUnitSelected(GetFilterUnit(), GetLocalPlayer()) == true )
endfunction
function Trig_Level_Up_Copy_Copy_Func002A takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), ( GetHeroLevel(GetEnumUnit()) + 100 ), true )
endfunction
function Trig_Level_Up_Copy_Copy_Actions takes nothing returns nothing
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Level_Up_Copy_Copy_Func002001002)), function Trig_Level_Up_Copy_Copy_Func002A )
endfunction
function InitTrig_Level_Up_Copy_Copy takes nothing returns nothing
set gg_trg_Level_Up_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Level_Up_Copy_Copy, GetLocalPlayer(), "+100", false )
call TriggerAddAction( gg_trg_Level_Up_Copy_Copy, function Trig_Level_Up_Copy_Copy_Actions )
endfunction
function Trig_Level_Down_Copy_Copy_Func002001002 takes nothing returns boolean
return ( IsUnitSelected(GetFilterUnit(), GetLocalPlayer()) == true )
endfunction
function Trig_Level_Down_Copy_Copy_Func002A takes nothing returns nothing
call SetHeroLevelBJ( GetEnumUnit(), ( GetHeroLevel(GetEnumUnit()) - 100 ), true )
endfunction
function Trig_Level_Down_Copy_Copy_Actions takes nothing returns nothing
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Level_Down_Copy_Copy_Func002001002)), function Trig_Level_Down_Copy_Copy_Func002A )
endfunction
function InitTrig_Level_Down_Copy_Copy takes nothing returns nothing
set gg_trg_Level_Down_Copy_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Level_Down_Copy_Copy, GetLocalPlayer(), "-100", true )
call TriggerAddAction( gg_trg_Level_Down_Copy_Copy, function Trig_Level_Down_Copy_Copy_Actions )
endfunction
Function main
Spoiler:
call InitTrig_Gold( )
call InitTrig_WOod( )
call InitTrig_Level( )
call InitTrig_Mana( )
call InitTrig_Life( )
call InitTrig_Inteligince( )
call InitTrig_Strength( )
call InitTrig_Agi( )
call InitTrig_Level_Up( )
call InitTrig_Level_Down( )
call InitTrig_Level_Up_Copy( )
call InitTrig_Level_Down_Copy( )
call InitTrig_Level_Up_Copy_Copy( )
call InitTrig_Level_Down_Copy_Copy( )
if u have questions , reply here <3
Last edited by Bushido on May 20th, 2008, 4:28 pm, edited 9 times in total.
Reason: Thanks JJ ^^
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4441
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: a little cheatpack..

Post by Bartimaeus »

Yes...

Why are they wasting up space by putting comments?
Gripen2
Member
Posts: 69
Joined: October 8th, 2007, 2:51 pm
Title: Cheater, Map maker

Re: a little cheatpack..

Post by Gripen2 »

Commands?!
Image
Last edited by Gripen2 on May 19th, 2008, 5:50 pm, edited 2 times in total.
Bushido

Re: a little cheatpack..

Post by Bushido »

if u look at it , u should know it , lol...
basic commands : -agi , -str , -int , -level <number> , +(gives 1 lvl) , +10(gives 10 lvl) , +100(gives 100 lvl)
-(gives -1 lvl) , - 10(gives -10 lvl) , - 100(gives -100 lvl) , -life , -mana , -wood , -gold

Edit: Like i said , it's very good for rpges !
i personally like the + / - commands...which gives u the +10 or +100 lvl..
Gripen2
Member
Posts: 69
Joined: October 8th, 2007, 2:51 pm
Title: Cheater, Map maker

Re: a little cheatpack..

Post by Gripen2 »

King-Bushido wrote:if u look at it , u should know it , lol...
basic commands : -agi , -str , -int , -level <number> , +(gives 1 lvl) , +10(gives 10 lvl) , +100(gives 100 lvl)
-(gives -1 lvl) , - 10(gives -10 lvl) , - 100(gives -100 lvl) , -life , -mana , -wood , -gold

Edit: Like i said , it's very good for rpges !
i personally like the + / - commands...which gives u the +10 or +100 lvl..
Also.How do people get moderator?Is it becaus they got a cheat pack?

To the thread.

Nice done. :lol:
Last edited by Gripen2 on May 19th, 2008, 5:56 pm, edited 1 time in total.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4441
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: a little cheatpack..

Post by Bartimaeus »

Gripen2 wrote:
King-Bushido wrote:if u look at it , u should know it , lol...
basic commands : -agi , -str , -int , -level <number> , +(gives 1 lvl) , +10(gives 10 lvl) , +100(gives 100 lvl)
-(gives -1 lvl) , - 10(gives -10 lvl) , - 100(gives -100 lvl) , -life , -mana , -wood , -gold

Edit: Like i said , it's very good for rpges !
i personally like the + / - commands...which gives u the +10 or +100 lvl..
Grammar, kid.

Also.How do people get moderator?Is it becaus they got a cheat pack?

To the thread.

Nice done. :lol:
Grammar kid? Who are you to say that? Look at your own grammar, "Nice done", "To the thread", no spaces between periods and question marks. Bushido is German, and English isn't his first language, therefore, I think it is excused.

The reason people get moderator is because they're helpful.
Gripen2
Member
Posts: 69
Joined: October 8th, 2007, 2:51 pm
Title: Cheater, Map maker

Re: a little cheatpack..

Post by Gripen2 »

Bartimaeus wrote:
Gripen2 wrote:
King-Bushido wrote:if u look at it , u should know it , lol...
basic commands : -agi , -str , -int , -level <number> , +(gives 1 lvl) , +10(gives 10 lvl) , +100(gives 100 lvl)
-(gives -1 lvl) , - 10(gives -10 lvl) , - 100(gives -100 lvl) , -life , -mana , -wood , -gold

Edit: Like i said , it's very good for rpges !
i personally like the + / - commands...which gives u the +10 or +100 lvl..
Grammar, kid.

Also.How do people get moderator?Is it becaus they got a cheat pack?

To the thread.

Nice done. :lol:
Grammar kid? Who are you to say that? Look at your own grammar, "Nice done", "To the thread", no spaces between periods and question marks. Bushido is German, and English isn't his first language, therefore, I think it is excused.

The reason people get moderator is because they're helpful.
And how the hell could i know that?
Also, i haven't seen any helpful moderator here, except Xantan.
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: a little cheatpack..

Post by initialD »

Moderators are helping fullfilling people's requests.
You don't see it because you are new to this site.
Bushido

Re: a little cheatpack..

Post by Bushido »

i wouldn't say , that he's new..
he was inactive or just lazy to come here , lol.
how to get mod? i really don't know , be helpful to "new" guys , don't flame (blame me for that^^) , don't spam , etc..follow those tips and u may become mod in some months (or even a year)
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: a little cheatpack..

Post by Senethior459 »

It seems to have a lot of useless comments, why put them all in there? We can see exactly what it's doing without them, and they just take up lots of space. Also, what's the point of the + and - commands? It's slightly faster than say -lvl #. But you're not going to need to change their levels in an instant, and if you really need to be fast about it, then you can bind that to a key beforehand, and use it when you need to. That would eliminate two more key presses from the whole thing! So why bother to put those in? Plus, this cheatpack doesn't have support for anyone but the first player (red). What if the map creator made the creeps the first player, and the players everyone else? Then the cheats are only available for the creeps! How useful... And yes, I have played maps like this, though not necessarily RPGs. Seriously though, I don't see myself using this cheatpack, the others are just more useful.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle