[TUT] Installing/Using Warcraft 3 Cheat Packs

Discussion in 'Gaming Archive' started by Nothinbeter2do, Nov 11, 2008 with 5 replies and 20,402 views.

Thread Status:
Not open for further replies.
  1. Nothinbeter2do

    Nothinbeter2do Banned

    Messages:
    2,425
    Ratings:
    526
    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 [Click here to view the link]

    -----

    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

    [Click here to view the link]

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

    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.

    [​IMG]

    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.

    [​IMG]

    2.2 - Extracting war3map.j

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

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

    [​IMG]

    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)
    [/code]Pictures of the process:

    Part 1

    [​IMG]

    Part 2

    [​IMG]

    Part 3

    [​IMG]

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

     
  2. UKmonkey

    UKmonkey Getting There

    Messages:
    639
    Ratings:
    32
    So what can I make my start location underground so others can't see it?
     
  3. S y N I K a L

    S y N I K a L /ˈsɪn·ɪ·kəl/ Premium

    Messages:
    3,927
    Ratings:
    508
  4. OP
    Nothinbeter2do

    Nothinbeter2do Banned

    Messages:
    2,425
    Ratings:
    526
    Make your start location underground? I don't understand.

    Yea, that's why its so cool. :biggrin:
     
  5. S y N I K a L

    S y N I K a L /ˈsɪn·ɪ·kəl/ Premium

    Messages:
    3,927
    Ratings:
    508
    Will you get CD key banned from ranked if you use these cheats for RANKED LADDER matches?
     
  6. OP
    Nothinbeter2do

    Nothinbeter2do Banned

    Messages:
    2,425
    Ratings:
    526
    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.
     
Thread Status:
Not open for further replies.