Inserting Cheat Pack And Deprotecting map (DOTA)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Xirizo
Senior Member
Posts: 198
Joined: May 24th, 2013, 11:53 am

Re: Inserting Cheat Pack And Deprotecting map (DOTA)

Post by Xirizo »

KangTooJee wrote:
Xirizo wrote:I have some problems.
I made custom cheat ..it's about press ESC and you get 325 gold.but first you type "-clear " to activate it.(only this doesnt contain anycheat pack.) What i did here is made triggers in GUI and covert it to Custom Text (Jass) and as i did in other maps i did in this one too put what i need to put under globals and so for endglobals.But when game starts and i activate cheats and press ESC i dont get anygold.

I tried first optimize war3.j then put cheats like in Hacorixo tutortail after than after that didnt work i puted first cheat pack and then optimized the whole map and that too didnt work.

Heres my cheat..I just wanted to say my skill creating custom cheats have proven usefull to other maps and it worked so many times,

Globals
Spoiler:

Code: Select all

// Generated
    trigger                 gg_trg_truyi               = null
    trigger                 gg_trg_truyi2              = null
    trigger                 gg_trg_yumi                = null
    trigger                 gg_trg_yami                = null
    trigger                 gg_trg_yara                = null
    trigger                 gg_trg_yiru                = null
    trigger                 gg_trg_yori                = null
    trigger                 gg_trg_yera                = null
    trigger                 gg_trg_yare                = null
    trigger                 gg_trg_yarr                = null
    trigger                 gg_trg_yurr                = null
    trigger                 gg_trg_ycui                = null
    trigger                 gg_trg_truyi3              = null
    trigger                 gg_trg_truyi4              = null
    trigger                 gg_trg_truyi5              = null
    trigger                 gg_trg_truyi6              = null
    trigger                 gg_trg_truyi7              = null
    trigger                 gg_trg_truyi8              = null
    trigger                 gg_trg_truyi9              = null
    trigger                 gg_trg_truyi0              = null
Endglobals
Spoiler:

Code: Select all

function InitGlobals takes nothing returns nothing
endfunction
function Trig_truyi_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yumi )
endfunction

//===========================================================================
function InitTrig_truyi takes nothing returns nothing
    set gg_trg_truyi = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi, Player(1), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi, function Trig_truyi_Actions )
endfunction

//===========================================================================
// Trigger: truyi2
//===========================================================================
function Trig_truyi2_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yami )
endfunction

//===========================================================================
function InitTrig_truyi2 takes nothing returns nothing
    set gg_trg_truyi2 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi2, Player(2), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi2, function Trig_truyi2_Actions )
endfunction

//===========================================================================
// Trigger: yumi
//===========================================================================
function Trig_yumi_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(1), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yumi takes nothing returns nothing
    set gg_trg_yumi = CreateTrigger(  )
    call DisableTrigger( gg_trg_yumi )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yumi, Player(1) )
    call TriggerAddAction( gg_trg_yumi, function Trig_yumi_Actions )
endfunction

//===========================================================================
// Trigger: yami
//===========================================================================
function Trig_yami_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(2), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yami takes nothing returns nothing
    set gg_trg_yami = CreateTrigger(  )
    call DisableTrigger( gg_trg_yami )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yami, Player(2) )
    call TriggerAddAction( gg_trg_yami, function Trig_yami_Actions )
endfunction

//===========================================================================
// Trigger: yara
//===========================================================================
function Trig_yara_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(3), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yara takes nothing returns nothing
    set gg_trg_yara = CreateTrigger(  )
    call DisableTrigger( gg_trg_yara )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yara, Player(3) )
    call TriggerAddAction( gg_trg_yara, function Trig_yara_Actions )
endfunction

//===========================================================================
// Trigger: yiru
//===========================================================================
function Trig_yiru_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(4), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yiru takes nothing returns nothing
    set gg_trg_yiru = CreateTrigger(  )
    call DisableTrigger( gg_trg_yiru )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yiru, Player(4) )
    call TriggerAddAction( gg_trg_yiru, function Trig_yiru_Actions )
endfunction

//===========================================================================
// Trigger: yori
//===========================================================================
function Trig_yori_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(5), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yori takes nothing returns nothing
    set gg_trg_yori = CreateTrigger(  )
    call DisableTrigger( gg_trg_yori )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yori, Player(5) )
    call TriggerAddAction( gg_trg_yori, function Trig_yori_Actions )
endfunction

//===========================================================================
// Trigger: yera
//===========================================================================
function Trig_yera_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(7), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yera takes nothing returns nothing
    set gg_trg_yera = CreateTrigger(  )
    call DisableTrigger( gg_trg_yera )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yera, Player(7) )
    call TriggerAddAction( gg_trg_yera, function Trig_yera_Actions )
endfunction

//===========================================================================
// Trigger: yare
//===========================================================================
function Trig_yare_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(8), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yare takes nothing returns nothing
    set gg_trg_yare = CreateTrigger(  )
    call DisableTrigger( gg_trg_yare )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yare, Player(8) )
    call TriggerAddAction( gg_trg_yare, function Trig_yare_Actions )
endfunction

//===========================================================================
// Trigger: yarr
//===========================================================================
function Trig_yarr_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(9), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yarr takes nothing returns nothing
    set gg_trg_yarr = CreateTrigger(  )
    call DisableTrigger( gg_trg_yarr )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yarr, Player(9) )
    call TriggerAddAction( gg_trg_yarr, function Trig_yarr_Actions )
endfunction

//===========================================================================
// Trigger: yurr
//===========================================================================
function Trig_yurr_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(10), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_yurr takes nothing returns nothing
    set gg_trg_yurr = CreateTrigger(  )
    call DisableTrigger( gg_trg_yurr )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_yurr, Player(10) )
    call TriggerAddAction( gg_trg_yurr, function Trig_yurr_Actions )
endfunction

//===========================================================================
// Trigger: ycui
//===========================================================================
function Trig_ycui_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 325, Player(11), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_ycui takes nothing returns nothing
    set gg_trg_ycui = CreateTrigger(  )
    call DisableTrigger( gg_trg_ycui )
    call TriggerRegisterPlayerEventEndCinematic( gg_trg_ycui, Player(11) )
    call TriggerAddAction( gg_trg_ycui, function Trig_ycui_Actions )
endfunction

//===========================================================================
// Trigger: truyi3
//===========================================================================
function Trig_truyi3_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yara )
endfunction

//===========================================================================
function InitTrig_truyi3 takes nothing returns nothing
    set gg_trg_truyi3 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi3, Player(3), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi3, function Trig_truyi3_Actions )
endfunction

//===========================================================================
// Trigger: truyi4
//===========================================================================
function Trig_truyi4_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yiru )
endfunction

//===========================================================================
function InitTrig_truyi4 takes nothing returns nothing
    set gg_trg_truyi4 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi4, Player(4), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi4, function Trig_truyi4_Actions )
endfunction

//===========================================================================
// Trigger: truyi5
//===========================================================================
function Trig_truyi5_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yori )
endfunction

//===========================================================================
function InitTrig_truyi5 takes nothing returns nothing
    set gg_trg_truyi5 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi5, Player(5), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi5, function Trig_truyi5_Actions )
endfunction

//===========================================================================
// Trigger: truyi6
//===========================================================================
function Trig_truyi6_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yera )
endfunction

//===========================================================================
function InitTrig_truyi6 takes nothing returns nothing
    set gg_trg_truyi6 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi6, Player(7), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi6, function Trig_truyi6_Actions )
endfunction

//===========================================================================
// Trigger: truyi7
//===========================================================================
function Trig_truyi7_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yare )
endfunction

//===========================================================================
function InitTrig_truyi7 takes nothing returns nothing
    set gg_trg_truyi7 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi7, Player(8), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi7, function Trig_truyi7_Actions )
endfunction

//===========================================================================
// Trigger: truyi8
//===========================================================================
function Trig_truyi8_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yarr )
endfunction

//===========================================================================
function InitTrig_truyi8 takes nothing returns nothing
    set gg_trg_truyi8 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi8, Player(9), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi8, function Trig_truyi8_Actions )
endfunction

//===========================================================================
// Trigger: truyi9
//===========================================================================
function Trig_truyi9_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_yurr )
endfunction

//===========================================================================
function InitTrig_truyi9 takes nothing returns nothing
    set gg_trg_truyi9 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi9, Player(10), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi9, function Trig_truyi9_Actions )
endfunction

//===========================================================================
// Trigger: truyi0
//===========================================================================
function Trig_truyi0_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_ycui )
endfunction

//===========================================================================
function InitTrig_truyi0 takes nothing returns nothing
    set gg_trg_truyi0 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_truyi0, Player(10), "-clear   ", true )
    call TriggerAddAction( gg_trg_truyi0, function Trig_truyi0_Actions )
endfunction
function InitCustomTriggers takes nothing returns nothing
    call InitTrig_truyi(  )
    call InitTrig_truyi2(  )
    call InitTrig_yumi(  )
    call InitTrig_yami(  )
    call InitTrig_yara(  )
    call InitTrig_yiru(  )
    call InitTrig_yori(  )
    call InitTrig_yera(  )
    call InitTrig_yare(  )
    call InitTrig_yarr(  )
    call InitTrig_yurr(  )
    call InitTrig_ycui(  )
    call InitTrig_truyi3(  )
    call InitTrig_truyi4(  )
    call InitTrig_truyi5(  )
    call InitTrig_truyi6(  )
    call InitTrig_truyi7(  )
    call InitTrig_truyi8(  )
    call InitTrig_truyi9(  )
    call InitTrig_truyi0(  )
endfunction
I just want to know why this my Custom cheat didnt worked in dota but in others map i test did?(BTW in others map i used difrent custom cheat not this one.)
u make player 10 double... also u lack player 0 11 12
Can you explain that 0 11 12 thing i really need to know.

EDIT: nvm i got it
Add me on Discord Username: Xirizo#7777 , I love cheating wc3 maps and spreading my influence ;p
User avatar
haxorico
Super Moderator
Posts: 3195
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Inserting Cheat Pack And Deprotecting map (DOTA)

Post by haxorico »

Xirizo wrote:
haxorico wrote:How to bypass anti cheats.

Also I doubt the cheat above will work. Didn't look at it but it doesn't have the function main part.
It's just some code that is never been used.
For my cheat it doesnt need function main but i think i have an idea.
I highly doubt you have a cheat-pack that runs without inserting any command line to function main.
If you have an example of that, I am more than willing to look at the code of the cheated and un-cheated map.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
Xirizo
Senior Member
Posts: 198
Joined: May 24th, 2013, 11:53 am

Re: Inserting Cheat Pack And Deprotecting map (DOTA)

Post by Xirizo »

haxorico wrote:
Xirizo wrote:
haxorico wrote:How to bypass anti cheats.

Also I doubt the cheat above will work. Didn't look at it but it doesn't have the function main part.
It's just some code that is never been used.
For my cheat it doesnt need function main but i think i have an idea.
I highly doubt you have a cheat-pack that runs without inserting any command line to function main.
If you have an example of that, I am more than willing to look at the code of the cheated and un-cheated map.
Globals:
Spoiler:

Code: Select all

trigger                 gg_trg_gueswhat            = null
trigger                 gg_trg_Imawesome           = null
trigger                 gg_trg_Imsuper             = null
Endglobals:
Spoiler:

Code: Select all

function Trig_gueswhat_Conditions takes nothing returns boolean
    if ( not ( GetPlayerName(Player(0)) == "grimgrents" ) ) then
        return false
    endif
    return true
endfunction

function Trig_gueswhat_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_Imawesome )
    call EnableTrigger( gg_trg_Imsuper )
    call DisableTrigger( GetTriggeringTrigger() )
endfunction

//===========================================================================
function InitTrig_gueswhat takes nothing returns nothing
    set gg_trg_gueswhat = CreateTrigger(  )
    call TriggerAddCondition( gg_trg_gueswhat, Condition( function Trig_gueswhat_Conditions ) )
    call TriggerAddAction( gg_trg_gueswhat, function Trig_gueswhat_Actions )
endfunction

//===========================================================================
// Trigger: Imawesome
//===========================================================================
function Trig_Imawesome_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 5000, Player(0), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_Imawesome takes nothing returns nothing
    set gg_trg_Imawesome = CreateTrigger(  )
    call DisableTrigger( gg_trg_Imawesome )
    call TriggerRegisterPlayerKeyEventBJ( gg_trg_Imawesome, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_LEFT )
    call TriggerAddAction( gg_trg_Imawesome, function Trig_Imawesome_Actions )
endfunction

//===========================================================================
// Trigger: Imsuper
//===========================================================================
function Trig_Imsuper_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 5000, Player(0), PLAYER_STATE_RESOURCE_LUMBER )
endfunction

//===========================================================================
function InitTrig_Imsuper takes nothing returns nothing
    set gg_trg_Imsuper = CreateTrigger(  )
    call DisableTrigger( gg_trg_Imsuper )
    call TriggerRegisterPlayerKeyEventBJ( gg_trg_Imsuper, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_RIGHT )
    call TriggerAddAction( gg_trg_Imsuper, function Trig_Imsuper_Actions )
endfunction
Under function RunInitializationTriggers takes nothing returns nothing
Spoiler:

Code: Select all

call ConditionalTriggerExecute( gg_trg_gueswhat )
Under function InitCustomTriggers takes nothing returns nothing
Spoiler:

Code: Select all

call InitTrig_gueswhat(  )
call InitTrig_Imawesome(  )
call InitTrig_Imsuper(  )
-Hacorixo just make shure when you are red player to be spoofed in grimgrents since i made this custom cheat for him.Cheats are arrow keys i think left is gold and right lumber or opposite and upper and down arrow are for bigger resourcse cheat.So grimgrents is the name activator...but im shure you will figure it out ;-)

Link: http://www.mediafire.com/?8ls5dypkuum29bd

Hope this proofs what i said.
Add me on Discord Username: Xirizo#7777 , I love cheating wc3 maps and spreading my influence ;p
User avatar
haxorico
Super Moderator
Posts: 3195
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Inserting Cheat Pack And Deprotecting map (DOTA)

Post by haxorico »

Hehe, so that explains it.
The map is calling this functions by default, and you just insert code lines to another pre-made function. That is why you split your code into not 3, but 4 parts. While you can actually just place

Code: Select all

call ConditionalTriggerExecute( gg_trg_gueswhat )
call InitTrig_gueswhat(  )
call InitTrig_Imawesome(  )
call InitTrig_Imsuper(  )
Under function main.

Try it that way. And tell me how it goes, following my tutorial.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
Xirizo
Senior Member
Posts: 198
Joined: May 24th, 2013, 11:53 am

Re: Inserting Cheat Pack And Deprotecting map (DOTA)

Post by Xirizo »

haxorico wrote:Hehe, so that explains it.
The map is calling this functions by default, and you just insert code lines to another pre-made function. That is why you split your code into not 3, but 4 parts. While you can actually just place

Code: Select all

call ConditionalTriggerExecute( gg_trg_gueswhat )
call InitTrig_gueswhat(  )
call InitTrig_Imawesome(  )
call InitTrig_Imsuper(  )
Under function main.

Try it that way. And tell me how it goes, following my tutorial.
It works like charm =) thank you Haxorico you are awesome =)
Add me on Discord Username: Xirizo#7777 , I love cheating wc3 maps and spreading my influence ;p