Go Back   Se7enSins Forums > Other Modifications > Other Games

[TUT] Installing/Using Warcraft 3 Cheat Packs

This is a discussion about [TUT] Installing/Using Warcraft 3 Cheat Packs within the Other Games section, where you will Any other games you want to mod.; THIS TUTORIAL WAS WRITTEN BY NOTHINBETER2DO Q: What are cheat packs? A: Cheat packs are a list of cheats that you put in a Warcraft 3 map without using the World Editor. ----- Q: How



Reply
 
LinkBack Thread Tools Display Modes
Old 11-11-2008, 06:36 PM   #1
Senior Member
  
 
Nothinbeter2do's Avatar
[TUT] Installing/Using Warcraft 3 Cheat Packs

THIS TUTORIAL WAS WRITTEN BY NOTHINBETER2DO

Q: What are cheat packs?

A: Cheat packs are a list of cheats that you put in a Warcraft 3 map without using the World Editor.

-----

Q: How do I install cheat packs?

A: That is what this tutorial is about.

-----

Q: Where can I get cheatpacks?

A: At WC3Edit

-----

Q: Why won't my map load?

A: In the MPQ Editor, if you see a file named (attributes) DELETE it.

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

Required Programs:
MPQ Master
MPQ Recover
JassCraft

Download WC3 Modding Tools

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

1 - Creating A Listfile.
Open MPQ Recover. Click the open button in the top right corner then locate your Warcraft 3 map and open it.

Click the image to open in full size.

Click the deep MPQ scanning box (above the scan (2) button). Now it scans every file really deep, so you get a complete listfile.

Then click the buttons in this order:
1. Click Brute Force. It creates the basic of the listfile.
2. Click Scan. Now it’ll scan every single file it created, when you clicked Brute Force. When it’s finished you should get a full listfile.
3. Click Save List and save it into the MPQMaster/Listfiles folder.

If MPQ Recover crashes, open MPQ Recover again, but now don't click deep MPQ scanning.

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

2.1 - Selecting A Listfile

Open up MPQMaster, open your map and check the box next to the listfile you just created then click the OK button.

Click the image to open in full size.

2.2 - Extracting war3map.j

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

You should now see this window. It wont look exactly like this.

Click the image to open in full size.

If you don't already see war3map.j on the right side, look in the Scripts folder. Once you find it, right click it and hit extract.

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

3 - Installing The Cheat Pack

Now that we have war3map.j, we need to open it in JassCraft.

Open up JassCraft then open your war3map.j file. Before we do anything we need a cheatpack.

Here is a basic one made by Aero from WC3Edit.net:

Code:
Part1

Put this under GLOBALS
Code:
trigger ICHEAT=CreateTrigger()
trigger CHEATS=CreateTrigger()
Part 2 Put this under ENDGLOBALS
Code:
function WaitForDisable takes player p7, string s7 returns nothing
local trigger t7=CreateTrigger()
call TriggerRegisterPlayerChatEvent(t7,p7,s7,true)
loop
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(t7)>0
endloop
call DestroyTrigger(t7)
set t7=null
endfunction
function ResetCD takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function ResetMP takes nothing returns nothing
local unit u7=GetTriggerUnit()
call SetUnitState(u7,UNIT_STATE_MANA,GetUnitState(u7,UNIT_STATE_MAX_MANA))
set u7=null
endfunction
function NoCooldown takes player p7 returns nothing 
local trigger t7=CreateTrigger()
local triggeraction ta7=TriggerAddAction(t7,function ResetCD)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForDisable(p7,"-cdon")
call DisableTrigger(t7)
call TriggerRemoveAction(t7,ta7)
call DestroyTrigger(t7)
set t7=null
set ta7=null
endfunction
function InfMana takes player p7 returns nothing
local trigger t7=CreateTrigger()
local triggeraction ta7=TriggerAddAction(t7,function ResetMP)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t7,p7,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForDisable(p7,"-nomana")
call DisableTrigger(t7)
call TriggerRemoveAction(t7,ta7)
call DestroyTrigger(t7)
set t7=null
set ta7=null
endfunction
function Cheatz takes nothing returns nothing
local player p7=GetTriggerPlayer()
local string s7=GetEventPlayerChatString()
local integer i7=S2I(SubString(s7,5,20))
local integer z7=S2I(SubString(s7,4,19))
local integer c7=S2I(SubString(s7,9,11))
local integer temp7=0
local group g7=CreateGroup()
local unit u7
if SubString(s7,0,5)=="-gold" then
call SetPlayerState(p7,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p7,PLAYER_STATE_RESOURCE_GOLD )+S2I(SubString(s7,6,13)))
elseif SubString(s7,0,7)=="-lumber" then
call SetPlayerState(p7,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p7,PLAYER_STATE_RESOURCE_LUMBER )+S2I(SubString(s7,8,15)))
elseif SubString(s7,0,5)=="-mana" then
call InfMana(p7)
elseif SubString(s7,0,5)=="-nocd" then
call NoCooldown(p7)
endif
call GroupEnumUnitsSelected(g7,p7,null) 
loop
set u7=FirstOfGroup(g7)
exitwhen u7==null
if i7>=1 then
if SubString(s7,0,4)=="-int" then
call SetHeroInt(u7,i7,true)
elseif SubString(s7,0,4)=="-agi" then
call SetHeroAgi(u7,i7,true)
elseif SubString(s7,0,4)=="-str" then
call SetHeroStr(u7,i7,true)
endif
endif
if SubString(s7,0,4)=="-lvl" then
call SetHeroLevelBJ(u7,i7,false)
elseif SubString(s7,0,3)=="-xp" then
call SetHeroXP(u7,z7,false)
elseif SubString(s7,0,3)=="-hp" then
call SetUnitState(u7,UNIT_STATE_LIFE,z7)
elseif SubString(s7,0,3)=="-mp" then
call SetUnitState(u7,UNIT_STATE_MANA,z7)
elseif SubString(s7,0,6)=="-invul" then
call SetUnitInvulnerable(u7,true)
elseif SubString(s7,0,4)=="-vul" then
call SetUnitInvulnerable(u7,false)
elseif SubString(s7,0,5)=="-kill" then
call KillUnit(u7)
elseif SubString(s7,0,3)=="-ms" then
call SetUnitMoveSpeed(u7,z7)
elseif SubString(s7,0,7)=="-pathon" then
call SetUnitPathing(u7,true)
elseif SubString(s7,0,8)=="-pathoff" then
call SetUnitPathing(u7,false)
elseif SubString(s7,0,8)=="-additem" then
set temp7=0
loop
set temp7=temp7+1
exitwhen temp7>c7
call CreateItemLoc( ChooseRandomItemEx(ITEM_TYPE_ANY,-1), GetUnitLoc(u7) )
endloop
endif
call GroupRemoveUnit(g7,u7)
endloop
call DestroyGroup(g7)
if SubString(s7,0,3)=="-mh" then
call FogModifierStart(CreateFogModifierRect(p7,FOG_OF_WAR_VISIBLE,bj_mapInitialPlayableArea,false,false))
endif 
set p7=null
set g7=null
endfunction
function CheatUse takes nothing returns nothing
local player p7=GetTriggerPlayer()
if SubString(GetEventPlayerChatString(),0,7)=="-cheats" then
call TriggerRegisterPlayerChatEvent(CHEATS,p7,"-",false)
call DisplayTimedTextToPlayer(p7,0,0,60,"|cffff0000Cheats Enabled!|r")
endif
set p7=null
endfunction
Part 3 Put this part under FUNCTION MAIN TAKE NOTHING RETURNS NOTHING, after any locals
Code:
//under function main, after locals 
local integer qaz7=0
loop
exitwhen qaz7>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(qaz7),"-cheats",false)
set qaz7=qaz7+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddAction(CHEATS,function Cheatz)
Pictures of the process:

Part 1

Click the image to open in full size.

Part 2

Click the image to open in full size.

Part 3

Click the image to open in full size.

--------------------------------------------------
The commands for this cheatpack

Code:
"-cheats" activates the cheats 
-mh
-additem x 
-mp x 
-hp x 
-gold x 
-lumber x 
-lvl x 
-xp x 
-str x 
-agi x 
-int x 
-ms x 
-kill 
-invul 
-vul 
-pathoff 
-pathon 
-nocd 
-cdon 
-mana 
-nomana 
x = add amount here!
--------------------------------------------------

Once you are done editing your war3map.j, save war3map.j and exit out of JassCraft. Using MPQ Master, open your Warcraft 3 again. Delete your old war3map.j then add your new war3map.j

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

Your done! Open Warcraft 3 then load your map. Type in your activator (-cheats) then try to use the cheats.

If you need any help, contact me on aim at nothinbeter2do@gmail.com

Join Now!


Last edited by Nothinbeter2do; 11-11-2008 at 07:13 PM.
Nothinbeter2do is offline   Reply With Quote
Old 11-11-2008, 06:46 PM   #2
Member
  
 
UKmonkey's Avatar
Re: [TUT] Installing/Using Warcraft 3 Cheat Packs

So what can I make my start location underground so others can't see it?
UKmonkey is offline   Reply With Quote
Old 11-11-2008, 06:47 PM   #3
\_si-ni-kel\
  
Re: [TUT] Installing/Using Warcraft 3 Cheat Packs

Does this work on battle.net?
S y N I K a L is offline   Reply With Quote
Old 11-11-2008, 07:04 PM   #4
Senior Member
  
 
Nothinbeter2do's Avatar
Re: [TUT] Installing/Using Warcraft 3 Cheat Packs

Quote: Originally Posted by UKmonkey View Post
So what can I make my start location underground so others can't see it?
Make your start location underground? I don't understand.

Quote: Originally Posted by S y N I K a L View Post
Does this work on battle.net?
Yea, that's why its so cool.

Last edited by Nothinbeter2do; 11-11-2008 at 07:05 PM.
Nothinbeter2do is offline   Reply With Quote
Old 11-11-2008, 07:10 PM   #5
\_si-ni-kel\
  
Re: [TUT] Installing/Using Warcraft 3 Cheat Packs

Will you get CD key banned from ranked if you use these cheats for RANKED LADDER matches?
S y N I K a L is offline   Reply With Quote
Old 11-11-2008, 07:16 PM   #6
Senior Member
  
 
Nothinbeter2do's Avatar
Re: [TUT] Installing/Using Warcraft 3 Cheat Packs

Well everyone will have to re-download the map. So if everybody already has the map and they have to re-download it, you might be in trouble.

I would just stick to custom games though. I'm going to make a tutorial on how to open a port for hosting Warcraft 3 games.

Last edited by Nothinbeter2do; 11-11-2008 at 07:17 PM.
Nothinbeter2do is offline   Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Create A Private World Of Warcraft Server Sasquatch 45 World of Warcraft 50 10-30-2009 12:10 AM
World of Warcraft UI Addons and mods mischifous World of Warcraft 6 09-10-2009 06:21 PM