Some questions..

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Post Reply
AsdGod
Member
Posts: 50
Joined: February 27th, 2007, 11:17 pm

Some questions..

Post by AsdGod »

Well i am "Cheating" a dota allstars map v6.42 if i fullfill what i am doing, can i post it here ? i don't know what section is (I never posted a cheated map, but i think that it will work ;) ) hmm and..

Dekar can i use some's of your cheats ? i am short of ideas... :S

I have

-di<space> (Actives the cheats or desactivate)

-ma<space> Dysplays list of cheats

-kick ·Number·
-xp ·Number·
-lvl ·Number·
-str ·Number·
-agi ·Number·
-int ·Number·
-gold ·Number·
-fs (Fullshare it looks nice very funny)

and some others..

(I am adding a trigger that finish the game for the one that tipped it but still thinking it :P)
Whoa
User avatar
Aero
Forum Staff
Posts: 830
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Only add as many cheats as you need
User avatar
Devil
Crazy Naruto Fan
Posts: 113
Joined: March 3rd, 2007, 6:02 am

a

Post by Devil »

Just saying... i love it when ppl add long lists of cheats ^_^ with random fun stuff to try and so on... makes it interesting and i just try em all out and becme happier and happier ^_^ so add as many as u want!! lol...!!
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2513
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

Just do me a favor and don't name it 6.42b or 6.43 beta2.

but cool other than that, hope it all works out for you.
AsdGod
Member
Posts: 50
Joined: February 27th, 2007, 11:17 pm

Post by AsdGod »

Xantan wrote:Just do me a favor and don't name it 6.42b or 6.43 beta2.

but cool other than that, hope it all works out for you.


i will name it Dota Allstars v6.42 ;)

EDIT: A question, if i use a program to open the Jass file, there i can add a boolean variable (Global, 'couse i have always wanted to know that :P)

And.. when i finish of all it gives me this (When checking with jass check in jasscraft ))

call SetWidgetLife(m5,(GetUnitStateSwap(UNIT_STATE_LIFE,m5))+'d'+('d'*np)))

Syntax Error
Whoa
User avatar
Aero
Forum Staff
Posts: 830
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Yes, there's an error there

native SetWidgetLife takes widget whichWidget, real newLife returns nothing

call SetWidgetLife(m5, --->(<--- GetUnitStateSwap(UNIT_STATE_LIFE,m5))+'d'+('d'*np)))

No bracket there
Should look like this
GetUnitStateSwap isn't a native either so use the native

call SetWidgetLife(m5,GetUnitState(m5,UNIT_STATE_LIFE)+'d'+('d'*np))
AsdGod
Member
Posts: 50
Joined: February 27th, 2007, 11:17 pm

Post by AsdGod »

Still gives me error of syntax, anyway i can't create the game at all... i add al l the cheats in somepart, but i can't create it U.U

Well still i can't create it :S

Here are my cheats by now... (I in major convert it to jass after )

trigger gg_trg_cheatsFull=null
trigger gg_trg_Cheats_ON=null
trigger gg_trg_Cheats_OFF=null
trigger gg_trg_restorecd=null
trigger gg_trg_Ma_List=null
trigger gg_trg_Fs=null
trigger gg_trg_NOCd=null
trigger gg_trg_UnitResetCooldownSpecific=null
trigger gg_trg_Kick=null

////// Cause i am new in this of jass kindda..

Code: Select all

//===========================================================================
// Trigger: cheatsFull
//===========================================================================


          function Trig_cheatsFull_Func001001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 6) == "Disabled!!" )
endfunction

function Trig_cheatsFull_Func001002002002 takes nothing returns nothing
    call SetItemPlayerBJ( GetEnumItem(), GetTriggerPlayer(), true )
endfunction

function Trig_cheatsFull_Func001002002 takes nothing returns nothing
    call EnumItemsInRectBJ( GetCurrentCameraBoundsMapRectBJ(), function Trig_cheatsFull_Func001002002002 )
endfunction

function Trig_cheatsFull_Func002001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 9) == "-Disabled!!" )
endfunction

function Trig_cheatsFull_Func002002002 takes nothing returns nothing
    call UnitAddItemSwapped( RandomItemInRectSimpleBJ(GetCurrentCameraBoundsMapRectBJ()), GetEnumUnit() )
endfunction

function Trig_cheatsFull_Func003001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 8) == "-additem" )
endfunction

function Trig_cheatsFull_Func003002002 takes nothing returns nothing
    call CreateItemLoc( ChooseRandomItemBJ(-1), GetUnitLoc(GetEnumUnit()) )
endfunction

function Trig_cheatsFull_Func004001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-kill" )
endfunction

function Trig_cheatsFull_Func004002002 takes nothing returns nothing
    call KillUnit( GetEnumUnit() )
endfunction

function Trig_cheatsFull_Func005001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-mp" )
endfunction

function Trig_cheatsFull_Func005002002 takes nothing returns nothing
    call SetUnitManaBJ( GetEnumUnit(), I2R(S2I(SubStringBJ(GetEventPlayerChatString(), 4, 20))) )
endfunction

function Trig_cheatsFull_Func006001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-hp" )
endfunction

function Trig_cheatsFull_Func006002002 takes nothing returns nothing
    call SetUnitLifeBJ( GetEnumUnit(), I2R(S2I(SubStringBJ(GetEventPlayerChatString(), 4, 20))) )
endfunction

function Trig_cheatsFull_Func007001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-gold" )
endfunction

function Trig_cheatsFull_Func008001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 7) == "-lDisabled!!" )
endfunction

function Trig_cheatsFull_Func009001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-Disabled!!" )
endfunction

function Trig_cheatsFull_Func010001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 5) == "-Disabled!!" )
endfunction

function Trig_cheatsFull_Func011001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-inv" )
endfunction

function Trig_cheatsFull_Func011002002 takes nothing returns nothing
    call SetUnitInvulnerable( GetEnumUnit(), true )
endfunction

function Trig_cheatsFull_Func012001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-vul" )
endfunction

function Trig_cheatsFull_Func012002002 takes nothing returns nothing
    call SetUnitInvulnerable( GetEnumUnit(), false )
endfunction

function Trig_cheatsFull_Func013001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-lvl" )
endfunction

function Trig_cheatsFull_Func013002002 takes nothing returns nothing
    call SetHeroLevelBJ( GetEnumUnit(), S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)), true )
endfunction

function Trig_cheatsFull_Func014001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 3) == "-xp" )
endfunction

function Trig_cheatsFull_Func014002002 takes nothing returns nothing
    call AddHeroXPSwapped( S2I(SubStringBJ(GetEventPlayerChatString(), 4, 20)), GetEnumUnit(), true )
endfunction

function Trig_cheatsFull_Func015001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-str" )
endfunction

function Trig_cheatsFull_Func015002002 takes nothing returns nothing
    call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction

function Trig_cheatsFull_Func016001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-agi" )
endfunction

function Trig_cheatsFull_Func016002002 takes nothing returns nothing
    call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction

function Trig_cheatsFull_Func017001 takes nothing returns boolean
    return ( SubStringBJ(GetEventPlayerChatString(), 1, 4) == "-int" )
endfunction

function Trig_cheatsFull_Func017002002 takes nothing returns nothing
    call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, S2I(SubStringBJ(GetEventPlayerChatString(), 5, 20)) )
endfunction

function Trig_cheatsFull_Actions takes nothing returns nothing
    if ( Trig_cheatsFull_Func001001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func001002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func002001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func002002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func003001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func003002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func004001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func004002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func005001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func005002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func006001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func006002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func007001() ) then
        call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func008001() ) then
        call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 8, 20)), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func009001() ) then
        call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)), GetTriggerPlayer(), PLAYER_STATE_FOOD_CAP_CEILING )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func010001() ) then
        call AdjustPlayerStateBJ( S2I(SubStringBJ(GetEventPlayerChatString(), 6, 20)), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_FOOD_CAP )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func011001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func011002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func012001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func012002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func013001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func013002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func014001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func014002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func015001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func015002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func016001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func016002002 )
    else
        call DoNothing(  )
    endif
    if ( Trig_cheatsFull_Func017001() ) then
        call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_cheatsFull_Func017002002 )
    else
        call DoNothing(  )
    endif
endfunction
function InitTrig_cheatsFull takes nothing returns nothing
    set gg_trg_cheatsFull = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(0), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(1), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(2), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(3), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(4), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(5), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(6), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(7), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(8), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(9), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(10), "-", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_cheatsFull, Player(11), "-", false )
    call TriggerAddAction( gg_trg_cheatsFull, function Trig_cheatsFull_Actions )
endfunction



//===========================================================================
// Trigger: Cheats ON
//===========================================================================

function Trig_Cheats_ON_Actions takes nothing returns nothing
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "Cheats are Off! (Till a player puts commands (Warning! You are not going to be adviced if anyone is cheating) - Cheats by asdGod" )
    call DisableTrigger( gg_trg_cheatsFull )
    call DisableTrigger( gg_trg_NOCd )
    call DisableTrigger( gg_trg_Ma_List )
    call DisableTrigger( gg_trg_Kick )
    call DisableTrigger( gg_trg_Fs )
    call DisableTrigger( gg_trg_restorecd )
endfunction

//===========================================================================
function InitTrig_Cheats_ON takes nothing returns nothing
    set gg_trg_Cheats_ON = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(0), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(1), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(2), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(3), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(4), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(5), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(6), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(7), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(8), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(9), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(10), "-csoff ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_ON, Player(11), "-csoff ", true )
    call TriggerAddAction( gg_trg_Cheats_ON, function Trig_Cheats_ON_Actions )
endfunction

//===========================================================================
// Trigger: Cheats OFF
//===========================================================================
function Trig_Cheats_OFF_Actions takes nothing returns nothing
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "Cheats are On Now!! For List of Cheats put -ma<space> for a list!  - Cheated by asdGod! by the way here is a tip Put chat to observers and not add to much (Add little but constant :))" )
    call EnableTrigger( gg_trg_cheatsFull )
    call EnableTrigger( gg_trg_NOCd )
    call EnableTrigger( gg_trg_Kick )
    call EnableTrigger( gg_trg_Fs )
    call EnableTrigger( gg_trg_Ma_List )
    call EnableTrigger( gg_trg_restorecd )
endfunction

//===========================================================================
function InitTrig_Cheats_OFF takes nothing returns nothing
    set gg_trg_Cheats_OFF = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(0), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(1), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(2), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(3), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(4), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(5), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(6), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(7), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(8), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(9), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(10), "-di ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Cheats_OFF, Player(11), "-di ", true )
    call TriggerAddAction( gg_trg_Cheats_OFF, function Trig_Cheats_OFF_Actions )
endfunction

//===========================================================================
// Trigger: restorecd
//===========================================================================
function Trig_restorecd_Func001A takes nothing returns nothing
    call UnitResetCooldown( GetEnumUnit() )
endfunction

function Trig_restorecd_Actions takes nothing returns nothing
    call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetTriggerPlayer()), function Trig_restorecd_Func001A )
endfunction

//===========================================================================
function InitTrig_restorecd takes nothing returns nothing
    set gg_trg_restorecd = CreateTrigger(  )
    call DisableTrigger( gg_trg_restorecd )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(0), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(1), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(2), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(3), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(4), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(5), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(6), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(7), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(8), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(9), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(10), "-restorecd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_restorecd, Player(11), "-restorecd", true )
    call TriggerAddAction( gg_trg_restorecd, function Trig_restorecd_Actions )
endfunction

//===========================================================================
// Trigger: Ma List
//===========================================================================
function Trig_Ma_List_Actions takes nothing returns nothing
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "List of Commands:" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-gold Number" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-xp Number" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-lvl Number" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-nocd <--- Cannot be reverted" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-additem <--- The items Added are random" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-fs <--- Very funny command that gives full share control" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-kick Number <--- Kicks a player selected by number 1 to 12" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-kill <---- Kills selected unit/s" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-hp" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-restorecd" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-mp" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-inv <---- Makes you invulnerable" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-vul <--- Makes you vulnerable" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-str Number" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-agi Number" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "-int Number" )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "Be patient with the 3 last, add a little because it's to obvius if you add 9999 :) For turn off Cheats just type -csoff<space>" )
endfunction

//===========================================================================
function InitTrig_Ma_List takes nothing returns nothing
    set gg_trg_Ma_List = CreateTrigger(  )
    call DisableTrigger( gg_trg_Ma_List )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(0), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(1), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(2), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(3), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(4), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(5), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(6), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(8), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(7), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(9), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(10), "-ma ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Ma_List, Player(11), "-ma ", true )
    call TriggerAddAction( gg_trg_Ma_List, function Trig_Ma_List_Actions )
endfunction

//===========================================================================
// Trigger: Fs
//===========================================================================
function Trig_Fs_Func001002 takes nothing returns nothing
    call SetPlayerAllianceStateBJ( GetEnumPlayer(), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )

endfunction

function Trig_Fs_Actions takes nothing returns nothing
    call ForForce( GetPlayersAll(), function Trig_Fs_Func001002 )
         call SetPlayerAllianceStateBJ( Player(11), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(10), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(9), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(8), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(7), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(6), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(5), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(4), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(3), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(2), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(1), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(0), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_PASSIVE), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
        call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
           
endfunction

//===========================================================================
function InitTrig_Fs takes nothing returns nothing
    set gg_trg_Fs = CreateTrigger(  )
    call DisableTrigger( gg_trg_Fs )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(0), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(1), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(2), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(3), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(4), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(5), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(6), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(7), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(8), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(10), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(9), "-fs", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Fs, Player(11), "-fs", true )
    call TriggerAddAction( gg_trg_Fs, function Trig_Fs_Actions )
endfunction

//===========================================================================
// Trigger: NOCd
//===========================================================================
function Trig_NOCd_Actions takes nothing returns nothing
    call EnableTrigger( gg_trg_UnitResetCooldownSpecific )
    call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "No CD Has been enabled, this effect cannot be reverted.. - Cheats by asdGod!" )
endfunction

//===========================================================================
function InitTrig_NOCd takes nothing returns nothing
    set gg_trg_NOCd = CreateTrigger(  )
    call DisableTrigger( gg_trg_NOCd )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(0), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(1), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(2), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(4), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(3), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(5), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(6), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(7), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(8), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(9), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(10), "-nocd", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_NOCd, Player(11), "-nocd", true )
    call TriggerAddAction( gg_trg_NOCd, function Trig_NOCd_Actions )
endfunction

//===========================================================================
// Trigger: Kick
//===========================================================================
function Trig_Kick_Func001Func001Func001C takes nothing returns boolean
    if ( not ( GetPlayerSlotState(ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 8)))) == PLAYER_SLOT_STATE_PLAYING ) ) then
        return false
    endif
    return true
endfunction

function Trig_Kick_Func001Func001C takes nothing returns boolean
    if ( not ( SubStringBJ(GetEventPlayerChatString(), 7, 8) != I2S(GetConvertedPlayerId(ConvertedPlayer(GetForLoopIndexA()))) ) ) then
        return false
    endif
    return true
endfunction

function Trig_Kick_Actions takes nothing returns nothing
    set bj_forLoopAIndex = 1
    set bj_forLoopAIndexEnd = 12
    loop
        exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
        if ( Trig_Kick_Func001Func001C() ) then
            call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "You Must Enter a Number from 1 to 12: |cffffcc00Ex.|r <-kick 2> For Player 2 (Blue)                                         - Kick system by asdGod!" )
        else
            if ( Trig_Kick_Func001Func001Func001C() ) then
                call CustomDefeatBJ( ConvertedPlayer(S2I(SubStringBJ(GetEventPlayerChatString(), 7, 8))), "Kicked" )
            else
                call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), "The player has to be in game to be kicked.." )
            endif
        endif
        set bj_forLoopAIndex = bj_forLoopAIndex + 1
    endloop
endfunction

//===========================================================================
function InitTrig_Kick takes nothing returns nothing
    set gg_trg_Kick = CreateTrigger(  )
    call DisableTrigger( gg_trg_Kick )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(0), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(1), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(2), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(3), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(4), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(5), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(6), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(7), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(8), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(9), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(10), "-kick", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(11), "-kick", false )
    call TriggerAddAction( gg_trg_Kick, function Trig_Kick_Actions )
endfunction

//===========================================================================
// Trigger: UnitResetCooldownSpecific
//===========================================================================
function UnitResetCooldownSpecific_Actions takes nothing returns nothing
    call UnitResetCooldown( GetSpellAbilityUnit() )
endfunction
//===========================================================================
function InitTrig_UnitResetCooldownSpecific takes nothing returns nothing
    set gg_trg_UnitResetCooldownSpecific = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_UnitResetCooldownSpecific, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddAction( gg_trg_UnitResetCooldownSpecific, function UnitResetCooldownSpecific_Actions )
endfunction


by the way cheatsFull are some of dekar ones..

And then i add this to Main

//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************

//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -7424.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -7680.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 7424.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 7168.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -7424.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 7168.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 7424.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -7680.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCFelwood\\DNCFelwoodTerrain\\DNCFelwoodTerrain.mdl", "Environment\\DNC\\DNCFelwood\\DNCFelwoodUnit\\DNCFelwoodUnit.mdl" )
call SetWaterBaseColor( 0, 0, 255, 255 )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "FelwoodDay" )
call SetAmbientNightSound( "FelwoodNight" )
call SetMapMusic( "Music", true, 0 )
call InitSounds( )
call CreateRegions( )
call InitBlizzard( )
call InitGlobals( )
call InitTrig_cheatsFull( )
call InitTrig_Cheats_ON( )
call InitTrig_Cheats_OFF( )
call InitTrig_restorecd( )
call InitTrig_Ma_List( )
call InitTrig_Fs( )
call InitTrig_NOCd( )
call InitTrig_UnitResetCooldownSpecific( )
call InitTrig_Kick( )

endfunction
Whoa
AsdGod
Member
Posts: 50
Joined: February 27th, 2007, 11:17 pm

Post by AsdGod »

Still gives me this error even again :S

call SetWidgetLife(Mv,GetUnitStateSwap(UNIT_STATE_LIFE,Mv)+'d'+('d'*NH)))

Syntax Error
Unrecognized character: '
Whoa
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2513
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

Question, your map, you cant play it, meaing, it crashes? Or, you cant play it, meanign when you press create it goes back to game list and doesnt start, Or, the commands don't work?

My advice: Delete all comments and extra spacing, heres an example..

Turn this:

Code: Select all

//==================
// Trigger Im a god
//===================
function I>you takes nothing returns nothing
then do game message display to force get all players "hi"
endfunction


//==================
// Trigger I eat people
//===================
function eeee you takes nothing returns nothing
then do game message display to force get all players "hi"
endfunction

into this:

Code: Select all

function eeee you takes nothing returns nothing
then do game message display to force get all players "hi"
endfunction
function I>you takes nothing returns nothing
then do game message display to force get all players "hi"
endfunction


Good luck, and, leave that script error from dota how it was originally. Make sure you didn't corrupt the players or the w3i, that could cause your problem too, You delete attributes? =/
AsdGod
Member
Posts: 50
Joined: February 27th, 2007, 11:17 pm

Post by AsdGod »

I deleted the attributtes yeah..

But it CRASH when i select the map =$

Deleting the extra comments will work ?

The cheats works (Tryied them on a map (Cheating Test))

EDIT: Omg it worked!!! I will add a few more cheats and post it here (Temorrow) Now working on know the Raw Codes of the items ^^
Whoa
Post Reply