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
Here are my cheats by now... (I in major convert it to jass after )
////// 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..
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" )