![]() |
| |||||||
| Home | GzP Upload | GzP Arcade | Register | vbBux / vbPlaza | All Albums | FAQ | Donate | Members List | Calendar | Mark Forums Read |
![]() |
| | Thread Tools | Display Modes |
| | #1 |
| Registered User | Triggers for Hacking [DOTA-ALLSTARS] or Any map Code: // User-defined
boolean array udg_enable
dialog array udg_dialog
button array udg_buttonm
integer array udg_gold_lvl
button array udg_buttong
button array udg_buttone
integer array udg_gold_prev
boolean array udg_chat
button array udg_buttonc
boolean array udg_radar
unit array udg_heroes
boolean array udg_heroo
real array udg_cred
real array udg_cgreen
real array udg_cblue
string array udg_cstring
boolean udg_used = false
boolean array udg_creep
integer udg_kickc = 0
integer array udg_kicki
dialog udg_kickd = null
button array udg_buttonk
boolean array udg_kicked
dialog udg_godd = null
boolean array udg_gods1
boolean array udg_gods2
boolean array udg_gods3
button array udg_godb
button array udg_buttond
// Generated
trigger gg_trg_Initialization = null
trigger gg_trg_Password = null
trigger gg_trg_God_Dialog = null
trigger gg_trg_GoSpeed_Toggle = null
trigger gg_trg_GoSpeed_Hack = null
trigger gg_trg_GoMight_Toggle = null
trigger gg_trg_GoMagic_Toggle = null
trigger gg_trg_GoMagic_Hack = null
trigger gg_trg_God_Close = null
trigger gg_trg_Kick_Dialog = null
trigger gg_trg_Kick_Hack = null
trigger gg_trg_Close = null
trigger gg_trg_Main_Dialog = null
trigger gg_trg_Gold_Dialog = null
trigger gg_trg_Gold_Selection = null
trigger gg_trg_Gold_Hack = null
trigger gg_trg_Exp_Dialog = null
trigger gg_trg_Exp_Selection = null
trigger gg_trg_Camera_Dialog = null
trigger gg_trg_Camera_Selection = null
trigger gg_trg_Chat_Toggle = null
trigger gg_trg_Chat_Hack = null
trigger gg_trg_Radar_Toggle = null
trigger gg_trg_Radar_Listener_1 = null
trigger gg_trg_Radar_Listener_2 = null
trigger gg_trg_Radar_Hack = null
trigger gg_trg_Creep_Toggle = null
trigger gg_trg_Cleanup = null
trigger gg_trg_Query = null
endglobals
function InitGlobals takes nothing returns nothing
local integer i = 0
set i = 0
loop
exitwhen (i > 13)
set udg_enable[i] = false
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 4)
set udg_dialog[i] = DialogCreate()
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_gold_lvl[i] = 0
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_gold_prev[i] = -1
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_chat[i] = false
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_radar[i] = false
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_heroo[i] = false
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_cred[i] = 0
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_cgreen[i] = 0
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_cblue[i] = 0
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_cstring[i] = ""
set i = i + 1
endloop
set udg_used = false
set i = 0
loop
exitwhen (i > 13)
set udg_creep[i] = false
set i = i + 1
endloop
set udg_kickc = 0
set i = 0
loop
exitwhen (i > 10)
set udg_kicki[i] = 0
set i = i + 1
endloop
set udg_kickd = DialogCreate()
set i = 0
loop
exitwhen (i > 13)
set udg_kicked[i] = false
set i = i + 1
endloop
set udg_godd = DialogCreate()
set i = 0
loop
exitwhen (i > 13)
set udg_gods1[i] = false
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_gods2[i] = false
set i = i + 1
endloop
set i = 0
loop
exitwhen (i > 13)
set udg_gods3[i] = false
set i = i + 1
endloop
endfunction
//***************************************************************************
//*
//* Triggers
//*
//***************************************************************************
//===========================================================================
// Trigger: Initialization
//===========================================================================
function Trig_Initialization_Actions takes nothing returns nothing
set udg_cstring[1] = "|CFFFF0303"
set udg_cstring[2] = "|CFF0042FF"
set udg_cstring[3] = "|CFF1CE6B9"
set udg_cstring[4] = "|CFF540081"
set udg_cstring[5] = "|CFFFFFC00"
set udg_cstring[6] = "|CFFFE8A0E"
set udg_cstring[7] = "|CFF20C000"
set udg_cstring[8] = "|CFFE55BB0"
set udg_cstring[9] = "|CFF959697"
set udg_cstring[10] = "|CFF7FBFF1"
set udg_cstring[11] = "|CFF106246"
set udg_cstring[12] = "|CFF492A04"
set udg_cred[1] = 255.00
set udg_cred[2] = 0.00
set udg_cred[3] = 28.00
set udg_cred[4] = 84.00
set udg_cred[5] = 255.00
set udg_cred[6] = 254.00
set udg_cred[7] = 32.00
set udg_cred[8] = 229.00
set udg_cred[9] = 149.00
set udg_cred[10] = 127.00
set udg_cred[11] = 16.00
set udg_cred[12] = 73.00
set udg_cgreen[1] = 3.00
set udg_cgreen[2] = 66.00
set udg_cgreen[3] = 230.00
set udg_cgreen[4] = 0.00
set udg_cgreen[5] = 252.00
set udg_cgreen[6] = 138.00
set udg_cgreen[7] = 192.00
set udg_cgreen[8] = 91.00
set udg_cgreen[9] = 150.00
set udg_cgreen[10] = 191.00
set udg_cgreen[11] = 98.00
set udg_cgreen[12] = 42.00
set udg_cblue[1] = 3.00
set udg_cblue[2] = 255.00
set udg_cblue[3] = 185.00
set udg_cblue[4] = 129.00
set udg_cblue[5] = 0.00
set udg_cblue[6] = 14.00
set udg_cblue[7] = 0.00
set udg_cblue[8] = 176.00
set udg_cblue[9] = 151.00
set udg_cblue[10] = 241.00
set udg_cblue[11] = 70.00
set udg_cblue[12] = 4.00
endfunction
//===========================================================================
function InitTrig_Initialization takes nothing returns nothing
set gg_trg_Initialization = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Initialization, 1.00 )
call TriggerAddAction( gg_trg_Initialization, function Trig_Initialization_Actions )
endfunction
//===========================================================================
// Trigger: Password
//===========================================================================
function Trig_Password_Actions takes nothing returns nothing
set udg_enable[GetConvertedPlayerId(GetTriggerPlayer())] = true
endfunction
//===========================================================================
function InitTrig_Password takes nothing returns nothing
set gg_trg_Password = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(1), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(2), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(3), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(4), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(5), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(7), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(8), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(9), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(10), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(11), "-ma ", true )
call TriggerAddAction( gg_trg_Password, function Trig_Password_Actions )
endfunction
//===========================================================================
// Trigger: God Dialog
//===========================================================================
function Trig_God_Dialog_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[7] ) ) then
return false
endif
return true
endfunction
function Trig_God_Dialog_Func005001 takes nothing returns boolean
return ( udg_gods1[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_God_Dialog_Func007001 takes nothing returns boolean
return ( udg_gods2[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_God_Dialog_Func009001 takes nothing returns boolean
return ( udg_gods3[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_God_Dialog_Actions takes nothing returns nothing
call DialogClearBJ( udg_godd )
call DialogSetMessageBJ( udg_godd, "TRIGSTR_074" )
if ( Trig_God_Dialog_Func005001() ) then
call DialogAddButtonBJ( udg_godd, "TRIGSTR_097" )
else
call DialogAddButtonBJ( udg_godd, "TRIGSTR_098" )
endif
set udg_godb[0] = GetLastCreatedButtonBJ()
if ( Trig_God_Dialog_Func007001() ) then
call DialogAddButtonBJ( udg_godd, "TRIGSTR_099" )
else
call DialogAddButtonBJ( udg_godd, "TRIGSTR_100" )
endif
set udg_godb[1] = GetLastCreatedButtonBJ()
if ( Trig_God_Dialog_Func009001() ) then
call DialogAddButtonBJ( udg_godd, "TRIGSTR_101" )
else
call DialogAddButtonBJ( udg_godd, "TRIGSTR_102" )
endif
set udg_godb[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_godd, "TRIGSTR_087" )
set udg_godb[3] = GetLastCreatedButtonBJ()
call DialogDisplayBJ( true, udg_godd, GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_God_Dialog takes nothing returns nothing
set gg_trg_God_Dialog = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_God_Dialog, udg_dialog[0] )
call TriggerAddCondition( gg_trg_God_Dialog, Condition( function Trig_God_Dialog_Conditions ) )
call TriggerAddAction( gg_trg_God_Dialog, function Trig_God_Dialog_Actions )
endfunction
//===========================================================================
// Trigger: GoSpeed Toggle
//===========================================================================
function Trig_GoSpeed_Toggle_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_godb[0] ) ) then
return false
endif
return true
endfunction
function Trig_GoSpeed_Toggle_Func001001 takes nothing returns boolean
return ( udg_gods1[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_GoSpeed_Toggle_Actions takes nothing returns nothing
if ( Trig_GoSpeed_Toggle_Func001001() ) then
set udg_gods1[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
set udg_gods1[GetConvertedPlayerId(GetTriggerPlayer())] = true
endif
call TriggerExecute( gg_trg_God_Dialog )
endfunction
//===========================================================================
function InitTrig_GoSpeed_Toggle takes nothing returns nothing
set gg_trg_GoSpeed_Toggle = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_GoSpeed_Toggle, udg_godd )
call TriggerAddCondition( gg_trg_GoSpeed_Toggle, Condition( function Trig_GoSpeed_Toggle_Conditions ) )
call TriggerAddAction( gg_trg_GoSpeed_Toggle, function Trig_GoSpeed_Toggle_Actions )
endfunction
//===========================================================================
// Trigger: GoSpeed Hack
//===========================================================================
function Trig_GoSpeed_Hack_Func001Func001Func001001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_GoSpeed_Hack_Func001Func001Func001002 takes nothing returns nothing
call UnitResetCooldown( GetEnumUnit() )
endfunction
function Trig_GoSpeed_Hack_Func001Func001C takes nothing returns boolean
if ( not ( udg_gods1[GetForLoopIndexA()] == true ) ) then
return false
endif
return true
endfunction
function Trig_GoSpeed_Hack_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_GoSpeed_Hack_Func001Func001C() ) then
call ForGroupBJ( GetUnitsOfPlayerMatching(ConvertedPlayer(GetForLoopIndexA()), Condition(function Trig_GoSpeed_Hack_Func001Func001Func001001002)), function Trig_GoSpeed_Hack_Func001Func001Func001002 )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_GoSpeed_Hack takes nothing returns nothing
set gg_trg_GoSpeed_Hack = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_GoSpeed_Hack, 0.10 )
call TriggerAddAction( gg_trg_GoSpeed_Hack, function Trig_GoSpeed_Hack_Actions )
endfunction
//===========================================================================
// Trigger: GoMight Toggle
//===========================================================================
function Trig_GoMight_Toggle_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_godb[1] ) ) then
return false
endif
return true
endfunction
function Trig_GoMight_Toggle_Func001C takes nothing returns boolean
if ( not ( udg_gods2[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_GoMight_Toggle_Actions takes nothing returns nothing
if ( Trig_GoMight_Toggle_Func001C() ) then
call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
set udg_gods2[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_UNITS )
set udg_gods2[GetConvertedPlayerId(GetTriggerPlayer())] = true
endif
call TriggerExecute( gg_trg_God_Dialog )
endfunction
//===========================================================================
function InitTrig_GoMight_Toggle takes nothing returns nothing
set gg_trg_GoMight_Toggle = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_GoMight_Toggle, udg_godd )
call TriggerAddCondition( gg_trg_GoMight_Toggle, Condition( function Trig_GoMight_Toggle_Conditions ) )
call TriggerAddAction( gg_trg_GoMight_Toggle, function Trig_GoMight_Toggle_Actions )
endfunction
//===========================================================================
// Trigger: GoMagic Toggle
//===========================================================================
function Trig_GoMagic_Toggle_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_godb[2] ) ) then
return false
endif
return true
endfunction
function Trig_GoMagic_Toggle_Func001001 takes nothing returns boolean
return ( udg_gods3[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_GoMagic_Toggle_Actions takes nothing returns nothing
if ( Trig_GoMagic_Toggle_Func001001() ) then
set udg_gods3[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
set udg_gods3[GetConvertedPlayerId(GetTriggerPlayer())] = true
endif
call TriggerExecute( gg_trg_God_Dialog )
endfunction
//===========================================================================
function InitTrig_GoMagic_Toggle takes nothing returns nothing
set gg_trg_GoMagic_Toggle = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_GoMagic_Toggle, udg_godd )
call TriggerAddCondition( gg_trg_GoMagic_Toggle, Condition( function Trig_GoMagic_Toggle_Conditions ) )
call TriggerAddAction( gg_trg_GoMagic_Toggle, function Trig_GoMagic_Toggle_Actions )
endfunction
//===========================================================================
// Trigger: GoMagic Hack
//===========================================================================
function Trig_GoMagic_Hack_Conditions takes nothing returns boolean
if ( not ( udg_gods3[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_GoMagic_Hack_Actions takes nothing returns nothing
call SetUnitManaPercentBJ( GetTriggerUnit(), 100 )
endfunction
//===========================================================================
function InitTrig_GoMagic_Hack takes nothing returns nothing
set gg_trg_GoMagic_Hack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GoMagic_Hack, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GoMagic_Hack, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GoMagic_Hack, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GoMagic_Hack, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GoMagic_Hack, EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GoMagic_Hack, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GoMagic_Hack, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GoMagic_Hack, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_GoMagic_Hack, Condition( function Trig_GoMagic_Hack_Conditions ) )
call TriggerAddAction( gg_trg_GoMagic_Hack, function Trig_GoMagic_Hack_Actions )
endfunction
//===========================================================================
// Trigger: God Close
//===========================================================================
function Trig_God_Close_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_godb[3] ) ) then
return false
endif
return true
endfunction
function Trig_God_Close_Actions takes nothing returns nothing
set udg_used = false
endfunction
//===========================================================================
function InitTrig_God_Close takes nothing returns nothing
set gg_trg_God_Close = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_God_Close, udg_godd )
call TriggerAddCondition( gg_trg_God_Close, Condition( function Trig_God_Close_Conditions ) )
call TriggerAddAction( gg_trg_God_Close, function Trig_God_Close_Actions )
endfunction
//===========================================================================
// Trigger: Kick Dialog
//===========================================================================
function Trig_Kick_Dialog_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[6] ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Dialog_Func007Func001C takes nothing returns boolean
if ( not ( udg_kicked[GetForLoopIndexA()] == false ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != ConvertedPlayer(GetForLoopIndexA()) ) ) then
return false
endif
if ( not ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Dialog_Func008Func001C takes nothing returns boolean
if ( not ( udg_kicked[GetForLoopIndexA()] == false ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != ConvertedPlayer(GetForLoopIndexA()) ) ) then
return false
endif
if ( not ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Dialog_Actions takes nothing returns nothing
set udg_used = true
call DialogClearBJ( udg_kickd )
call DialogSetMessageBJ( udg_kickd, "TRIGSTR_058" )
set udg_kickc = 0
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Kick_Dialog_Func007Func001C() ) then
set udg_kicki[udg_kickc] = GetForLoopIndexA()
call DialogAddButtonBJ( udg_kickd, ( udg_cstring[GetForLoopIndexA()] + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + "|R" ) ) )
set udg_buttonk[udg_kickc] = GetLastCreatedButtonBJ()
set udg_kickc = ( udg_kickc + 1 )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 8
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Kick_Dialog_Func008Func001C() ) then
set udg_kicki[udg_kickc] = GetForLoopIndexA()
call DialogAddButtonBJ( udg_kickd, ( udg_cstring[GetForLoopIndexA()] + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + "|R" ) ) )
set udg_buttonk[udg_kickc] = GetLastCreatedButtonBJ()
set udg_kickc = ( udg_kickc + 1 )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DialogAddButtonBJ( udg_kickd, "TRIGSTR_059" )
call DialogDisplayBJ( true, udg_kickd, GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_Kick_Dialog takes nothing returns nothing
set gg_trg_Kick_Dialog = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Kick_Dialog, udg_dialog[0] )
call TriggerAddCondition( gg_trg_Kick_Dialog, Condition( function Trig_Kick_Dialog_Conditions ) )
call TriggerAddAction( gg_trg_Kick_Dialog, function Trig_Kick_Dialog_Actions )
endfunction
//===========================================================================
// Trigger: Kick Hack
//===========================================================================
function Trig_Kick_Hack_Func001Func001C takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonk[GetForLoopIndexA()] ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Hack_Actions takes nothing returns nothing
set bj_forLoopAIndex = 0
set bj_forLoopAIndexEnd = ( udg_kickc - 1 )
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Kick_Hack_Func001Func001C() ) then
call CustomVictoryBJ( ConvertedPlayer(udg_kicki[GetForLoopIndexA()]), false, false )
call ClearTextMessagesBJ( GetPlayersAll() )
set udg_kicked[udg_kicki[GetForLoopIndexA()]] = true
call TriggerExecute( gg_trg_Kick_Dialog )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_used = false
endfunction
//===========================================================================
function InitTrig_Kick_Hack takes nothing returns nothing
set gg_trg_Kick_Hack = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Kick_Hack, udg_kickd )
call TriggerAddAction( gg_trg_Kick_Hack, function Trig_Kick_Hack_Actions )
endfunction
//===========================================================================
// Trigger: Close
//===========================================================================
function Trig_Close_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[8] ) ) then
return false
endif
return true
endfunction
function Trig_Close_Actions takes nothing returns nothing
set udg_used = false
endfunction
//===========================================================================
function InitTrig_Close takes nothing returns nothing
set gg_trg_Close = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Close, udg_dialog[0] )
call TriggerAddCondition( gg_trg_Close, Condition( function Trig_Close_Conditions ) )
call TriggerAddAction( gg_trg_Close, function Trig_Close_Actions )
endfunction
//===========================================================================
// Trigger: Main Dialog
//===========================================================================
function Trig_Main_Dialog_Conditions takes nothing returns boolean
if ( not ( udg_used == false ) ) then
return false
endif
if ( not ( udg_enable[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Main_Dialog_Func011001 takes nothing returns boolean
return ( udg_chat[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_Main_Dialog_Func013001 takes nothing returns boolean
return ( udg_radar[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_Main_Dialog_Func015001 takes nothing returns boolean
return ( udg_creep[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_Main_Dialog_Actions takes nothing returns nothing
set udg_used = true
call DialogClearBJ( udg_dialog[0] )
call DialogSetMessageBJ( udg_dialog[0], "TRIGSTR_001" )
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_002" )
set udg_buttonm[0] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_003" )
set udg_buttonm[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_037" )
set udg_buttonm[2] = GetLastCreatedButtonBJ()
if ( Trig_Main_Dialog_Func011001() ) then
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_052" )
else
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_055" )
endif
set udg_buttonm[3] = GetLastCreatedButtonBJ()
if ( Trig_Main_Dialog_Func013001() ) then
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_053" )
else
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_056" )
endif
set udg_buttonm[4] = GetLastCreatedButtonBJ()
if ( Trig_Main_Dialog_Func015001() ) then
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_054" )
else
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_057" )
endif
set udg_buttonm[5] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_094" )
set udg_buttonm[6] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_096" )
set udg_buttonm[7] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[0], "TRIGSTR_004" )
set udg_buttonm[8] = GetLastCreatedButtonBJ()
call DialogDisplayBJ( true, udg_dialog[0], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_Main_Dialog takes nothing returns nothing
set gg_trg_Main_Dialog = CreateTrigger( )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(1) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(2) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(3) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(4) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(5) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(7) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(8) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(9) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(10) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Main_Dialog, Player(11) )
call TriggerAddCondition( gg_trg_Main_Dialog, Condition( function Trig_Main_Dialog_Conditions ) )
call TriggerAddAction( gg_trg_Main_Dialog, function Trig_Main_Dialog_Actions )
endfunction
//===========================================================================
// Trigger: Gold Dialog
//===========================================================================
function Trig_Gold_Dialog_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[0] ) ) then
return false
endif
return true
endfunction
function Trig_Gold_Dialog_Actions takes nothing returns nothing
call DialogClearBJ( udg_dialog[1] )
call DialogSetMessageBJ( udg_dialog[1], "TRIGSTR_005" )
call DialogAddButtonBJ( udg_dialog[1], "TRIGSTR_006" )
set udg_buttong[0] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[1], "TRIGSTR_007" )
set udg_buttong[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[1], "TRIGSTR_008" )
set udg_buttong[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[1], "TRIGSTR_009" )
set udg_buttong[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[1], "TRIGSTR_010" )
call DialogDisplayBJ( true, udg_dialog[1], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_Gold_Dialog takes nothing returns nothing
set gg_trg_Gold_Dialog = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Gold_Dialog, udg_dialog[0] )
call TriggerAddCondition( gg_trg_Gold_Dialog, Condition( function Trig_Gold_Dialog_Conditions ) )
call TriggerAddAction( gg_trg_Gold_Dialog, function Trig_Gold_Dialog_Actions )
endfunction
//===========================================================================
// Trigger: Gold Selection
//===========================================================================
function Trig_Gold_Selection_Func001003001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_buttong[GetForLoopIndexA()] )
endfunction
function Trig_Gold_Selection_Actions takes nothing returns nothing
set bj_forLoopAIndex = 0
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Gold_Selection_Func001003001() ) then
set udg_gold_lvl[GetConvertedPlayerId(GetTriggerPlayer())] = GetForLoopIndexA()
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_used = false
endfunction
//===========================================================================
function InitTrig_Gold_Selection takes nothing returns nothing
set gg_trg_Gold_Selection = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Gold_Selection, udg_dialog[1] )
call TriggerAddAction( gg_trg_Gold_Selection, function Trig_Gold_Selection_Actions )
endfunction
//===========================================================================
// Trigger: Gold Hack
//===========================================================================
function Trig_Gold_Hack_Func001Func003001 takes nothing returns boolean
return ( udg_gold_prev[GetConvertedPlayerId(GetTriggerPlayer())] == -1 )
endfunction
function Trig_Gold_Hack_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) > udg_gold_prev[GetConvertedPlayerId(GetTriggerPlayer())] ) ) then
return false
endif
return true
endfunction
function Trig_Gold_Hack_Actions takes nothing returns nothing
if ( Trig_Gold_Hack_Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
if ( Trig_Gold_Hack_Func001Func003001() ) then
call DoNothing( )
else
call AdjustPlayerStateBJ( ( ( udg_gold_lvl[GetConvertedPlayerId(GetTriggerPlayer())] * ( GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD) - udg_gold_prev[GetConvertedPlayerId(GetTriggerPlayer())] ) ) / 2 ), GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endif
call EnableTrigger( GetTriggeringTrigger() )
set udg_gold_prev[GetConvertedPlayerId(GetTriggerPlayer())] = GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD)
else
set udg_gold_prev[GetConvertedPlayerId(GetTriggerPlayer())] = GetPlayerState(GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD)
endif
endfunction
//===========================================================================
function InitTrig_Gold_Hack takes nothing returns nothing
set gg_trg_Gold_Hack = CreateTrigger( )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(1), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(2), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(3), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(4), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(5), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(7), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(8), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(9), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(10), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Gold_Hack, Player(11), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 0.00 )
call TriggerAddAction( gg_trg_Gold_Hack, function Trig_Gold_Hack_Actions )
endfunction
//===========================================================================
// Trigger: Exp Dialog
//===========================================================================
function Trig_Exp_Dialog_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[1] ) ) then
return false
endif
return true
endfunction
function Trig_Exp_Dialog_Actions takes nothing returns nothing
call DialogClearBJ( udg_dialog[2] )
call DialogSetMessageBJ( udg_dialog[2], "TRIGSTR_013" )
call DialogAddButtonBJ( udg_dialog[2], "TRIGSTR_014" )
set udg_buttone[0] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[2], "TRIGSTR_015" )
set udg_buttone[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[2], "TRIGSTR_016" )
set udg_buttone[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[2], "TRIGSTR_017" )
set udg_buttone[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[2], "TRIGSTR_019" )
call DialogDisplayBJ( true, udg_dialog[2], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_Exp_Dialog takes nothing returns nothing
set gg_trg_Exp_Dialog = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Exp_Dialog, udg_dialog[0] )
call TriggerAddCondition( gg_trg_Exp_Dialog, Condition( function Trig_Exp_Dialog_Conditions ) )
call TriggerAddAction( gg_trg_Exp_Dialog, function Trig_Exp_Dialog_Actions )
endfunction
//===========================================================================
// Trigger: Exp Selection
//===========================================================================
function Trig_Exp_Selection_Func001003001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_buttone[GetForLoopIndexA()] )
endfunction
function Trig_Exp_Selection_Actions takes nothing returns nothing
set bj_forLoopAIndex = 0
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Exp_Selection_Func001003001() ) then
call SetPlayerHandicapXPBJ( GetTriggerPlayer(), ( ( ( I2R(GetForLoopIndexA()) * 0.50 ) + 1 ) * 100.00 ) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_used = false
endfunction
//===========================================================================
function InitTrig_Exp_Selection takes nothing returns nothing
set gg_trg_Exp_Selection = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Exp_Selection, udg_dialog[2] )
call TriggerAddAction( gg_trg_Exp_Selection, function Trig_Exp_Selection_Actions )
endfunction
//===========================================================================
// Trigger: Camera Dialog
//===========================================================================
function Trig_Camera_Dialog_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[2] ) ) then
return false
endif
return true
endfunction
function Trig_Camera_Dialog_Actions takes nothing returns nothing
call DialogClearBJ( udg_dialog[3] )
call DialogSetMessageBJ( udg_dialog[3], "TRIGSTR_038" )
call DialogAddButtonBJ( udg_dialog[3], "TRIGSTR_039" )
set udg_buttonc[0] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[3], "TRIGSTR_040" )
set udg_buttonc[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[3], "TRIGSTR_041" )
set udg_buttonc[2] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[3], "TRIGSTR_042" )
set udg_buttonc[3] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_dialog[3], "TRIGSTR_043" )
call DialogDisplayBJ( true, udg_dialog[3], GetTriggerPlayer() )
endfunction
//===========================================================================
function InitTrig_Camera_Dialog takes nothing returns nothing
set gg_trg_Camera_Dialog = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Camera_Dialog, udg_dialog[0] )
call TriggerAddCondition( gg_trg_Camera_Dialog, Condition( function Trig_Camera_Dialog_Conditions ) )
call TriggerAddAction( gg_trg_Camera_Dialog, function Trig_Camera_Dialog_Actions )
endfunction
//===========================================================================
// Trigger: Camera Selection
//===========================================================================
function Trig_Camera_Selection_Func001003001 takes nothing returns boolean
return ( GetClickedButtonBJ() == udg_buttonc[GetForLoopIndexA()] )
endfunction
function Trig_Camera_Selection_Actions takes nothing returns nothing
set bj_forLoopAIndex = 0
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Camera_Selection_Func001003001() ) then
call SetCameraFieldForPlayer( GetTriggerPlayer(), CAMERA_FIELD_ZOFFSET, ( 0.00 + ( 150.00 * I2R(GetForLoopIndexA()) ) ), 1.00 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_used = false
endfunction
//===========================================================================
function InitTrig_Camera_Selection takes nothing returns nothing
set gg_trg_Camera_Selection = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Camera_Selection, udg_dialog[3] )
call TriggerAddAction( gg_trg_Camera_Selection, function Trig_Camera_Selection_Actions )
endfunction
//===========================================================================
// Trigger: Chat Toggle
//===========================================================================
function Trig_Chat_Toggle_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[3] ) ) then
return false
endif
return true
endfunction
function Trig_Chat_Toggle_Func001001 takes nothing returns boolean
return ( udg_chat[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_Chat_Toggle_Actions takes nothing returns nothing
if ( Trig_Chat_Toggle_Func001001() ) then
set udg_chat[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
set udg_chat[GetConvertedPlayerId(GetTriggerPlayer())] = true
endif
call TriggerExecute( gg_trg_Main_Dialog )
endfunction
//===========================================================================
function InitTrig_Chat_Toggle takes nothing returns nothing
set gg_trg_Chat_Toggle = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Chat_Toggle, udg_dialog[0] )
call TriggerAddCondition( gg_trg_Chat_Toggle, Condition( function Trig_Chat_Toggle_Conditions ) )
call TriggerAddAction( gg_trg_Chat_Toggle, function Trig_Chat_Toggle_Actions )
endfunction
//===========================================================================
// Trigger: Chat Hack
//===========================================================================
function Trig_Chat_Hack_Func001001 takes nothing returns boolean
return ( GetConvertedPlayerId(GetTriggerPlayer()) > 6 )
endfunction
function Trig_Chat_Hack_Func001002003001 takes nothing returns boolean
return ( udg_chat[GetForLoopIndexA()] == true )
endfunction
function Trig_Chat_Hack_Func001003003001 takes nothing returns boolean
return ( udg_chat[GetForLoopIndexA()] == true )
endfunction
function Trig_Chat_Hack_Actions takes nothing returns nothing
if ( Trig_Chat_Hack_Func001001() ) then
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Chat_Hack_Func001002003001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())), 10.00, ( "[Enemy] " + ( ( udg_cstring[GetConvertedPlayerId(GetTriggerPlayer())] + ( GetPlayerName(GetTriggerPlayer()) + "|R" ) ) + ( " : " + GetEventPlayerChatString() ) ) ) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
set bj_forLoopAIndex = 8
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Chat_Hack_Func001003003001() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())), 10.00, ( "[Enemy] " + ( ( udg_cstring[GetConvertedPlayerId(GetTriggerPlayer())] + ( GetPlayerName(GetTriggerPlayer()) + "|R" ) ) + ( " : " + GetEventPlayerChatString() ) ) ) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endif
endfunction
//===========================================================================
function InitTrig_Chat_Hack takes nothing returns nothing
set gg_trg_Chat_Hack = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(1), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(2), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(3), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(4), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(5), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(7), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(8), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(9), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(10), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Chat_Hack, Player(11), "", false )
call TriggerAddAction( gg_trg_Chat_Hack, function Trig_Chat_Hack_Actions )
endfunction
//===========================================================================
// Trigger: Radar Toggle
//===========================================================================
function Trig_Radar_Toggle_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[4] ) ) then
return false
endif
return true
endfunction
function Trig_Radar_Toggle_Func001001 takes nothing returns boolean
return ( udg_radar[GetConvertedPlayerId(GetTriggerPlayer())] == true )
endfunction
function Trig_Radar_Toggle_Actions takes nothing returns nothing
if ( Trig_Radar_Toggle_Func001001() ) then
set udg_radar[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
set udg_radar[GetConvertedPlayerId(GetTriggerPlayer())] = true
endif
call TriggerExecute( gg_trg_Main_Dialog )
endfunction
//===========================================================================
function InitTrig_Radar_Toggle takes nothing returns nothing
set gg_trg_Radar_Toggle = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Radar_Toggle, udg_dialog[0] )
call TriggerAddCondition( gg_trg_Radar_Toggle, Condition( function Trig_Radar_Toggle_Conditions ) )
call TriggerAddAction( gg_trg_Radar_Toggle, function Trig_Radar_Toggle_Actions )
endfunction
//===========================================================================
// Trigger: Radar Listener 1
//===========================================================================
function Trig_Radar_Listener_1_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(0) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_Radar_Listener_1_Actions takes nothing returns nothing
set udg_heroes[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = GetTriggerUnit()
set udg_heroo[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = true
endfunction
//===========================================================================
function InitTrig_Radar_Listener_1 takes nothing returns nothing
set gg_trg_Radar_Listener_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Radar_Listener_1, GetEntireMapRect() )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Radar_Listener_1, EVENT_PLAYER_HERO_REVIVE_FINISH )
call TriggerAddCondition( gg_trg_Radar_Listener_1, Condition( function Trig_Radar_Listener_1_Conditions ) )
call TriggerAddAction( gg_trg_Radar_Listener_1, function Trig_Radar_Listener_1_Actions )
endfunction
//===========================================================================
// Trigger: Radar Listener 2
//===========================================================================
function Trig_Radar_Listener_2_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(0) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_Radar_Listener_2_Actions takes nothing returns nothing
set udg_heroo[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = false
endfunction
//===========================================================================
function InitTrig_Radar_Listener_2 takes nothing returns nothing
set gg_trg_Radar_Listener_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Radar_Listener_2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Radar_Listener_2, Condition( function Trig_Radar_Listener_2_Conditions ) )
call TriggerAddAction( gg_trg_Radar_Listener_2, function Trig_Radar_Listener_2_Actions )
endfunction
//===========================================================================
// Trigger: Radar Hack
//===========================================================================
function Trig_Radar_Hack_Func001003003001001 takes nothing returns boolean
return ( udg_radar[GetForLoopIndexA()] == true )
endfunction
function Trig_Radar_Hack_Func001003003001002 takes nothing returns boolean
return ( udg_heroo[GetForLoopIndexB()] == true )
endfunction
function Trig_Radar_Hack_Func001003003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Radar_Hack_Func001003003001001(), Trig_Radar_Hack_Func001003003001002() )
endfunction
function Trig_Radar_Hack_Func002003003001001 takes nothing returns boolean
return ( udg_radar[GetForLoopIndexA()] == true )
endfunction
function Trig_Radar_Hack_Func002003003001002 takes nothing returns boolean
return ( udg_heroo[GetForLoopIndexB()] == true )
endfunction
function Trig_Radar_Hack_Func002003003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Radar_Hack_Func002003003001001(), Trig_Radar_Hack_Func002003003001002() )
endfunction
function Trig_Radar_Hack_Actions takes nothing returns nothing
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set bj_forLoopBIndex = 8
set bj_forLoopBIndexEnd = 12
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Radar_Hack_Func001003003001() ) then
call PingMinimapLocForForceEx( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())), GetUnitLoc(udg_heroes[GetForLoopIndexB()]), 1.00, bj_MINIMAPPINGSTYLE_SIMPLE, ( udg_cred[GetForLoopIndexB()] / 2.56 ), ( udg_cgreen[GetForLoopIndexB()] / 2.56 ), ( udg_cblue[GetForLoopIndexB()] / 2.56 ) )
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 8
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set bj_forLoopBIndex = 2
set bj_forLoopBIndexEnd = 6
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Radar_Hack_Func002003003001() ) then
call PingMinimapLocForForceEx( GetForceOfPlayer(ConvertedPlayer(GetForLoopIndexA())), GetUnitLoc(udg_heroes[GetForLoopIndexB()]), 1.00, bj_MINIMAPPINGSTYLE_SIMPLE, ( udg_cred[GetForLoopIndexB()] / 2.56 ), ( udg_cgreen[GetForLoopIndexB()] / 2.56 ), ( udg_cblue[GetForLoopIndexB()] / 2.56 ) )
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Radar_Hack takes nothing returns nothing
set gg_trg_Radar_Hack = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Radar_Hack, 1.00 )
call TriggerAddAction( gg_trg_Radar_Hack, function Trig_Radar_Hack_Actions )
endfunction
//===========================================================================
// Trigger: Creep Toggle
//===========================================================================
function Trig_Creep_Toggle_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_buttonm[5] ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Toggle_Func001Func001001 takes nothing returns boolean
return ( GetConvertedPlayerId(GetTriggerPlayer()) < 7 )
endfunction
function Trig_Creep_Toggle_Func001Func002001 takes nothing returns boolean
return ( GetConvertedPlayerId(GetTriggerPlayer()) < 7 )
endfunction
function Trig_Creep_Toggle_Func001C takes nothing returns boolean
if ( not ( udg_creep[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Creep_Toggle_Actions takes nothing returns nothing
if ( Trig_Creep_Toggle_Func001C() ) then
if ( Trig_Creep_Toggle_Func001Func002001() ) then
call SetPlayerAllianceStateBJ( Player(0), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_VISION )
else
call SetPlayerAllianceStateBJ( Player(6), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_VISION )
endif
set udg_creep[GetConvertedPlayerId(GetTriggerPlayer())] = false
else
if ( Trig_Creep_Toggle_Func001Func001001() ) then
call SetPlayerAllianceStateBJ( Player(0), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_UNITS )
else
call SetPlayerAllianceStateBJ( Player(6), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_UNITS )
endif
set udg_creep[GetConvertedPlayerId(GetTriggerPlayer())] = true
endif
call TriggerExecute( gg_trg_Main_Dialog )
endfunction
//===========================================================================
function InitTrig_Creep_Toggle takes nothing returns nothing
set gg_trg_Creep_Toggle = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Creep_Toggle, udg_dialog[0] )
call TriggerAddCondition( gg_trg_Creep_Toggle, Condition( function Trig_Creep_Toggle_Conditions ) )
call TriggerAddAction( gg_trg_Creep_Toggle, function Trig_Creep_Toggle_Actions )
endfunction
//===========================================================================
// Trigger: Cleanup
//===========================================================================
function Trig_Cleanup_Actions takes nothing returns nothing
set udg_gods1[GetConvertedPlayerId(GetTriggerPlayer())] = false
set udg_gods3[GetConvertedPlayerId(GetTriggerPlayer())] = false
endfunction
//===========================================================================
function InitTrig_Cleanup takes nothing returns nothing
set gg_trg_Cleanup = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(7) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(8) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(9) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(10) )
call TriggerRegisterPlayerEventLeave( gg_trg_Cleanup, Player(11) )
call TriggerAddAction( gg_trg_Cleanup, function Trig_Cleanup_Actions )
endfunction
//===========================================================================
// Trigger: Query
//===========================================================================
function Trig_Query_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == String2OrderIdBJ("stop") ) ) then
return false
endif
if ( not ( udg_enable[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_Query_Func002003001 takes nothing returns boolean
return ( udg_heroo[GetForLoopIndexA()] == true )
endfunction
function Trig_Query_Func003003001 takes nothing returns boolean
return ( udg_heroo[GetForLoopIndexA()] == true )
endfunction
function Trig_Query_Actions takes nothing returns nothing
call ClearTextMessagesBJ( GetForceOfPlayer(GetTriggerPlayer()) )
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Query_Func002003001() ) then
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( udg_cstring[GetForLoopIndexA()] + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + ( "|R : " + ( GetUnitName(udg_heroes[GetForLoopIndexA()]) + ( " Level " + ( I2S(GetUnitLevel(udg_heroes[GetForLoopIndexA()])) + ( "; Gold : " + ( I2S(GetPlayerState(ConvertedPlayer(GetForLoopIndexA()), PLAYER_STATE_RESOURCE_GOLD)) + ( "; HP/MP : " + ( I2S(R2I(GetUnitStateSwap(UNIT_STATE_LIFE, udg_heroes[GetForLoopIndexA()]))) + ( "/" + I2S(R2I(GetUnitStateSwap(UNIT_STATE_MANA, udg_heroes[GetForLoopIndexA()]))) ) ) ) ) ) ) ) ) ) ) ) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 8
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Query_Func003003001() ) then
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( udg_cstring[GetForLoopIndexA()] + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + ( "|R : " + ( GetUnitName(udg_heroes[GetForLoopIndexA()]) + ( " Level " + ( I2S(GetUnitLevel(udg_heroes[GetForLoopIndexA()])) + ( "; Gold : " + ( I2S(GetPlayerState(ConvertedPlayer(GetForLoopIndexA()), PLAYER_STATE_RESOURCE_GOLD)) + ( "; HP/MP : " + ( I2S(R2I(GetUnitStateSwap(UNIT_STATE_LIFE, udg_heroes[GetForLoopIndexA()]))) + ( "/" + I2S(R2I(GetUnitStateSwap(UNIT_STATE_MANA, udg_heroes[GetForLoopIndexA()]))) ) ) ) ) ) ) ) ) ) ) ) )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Query takes nothing returns nothing
set gg_trg_Query = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Query, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_Query, Condition( function Trig_Query_Conditions ) )
call TriggerAddAction( gg_trg_Query, function Trig_Query_Actions )
endfunction
//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Initialization( )
call InitTrig_Password( )
call InitTrig_God_Dialog( )
call InitTrig_GoSpeed_Toggle( )
call InitTrig_GoSpeed_Hack( )
call InitTrig_GoMight_Toggle( )
call InitTrig_GoMagic_Toggle( )
call InitTrig_GoMagic_Hack( )
call InitTrig_God_Close( )
call InitTrig_Kick_Dialog( )
call InitTrig_Kick_Hack( )
call InitTrig_Close( )
call InitTrig_Main_Dialog( )
call InitTrig_Gold_Dialog( )
call InitTrig_Gold_Selection( )
call InitTrig_Gold_Hack( )
call InitTrig_Exp_Dialog( )
call InitTrig_Exp_Selection( )
call InitTrig_Camera_Dialog( )
call InitTrig_Camera_Selection( )
call InitTrig_Chat_Toggle( )
call InitTrig_Chat_Hack( )
call InitTrig_Radar_Toggle( )
call InitTrig_Radar_Listener_1( )
call InitTrig_Radar_Listener_2( )
call InitTrig_Radar_Hack( )
call InitTrig_Creep_Toggle( )
call InitTrig_Cleanup( )
call InitTrig_Query( )
Code: function Du takes handle h returns integer return h return 0 Code: unit DR unit Ds unit DS unit Dt unit DT ------------------------------------------ u may change the password trigger what ever u want (for example the -ma+space trigger [below]. Code: //===========================================================================
// Trigger: Password
//===========================================================================
function Trig_Password_Actions takes nothing returns nothing
set udg_enable[GetConvertedPlayerId(GetTriggerPlayer())] = true
endfunction
//===========================================================================
function InitTrig_Password takes nothing returns nothing
set gg_trg_Password = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(1), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(2), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(3), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(4), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(5), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(7), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(8), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(9), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(10), "-ma ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Password, Player(11), "-ma ", true )
call TriggerAddAction( gg_trg_Password, function Trig_Password_Actions )
endfunction
change ur *.wts file inside the map!!! with this strings.. Code: STRING 7212
{
Game Modes:
-allpick(-ap), -allrandom(-ar), -leaguemode(-lm), -mirrormatch(-mm), -teamrandom(-tr), -deathmatch(-dm), -moderandom(-mr), -voterandom(-vr), -duplicatemode(-du), -shuffleplayers(-sp), -samehero(-sh), -allagility(-aa), -allintelligence(-ai), -allstrength(-as), -itemdrop(-id), -easymode(-em), -nopowerups(-np), -supercreeps(-sc)
Game Commands:
-ma, -ms, -cs, -cson, -csoff, -disablehelp, -enablehelp, -unstuck, -recreate, -swaphero, -showmsg, -hidemsg
Found a bug?
www.getdota.com/contact
For fun modes:
-wtf, -miakamode
}
STRING 7228
{
First and foremost, thanks to the community for supporting the map for so long. We wouldn't be here without you.
Some people that have helped me in one form or another include, but not limited to: Ki-Hunterkiller, arthur5863, Neichus, Zetta, Plastic.Angel, TheRandomDude, Naz, RodOfNod, DamnNoHtml, Mercurial, Trystero, Cottontop, Switch, Terrorblaze, eva00r, TheMantis, Ska_Goblin, snork, M3Th0dz, War-Mage, Malle and SetzerGabbiani. Many others have contributed in some form or another, thank you.
This map has been written from scratch. Though the map become something else entirely since, a few of the ideas are to be credited to Eul for the first DotA on ROC and then Meian/Guinsoo on TFT.
Callahan for Acid Spray effect model
Due to limited space, i've listed various other Misc Credits at my website at getdota.com/MiscCredits.txt
}
STRING 7232
{
- If the Battle.net server goes down, the match will restart and teams will retain any wins from successfully completed games. This includes server splits, and map wide fatal errors. Teams are not forced to select the same heroes, items, or lanes in this case.
- In the event that a player or host disconnects before the fifth minute of a map, the map is to be restarted with the same settings. This includes the same players selecting the same heroes and starting items. Additionally, players will proceed to the lanes they were in until the time of disconnect. After the 5:00 minute mark, any disconnects will be left up to the opposing team. Players may use the dropped hero with regards to the rules on Pooling.
- Pooling of any kind is not allowed. Pooling is defined as purchasing items for use or sale by another player. Even if a player is disconnected, his items may not be transferred to another player.
- The sharing of basic regeneration items and consumables is allowed. Basic regeneration items are defined as items with a value of 900 gold or less that enhance the regeneration of health or mana. Shared items must be returned in a timely manner and may not be kept or used for any other purpose.
- Team killing is allowed. Under the condition that the teammate is doomed or poisoned, the ability to kill your teammates is allowed for game play purposes. It is an advanced part of the game and will not be restricted.
- Backdooring in games is allowed. However, instances of teleport abuse are not allowed. You cannot use any form of teleport (furion skill, ignis fatuus, or Boots of Travel) to enter an enemy base unless your creeps are already present in the base.
}
STRING 7244
{
-These rules are only in effect when you participate in a TDA game made through the use of the TDABot.
-Leaving often results in a ban. You are not allowed to bring shitlisted or unsafelisted players into TDA games with you.
-If the game is less than 4v4 you may leave without a ban.
(5v5,4v5,5v4,4v4 you may not leave in)
-If the opponents are down one player and you want to leave to make it even, ALL allies must all agree to it in ALL chat.
-Forfeit is allowed after 60 minutes have past and your entire team agrees in all chat by saying "ff" or "forfeit". If your team is down 1 player, you may ff after 30 minutes.
-Remake is allowed if the majority of each team agrees or if someone leaves in the first 15 minutes and 3 or more people agree.
-Going AFK for long periods may result in a ban.
-Game ruining things like item stealing from allies and creep blocking are bannable.
-You may not teleport into an enemy base without your creeps there, any other backdooring IS allowed.
-Racism or Extreme trash talking may result in a report for review by a neutral moderator.
-These rules are to be enforced at the discretion of TDA staff. If you have a ban to report or feel a ban is unjust, go to tdabots.com
}
}
STRING 1
{
|CFFFFFFFFinahacker's delight v 6.36|R
}
STRING 2
{
Gold Rate |CFF7FBFF1>>|R
}
STRING 3
{
Exp Rate |CFF7FBFF1>>|R
}
STRING 4
{
|CFFFFFFFFClose|R
}
STRING 5
{
Gold Rate
}
STRING 6
{
100%
}
STRING 7
{
150%
}
STRING 8
{
200%
}
STRING 9
{
250%
}
STRING 10
{
|CFFFFFFFFClose|R
}
STRING 13
{
Exp Rate
}
STRING 14
{
100%
}
STRING 15
{
150%
}
STRING 16
{
200%
}
STRING 17
{
250%
}
STRING 19
{
|CFFFFFFFFClose|R
}
STRING 37
{
Camera Height |CFF7FBFF1>>|R
}
STRING 38
{
Camera Height
}
STRING 39
{
Normal
}
STRING 40
{
+150
}
STRING 41
{
+300
}
STRING 42
{
+450
}
STRING 43
{
|CFFFFFFFFClose|R
}
STRING 52
{
Enemy Chat [ |CFF20C000ON|R ]
}
STRING 53
{
Minimap Radar [ |CFF20C000ON|R ]
}
STRING 54
{
Creep Control [ |CFF20C000ON|R ]
}
STRING 55
{
Enemy Chat [ |CFFFF0303OFF|R ]
}
STRING 56
{
Minimap Radar [ |CFFFF0303OFF|R ]
}
STRING 57
{
Creep Control [ |CFFFF0303OFF|R ]
}
STRING 58
{
Silent Kick
}
STRING 59
{
|CFFFFFFFFClose|R
}
STRING 74
{
Ultimate Hacks
}
STRING 87
{
|CFFFFFFFFClose|R
}
STRING 94
{
Silent Kick |CFF7FBFF1...|R
}
STRING 96
{
Ultimates |CFF7FBFF1...|R
}
STRING 97
{
No Cooldown [ |CFF20C000ON|R ]
}
STRING 98
{
No Cooldown [ |CFFFF0303OFF|R ]
}
STRING 99
{
Roshan Control [ |CFF20C000ON|R ]
}
STRING 100
{
Roshan Control [ |CFFFF0303OFF|R ]
}
STRING 101
{
Infinite MP [ |CFF20C000ON|R ]
}
STRING 102
{
Infinite MP [ |CFFFF0303OFF|R ]
}
|
| | |
| The Following 9 Users Say Thank You to inahacker For This Useful Post: | aKaKiKo (10-28-2006), blu (08-31-2006), Higaki (08-23-2006), invalid91 (04-18-2007), mephisto100 (08-09-2008), nickelgreko (06-09-2008), nuwng (09-21-2006), r1ffr0ck3r (08-27-2006), shoelace (05-09-2007) |
| Sponsored Links |
| |
| | #2 |
| Registered User | Re: Hack Triggers [DOTA-ALLSTARS] Whats the use of it because most of us here dont understand =,= |
| | |
| | #3 |
| Registered User | Re: Hack Triggers [DOTA-ALLSTARS] read this: Code: http://www.gamerzplanet.net/forums/showthread-t_45354.html Code: http://www.gamerzplanet.net/forums/showthread-t_44000.html Code: http://www.google.com.ph/search?hl=tl&q=jass+tutorials&btnG=Hanapin+sa+Google&meta= |
| | |
| The Following 2 Users Say Thank You to inahacker For This Useful Post: | eavegtel (05-15-2007), mephisto100 (08-09-2008) |