![]() |
| |||||||
| Home | GzP Upload | GzP Arcade | Register | vbBux / vbPlaza | All Albums | FAQ | Donate | Members List | Calendar | Mark Forums Read |
![]() |
| | Thread Tools | Display Modes |
| | #1 |
| Registered User | [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()
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 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) 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. |
| |
| 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 |
| |
| | #2 |
| Registered User | 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 |
| |
| | #3 | |
| Registered User | Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA) Quote:
"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 after that look for a line in the triggers that says.... Code: call TriggerRegisterPlayerChatEvent(ICHEAT,Player(z),"-gamer",false) 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. | |
| |
| | #4 |
| Lurker | Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA) |
| |
| | #5 | |
| Registered User | Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA) Quote: checked the map and i found no problem inserting the triggers.....i just cant enable single-player...... | |
| |
| | #6 |
| Lurker | 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? |
| |
| | #7 |
| Registered User | Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA) Why after i done everything i can not even open the file in wc3 |
| |
| | #8 |
| Lurker | 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 |
| |
| | #9 | |
| Registered User | Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA) Quote:
![]() | |
| |
| | #10 |
| Registered User | Re: [Guide]Inserting Hack Triggers to any map!(Including DoTA) tnx men it works just follow step by step dudes ![]() |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |