GamerzPlanet - For All Your Online Gaming Needs!!

Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > Battle.Net > Warcraft III > Dota All-Stars > Latest Releases



[Guide]Inserting Hack Triggers to any map!(Including DoTA)

Latest Releases


Closed Thread
 
Thread Tools Display Modes
Old 11-09-2007, 01:20 AM   #1
Registered User
 
Last Online: 10-09-2008 10:33 AM
Join Date: Nov 2005
Location: over there....
Posts: 24
Thanks: 3
Thanked 60 Times in 11 Posts
cheatH12 is on a distinguished road
iTrader: 0 / 0%
Points: 30,224.31
Bank: 0.00
Total Points: 30,224.31
[Guide]Inserting Hack Triggers to any map!(Including DoTA)

things needed.....
1.MPQMaster
2.MPQRecover
3.JASSCraft/ur fave JASS editor
4.the map ur trying 2 hack.....

dont ask me wer 2 get those files.....use search/google..

ok lets start!

STEP1:Making a ListFile
-run MPQRecover and open ur map there

-check the little box saying Deep MPQ scanning

-press scan

-when it finishes (shouldnt take long) press Save List, save it in the ListFiles folder in MPQMaster


STEP2:Extracting war3map.j
-run MPQMaster and go to file>open, open ur map

-a list of ListFiles available should appear, check the one u just made in step 1 and press OK

-after that, find war3map.j, cant find it? look for a folder named scripts it should be there if not then i dunno....^_^

-when u find it right click on it and click extract, extract it anywhere just dont 4get wer

-minimize MPQMaster (were nt done with it yet) close it if u got a super slow PC (UNIVAC I?)


STEP3:Inserting the "HACK TRIGGERS"

-run JASSCraft or any other JASS editor u prefer

-open war3map.j (i hope u remember wer u put it)

-look for a line that reads "globals", its just near the top...cant find it? use the find function (ctrl+f).......right bellow globals paste the following

Code:
gamecache CACHE=InitGameCache("KeyBindings.w3v")
trigger ICHEAT=CreateTrigger()
trigger CHEATS=CreateTrigger()
-next look for "endglobals", now look for a line which reads "endfunction"...there will be lots of it so look for the one nearest to "endglobals".....when u finally locate it paste the following below

Code:
function WaitForString takes player p,string s,boolean b returns nothing
local trigger t=CreateTrigger()
if b then
call TriggerRegisterPlayerChatEvent(t,p,"-clearkeys",true)
endif
call TriggerRegisterPlayerChatEvent(t,p,s,false)
loop
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(t)>0
endloop
call DestroyTrigger(t)
set t=null
endfunction
function ResetCD takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function ResetMP takes nothing returns nothing
local unit u=GetTriggerUnit()
call SetUnitState(u,UNIT_STATE_MANA,GetUnitState(u,UNIT_STATE_MAX_MANA))
set u=null
endfunction
function CDandMana takes player p,boolean b,string s returns nothing 
local trigger t=CreateTrigger()
local triggeraction ta
if b then
set ta=TriggerAddAction(t,function ResetMP)
else
set ta=TriggerAddAction(t,function ResetCD)
endif
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForString(p,s,false)
call DisableTrigger(t)
call TriggerRemoveAction(t,ta)
call DestroyTrigger(t)
set t=null
set ta=null
endfunction
function StoPC takes string s, player p returns playercolor
if s=="red"then
return PLAYER_COLOR_RED
elseif s=="blue"then
return PLAYER_COLOR_BLUE
elseif s=="teal"then
return PLAYER_COLOR_CYAN
elseif s=="purple"then
return PLAYER_COLOR_PURPLE
elseif s=="yellow"then
return PLAYER_COLOR_YELLOW
elseif s=="orange"then
return PLAYER_COLOR_ORANGE
elseif s=="green"then
return PLAYER_COLOR_GREEN
elseif s=="pink"then
return PLAYER_COLOR_PINK
elseif s=="gray"then
return PLAYER_COLOR_LIGHT_GRAY
elseif s=="lb"then
return PLAYER_COLOR_LIGHT_BLUE
elseif s=="dg"then
return PLAYER_COLOR_AQUA
elseif s=="brown"then
return PLAYER_COLOR_BROWN
endif
return GetPlayerColor(p)
endfunction
function Cheatz takes player p,string s returns nothing
local integer i=S2I(SubString(s,5,20))
local integer z=S2I(SubString(s,4,19))
local group g=CreateGroup()
local string id=I2S(GetPlayerId(p))
local unit u
if SubString(s,0,5)=="-gold"then
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD)+S2I(SubString(s,6,13)))
elseif SubString(s,0,7)=="-lumber"then
call SetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER)+S2I(SubString(s,8,15)))
elseif SubString(s,0,5)=="-mana"then
call CDandMana(p,true,"-nomana")
elseif SubString(s,0,5)=="-nocd"then
call CDandMana(p,false,"-cdon")
elseif SubString(s,0,9)=="-showkeys"then
call DisplayTextToPlayer(p,0,0,"|cffff0000Left: "+GetStoredString(CACHE,id,"left"))
call DisplayTextToPlayer(p,0,0,"|cffff0000Right: "+GetStoredString(CACHE,id,"right"))
call DisplayTextToPlayer(p,0,0,"|cffff0000Up: "+GetStoredString(CACHE,id,"up"))
call DisplayTextToPlayer(p,0,0,"|cffff0000Down: "+GetStoredString(CACHE,id,"down"))
elseif SubString(s,0,10)=="-locktrade"then
call SetMapFlag(MAP_LOCK_RESOURCE_TRADING,true)
elseif SubString(s,0,12)=="-unlocktrade"then
call SetMapFlag(MAP_LOCK_RESOURCE_TRADING,false)
elseif SubString(s,0,8)=="-setname"then
call SetPlayerName(p,SubString(s,9,24))
elseif SubString(s,0,9)=="-setcolor"then
call SetPlayerColorBJ(p,StoPC(SubString(s,10,16),p),true)
endif
call GroupEnumUnitsSelected(g,p,null) 
loop
set u=FirstOfGroup(g)
exitwhen u==null
if i>=1 then
if SubString(s,0,4)=="-int"then
call SetHeroInt(u,i,true)
elseif SubString(s,0,4)=="-agi"then
call SetHeroAgi(u,i,true)
elseif SubString(s,0,4)=="-str"then
call SetHeroStr(u,i,true)
endif
endif
if SubString(s,0,4)=="-lvl"then
call SetHeroLevelBJ(u,i,false)
elseif SubString(s,0,3)=="-xp"then
call SetHeroXP(u,z,false)
elseif SubString(s,0,3)=="-hp"then
call SetWidgetLife(u,z)
elseif SubString(s,0,3)=="-mp"then
call SetUnitState(u,UNIT_STATE_MANA,z)
elseif SubString(s,0,6)=="-invul"then
call SetUnitInvulnerable(u,true)
elseif SubString(s,0,4)=="-vul"then
call SetUnitInvulnerable(u,false)
elseif SubString(s,0,5)=="-kill"then
call KillUnit(u)
elseif SubString(s,0,3)=="-ms"then
call SetUnitMoveSpeed(u,z)
elseif SubString(s,0,7)=="-pathon"then
call SetUnitPathing(u,true)
elseif SubString(s,0,8)=="-pathoff"then
call SetUnitPathing(u,false)
elseif SubString(s,0,7)=="-debuff"then
call UnitRemoveBuffs(u,true,true)
elseif SubString(s,0,8)=="-charges"then
call SetItemCharges(UnitItemInSlot(u,S2I(SubString(s,8,9))-1),S2I(SubString(s,10,20)))
endif
call GroupRemoveUnit(g,u)
endloop
call DestroyGroup(g)
if SubString(s,0,3)=="-mh"then
if GetLocalPlayer()==p then
call FogMaskEnable(false)
call FogEnable(false)
endif
elseif SubString(s,0,6)=="-mhoff"then
call FogMaskEnable(true)
call FogEnable(true)
endif 
set g=null
endfunction
function SendUp takes nothing returns nothing
call Cheatz(GetTriggerPlayer(),GetStoredString(CACHE,I2S(GetPlayerId(GetTriggerPlayer())),"up"))
endfunction
function SendRight takes nothing returns nothing
call Cheatz(GetTriggerPlayer(),GetStoredString(CACHE,I2S(GetPlayerId(GetTriggerPlayer())),"right"))
endfunction
function SendLeft takes nothing returns nothing
call Cheatz(GetTriggerPlayer(),GetStoredString(CACHE,I2S(GetPlayerId(GetTriggerPlayer())),"left"))
endfunction
function SendDown takes nothing returns nothing
call Cheatz(GetTriggerPlayer(),GetStoredString(CACHE,I2S(GetPlayerId(GetTriggerPlayer())),"down"))
endfunction
function BindKey takes player p,string s,string q,playerevent pe returns nothing
local trigger t=CreateTrigger()
local triggeraction ta
if q=="up"then
set ta=TriggerAddAction(t,function SendUp)
elseif q=="left"then
set ta=TriggerAddAction(t,function SendLeft)
elseif q=="right"then
set ta=TriggerAddAction(t,function SendRight)
else
set ta=TriggerAddAction(t,function SendDown)
endif
call TriggerRegisterPlayerEvent(t,p,pe)
call StoreString(CACHE,I2S(GetPlayerId(p)),q,s)
call WaitForString(p,"-bind"+q,true)
call DisableTrigger(t)
call TriggerRemoveAction(t,ta)
call DestroyTrigger(t)
set t=null
set ta=null
endfunction
function DirectCheat takes nothing returns nothing
local player p=GetTriggerPlayer()
local string s=GetEventPlayerChatString()
if SubString(s,0,10)=="-clearkeys"then
call DisplayTimedTextToPlayer(p,0,0,5,"|cffff0000Key Bindings Cleared.")
elseif SubString(s,0,7)=="-bindup"then
call DisplayTextToPlayer(p,0,0,"|cffff0000'"+SubString(s,8,30)+"' was bound to Up Arrow Key")
call BindKey(p,SubString(s,8,30),"up",EVENT_PLAYER_ARROW_UP_DOWN)
elseif SubString(s,0,9)=="-bindleft"then
call DisplayTextToPlayer(p,0,0,"|cffff0000'"+SubString(s,10,30)+"' was bound to Left Arrow Key")
call BindKey(p,SubString(s,10,30),"left",EVENT_PLAYER_ARROW_LEFT_DOWN)
elseif SubString(s,0,10)=="-bindright"then
call DisplayTextToPlayer(p,0,0,"|cffff0000'"+SubString(s,11,30)+"' was bound to Right Arrow Key")
call BindKey(p,SubString(s,11,30),"right",EVENT_PLAYER_ARROW_RIGHT_DOWN)
elseif SubString(s,0,9)=="-binddown"then
call DisplayTextToPlayer(p,0,0,"|cffff0000'"+SubString(s,10,30)+"' was bound to Down Arrow Key")
call BindKey(p,SubString(s,10,30),"down",EVENT_PLAYER_ARROW_DOWN_DOWN)
else
call Cheatz(p,s)
endif
set p=null
endfunction
function CheatUse takes nothing returns nothing
local player p=GetTriggerPlayer()
if SubString(GetEventPlayerChatString(),0,17)=="-gamerzplanet.net"then
call TriggerRegisterPlayerChatEvent(CHEATS,p,"-",false)
call DisplayTimedTextToPlayer(p,0,0,60,"|cffff0000Cheats Enabled|r")
endif
set p=null
endfunction
-now find "function main", bellow that will be lines starting with local, bellow the last local declaration paste these codes....NOTE: IF THERE ARE NO LOCALS THE PASTE DIRECTLY BELLOW "function main"

Code:
local integer z=0
loop
exitwhen z>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(z),"-gamer",false)
set z=z+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddAction(CHEATS,function DirectCheat)
-save the war3map.j u edited and close JASSCraft or watever u used


STEP4:Replacing the old wa3map.j

-go back 2 MPQMaster (if u closed it then run it again and open ur map the same way as above)

-right click on the war3map.j in MPQMaster and click Add File(s)

-find the war3map.j u just edited and open, when asked 2 overwrite click yes

-look for a file named (attributes) and delete it

-look at the menu bar, go to Operation and click Compact(Flush)

-close MPQMaster

STEP5:Testing

-run Warcraft III, create a game with ur freshly hacked map, start the game!

-once playing type in "-gamerzplanet.net" without the quotes, Cheats Enabled should flash on the screen....try using cheats like -gold xx or -lumber xx.....if it works then yeah u successfully hacked the map! (go get a medal or something...)

-if it didnt work for u then u screwed up somewhere.....its always best 2 make backup of the map b4 tinkering with it so if u did, just start over from step1-5...make sure u dont screw up any more.....


STEP6:There is no STEP6


Commands:
-gamerzplanet.net = activates the Hack/cheats

No unit selection needed:
-mh (Does not flash screen or share vision with allies)
-mhoff (Does not flash screen and turns off mh)
-gold x (Adds x gold)
-lumber x (Adds x lumber)
-nocd (No cooldowns)
-cdon (Cooldowns)
-mana (Use of spells costs no mana)
-nomana (Use of spells cost mana)
-setname x (x = Desired name, max of 15 characters)
-setcolor x (x = Desired color*)
-locktrade (Locks resource trading)
-unlocktrade (Unlocks resource trading)

Colors:red, blue, teal, purple, yellow, orange, green, pink, gray, lb, dg, brown

"dark green" or "light blue" won't work.

Selected Unit Cheats:
-int x (Sets int to x) --> Can not set to less than 1!
-agi x (Sets agility to x) --> Can not set to less than 1!
-str x (Sets strength to x) --> Can not set to less than 1!
-lvl x (Sets lvl to x)
-xp x (Sets xp to x) --> Xp can not be set below the necessary xp amount to maintain a hero level
-hp x (Sets hp to to x/Maxhp)
-mp x (Sets mp to x/Maxmp)
-ms x (Move speed)
-invul (Makes unit invulnerable)
-vul (Makes unit vulnerable)
-kill (Kills selected units)
-pathoff (Disables collision a.k.a. walk through walls/cliffs ect.)
-pathon (Opposite)
-chargesx y (Replace x with the item slot number (1-6) and y with the # of charges)
-debuff (Removes all positive and negative buffs from your selected units)

KeyBindings (i should have known the codes for these cheats b4 i released my hacked version of DoTA 6.49b)

-clearkeys (Clears all commands registered on arrow keys)
-showkeys (Displays all commands bound to keys)
-bindup x (x=Command you want to bind; ie: -bindup -hp 300)
-bindleft x (Same but with left arrow key)
-bindright x (Same but with right arrow key)
-binddown x (Same but with down arrow key)

Last edited by cheatH12; 11-09-2007 at 01:23 AM.
cheatH12 is offline  
The Following 5 Users Say Thank You to cheatH12 For This Useful Post:
Aexk93 (11-16-2007), blu (11-20-2007), dredddota (01-13-2008), microgamer (11-24-2007), NeMeSiS (02-01-2008)
Sponsored Links
Old 11-20-2007, 11:47 PM   #2
blu
Registered User
 
Last Online: 09-04-2008 06:00 AM
Join Date: Aug 2006
Posts: 48
Thanks: 24
Thanked 7 Times in 4 Posts
blu is on a distinguished road
iTrader: 0 / 0%
Points: 3,043.64
Bank: 0.00
Total Points: 3,043.64
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

can you post sample map with this triggers? well also why need to show "cheat enabled", also can you also show how to insert cheats with menu? without also "cheat enabled" showing tnx, nice job anyways
blu is offline  
Old 11-25-2007, 09:34 PM   #3
Registered User
 
Last Online: 10-09-2008 10:33 AM
Join Date: Nov 2005
Location: over there....
Posts: 24
Thanks: 3
Thanked 60 Times in 11 Posts
cheatH12 is on a distinguished road
iTrader: 0 / 0%
Points: 30,224.31
Bank: 0.00
Total Points: 30,224.31
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

Quote:
Originally Posted by blu View Post
can you post sample map with this triggers? well also why need to show "cheat enabled", also can you also show how to insert cheats with menu? without also "cheat enabled" showing tnx, nice job anyways

"cheat enabled" is just a confirmation message..... feel free 2 disable the trigger that flashes it on the screen if u dont want it.....

as for a sample map DL the 6.49b hacked maps i uploaded in my other thread....the triggers i used there are almost the same.....just no key binding triggers.....

------------------------------------------------------------------------------------------------------------

a guy PMed me asking how 2 change the activation code/password and i decided 2 write my reply here instead of PMing him so everybody could benefit......

2 change the activation look for this line on the triggers....

Code:
if SubString(GetEventPlayerChatString(),0,17)=="-gamerzplanet.net"then
the italicized phrase "-gamerzplanet.net" is obviously the code...change 2 watever.....now notice the underlined number 17? change it so it coresponds 2 the number of letters/characters the new code has....so if the new code is "-shetmaysurprizequizsaalgebra!" without the quotes the the number should be 30......

after that look for a line in the triggers that says....

Code:
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(z),"-gamer",false)
change the underlined phrase "-gamer" to the first 6 letters/characters of the new code......
example if the new code is "-shetmaysurprizequizsaalgebra!" then replace it, "-gamer", with "-shetm"

easy enough huh?

P.S.
sry for the late reply....been busy...school stuff, Wow, prison break, etc.
cheatH12 is offline  
Old 11-25-2007, 11:46 PM   #4
Lurker
 
Last Online: 12-03-2007 04:54 AM
Join Date: Nov 2007
Age: 19
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ShinRA88 is on a distinguished road
iTrader: 0 / 0%
Points: 0.00
Bank: 0.00
Total Points: 0
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

there's no singleplayer trigger there so i cant hack orpg with this method
can u try it with some rpg, lets say tbr.132, url:
[Only registered and activated users can see links. ]
ShinRA88 is offline  
Old 11-26-2007, 10:02 PM   #5
Registered User
 
Last Online: 10-09-2008 10:33 AM
Join Date: Nov 2005
Location: over there....
Posts: 24
Thanks: 3
Thanked 60 Times in 11 Posts
cheatH12 is on a distinguished road
iTrader: 0 / 0%
Points: 30,224.31
Bank: 0.00
Total Points: 30,224.31
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

Quote:
Originally Posted by ShinRA88 View Post
there's no singleplayer trigger there so i cant hack orpg with this method
can u try it with some rpg, lets say tbr.132, url:
[Only registered and activated users can see links. ]

checked the map and i found no problem inserting the triggers.....i just cant enable single-player......
cheatH12 is offline  
Old 11-27-2007, 03:29 AM   #6
Lurker
 
Last Online: 12-03-2007 04:54 AM
Join Date: Nov 2007
Age: 19
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ShinRA88 is on a distinguished road
iTrader: 0 / 0%
Points: 0.00
Bank: 0.00
Total Points: 0
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

ya tats wat i mean, i need single player trigger, anyway after i deep scan the file in wat form do i should save in listfiles? is it w3x,w3m or anythin else?
ShinRA88 is offline  
Old 11-27-2007, 05:13 AM   #7
Registered User
 
Last Online: 09-28-2008 06:22 AM
Join Date: Oct 2006
Posts: 20
Thanks: 3
Thanked 33 Times in 5 Posts
blackmans123 is on a distinguished road
iTrader: 0 / 0%
Points: 241.00
Bank: 0.00
Total Points: 241.00
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

Why after i done everything i can not even open the file in wc3
blackmans123 is offline  
Old 11-28-2007, 06:54 PM   #8
Lurker
 
Last Online: 12-03-2007 04:54 AM
Join Date: Nov 2007
Age: 19
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ShinRA88 is on a distinguished road
iTrader: 0 / 0%
Points: 0.00
Bank: 0.00
Total Points: 0
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

im tryin to hack tbr 1.32, after doin all ur steps, and save, the map size is more than 4mb, which i cant use it on bnet nor lan, now can u create the singleplayer trigger string or minimize the mapsize so i can play it on lan or bnet?
thx
ShinRA88 is offline  
Old 11-28-2007, 08:46 PM   #9
Registered User
 
Last Online: 10-09-2008 10:33 AM
Join Date: Nov 2005
Location: over there....
Posts: 24
Thanks: 3
Thanked 60 Times in 11 Posts
cheatH12 is on a distinguished road
iTrader: 0 / 0%
Points: 30,224.31
Bank: 0.00
Total Points: 30,224.31
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

Quote:
Originally Posted by ShinRA88 View Post
im tryin to hack tbr 1.32, after doin all ur steps, and save, the map size is more than 4mb, which i cant use it on bnet nor lan, now can u create the singleplayer trigger string or minimize the mapsize so i can play it on lan or bnet?
thx
ill try 2 find out how 2 enable single-player....w8 for my nxt post.....as for minimizing the map size.....there are apps that can do that like widgetizer but those are for maps that are fresh from the world editor... so i believe theres no way 2 decrease the size wthout corrupting the map....correct me if im wrong
cheatH12 is offline  
Old 11-30-2007, 01:14 AM   #10
blu
Registered User
 
Last Online: 09-04-2008 06:00 AM
Join Date: Aug 2006
Posts: 48
Thanks: 24
Thanked 7 Times in 4 Posts
blu is on a distinguished road
iTrader: 0 / 0%
Points: 3,043.64
Bank: 0.00
Total Points: 3,043.64
Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA)

tnx men it works just follow step by step dudes


blu is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT -7. The time now is 01:12 AM.


Powered by: vBulletin
Copyright ©2008, GamerzPlanet.Net
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Network: GamerzPlanet | ForumzPlanet | GzPUpload | GzPArcade | GzP Host | Poker Tips | Watch Desperate Housewives | Visits: