diff --git a/README.md b/README.md index d4123a3d..1eaee9f8 100644 --- a/README.md +++ b/README.md @@ -1767,3 +1767,4 @@ Here is a list of some modified versions online: * kellym0: [LavaBridge.v075](https://www.hiveworkshop.com/threads/lavabridge-v075.251963/) * Grunts_Fadora: [BTNTomeGreen](https://www.hiveworkshop.com/threads/btntomegreen.202803/) * Grunts_Fadora: [BTNTomeRed](https://www.hiveworkshop.com/threads/btntomered.202802/) +* Technomancer: [BTNMasks](https://www.hiveworkshop.com/threads/btnmasks.58173/) diff --git a/wowr.w3x/ReplaceableTextures/CommandButtons/BTNMasks.blp b/wowr.w3x/ReplaceableTextures/CommandButtons/BTNMasks.blp new file mode 100644 index 00000000..1b19aab3 Binary files /dev/null and b/wowr.w3x/ReplaceableTextures/CommandButtons/BTNMasks.blp differ diff --git a/wowr.w3x/ReplaceableTextures/CommandButtonsDisabled/DISBTNMasks.blp b/wowr.w3x/ReplaceableTextures/CommandButtonsDisabled/DISBTNMasks.blp new file mode 100644 index 00000000..ec7243ca Binary files /dev/null and b/wowr.w3x/ReplaceableTextures/CommandButtonsDisabled/DISBTNMasks.blp differ diff --git a/wowr.w3x/war3map.imp b/wowr.w3x/war3map.imp index 53388294..430c3283 100644 Binary files a/wowr.w3x/war3map.imp and b/wowr.w3x/war3map.imp differ diff --git a/wowr.w3x/war3map.j b/wowr.w3x/war3map.j index 3ec8a2f4..1cda95b0 100644 --- a/wowr.w3x/war3map.j +++ b/wowr.w3x/war3map.j @@ -7,10 +7,10 @@ constant boolean LIBRARY_Alloc=true //endglobals from Alloc //globals from Ascii: constant boolean LIBRARY_Ascii=true -integer array Ascii___i -integer array Ascii___h -integer array Ascii___y -string array Ascii___c +integer array Ascii__i +integer array Ascii__h +integer array Ascii__y +string array Ascii__c //endglobals from Ascii //globals from Attributes: constant boolean LIBRARY_Attributes=true @@ -27,44 +27,44 @@ constant string BlackArrowSystem_ORDER_OFF= "blackarrowoff" constant boolean BlackArrowSystem_ADD_STANDARD_OBJECT_DATA= true constant boolean BlackArrowSystem_ADD_ALL_UNITS_WITH_ORBS= true -integer array BlackArrowSystem___BlackArrowAbiliyId -integer array BlackArrowSystem___BlackArrowAbiliyLevel -integer array BlackArrowSystem___BlackArrowAbiliySummonedUnitTypeId -integer array BlackArrowSystem___BlackArrowAbiliySummonedUnitsCount -real array BlackArrowSystem___BlackArrowAbiliySummonedUnitDuration -real array BlackArrowSystem___BlackArrowAbiliyDurationHero -real array BlackArrowSystem___BlackArrowAbiliyDurationUnit -integer array BlackArrowSystem___BlackArrowAbiliyBuffId -integer BlackArrowSystem___BlackArrowAbilityCounter= 1 - -integer array BlackArrowSystem___BlackArrowItemTypeId -integer array BlackArrowSystem___BlackArrowItemTypeAbilityIndex -integer BlackArrowSystem___BlackArrowItemTypeCounter= 1 - -hashtable BlackArrowSystem___BlackArrowHashTable= InitHashtable() -group BlackArrowSystem___BlackArrowTargets= CreateGroup() -group BlackArrowSystem___BlackArrowAutoCasters= CreateGroup() -group BlackArrowSystem___BlackArrowItemUnits= CreateGroup() -trigger BlackArrowSystem___BlackArrowDamageTrigger= CreateTrigger() -trigger BlackArrowSystem___BlackArrowDeathTrigger= CreateTrigger() -trigger BlackArrowSystem___BlackArrowOrderTrigger= CreateTrigger() -trigger BlackArrowSystem___BlackArrowItemPickupTrigger= CreateTrigger() -trigger BlackArrowSystem___BlackArrowItemDropTrigger= CreateTrigger() +integer array BlackArrowSystem__BlackArrowAbiliyId +integer array BlackArrowSystem__BlackArrowAbiliyLevel +integer array BlackArrowSystem__BlackArrowAbiliySummonedUnitTypeId +integer array BlackArrowSystem__BlackArrowAbiliySummonedUnitsCount +real array BlackArrowSystem__BlackArrowAbiliySummonedUnitDuration +real array BlackArrowSystem__BlackArrowAbiliyDurationHero +real array BlackArrowSystem__BlackArrowAbiliyDurationUnit +integer array BlackArrowSystem__BlackArrowAbiliyBuffId +integer BlackArrowSystem__BlackArrowAbilityCounter= 1 + +integer array BlackArrowSystem__BlackArrowItemTypeId +integer array BlackArrowSystem__BlackArrowItemTypeAbilityIndex +integer BlackArrowSystem__BlackArrowItemTypeCounter= 1 + +hashtable BlackArrowSystem__BlackArrowHashTable= InitHashtable() +group BlackArrowSystem__BlackArrowTargets= CreateGroup() +group BlackArrowSystem__BlackArrowAutoCasters= CreateGroup() +group BlackArrowSystem__BlackArrowItemUnits= CreateGroup() +trigger BlackArrowSystem__BlackArrowDamageTrigger= CreateTrigger() +trigger BlackArrowSystem__BlackArrowDeathTrigger= CreateTrigger() +trigger BlackArrowSystem__BlackArrowOrderTrigger= CreateTrigger() +trigger BlackArrowSystem__BlackArrowItemPickupTrigger= CreateTrigger() +trigger BlackArrowSystem__BlackArrowItemDropTrigger= CreateTrigger() // callbacks -unit BlackArrowSystem___BlackArrowCaster= null -unit BlackArrowSystem___BlackArrowTarget= null -group BlackArrowSystem___BlackArrowSummonedUnits= null -integer BlackArrowSystem___BlackArrowAbilityId= 0 -trigger array BlackArrowSystem___BlackArrowCallbackTrigger -integer BlackArrowSystem___BlackArrowCallbackTriggerCounter= 0 - -boolean BlackArrowSystem___hookEnabled= true +unit BlackArrowSystem__BlackArrowCaster= null +unit BlackArrowSystem__BlackArrowTarget= null +group BlackArrowSystem__BlackArrowSummonedUnits= null +integer BlackArrowSystem__BlackArrowAbilityId= 0 +trigger array BlackArrowSystem__BlackArrowCallbackTrigger +integer BlackArrowSystem__BlackArrowCallbackTriggerCounter= 0 + +boolean BlackArrowSystem__hookEnabled= true //endglobals from BlackArrowSystem //globals from BookOfFastTravel: constant boolean LIBRARY_BookOfFastTravel=true -unit BookOfFastTravel___tmpCaster= null -unit BookOfFastTravel___tmpTarget= null +unit BookOfFastTravel__tmpCaster= null +unit BookOfFastTravel__tmpTarget= null //endglobals from BookOfFastTravel //globals from BoundSentinel: constant boolean LIBRARY_BoundSentinel=true @@ -73,34 +73,34 @@ constant boolean LIBRARY_BoundSentinel=true // // I think you need 0.0 or soemthing negative prior to patch 1.22 // -constant real BoundSentinel___EXTRA= 500.0 -real BoundSentinel___maxx -real BoundSentinel___maxy -real BoundSentinel___minx -real BoundSentinel___miny +constant real BoundSentinel__EXTRA= 500.0 +real BoundSentinel__maxx +real BoundSentinel__maxy +real BoundSentinel__minx +real BoundSentinel__miny //endglobals from BoundSentinel //globals from CTL: constant boolean LIBRARY_CTL=true -integer CTL___tgc= 0 -integer array CTL___tgr +integer CTL__tgc= 0 +integer array CTL__tgr -integer CTL___ic=0 -integer CTL___tc=0 -integer array CTL___rf -integer array CTL___n -integer array CTL___p -integer array CTL___th -integer array CTL___ns -trigger CTL___t=CreateTrigger() -timer CTL___m=CreateTimer() -triggercondition array CTL___ct -conditionfunc array CTL___rc +integer CTL__ic=0 +integer CTL__tc=0 +integer array CTL__rf +integer array CTL__n +integer array CTL__p +integer array CTL__th +integer array CTL__ns +trigger CTL__t=CreateTrigger() +timer CTL__m=CreateTimer() +triggercondition array CTL__ct +conditionfunc array CTL__rc -boolean array CTL___e32 -integer array CTL___i32r -integer CTL___i32cr= 0 -boolean array CTL___ir32 -boolean array CTL___id32 +boolean array CTL__e32 +integer array CTL__i32r +integer CTL__i32cr= 0 +boolean array CTL__ir32 +boolean array CTL__id32 //endglobals from CTL //globals from CopyGroup: constant boolean LIBRARY_CopyGroup=true @@ -161,7 +161,7 @@ constant boolean LIBRARY_FileIO=true // // This setting is really only intended for those who were already using the system in their map // prior to patch 1.31 and want to keep old files created with this system to still work. -constant boolean FileIO___BACKWARDS_COMPATABILITY= false +constant boolean FileIO__BACKWARDS_COMPATABILITY= false //endglobals from FileIO //globals from FileUtils: constant boolean LIBRARY_FileUtils=true @@ -188,36 +188,36 @@ trigger ForceUtils___leaveTrigger= CreateTrigger() //endglobals from ForceUtils //globals from FrameLoader: constant boolean LIBRARY_FrameLoader=true -trigger FrameLoader___eventTrigger= CreateTrigger() -trigger FrameLoader___actionTrigger= CreateTrigger() -timer FrameLoader___t= CreateTimer() +trigger FrameLoader__eventTrigger= CreateTrigger() +trigger FrameLoader__actionTrigger= CreateTrigger() +timer FrameLoader__t= CreateTimer() //endglobals from FrameLoader //globals from FrameSaver: constant boolean LIBRARY_FrameSaver=true -constant real FrameSaver___DELAY= 5.0 -trigger FrameSaver___saveTrigger= CreateTrigger() -trigger FrameSaver___loadTrigger= CreateTrigger() -trigger FrameSaver___afterSaveTrigger= CreateTrigger() -timer FrameSaver___t= CreateTimer() +constant real FrameSaver__DELAY= 5.0 +trigger FrameSaver__saveTrigger= CreateTrigger() +trigger FrameSaver__loadTrigger= CreateTrigger() +trigger FrameSaver__afterSaveTrigger= CreateTrigger() +timer FrameSaver__t= CreateTimer() //endglobals from FrameSaver //globals from GameStatus: constant boolean LIBRARY_GameStatus=true // The dummy unit is only created once, and removed directly after. -constant integer GameStatus___DUMMY_UNIT_ID= 'hfoo' +constant integer GameStatus__DUMMY_UNIT_ID= 'hfoo' constant integer GAME_STATUS_OFFLINE= 0 constant integer GAME_STATUS_ONLINE= 1 constant integer GAME_STATUS_REPLAY= 2 -integer GameStatus___status= 0 +integer GameStatus__status= 0 //endglobals from GameStatus //globals from GenerateIds: constant boolean LIBRARY_GenerateIds=true // prevent generating the same IDs multiple times -integer array GenerateIds___generatedIds -integer GenerateIds___generatedIdsCounter= 0 +integer array GenerateIds__generatedIds +integer GenerateIds__generatedIdsCounter= 0 -string array GenerateIds___generatedIdsStrings -integer GenerateIds___generatedIdsStringsCounter= 0 +string array GenerateIds__generatedIdsStrings +integer GenerateIds__generatedIdsStringsCounter= 0 //endglobals from GenerateIds //globals from GetSingleSelectedUnit: constant boolean LIBRARY_GetSingleSelectedUnit=true @@ -226,27 +226,27 @@ constant boolean LIBRARY_GetSingleSelectedUnit=true constant boolean LIBRARY_GroupUtils=true //If you don't have xebasic in your map, this value will be used instead. //This value corresponds to the max collision size of a unit in your map. -constant real GroupUtils___MAX_COLLISION_SIZE= 197. +constant real GroupUtils__MAX_COLLISION_SIZE= 197. //If you are insane and don't care about any of the protection involved in //this library, but want this script to be really fast, set this to true. -constant boolean GroupUtils___LESS_SAFETY= false +constant boolean GroupUtils__LESS_SAFETY= false //* Constants that are available to the user group ENUM_GROUP= CreateGroup() boolexpr BOOLEXPR_TRUE= null boolexpr BOOLEXPR_FALSE= null //* Hashtable for debug purposes -hashtable GroupUtils___ht= InitHashtable() +hashtable GroupUtils__ht= InitHashtable() //* Temporary references for GroupRefresh -boolean GroupUtils___Flag= false -group GroupUtils___Refr= null +boolean GroupUtils__Flag= false +group GroupUtils__Refr= null //* Arrays and counter for the group stack -group array GroupUtils___Groups -integer GroupUtils___Count= 0 +group array GroupUtils__Groups +integer GroupUtils__Count= 0 //* Variables for use with the GroupUnitsInArea function -real GroupUtils___X= 0. -real GroupUtils___Y= 0. -real GroupUtils___R= 0. -hashtable GroupUtils___H= InitHashtable() +real GroupUtils__X= 0. +real GroupUtils__Y= 0. +real GroupUtils__R= 0. +hashtable GroupUtils__H= InitHashtable() //endglobals from GroupUtils //globals from HeroUtils: constant boolean LIBRARY_HeroUtils=true @@ -301,36 +301,36 @@ constant integer ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEMPOOL= 1 constant integer ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_LEVEL= 2 constant integer ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_TYPE_AND_LEVEL= 3 -integer ItemRespawnSystem___respawnItemCounter= 0 -integer ItemRespawnSystem___respawnItemFreeIndex= 0 -boolean array ItemRespawnSystem___respawnItemIsValid -integer array ItemRespawnSystem___respawnItemType -item array ItemRespawnSystem___respawnItemItem -integer array ItemRespawnSystem___respawnItemHandleId -integer array ItemRespawnSystem___respawnItemItemTypeId -itempool array ItemRespawnSystem___respawnItemPool -integer array ItemRespawnSystem___respawnItemRandomLevel -itemtype array ItemRespawnSystem___respawnItemRandomType -real array ItemRespawnSystem___respawnItemX -real array ItemRespawnSystem___respawnItemY -timer array ItemRespawnSystem___respawnItemTimer -real array ItemRespawnSystem___respawnItemTimeout -boolean array ItemRespawnSystem___respawnItemEnabled -trigger array ItemRespawnSystem___respawnItemDeathTrigger - -integer ItemRespawnSystem___callbackRespawnTriggersCounter= 0 -trigger array ItemRespawnSystem___callbackRespawnTriggers - -integer ItemRespawnSystem___callbackRespawnStartsTriggersCounter= 0 -trigger array ItemRespawnSystem___callbackRespawnStartsTriggers - -item ItemRespawnSystem___callbackItem= null -integer ItemRespawnSystem___callbackIndex= - 1 - -trigger ItemRespawnSystem___pickupItemTrigger= CreateTrigger() -hashtable ItemRespawnSystem___respawnItemHashTable= InitHashtable() -integer ItemRespawnSystem___evaluateIndex= - 1 -trigger ItemRespawnSystem___refreshEvaluateTrigger= CreateTrigger() +integer ItemRespawnSystem__respawnItemCounter= 0 +integer ItemRespawnSystem__respawnItemFreeIndex= 0 +boolean array ItemRespawnSystem__respawnItemIsValid +integer array ItemRespawnSystem__respawnItemType +item array ItemRespawnSystem__respawnItemItem +integer array ItemRespawnSystem__respawnItemHandleId +integer array ItemRespawnSystem__respawnItemItemTypeId +itempool array ItemRespawnSystem__respawnItemPool +integer array ItemRespawnSystem__respawnItemRandomLevel +itemtype array ItemRespawnSystem__respawnItemRandomType +real array ItemRespawnSystem__respawnItemX +real array ItemRespawnSystem__respawnItemY +timer array ItemRespawnSystem__respawnItemTimer +real array ItemRespawnSystem__respawnItemTimeout +boolean array ItemRespawnSystem__respawnItemEnabled +trigger array ItemRespawnSystem__respawnItemDeathTrigger + +integer ItemRespawnSystem__callbackRespawnTriggersCounter= 0 +trigger array ItemRespawnSystem__callbackRespawnTriggers + +integer ItemRespawnSystem__callbackRespawnStartsTriggersCounter= 0 +trigger array ItemRespawnSystem__callbackRespawnStartsTriggers + +item ItemRespawnSystem__callbackItem= null +integer ItemRespawnSystem__callbackIndex= - 1 + +trigger ItemRespawnSystem__pickupItemTrigger= CreateTrigger() +hashtable ItemRespawnSystem__respawnItemHashTable= InitHashtable() +integer ItemRespawnSystem__evaluateIndex= - 1 +trigger ItemRespawnSystem__refreshEvaluateTrigger= CreateTrigger() //endglobals from ItemRespawnSystem //globals from ItemTypeUtils: constant boolean LIBRARY_ItemTypeUtils=true @@ -357,7 +357,7 @@ constant boolean LIBRARY_LineSegmentEnumeration=true //endglobals from LineSegmentEnumeration //globals from LinkedList: constant boolean LIBRARY_LinkedList=true -constant boolean LinkedList___THROW_ERRORS= true +constant boolean LinkedList__THROW_ERRORS= true //endglobals from LinkedList //globals from ListModule: constant boolean LIBRARY_ListModule=true @@ -368,16 +368,16 @@ constant boolean LIBRARY_LocationUtils=true //globals from MaxItemStacks: constant boolean LIBRARY_MaxItemStacks=true // This dummy is created and hidden once only if CHECK_MAX_STACKS is set to true. It requires an inventory with at least 2 slots. -constant integer MaxItemStacks___DUMMY_UNIT_TYPE_MAX_CHECKS= 'Hpal' +constant integer MaxItemStacks__DUMMY_UNIT_TYPE_MAX_CHECKS= 'Hpal' // Warcraft III has a limit of number of stacks for the field "Stats - Max Stacks" ('ista'). -constant integer MaxItemStacks___MAX_STACKS_ALLOWED= 1000 -constant real MaxItemStacks___DUMMY_X= 0.0 -constant real MaxItemStacks___DUMMY_Y= 0.0 - -integer MaxItemStacks___stackCounter= 0 -hashtable MaxItemStacks___stackHashTable= InitHashtable() -unit MaxItemStacks___stackItemDummy= null -trigger MaxItemStacks___stackItemTrigger= CreateTrigger() +constant integer MaxItemStacks__MAX_STACKS_ALLOWED= 1000 +constant real MaxItemStacks__DUMMY_X= 0.0 +constant real MaxItemStacks__DUMMY_Y= 0.0 + +integer MaxItemStacks__stackCounter= 0 +hashtable MaxItemStacks__stackHashTable= InitHashtable() +unit MaxItemStacks__stackItemDummy= null +trigger MaxItemStacks__stackItemTrigger= CreateTrigger() //endglobals from MaxItemStacks //globals from MouseUtils: constant boolean LIBRARY_MouseUtils=true @@ -389,11 +389,11 @@ constant integer EVENT_MOUSE_MOVE= 0xC00 // private constant real STARTUP_DELAY = 0.00 // private constant boolean NO_DELAY = false // Introduced in v1.0.2.2 -constant boolean MouseUtils___IMPL_LOCK= true +constant boolean MouseUtils__IMPL_LOCK= true //endglobals from MouseUtils //globals from OnStartGame: constant boolean LIBRARY_OnStartGame=true -trigger OnStartGame___startGameTrigger= CreateTrigger() +trigger OnStartGame__startGameTrigger= CreateTrigger() //endglobals from OnStartGame //globals from OpLimit: constant boolean LIBRARY_OpLimit=true @@ -416,7 +416,7 @@ constant integer Reflection_BASE_CHANCE= 30 constant integer Reflection_LEVEL_CHANCE= 10 constant integer Reflection_BASE_PERCENTAGE= 100 constant integer Reflection_LEVEL_PERCENTAGE= 0 -trigger Reflection___damageTrigger= CreateTrigger() +trigger Reflection__damageTrigger= CreateTrigger() //endglobals from Reflection //globals from RegisterPlayerUnitEvent: constant boolean LIBRARY_RegisterPlayerUnitEvent=true @@ -424,7 +424,7 @@ trigger array RegisterPlayerUnitEvent___t //endglobals from RegisterPlayerUnitEvent //globals from SimError: constant boolean LIBRARY_SimError=true -sound SimError___error +sound SimError__error //endglobals from SimError //globals from SoundUtils: constant boolean LIBRARY_SoundUtils=true @@ -439,17 +439,17 @@ integer Table___more= 8190 //Configure it if you use more than 8190 "key" variables in your map (this will never happen though). hashtable Table___ht= InitHashtable() -constant integer Table___sizeK=6 -constant integer Table___listK=8 +constant integer Table___sizeK=8 +constant integer Table___listK=9 //endglobals from Table //globals from TerrainPathability: constant boolean LIBRARY_TerrainPathability=true -constant real TerrainPathability___MAX_RANGE= 10. -constant integer TerrainPathability___DUMMY_ITEM_ID= 'wolg' -item TerrainPathability___Item= null -rect TerrainPathability___Find= null -item array TerrainPathability___Hid -integer TerrainPathability___HidMax= 0 +constant real TerrainPathability__MAX_RANGE= 10. +constant integer TerrainPathability__DUMMY_ITEM_ID= 'wolg' +item TerrainPathability__Item= null +rect TerrainPathability__Find= null +item array TerrainPathability__Hid +integer TerrainPathability__HidMax= 0 real TerrainPathability_X= 0. real TerrainPathability_Y= 0. //endglobals from TerrainPathability @@ -529,8 +529,8 @@ constant integer VILLAGE_TREE_WALL= 'VTlt' constant integer FALL_TREE_WALL= 'FTtw' constant integer SCORCHED_TREE_WALL= 'Ytsc' constant integer SILVERMOON_TREE= 'Yts1' -integer array TreeUtils___ids -integer TreeUtils___count= 0 +integer array TreeUtils__ids +integer TreeUtils__count= 0 //endglobals from TreeUtils //globals from TurretSystemConfig: constant boolean LIBRARY_TurretSystemConfig=true @@ -576,16 +576,16 @@ constant integer VILLAGER_255_ANIMATION_ATTACK_MINIGUN= 12 constant integer VILLAGER_255_ANIMATION_ATTACK_TWO_HAND= 13 constant integer VILLAGER_255_ANIMATION_ATTACK_SHOOT_GUN= 14 -integer array Villager255___animations -integer Villager255___animationsCounter= 0 +integer array Villager255__animations +integer Villager255__animationsCounter= 0 //endglobals from Villager255 //globals from WallsSystem: constant boolean LIBRARY_WallsSystem=true -trigger WallsSystem___deathTrigger= CreateTrigger() +trigger WallsSystem__deathTrigger= CreateTrigger() //endglobals from WallsSystem //globals from WallsSystemAir: constant boolean LIBRARY_WallsSystemAir=true -trigger WallsSystemAir___deathTrigger= CreateTrigger() +trigger WallsSystemAir__deathTrigger= CreateTrigger() //endglobals from WallsSystemAir //globals from WeatherEffectUtils: constant boolean LIBRARY_WeatherEffectUtils=true @@ -783,27 +783,27 @@ constant boolean LIBRARY_WoWReforgedUpdateSkillUIEvaluate=true //endglobals from WoWReforgedUpdateSkillUIEvaluate //globals from WoWReforgedUrlUi: constant boolean LIBRARY_WoWReforgedUrlUi=true -constant real WoWReforgedUrlUi___X= 0.26 -constant real WoWReforgedUrlUi___Y= 0.45 -constant real WoWReforgedUrlUi___UI_SIZE_X= 0.55 -constant real WoWReforgedUrlUi___UI_SIZE_Y= 0.15 -constant real WoWReforgedUrlUi___UI_TITLE_Y= 0.42 -constant real WoWReforgedUrlUi___UI_TITLE_HEIGHT= 0.1 -constant real WoWReforgedUrlUi___UI_LINEEDIT_X= 0.31 -constant real WoWReforgedUrlUi___UI_LINEEDIT_Y= 0.40 -constant real WoWReforgedUrlUi___UI_LINEEDIT_WIDTH= 0.2 -constant real WoWReforgedUrlUi___UI_LINE_START_Y= 0.528122 -constant real WoWReforgedUrlUi___UI_LINE_HEIGHT= 0.03 -constant real WoWReforgedUrlUi___UI_CLOSE_BUTTON_X= 0.35 -constant real WoWReforgedUrlUi___UI_CLOSE_BUTTON_Y= 0.36 -constant real WoWReforgedUrlUi___UI_CLOSE_BUTTON_WIDTH= 0.12 -constant real WoWReforgedUrlUi___UI_CLOSE_BUTTON_HEIGHT= 0.03 - -framehandle WoWReforgedUrlUi___BackgroundFrame -framehandle WoWReforgedUrlUi___TitleFrame -framehandle WoWReforgedUrlUi___EditBox -framehandle WoWReforgedUrlUi___CloseButton -trigger WoWReforgedUrlUi___CloseTrigger +constant real WoWReforgedUrlUi__X= 0.26 +constant real WoWReforgedUrlUi__Y= 0.45 +constant real WoWReforgedUrlUi__UI_SIZE_X= 0.55 +constant real WoWReforgedUrlUi__UI_SIZE_Y= 0.15 +constant real WoWReforgedUrlUi__UI_TITLE_Y= 0.42 +constant real WoWReforgedUrlUi__UI_TITLE_HEIGHT= 0.1 +constant real WoWReforgedUrlUi__UI_LINEEDIT_X= 0.31 +constant real WoWReforgedUrlUi__UI_LINEEDIT_Y= 0.40 +constant real WoWReforgedUrlUi__UI_LINEEDIT_WIDTH= 0.2 +constant real WoWReforgedUrlUi__UI_LINE_START_Y= 0.528122 +constant real WoWReforgedUrlUi__UI_LINE_HEIGHT= 0.03 +constant real WoWReforgedUrlUi__UI_CLOSE_BUTTON_X= 0.35 +constant real WoWReforgedUrlUi__UI_CLOSE_BUTTON_Y= 0.36 +constant real WoWReforgedUrlUi__UI_CLOSE_BUTTON_WIDTH= 0.12 +constant real WoWReforgedUrlUi__UI_CLOSE_BUTTON_HEIGHT= 0.03 + +framehandle WoWReforgedUrlUi__BackgroundFrame +framehandle WoWReforgedUrlUi__TitleFrame +framehandle WoWReforgedUrlUi__EditBox +framehandle WoWReforgedUrlUi__CloseButton +trigger WoWReforgedUrlUi__CloseTrigger //endglobals from WoWReforgedUrlUi //globals from WorldBounds: constant boolean LIBRARY_WorldBounds=true @@ -819,18 +819,18 @@ constant boolean LIBRARY_CooldownReduction=true //endglobals from CooldownReduction //globals from CustomConsoleUI: constant boolean LIBRARY_CustomConsoleUI=true -framehandle CustomConsoleUI___idleWorkerButton -framehandle CustomConsoleUI___idleWorkerButtonOverlay -framehandle CustomConsoleUI___idleWorkerButtonOverlayParent -framehandle CustomConsoleUI___customInventoryCover -framehandle CustomConsoleUI___customInventoryCoverParent +framehandle CustomConsoleUI__idleWorkerButton +framehandle CustomConsoleUI__idleWorkerButtonOverlay +framehandle CustomConsoleUI__idleWorkerButtonOverlayParent +framehandle CustomConsoleUI__customInventoryCover +framehandle CustomConsoleUI__customInventoryCoverParent string array CustomConsoleUI_data integer array CustomConsoleUI_dataCount -integer CustomConsoleUI___dataPageSize= 11 +integer CustomConsoleUI__dataPageSize= 11 real array CustomConsoleUI_x real array CustomConsoleUI_y // workerFace = true can only be used when you save the map in 1.32.6+ -constant boolean CustomConsoleUI___workerFace= true +constant boolean CustomConsoleUI__workerFace= true //endglobals from CustomConsoleUI //globals from DamageInterface: constant boolean LIBRARY_DamageInterface=true @@ -866,12 +866,12 @@ constant boolean LIBRARY_FormatTimeUtils=true //endglobals from FormatTimeUtils //globals from GetMainSelectedUnit: constant boolean LIBRARY_GetMainSelectedUnit=true -framehandle GetMainSelectedUnit___containerFrame -framehandle array GetMainSelectedUnit___frames -group GetMainSelectedUnit___Group= CreateGroup() -unit array GetMainSelectedUnit___units -integer GetMainSelectedUnit___unitsCount= 0 -filterfunc GetMainSelectedUnit___filter +framehandle GetMainSelectedUnit__containerFrame +framehandle array GetMainSelectedUnit__frames +group GetMainSelectedUnit__Group= CreateGroup() +unit array GetMainSelectedUnit__units +integer GetMainSelectedUnit__unitsCount= 0 +filterfunc GetMainSelectedUnit__filter //endglobals from GetMainSelectedUnit //globals from HeroAbilitySystem: constant boolean LIBRARY_HeroAbilitySystem=true @@ -881,18 +881,18 @@ hashtable HeroAbilitySystem___HeroAbilitiesMaximumLevelHashTable= InitHashtable( //globals from ItemUnstackSystem: constant boolean LIBRARY_ItemUnstackSystem=true // The number of charges which are unstacked at maximum if available. -constant integer ItemUnstackSystem___MAX_UNSTACKED_CHARGES= 1 +constant integer ItemUnstackSystem__MAX_UNSTACKED_CHARGES= 1 // Overwrites the previous value if set to true. It always unstacks the half of charges. For uneven numbers it will unstack the lower value. For example, for 3 it will unstack 1 charge. -constant boolean ItemUnstackSystem___UNSTACK_HALF_CHARGES= false +constant boolean ItemUnstackSystem__UNSTACK_HALF_CHARGES= false // Unstacking an item can be moved to the next slot if it has the same item type and stack with it. -constant boolean ItemUnstackSystem___ALLOW_STACKING_NEXT_ITEM= true +constant boolean ItemUnstackSystem__ALLOW_STACKING_NEXT_ITEM= true // This option only has an effect is ALLOW_STACKING_NEXT_ITEM is true. The unstacked item might be stacked to an item in a previous slot in the inventory if this option is true. -constant boolean ItemUnstackSystem___STACKING_NEXT_ITEM_FROM_START= true +constant boolean ItemUnstackSystem__STACKING_NEXT_ITEM_FROM_START= true // Checks for the maximum possible stacks for every item type. Otherwise, ItemUnstackItemGetMaxStacks is used. -constant boolean ItemUnstackSystem___CHECK_MAX_STACKS= true +constant boolean ItemUnstackSystem__CHECK_MAX_STACKS= true -trigger ItemUnstackSystem___orderTrigger= CreateTrigger() -group ItemUnstackSystem___disabledUnits= CreateGroup() +trigger ItemUnstackSystem__orderTrigger= CreateTrigger() +group ItemUnstackSystem__disabledUnits= CreateGroup() //endglobals from ItemUnstackSystem //globals from Jump: constant boolean LIBRARY_Jump=true @@ -1080,22 +1080,6 @@ constant integer Stupidity_BUFF_ABILITY_ID= 'A16X' hashtable Stupidity___h= InitHashtable() group Stupidity___targets= CreateGroup() //endglobals from Stupidity -//globals from Taunts: -constant boolean LIBRARY_Taunts=true -hashtable Taunts___h= InitHashtable() - -trigger Taunts___TauntsEnableChatTrigger= CreateTrigger() -trigger Taunts___TauntsDisableChatTrigger= CreateTrigger() -trigger Taunts___TauntsListChatTrigger= CreateTrigger() - -boolean array Taunts___TauntsEnabled - -integer Taunts___TauntsCount= 0 -string array Taunts___TauntChatCommands -string array Taunts___TauntTexts -sound array Taunts___TauntSounds -trigger array Taunts___TauntsChatTrigger -//endglobals from Taunts //globals from Tenacity: constant boolean LIBRARY_Tenacity=true //endglobals from Tenacity @@ -1373,10 +1357,10 @@ constant boolean LIBRARY_GetMainSelectedUnitForPlayer=true constant real GetMainSelectedUnitForPlayer_SYNC_INTERVAL= 0.01 constant string GetMainSelectedUnitForPlayer_PREFIX= "GetSelectedUnitIndex" -timer GetMainSelectedUnitForPlayer___syncTimer= CreateTimer() -trigger GetMainSelectedUnitForPlayer___syncTrigger= CreateTrigger() +timer GetMainSelectedUnitForPlayer__syncTimer= CreateTimer() +trigger GetMainSelectedUnitForPlayer__syncTrigger= CreateTrigger() -integer array GetMainSelectedUnitForPlayer___syncGetSelectedUnitIndex +integer array GetMainSelectedUnitForPlayer__syncGetSelectedUnitIndex //endglobals from GetMainSelectedUnitForPlayer //globals from LifeSteal: constant boolean LIBRARY_LifeSteal=true @@ -1389,18 +1373,18 @@ constant boolean LOG_CINEMATIC_TRANSMISSIONS= true constant boolean REMOVE_STARTING_EMPTY_LINES= true constant integer LOG_MAXIMUM= 5000 -constant string Log___TRIGSTR_PREFIX= "TRIGSTR" -string array Log___log -integer array Log___logCounter -boolean array Log___logEnabled -integer array Log___logMaximum - -trigger array Log___callbackTriggers -integer Log___callbackTriggersCounter= 0 -player Log___triggerLogPlayer= null -string Log___triggerLogMessage= null - -string Log___tmpMessage= null +constant string Log__TRIGSTR_PREFIX= "TRIGSTR" +string array Log__log +integer array Log__logCounter +boolean array Log__logEnabled +integer array Log__logMaximum + +trigger array Log__callbackTriggers +integer Log__callbackTriggersCounter= 0 +player Log__triggerLogPlayer= null +string Log__triggerLogMessage= null + +string Log__tmpMessage= null //endglobals from Log //globals from Missiles: constant boolean LIBRARY_Missiles=true @@ -1542,6 +1526,22 @@ constant boolean LIBRARY_SpellPower=true //globals from SpellVamp: constant boolean LIBRARY_SpellVamp=true //endglobals from SpellVamp +//globals from Taunts: +constant boolean LIBRARY_Taunts=true +hashtable Taunts___h= InitHashtable() + +trigger Taunts___TauntsEnableChatTrigger= CreateTrigger() +trigger Taunts___TauntsDisableChatTrigger= CreateTrigger() +trigger Taunts___TauntsListChatTrigger= CreateTrigger() + +boolean array Taunts___TauntsEnabled + +integer Taunts___TauntsCount= 0 +string array Taunts___TauntChatCommands +string array Taunts___TauntTexts +sound array Taunts___TauntSounds +trigger array Taunts___TauntsChatTrigger +//endglobals from Taunts //globals from TenacityUtils: constant boolean LIBRARY_TenacityUtils=true //endglobals from TenacityUtils @@ -1771,9 +1771,6 @@ constant boolean LIBRARY_WoWReforgedProspector=true integer array WoWReforgedProspector__goldItemTypeIds integer WoWReforgedProspector__goldItemTypeIdsCounter= 0 //endglobals from WoWReforgedProspector -//globals from WoWReforgedTaunts: -constant boolean LIBRARY_WoWReforgedTaunts=true -//endglobals from WoWReforgedTaunts //globals from AStructCoreInterfaceThirdPersonCamera: constant boolean LIBRARY_AStructCoreInterfaceThirdPersonCamera=true //endglobals from AStructCoreInterfaceThirdPersonCamera @@ -2000,12 +1997,12 @@ constant real LogUI_CLOSE_BUTTON_HEIGHT= 0.035 constant real LogUI_CLOSE_BUTTON_X= LogUI_FULLSCREEN_WIDTH / 2.0 - ( LogUI_CLOSE_BUTTON_WIDTH / 2.0 ) constant real LogUI_CLOSE_BUTTON_Y= LogUI_TEXT_AREA_Y - LogUI_TEXT_AREA_HEIGHT - LogUI_TEXT_AREA_SPACE -framehandle LogUI___BackgroundFrame -framehandle LogUI___TextAreaFrame +framehandle LogUI__BackgroundFrame +framehandle LogUI__TextAreaFrame -trigger LogUI___closeTrigger -trigger LogUI___chatCommandTrigger= CreateTrigger() -trigger LogUI___logTrigger= CreateTrigger() +trigger LogUI__closeTrigger +trigger LogUI__chatCommandTrigger= CreateTrigger() +trigger LogUI__logTrigger= CreateTrigger() //endglobals from LogUI //globals from MathUtils: constant boolean LIBRARY_MathUtils=true @@ -2260,6 +2257,9 @@ trigger WoWReforgedLevels___sellTrigger= CreateTrigger() constant boolean LIBRARY_WoWReforgedRandomCorpse=true constant integer WoWReforgedRandomCorpse_UNIT_TYPE_ID= 'n0NK' //endglobals from WoWReforgedRandomCorpse +//globals from WoWReforgedTaunts: +constant boolean LIBRARY_WoWReforgedTaunts=true +//endglobals from WoWReforgedTaunts //globals from WoWReforgedVotes: constant boolean LIBRARY_WoWReforgedVotes=true //endglobals from WoWReforgedVotes @@ -2335,7 +2335,7 @@ constant boolean NewBonus_EXTENDED= true // This is the maximum recursion limit allowed by the system. // It's value must be greater than or equal to 0. When equal to 0 // no recursion is allowed. Values too big can cause screen freezes. -constant integer NewBonus___RECURSION_LIMIT= 8 +constant integer NewBonus__RECURSION_LIMIT= 8 //The bonus types constant integer BONUS_DAMAGE= 1 @@ -2369,39 +2369,39 @@ constant integer BONUS_TENACITY_OFFSET= 27 //The abilities codes for each bonus //When pasting the abilities over to your map //their raw code should match the bonus here -constant integer NewBonus___DAMAGE_ABILITY= 'Z001' -constant integer NewBonus___ARMOR_ABILITY= 'Z002' -constant integer NewBonus___STATS_ABILITY= 'Z003' -constant integer NewBonus___HEALTH_ABILITY= 'Z004' -constant integer NewBonus___MANA_ABILITY= 'Z005' -constant integer NewBonus___HEALTHREGEN_ABILITY= 'Z006' -constant integer NewBonus___MANAREGEN_ABILITY= 'Z007' -constant integer NewBonus___ATTACKSPEED_ABILITY= 'Z008' -constant integer NewBonus___MOVEMENTSPEED_ABILITY= 'Z009' -constant integer NewBonus___SIGHT_RANGE_ABILITY= 'Z00A' -constant integer NewBonus___MAGIC_RESISTANCE_ABILITY= 'Z00B' -constant integer NewBonus___CRITICAL_STRIKE_ABILITY= 'Z00C' -constant integer NewBonus___EVASION_ABILITY= 'Z00D' -constant integer NewBonus___LIFE_STEAL_ABILITY= 'Z00E' +constant integer NewBonus__DAMAGE_ABILITY= 'Z001' +constant integer NewBonus__ARMOR_ABILITY= 'Z002' +constant integer NewBonus__STATS_ABILITY= 'Z003' +constant integer NewBonus__HEALTH_ABILITY= 'Z004' +constant integer NewBonus__MANA_ABILITY= 'Z005' +constant integer NewBonus__HEALTHREGEN_ABILITY= 'Z006' +constant integer NewBonus__MANAREGEN_ABILITY= 'Z007' +constant integer NewBonus__ATTACKSPEED_ABILITY= 'Z008' +constant integer NewBonus__MOVEMENTSPEED_ABILITY= 'Z009' +constant integer NewBonus__SIGHT_RANGE_ABILITY= 'Z00A' +constant integer NewBonus__MAGIC_RESISTANCE_ABILITY= 'Z00B' +constant integer NewBonus__CRITICAL_STRIKE_ABILITY= 'Z00C' +constant integer NewBonus__EVASION_ABILITY= 'Z00D' +constant integer NewBonus__LIFE_STEAL_ABILITY= 'Z00E' //The abilities fields that are modified. For the sake of readability -constant abilityintegerlevelfield NewBonus___DAMAGE_FIELD= ABILITY_ILF_ATTACK_BONUS -constant abilityintegerlevelfield NewBonus___ARMOR_FIELD= ABILITY_ILF_DEFENSE_BONUS_IDEF -constant abilityintegerlevelfield NewBonus___AGILITY_FIELD= ABILITY_ILF_AGILITY_BONUS -constant abilityintegerlevelfield NewBonus___STRENGTH_FIELD= ABILITY_ILF_STRENGTH_BONUS_ISTR -constant abilityintegerlevelfield NewBonus___INTELLIGENCE_FIELD= ABILITY_ILF_INTELLIGENCE_BONUS -constant abilityintegerlevelfield NewBonus___HEALTH_FIELD= ABILITY_ILF_MAX_LIFE_GAINED -constant abilityintegerlevelfield NewBonus___MANA_FIELD= ABILITY_ILF_MAX_MANA_GAINED -constant abilityintegerlevelfield NewBonus___MOVEMENTSPEED_FIELD= ABILITY_ILF_MOVEMENT_SPEED_BONUS -constant abilityintegerlevelfield NewBonus___SIGHT_RANGE_FIELD= ABILITY_ILF_SIGHT_RANGE_BONUS -constant abilityreallevelfield NewBonus___HEALTHREGEN_FIELD= ABILITY_RLF_AMOUNT_OF_HIT_POINTS_REGENERATED -constant abilityreallevelfield NewBonus___MANAREGEN_FIELD= ABILITY_RLF_AMOUNT_REGENERATED -constant abilityreallevelfield NewBonus___ATTACKSPEED_FIELD= ABILITY_RLF_ATTACK_SPEED_INCREASE_ISX1 -constant abilityreallevelfield NewBonus___MAGIC_RESISTANCE_FIELD= ABILITY_RLF_DAMAGE_REDUCTION_ISR2 -constant abilityreallevelfield NewBonus___CRITICAL_CHANCE_FIELD= ABILITY_RLF_CHANCE_TO_CRITICAL_STRIKE -constant abilityreallevelfield NewBonus___CRITICAL_DAMAGE_FIELD= ABILITY_RLF_DAMAGE_MULTIPLIER_OCR2 -constant abilityreallevelfield NewBonus___EVASION_FIELD= ABILITY_RLF_CHANCE_TO_EVADE_EEV1 -constant abilityreallevelfield NewBonus___LIFE_STEAL_FIELD= ABILITY_RLF_LIFE_STOLEN_PER_ATTACK +constant abilityintegerlevelfield NewBonus__DAMAGE_FIELD= ABILITY_ILF_ATTACK_BONUS +constant abilityintegerlevelfield NewBonus__ARMOR_FIELD= ABILITY_ILF_DEFENSE_BONUS_IDEF +constant abilityintegerlevelfield NewBonus__AGILITY_FIELD= ABILITY_ILF_AGILITY_BONUS +constant abilityintegerlevelfield NewBonus__STRENGTH_FIELD= ABILITY_ILF_STRENGTH_BONUS_ISTR +constant abilityintegerlevelfield NewBonus__INTELLIGENCE_FIELD= ABILITY_ILF_INTELLIGENCE_BONUS +constant abilityintegerlevelfield NewBonus__HEALTH_FIELD= ABILITY_ILF_MAX_LIFE_GAINED +constant abilityintegerlevelfield NewBonus__MANA_FIELD= ABILITY_ILF_MAX_MANA_GAINED +constant abilityintegerlevelfield NewBonus__MOVEMENTSPEED_FIELD= ABILITY_ILF_MOVEMENT_SPEED_BONUS +constant abilityintegerlevelfield NewBonus__SIGHT_RANGE_FIELD= ABILITY_ILF_SIGHT_RANGE_BONUS +constant abilityreallevelfield NewBonus__HEALTHREGEN_FIELD= ABILITY_RLF_AMOUNT_OF_HIT_POINTS_REGENERATED +constant abilityreallevelfield NewBonus__MANAREGEN_FIELD= ABILITY_RLF_AMOUNT_REGENERATED +constant abilityreallevelfield NewBonus__ATTACKSPEED_FIELD= ABILITY_RLF_ATTACK_SPEED_INCREASE_ISX1 +constant abilityreallevelfield NewBonus__MAGIC_RESISTANCE_FIELD= ABILITY_RLF_DAMAGE_REDUCTION_ISR2 +constant abilityreallevelfield NewBonus__CRITICAL_CHANCE_FIELD= ABILITY_RLF_CHANCE_TO_CRITICAL_STRIKE +constant abilityreallevelfield NewBonus__CRITICAL_DAMAGE_FIELD= ABILITY_RLF_DAMAGE_MULTIPLIER_OCR2 +constant abilityreallevelfield NewBonus__EVASION_FIELD= ABILITY_RLF_CHANCE_TO_EVADE_EEV1 +constant abilityreallevelfield NewBonus__LIFE_STEAL_FIELD= ABILITY_RLF_LIFE_STOLEN_PER_ATTACK //endglobals from NewBonus //globals from Parry: constant boolean LIBRARY_Parry=true @@ -2433,12 +2433,12 @@ constant integer DIRECTION_NORTH_WEST= 5 constant integer DIRECTION_SOUTH_WEST= 6 constant integer DIRECTION_SOUTH_EAST= 7 -hashtable Railway___h= InitHashtable() -constant integer Railway___KEY_POSITION= 0 -constant integer Railway___KEY_STATION= 1 -trigger Railway___enterTrigger= CreateTrigger() -trigger Railway___enterStationTrigger= CreateTrigger() -trigger Railway___leaveStationTrigger= CreateTrigger() +hashtable Railway__h= InitHashtable() +constant integer Railway__KEY_POSITION= 0 +constant integer Railway__KEY_STATION= 1 +trigger Railway__enterTrigger= CreateTrigger() +trigger Railway__enterStationTrigger= CreateTrigger() +trigger Railway__leaveStationTrigger= CreateTrigger() //endglobals from Railway //globals from RayConfig: constant boolean LIBRARY_RayConfig=true @@ -2482,7 +2482,7 @@ constant integer RayConfig_BUFF_ID_FROST= 'B03Q' constant integer RayConfig_BUFF_ID_FIRE= 'Bliq' constant integer RayConfig_BUFF_ID_WIND= 'Bcyc' constant integer RayConfig_BUFF_ID_POISON= 'Bpoi' -hashtable RayConfig___h= InitHashtable() +hashtable RayConfig__h= InitHashtable() constant real RayConfig_MANA_COST_PER_SECOND= 10.0 //endglobals from RayConfig @@ -2697,14 +2697,14 @@ constant boolean LIBRARY_HighElfDiurnal=true //endglobals from HighElfDiurnal //globals from WoWReforgedOldHorde: constant boolean LIBRARY_WoWReforgedOldHorde=true -trigger WoWReforgedOldHorde___deathResourceTrigger= CreateTrigger() +trigger WoWReforgedOldHorde__deathResourceTrigger= CreateTrigger() integer array playerRefineryCounters integer array playerTrollLumberMillCounters -hashtable WoWReforgedOldHorde___h= InitHashtable() -group WoWReforgedOldHorde___deathCoilDummies= CreateGroup() -trigger WoWReforgedOldHorde___damageTrigger= CreateTrigger() -trigger WoWReforgedOldHorde___summonTrigger= CreateTrigger() -trigger WoWReforgedOldHorde___deathTrigger= CreateTrigger() +hashtable WoWReforgedOldHorde__h= InitHashtable() +group WoWReforgedOldHorde__deathCoilDummies= CreateGroup() +trigger WoWReforgedOldHorde__damageTrigger= CreateTrigger() +trigger WoWReforgedOldHorde__summonTrigger= CreateTrigger() +trigger WoWReforgedOldHorde__deathTrigger= CreateTrigger() //endglobals from WoWReforgedOldHorde //globals from WorgenNocturnal: constant boolean LIBRARY_WorgenNocturnal=true @@ -3372,9 +3372,9 @@ integer WoWReforgedStats__currentRow= 1 //endglobals from WoWReforgedStats //globals from CinematicsRaces: constant boolean LIBRARY_CinematicsRaces=true -player CinematicsRaces___owner= Player(0) -integer CinematicsRaces___currentRace= 0 -group CinematicsRaces___whichGroup= CreateGroup() +player CinematicsRaces__owner= Player(0) +integer CinematicsRaces__currentRace= 0 +group CinematicsRaces__whichGroup= CreateGroup() //endglobals from CinematicsRaces //globals from SaveCodeObjectSystem: constant boolean LIBRARY_SaveCodeObjectSystem=true @@ -3693,6 +3693,7 @@ integer christmas= 0 integer newyear= 0 integer thanksgiving= 0 integer halloween= 0 +integer carnival= 0 //endglobals from WoWReforgedCalendar //globals from WoWReforgedComputer: constant boolean LIBRARY_WoWReforgedComputer=true @@ -3985,14 +3986,14 @@ trigger WoWReforgedArmory___summonTrigger= CreateTrigger() //endglobals from WoWReforgedArmory //globals from WoWReforgedCheatsSaveCodes: constant boolean LIBRARY_WoWReforgedCheatsSaveCodes=true -player WoWReforgedCheatsSaveCodes___generateSaveCodePlayer -string WoWReforgedCheatsSaveCodes___generateSaveCodePlayerName -boolean WoWReforgedCheatsSaveCodes___generateSaveCodeSinglePlayer -boolean WoWReforgedCheatsSaveCodes___generateSaveCodeWarlord -integer WoWReforgedCheatsSaveCodes___generateSaveCodeXpRate - -boolean WoWReforgedCheatsSaveCodes___generateSaveCodeClanSinglePlayer -string WoWReforgedCheatsSaveCodes___generateSaveCodeClanPlayerName +player WoWReforgedCheatsSaveCodes__generateSaveCodePlayer +string WoWReforgedCheatsSaveCodes__generateSaveCodePlayerName +boolean WoWReforgedCheatsSaveCodes__generateSaveCodeSinglePlayer +boolean WoWReforgedCheatsSaveCodes__generateSaveCodeWarlord +integer WoWReforgedCheatsSaveCodes__generateSaveCodeXpRate + +boolean WoWReforgedCheatsSaveCodes__generateSaveCodeClanSinglePlayer +string WoWReforgedCheatsSaveCodes__generateSaveCodeClanPlayerName //endglobals from WoWReforgedCheatsSaveCodes //globals from WoWReforgedPrestoredSaveCodes: constant boolean LIBRARY_WoWReforgedPrestoredSaveCodes=true @@ -4084,185 +4085,185 @@ constant boolean LIBRARY_WoWReforgedPlayerInfos=true //endglobals from WoWReforgedPlayerInfos //globals from WoWReforgedSaveCodeUI: constant boolean LIBRARY_WoWReforgedSaveCodeUI=true -constant real WoWReforgedSaveCodeUI___LABEL_X= 0.03 -constant real WoWReforgedSaveCodeUI___LABEL_WIDTH= 0.058018 +constant real WoWReforgedSaveCodeUI__LABEL_X= 0.03 +constant real WoWReforgedSaveCodeUI__LABEL_WIDTH= 0.058018 -constant real WoWReforgedSaveCodeUI___COLUMN_SPACING= 0.002 +constant real WoWReforgedSaveCodeUI__COLUMN_SPACING= 0.002 -constant real WoWReforgedSaveCodeUI___INDEX_X= WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH + WoWReforgedSaveCodeUI___COLUMN_SPACING -constant real WoWReforgedSaveCodeUI___INDEX_WIDTH= 0.04 +constant real WoWReforgedSaveCodeUI__INDEX_X= WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH + WoWReforgedSaveCodeUI__COLUMN_SPACING +constant real WoWReforgedSaveCodeUI__INDEX_WIDTH= 0.04 -constant real WoWReforgedSaveCodeUI___BUTTON_UP_X= WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH + WoWReforgedSaveCodeUI___COLUMN_SPACING -constant real WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH= 0.02 +constant real WoWReforgedSaveCodeUI__BUTTON_UP_X= WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH + WoWReforgedSaveCodeUI__COLUMN_SPACING +constant real WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH= 0.02 -constant real WoWReforgedSaveCodeUI___BUTTON_DOWN_X= WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH + WoWReforgedSaveCodeUI___COLUMN_SPACING -constant real WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH= 0.02 +constant real WoWReforgedSaveCodeUI__BUTTON_DOWN_X= WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH + WoWReforgedSaveCodeUI__COLUMN_SPACING +constant real WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH= 0.02 -constant real WoWReforgedSaveCodeUI___LINEEDIT_X= WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH + WoWReforgedSaveCodeUI___COLUMN_SPACING -constant real WoWReforgedSaveCodeUI___LINEEDIT_WIDTH= 0.30 +constant real WoWReforgedSaveCodeUI__LINEEDIT_X= WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH + WoWReforgedSaveCodeUI__COLUMN_SPACING +constant real WoWReforgedSaveCodeUI__LINEEDIT_WIDTH= 0.30 -constant real WoWReforgedSaveCodeUI___UPDATE_BUTTON_X= WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH + WoWReforgedSaveCodeUI___COLUMN_SPACING -constant real WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH= 0.060 +constant real WoWReforgedSaveCodeUI__UPDATE_BUTTON_X= WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH + WoWReforgedSaveCodeUI__COLUMN_SPACING +constant real WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH= 0.060 -constant real WoWReforgedSaveCodeUI___LOAD_BUTTON_X= WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH + WoWReforgedSaveCodeUI___COLUMN_SPACING -constant real WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH= 0.060 +constant real WoWReforgedSaveCodeUI__LOAD_BUTTON_X= WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH + WoWReforgedSaveCodeUI__COLUMN_SPACING +constant real WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH= 0.060 -constant real WoWReforgedSaveCodeUI___LOAD_AUTO_BUTTON_X= 0.3 -constant real WoWReforgedSaveCodeUI___LOAD_AUTO_BUTTON_WIDTH= 0.066 +constant real WoWReforgedSaveCodeUI__LOAD_AUTO_BUTTON_X= 0.3 +constant real WoWReforgedSaveCodeUI__LOAD_AUTO_BUTTON_WIDTH= 0.066 -constant real WoWReforgedSaveCodeUI___WRITE_AUTO_BUTTON_X= 0.4 -constant real WoWReforgedSaveCodeUI___WRITE_AUTO_BUTTON_WIDTH= 0.066 +constant real WoWReforgedSaveCodeUI__WRITE_AUTO_BUTTON_X= 0.4 +constant real WoWReforgedSaveCodeUI__WRITE_AUTO_BUTTON_WIDTH= 0.066 -constant real WoWReforgedSaveCodeUI___LINE_START_Y= 0.528122 -constant real WoWReforgedSaveCodeUI___LINE_HEIGHT= 0.03 -constant real WoWReforgedSaveCodeUI___LINE_SPACING= 0.005 +constant real WoWReforgedSaveCodeUI__LINE_START_Y= 0.528122 +constant real WoWReforgedSaveCodeUI__LINE_HEIGHT= 0.03 +constant real WoWReforgedSaveCodeUI__LINE_SPACING= 0.005 -constant real WoWReforgedSaveCodeUI___TOOLTIP_X= 0.61 -constant real WoWReforgedSaveCodeUI___TOOLTIP_WIDTH= 0.17 -constant real WoWReforgedSaveCodeUI___TOOLTIP_HEIGHT= 0.34 +constant real WoWReforgedSaveCodeUI__TOOLTIP_X= 0.61 +constant real WoWReforgedSaveCodeUI__TOOLTIP_WIDTH= 0.17 +constant real WoWReforgedSaveCodeUI__TOOLTIP_HEIGHT= 0.34 -constant real WoWReforgedSaveCodeUI___TOOLTIP_LABEL_X= 0.64 -constant real WoWReforgedSaveCodeUI___TOOLTIP_LABEL_Y= 0.50 -constant real WoWReforgedSaveCodeUI___TOOLTIP_LABEL_WIDTH= 0.10 -constant real WoWReforgedSaveCodeUI___TOOLTIP_LABEL_HEIGHT= 0.32 +constant real WoWReforgedSaveCodeUI__TOOLTIP_LABEL_X= 0.64 +constant real WoWReforgedSaveCodeUI__TOOLTIP_LABEL_Y= 0.50 +constant real WoWReforgedSaveCodeUI__TOOLTIP_LABEL_WIDTH= 0.10 +constant real WoWReforgedSaveCodeUI__TOOLTIP_LABEL_HEIGHT= 0.32 -framehandle WoWReforgedSaveCodeUI___BackgroundFrame -framehandle WoWReforgedSaveCodeUI___TitleFrame +framehandle WoWReforgedSaveCodeUI__BackgroundFrame +framehandle WoWReforgedSaveCodeUI__TitleFrame -framehandle WoWReforgedSaveCodeUI___TooltipBackgroundFrame -framehandle WoWReforgedSaveCodeUI___TooltipLabelFrame +framehandle WoWReforgedSaveCodeUI__TooltipBackgroundFrame +framehandle WoWReforgedSaveCodeUI__TooltipLabelFrame // line 1: heroes savecode -framehandle WoWReforgedSaveCodeUI___LabelFrameHeroes -framehandle WoWReforgedSaveCodeUI___EditBoxHeroes -trigger WoWReforgedSaveCodeUI___TriggerEditBoxHeroes -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes -trigger WoWReforgedSaveCodeUI___UpdateTriggerHeroes -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameHeroes -trigger WoWReforgedSaveCodeUI___LoadTriggerHeroes -trigger WoWReforgedSaveCodeUI___EnterTriggerHeroes +framehandle WoWReforgedSaveCodeUI__LabelFrameHeroes +framehandle WoWReforgedSaveCodeUI__EditBoxHeroes +trigger WoWReforgedSaveCodeUI__TriggerEditBoxHeroes +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes +trigger WoWReforgedSaveCodeUI__UpdateTriggerHeroes +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameHeroes +trigger WoWReforgedSaveCodeUI__LoadTriggerHeroes +trigger WoWReforgedSaveCodeUI__EnterTriggerHeroes // line 2: items savecode -framehandle WoWReforgedSaveCodeUI___LabelFrameItems -framehandle WoWReforgedSaveCodeUI___ItemsEditIndex -trigger WoWReforgedSaveCodeUI___TriggerEditBoxItemsIndex -framehandle WoWReforgedSaveCodeUI___ItemsEditArrowUp -framehandle WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame -framehandle WoWReforgedSaveCodeUI___ItemsEditArrowDown -framehandle WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame -trigger WoWReforgedSaveCodeUI___ItemsUpTrigger -trigger WoWReforgedSaveCodeUI___ItemsDownTrigger -integer WoWReforgedSaveCodeUI___itemsIndex -framehandle WoWReforgedSaveCodeUI___EditBoxItems -trigger WoWReforgedSaveCodeUI___TriggerEditBoxItems -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameItems -trigger WoWReforgedSaveCodeUI___UpdateTriggerItems -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameItems -trigger WoWReforgedSaveCodeUI___LoadTriggerItems -trigger WoWReforgedSaveCodeUI___EnterTriggerItems +framehandle WoWReforgedSaveCodeUI__LabelFrameItems +framehandle WoWReforgedSaveCodeUI__ItemsEditIndex +trigger WoWReforgedSaveCodeUI__TriggerEditBoxItemsIndex +framehandle WoWReforgedSaveCodeUI__ItemsEditArrowUp +framehandle WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame +framehandle WoWReforgedSaveCodeUI__ItemsEditArrowDown +framehandle WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame +trigger WoWReforgedSaveCodeUI__ItemsUpTrigger +trigger WoWReforgedSaveCodeUI__ItemsDownTrigger +integer WoWReforgedSaveCodeUI__itemsIndex +framehandle WoWReforgedSaveCodeUI__EditBoxItems +trigger WoWReforgedSaveCodeUI__TriggerEditBoxItems +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameItems +trigger WoWReforgedSaveCodeUI__UpdateTriggerItems +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameItems +trigger WoWReforgedSaveCodeUI__LoadTriggerItems +trigger WoWReforgedSaveCodeUI__EnterTriggerItems // line 3: units savecode -framehandle WoWReforgedSaveCodeUI___LabelFrameUnits -framehandle WoWReforgedSaveCodeUI___UnitsEditIndex -trigger WoWReforgedSaveCodeUI___TriggerEditBoxUnitsIndex -framehandle WoWReforgedSaveCodeUI___UnitsEditArrowUp -framehandle WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame -framehandle WoWReforgedSaveCodeUI___UnitsEditArrowDown -framehandle WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame -trigger WoWReforgedSaveCodeUI___UnitsUpTrigger -trigger WoWReforgedSaveCodeUI___UnitsDownTrigger -integer WoWReforgedSaveCodeUI___unitsIndex -framehandle WoWReforgedSaveCodeUI___EditBoxUnits -trigger WoWReforgedSaveCodeUI___TriggerEditBoxUnits -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameUnits -trigger WoWReforgedSaveCodeUI___UpdateTriggerUnits -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameUnits -trigger WoWReforgedSaveCodeUI___LoadTriggerUnits -trigger WoWReforgedSaveCodeUI___EnterTriggerUnits +framehandle WoWReforgedSaveCodeUI__LabelFrameUnits +framehandle WoWReforgedSaveCodeUI__UnitsEditIndex +trigger WoWReforgedSaveCodeUI__TriggerEditBoxUnitsIndex +framehandle WoWReforgedSaveCodeUI__UnitsEditArrowUp +framehandle WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame +framehandle WoWReforgedSaveCodeUI__UnitsEditArrowDown +framehandle WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame +trigger WoWReforgedSaveCodeUI__UnitsUpTrigger +trigger WoWReforgedSaveCodeUI__UnitsDownTrigger +integer WoWReforgedSaveCodeUI__unitsIndex +framehandle WoWReforgedSaveCodeUI__EditBoxUnits +trigger WoWReforgedSaveCodeUI__TriggerEditBoxUnits +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameUnits +trigger WoWReforgedSaveCodeUI__UpdateTriggerUnits +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameUnits +trigger WoWReforgedSaveCodeUI__LoadTriggerUnits +trigger WoWReforgedSaveCodeUI__EnterTriggerUnits // line 4: researches savecode -framehandle WoWReforgedSaveCodeUI___LabelFrameResearches -framehandle WoWReforgedSaveCodeUI___ResearchesEditIndex -trigger WoWReforgedSaveCodeUI___TriggerEditBoxResearchesIndex -framehandle WoWReforgedSaveCodeUI___ResearchesEditArrowUp -framehandle WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame -framehandle WoWReforgedSaveCodeUI___ResearchesEditArrowDown -framehandle WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame -trigger WoWReforgedSaveCodeUI___ResearchesUpTrigger -trigger WoWReforgedSaveCodeUI___ResearchesDownTrigger -integer WoWReforgedSaveCodeUI___researchesIndex -framehandle WoWReforgedSaveCodeUI___EditBoxResearches -trigger WoWReforgedSaveCodeUI___TriggerEditBoxResearches -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameResearches -trigger WoWReforgedSaveCodeUI___UpdateTriggerResearches -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameResearches -trigger WoWReforgedSaveCodeUI___LoadTriggerResearches -trigger WoWReforgedSaveCodeUI___EnterTriggerResearches +framehandle WoWReforgedSaveCodeUI__LabelFrameResearches +framehandle WoWReforgedSaveCodeUI__ResearchesEditIndex +trigger WoWReforgedSaveCodeUI__TriggerEditBoxResearchesIndex +framehandle WoWReforgedSaveCodeUI__ResearchesEditArrowUp +framehandle WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame +framehandle WoWReforgedSaveCodeUI__ResearchesEditArrowDown +framehandle WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame +trigger WoWReforgedSaveCodeUI__ResearchesUpTrigger +trigger WoWReforgedSaveCodeUI__ResearchesDownTrigger +integer WoWReforgedSaveCodeUI__researchesIndex +framehandle WoWReforgedSaveCodeUI__EditBoxResearches +trigger WoWReforgedSaveCodeUI__TriggerEditBoxResearches +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameResearches +trigger WoWReforgedSaveCodeUI__UpdateTriggerResearches +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameResearches +trigger WoWReforgedSaveCodeUI__LoadTriggerResearches +trigger WoWReforgedSaveCodeUI__EnterTriggerResearches // line 5: buildings savecode -framehandle WoWReforgedSaveCodeUI___LabelFrameBuildings -framehandle WoWReforgedSaveCodeUI___BuildingsEditIndex -trigger WoWReforgedSaveCodeUI___TriggerEditBoxBuildingsIndex -framehandle WoWReforgedSaveCodeUI___BuildingsEditArrowUp -framehandle WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame -framehandle WoWReforgedSaveCodeUI___BuildingsEditArrowDown -framehandle WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame -trigger WoWReforgedSaveCodeUI___BuildingsUpTrigger -trigger WoWReforgedSaveCodeUI___BuildingsDownTrigger -integer WoWReforgedSaveCodeUI___buildingsIndex -framehandle WoWReforgedSaveCodeUI___EditBoxBuildings -trigger WoWReforgedSaveCodeUI___TriggerEditBoxBuildings -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings -trigger WoWReforgedSaveCodeUI___UpdateTriggerBuildings -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameBuildings -trigger WoWReforgedSaveCodeUI___LoadTriggerBuildings -trigger WoWReforgedSaveCodeUI___EnterTriggerBuildings +framehandle WoWReforgedSaveCodeUI__LabelFrameBuildings +framehandle WoWReforgedSaveCodeUI__BuildingsEditIndex +trigger WoWReforgedSaveCodeUI__TriggerEditBoxBuildingsIndex +framehandle WoWReforgedSaveCodeUI__BuildingsEditArrowUp +framehandle WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame +framehandle WoWReforgedSaveCodeUI__BuildingsEditArrowDown +framehandle WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame +trigger WoWReforgedSaveCodeUI__BuildingsUpTrigger +trigger WoWReforgedSaveCodeUI__BuildingsDownTrigger +integer WoWReforgedSaveCodeUI__buildingsIndex +framehandle WoWReforgedSaveCodeUI__EditBoxBuildings +trigger WoWReforgedSaveCodeUI__TriggerEditBoxBuildings +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings +trigger WoWReforgedSaveCodeUI__UpdateTriggerBuildings +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameBuildings +trigger WoWReforgedSaveCodeUI__LoadTriggerBuildings +trigger WoWReforgedSaveCodeUI__EnterTriggerBuildings // line 6: resources savecode -framehandle WoWReforgedSaveCodeUI___LabelFrameResources -framehandle WoWReforgedSaveCodeUI___EditBoxResources -trigger WoWReforgedSaveCodeUI___TriggerEditBoxResources -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameResources -trigger WoWReforgedSaveCodeUI___UpdateTriggerResources -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameResources -trigger WoWReforgedSaveCodeUI___LoadTriggerResources -trigger WoWReforgedSaveCodeUI___EnterTriggerResources +framehandle WoWReforgedSaveCodeUI__LabelFrameResources +framehandle WoWReforgedSaveCodeUI__EditBoxResources +trigger WoWReforgedSaveCodeUI__TriggerEditBoxResources +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameResources +trigger WoWReforgedSaveCodeUI__UpdateTriggerResources +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameResources +trigger WoWReforgedSaveCodeUI__LoadTriggerResources +trigger WoWReforgedSaveCodeUI__EnterTriggerResources // line 7: clan savecode -framehandle WoWReforgedSaveCodeUI___LabelFrameClan -framehandle WoWReforgedSaveCodeUI___EditBoxClan -trigger WoWReforgedSaveCodeUI___TriggerEditBoxClan -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameClan -trigger WoWReforgedSaveCodeUI___UpdateTriggerClan -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameClan -trigger WoWReforgedSaveCodeUI___LoadTriggerClan -trigger WoWReforgedSaveCodeUI___EnterTriggerClan +framehandle WoWReforgedSaveCodeUI__LabelFrameClan +framehandle WoWReforgedSaveCodeUI__EditBoxClan +trigger WoWReforgedSaveCodeUI__TriggerEditBoxClan +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameClan +trigger WoWReforgedSaveCodeUI__UpdateTriggerClan +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameClan +trigger WoWReforgedSaveCodeUI__LoadTriggerClan +trigger WoWReforgedSaveCodeUI__EnterTriggerClan // line 8: savecode dir -framehandle WoWReforgedSaveCodeUI___LabelFrameDirectory -framehandle WoWReforgedSaveCodeUI___EditBoxDirectory -trigger WoWReforgedSaveCodeUI___TriggerEditBoxDirectory -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory -trigger WoWReforgedSaveCodeUI___UpdateTriggerDirectory -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameDirectory -trigger WoWReforgedSaveCodeUI___LoadTriggerDirectory -trigger WoWReforgedSaveCodeUI___EnterTriggerDirectory +framehandle WoWReforgedSaveCodeUI__LabelFrameDirectory +framehandle WoWReforgedSaveCodeUI__EditBoxDirectory +trigger WoWReforgedSaveCodeUI__TriggerEditBoxDirectory +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory +trigger WoWReforgedSaveCodeUI__UpdateTriggerDirectory +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameDirectory +trigger WoWReforgedSaveCodeUI__LoadTriggerDirectory +trigger WoWReforgedSaveCodeUI__EnterTriggerDirectory // end line: all save codes -framehandle WoWReforgedSaveCodeUI___LabelFrameAll -framehandle WoWReforgedSaveCodeUI___WriteAllButtonFrameAll -trigger WoWReforgedSaveCodeUI___WriteAllTriggerAll -framehandle WoWReforgedSaveCodeUI___LoadAllButtonFrameAll -trigger WoWReforgedSaveCodeUI___LoadAllTriggerAll -framehandle WoWReforgedSaveCodeUI___UpdateButtonFrameAll -trigger WoWReforgedSaveCodeUI___UpdateTriggerAll -framehandle WoWReforgedSaveCodeUI___LoadButtonFrameAll -trigger WoWReforgedSaveCodeUI___LoadTriggerAll - -framehandle WoWReforgedSaveCodeUI___CloseButton -trigger WoWReforgedSaveCodeUI___CloseTrigger - -trigger WoWReforgedSaveCodeUI___SyncTrigger +framehandle WoWReforgedSaveCodeUI__LabelFrameAll +framehandle WoWReforgedSaveCodeUI__WriteAllButtonFrameAll +trigger WoWReforgedSaveCodeUI__WriteAllTriggerAll +framehandle WoWReforgedSaveCodeUI__LoadAllButtonFrameAll +trigger WoWReforgedSaveCodeUI__LoadAllTriggerAll +framehandle WoWReforgedSaveCodeUI__UpdateButtonFrameAll +trigger WoWReforgedSaveCodeUI__UpdateTriggerAll +framehandle WoWReforgedSaveCodeUI__LoadButtonFrameAll +trigger WoWReforgedSaveCodeUI__LoadTriggerAll + +framehandle WoWReforgedSaveCodeUI__CloseButton +trigger WoWReforgedSaveCodeUI__CloseTrigger + +trigger WoWReforgedSaveCodeUI__SyncTrigger //endglobals from WoWReforgedSaveCodeUI //globals from WoWReforgedStartLocationsTavern: constant boolean LIBRARY_WoWReforgedStartLocationsTavern=true @@ -4270,109 +4271,109 @@ trigger WoWReforgedStartLocationsTavern___sellTrigger= CreateTrigger() //endglobals from WoWReforgedStartLocationsTavern //globals from WoWReforgedActionsBarUI: constant boolean LIBRARY_WoWReforgedActionsBarUI=true -constant string WoWReforgedActionsBarUI___PREFIX= "ActionsBarUI" -constant string WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH= "ReplaceableTextures\\CommandButtons\\" - -constant real WoWReforgedActionsBarUI___UI_X= 0.20 -constant real WoWReforgedActionsBarUI___UI_Y= 0.163 -constant real WoWReforgedActionsBarUI___UI_BUTTON_SIZE= 0.023 -constant real WoWReforgedActionsBarUI___UI_SPACE= 0.003 - -constant real WoWReforgedActionsBarUI___UI_CHECKBOX_X= WoWReforgedActionsBarUI___UI_X -constant real WoWReforgedActionsBarUI___UI_CLEAR_X= WoWReforgedActionsBarUI___UI_CHECKBOX_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_PICKUP_ITEMS_X= WoWReforgedActionsBarUI___UI_CLEAR_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_DROP_ITEMS_X= WoWReforgedActionsBarUI___UI_PICKUP_ITEMS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_BACKPACK_X= WoWReforgedActionsBarUI___UI_DROP_ITEMS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_MOUNTS_X= WoWReforgedActionsBarUI___UI_BACKPACK_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_SUMMONED_UNITS_X= WoWReforgedActionsBarUI___UI_MOUNTS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_TOWN_HALLS_X= WoWReforgedActionsBarUI___UI_SUMMONED_UNITS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_ALTARS_X= WoWReforgedActionsBarUI___UI_TOWN_HALLS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_SAVECODES_X= WoWReforgedActionsBarUI___UI_ALTARS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_LOCK_CAMERA_X= WoWReforgedActionsBarUI___UI_SAVECODES_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_RPG_CAMERA_X= WoWReforgedActionsBarUI___UI_LOCK_CAMERA_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_AUTO_SKILL_X= WoWReforgedActionsBarUI___UI_RPG_CAMERA_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_LOG_X= WoWReforgedActionsBarUI___UI_AUTO_SKILL_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE -constant real WoWReforgedActionsBarUI___UI_MULTIBOARD_X= WoWReforgedActionsBarUI___UI_LOG_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE + WoWReforgedActionsBarUI___UI_SPACE - -trigger WoWReforgedActionsBarUI___SyncTrigger= CreateTrigger() - -framehandle WoWReforgedActionsBarUI___CheckboxButton -framehandle WoWReforgedActionsBarUI___CheckboxTooltip -trigger WoWReforgedActionsBarUI___CheckboxCheckTrigger -trigger WoWReforgedActionsBarUI___CheckboxUncheckTrigger - -framehandle WoWReforgedActionsBarUI___ClearButton -framehandle WoWReforgedActionsBarUI___ClearFrame -framehandle WoWReforgedActionsBarUI___ClearTooltip -trigger WoWReforgedActionsBarUI___ClearTrigger - -framehandle WoWReforgedActionsBarUI___PickupItemsButton -framehandle WoWReforgedActionsBarUI___PickupItemsFrame -framehandle WoWReforgedActionsBarUI___PickupItemsTooltip -trigger WoWReforgedActionsBarUI___PickupItemsTrigger - -framehandle WoWReforgedActionsBarUI___DropItemsButton -framehandle WoWReforgedActionsBarUI___DropItemsFrame -framehandle WoWReforgedActionsBarUI___DropItemsTooltip -trigger WoWReforgedActionsBarUI___DropItemsTrigger - -framehandle WoWReforgedActionsBarUI___BackpackButton -framehandle WoWReforgedActionsBarUI___BackpackFrame -framehandle WoWReforgedActionsBarUI___BackpackTooltip -trigger WoWReforgedActionsBarUI___BackpackTrigger - -framehandle WoWReforgedActionsBarUI___MountsButton -framehandle WoWReforgedActionsBarUI___MountsFrame -framehandle WoWReforgedActionsBarUI___MountsTooltip -trigger WoWReforgedActionsBarUI___MountsTrigger - -framehandle WoWReforgedActionsBarUI___SummonedUnitsButton -framehandle WoWReforgedActionsBarUI___SummonedUnitsFrame -framehandle WoWReforgedActionsBarUI___SummonedUnitsTooltip -trigger WoWReforgedActionsBarUI___SummonedUnitsTrigger - -framehandle WoWReforgedActionsBarUI___TownHallsButton -framehandle WoWReforgedActionsBarUI___TownHallsFrame -framehandle WoWReforgedActionsBarUI___TownHallsTooltip -trigger WoWReforgedActionsBarUI___TownHallsTrigger - -framehandle WoWReforgedActionsBarUI___AltarsButton -framehandle WoWReforgedActionsBarUI___AltarsFrame -framehandle WoWReforgedActionsBarUI___AltarsTooltip -trigger WoWReforgedActionsBarUI___AltarsTrigger - -framehandle WoWReforgedActionsBarUI___SaveCodesButton -framehandle WoWReforgedActionsBarUI___SaveCodesFrame -framehandle WoWReforgedActionsBarUI___SaveCodesTooltip -trigger WoWReforgedActionsBarUI___SaveCodesTrigger - -framehandle WoWReforgedActionsBarUI___LockCameraButton -framehandle WoWReforgedActionsBarUI___LockCameraFrame -framehandle WoWReforgedActionsBarUI___LockCameraTooltip -trigger WoWReforgedActionsBarUI___LockCameraTrigger - -framehandle WoWReforgedActionsBarUI___RpgCameraButton -framehandle WoWReforgedActionsBarUI___RpgCameraFrame -framehandle WoWReforgedActionsBarUI___RpgCameraTooltip -trigger WoWReforgedActionsBarUI___RpgCameraTrigger - -framehandle WoWReforgedActionsBarUI___AutoSkillButton -framehandle WoWReforgedActionsBarUI___AutoSkillFrame -framehandle WoWReforgedActionsBarUI___AutoSkillTooltip -trigger WoWReforgedActionsBarUI___AutoSkillTrigger - -framehandle WoWReforgedActionsBarUI___LogButton -framehandle WoWReforgedActionsBarUI___LogFrame -framehandle WoWReforgedActionsBarUI___LogTooltip -trigger WoWReforgedActionsBarUI___LogTrigger - -framehandle WoWReforgedActionsBarUI___MultiboardButton -framehandle WoWReforgedActionsBarUI___MultiboardFrame -framehandle WoWReforgedActionsBarUI___MultiboardTooltip -trigger WoWReforgedActionsBarUI___MultiboardTrigger - -integer array WoWReforgedActionsBarUI___currentMultiboard -boolean array WoWReforgedActionsBarUI___checked +constant string WoWReforgedActionsBarUI__PREFIX= "ActionsBarUI" +constant string WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH= "ReplaceableTextures\\CommandButtons\\" + +constant real WoWReforgedActionsBarUI__UI_X= 0.20 +constant real WoWReforgedActionsBarUI__UI_Y= 0.163 +constant real WoWReforgedActionsBarUI__UI_BUTTON_SIZE= 0.023 +constant real WoWReforgedActionsBarUI__UI_SPACE= 0.003 + +constant real WoWReforgedActionsBarUI__UI_CHECKBOX_X= WoWReforgedActionsBarUI__UI_X +constant real WoWReforgedActionsBarUI__UI_CLEAR_X= WoWReforgedActionsBarUI__UI_CHECKBOX_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_PICKUP_ITEMS_X= WoWReforgedActionsBarUI__UI_CLEAR_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_DROP_ITEMS_X= WoWReforgedActionsBarUI__UI_PICKUP_ITEMS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_BACKPACK_X= WoWReforgedActionsBarUI__UI_DROP_ITEMS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_MOUNTS_X= WoWReforgedActionsBarUI__UI_BACKPACK_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_SUMMONED_UNITS_X= WoWReforgedActionsBarUI__UI_MOUNTS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_TOWN_HALLS_X= WoWReforgedActionsBarUI__UI_SUMMONED_UNITS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_ALTARS_X= WoWReforgedActionsBarUI__UI_TOWN_HALLS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_SAVECODES_X= WoWReforgedActionsBarUI__UI_ALTARS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_LOCK_CAMERA_X= WoWReforgedActionsBarUI__UI_SAVECODES_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_RPG_CAMERA_X= WoWReforgedActionsBarUI__UI_LOCK_CAMERA_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_AUTO_SKILL_X= WoWReforgedActionsBarUI__UI_RPG_CAMERA_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_LOG_X= WoWReforgedActionsBarUI__UI_AUTO_SKILL_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE +constant real WoWReforgedActionsBarUI__UI_MULTIBOARD_X= WoWReforgedActionsBarUI__UI_LOG_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE + WoWReforgedActionsBarUI__UI_SPACE + +trigger WoWReforgedActionsBarUI__SyncTrigger= CreateTrigger() + +framehandle WoWReforgedActionsBarUI__CheckboxButton +framehandle WoWReforgedActionsBarUI__CheckboxTooltip +trigger WoWReforgedActionsBarUI__CheckboxCheckTrigger +trigger WoWReforgedActionsBarUI__CheckboxUncheckTrigger + +framehandle WoWReforgedActionsBarUI__ClearButton +framehandle WoWReforgedActionsBarUI__ClearFrame +framehandle WoWReforgedActionsBarUI__ClearTooltip +trigger WoWReforgedActionsBarUI__ClearTrigger + +framehandle WoWReforgedActionsBarUI__PickupItemsButton +framehandle WoWReforgedActionsBarUI__PickupItemsFrame +framehandle WoWReforgedActionsBarUI__PickupItemsTooltip +trigger WoWReforgedActionsBarUI__PickupItemsTrigger + +framehandle WoWReforgedActionsBarUI__DropItemsButton +framehandle WoWReforgedActionsBarUI__DropItemsFrame +framehandle WoWReforgedActionsBarUI__DropItemsTooltip +trigger WoWReforgedActionsBarUI__DropItemsTrigger + +framehandle WoWReforgedActionsBarUI__BackpackButton +framehandle WoWReforgedActionsBarUI__BackpackFrame +framehandle WoWReforgedActionsBarUI__BackpackTooltip +trigger WoWReforgedActionsBarUI__BackpackTrigger + +framehandle WoWReforgedActionsBarUI__MountsButton +framehandle WoWReforgedActionsBarUI__MountsFrame +framehandle WoWReforgedActionsBarUI__MountsTooltip +trigger WoWReforgedActionsBarUI__MountsTrigger + +framehandle WoWReforgedActionsBarUI__SummonedUnitsButton +framehandle WoWReforgedActionsBarUI__SummonedUnitsFrame +framehandle WoWReforgedActionsBarUI__SummonedUnitsTooltip +trigger WoWReforgedActionsBarUI__SummonedUnitsTrigger + +framehandle WoWReforgedActionsBarUI__TownHallsButton +framehandle WoWReforgedActionsBarUI__TownHallsFrame +framehandle WoWReforgedActionsBarUI__TownHallsTooltip +trigger WoWReforgedActionsBarUI__TownHallsTrigger + +framehandle WoWReforgedActionsBarUI__AltarsButton +framehandle WoWReforgedActionsBarUI__AltarsFrame +framehandle WoWReforgedActionsBarUI__AltarsTooltip +trigger WoWReforgedActionsBarUI__AltarsTrigger + +framehandle WoWReforgedActionsBarUI__SaveCodesButton +framehandle WoWReforgedActionsBarUI__SaveCodesFrame +framehandle WoWReforgedActionsBarUI__SaveCodesTooltip +trigger WoWReforgedActionsBarUI__SaveCodesTrigger + +framehandle WoWReforgedActionsBarUI__LockCameraButton +framehandle WoWReforgedActionsBarUI__LockCameraFrame +framehandle WoWReforgedActionsBarUI__LockCameraTooltip +trigger WoWReforgedActionsBarUI__LockCameraTrigger + +framehandle WoWReforgedActionsBarUI__RpgCameraButton +framehandle WoWReforgedActionsBarUI__RpgCameraFrame +framehandle WoWReforgedActionsBarUI__RpgCameraTooltip +trigger WoWReforgedActionsBarUI__RpgCameraTrigger + +framehandle WoWReforgedActionsBarUI__AutoSkillButton +framehandle WoWReforgedActionsBarUI__AutoSkillFrame +framehandle WoWReforgedActionsBarUI__AutoSkillTooltip +trigger WoWReforgedActionsBarUI__AutoSkillTrigger + +framehandle WoWReforgedActionsBarUI__LogButton +framehandle WoWReforgedActionsBarUI__LogFrame +framehandle WoWReforgedActionsBarUI__LogTooltip +trigger WoWReforgedActionsBarUI__LogTrigger + +framehandle WoWReforgedActionsBarUI__MultiboardButton +framehandle WoWReforgedActionsBarUI__MultiboardFrame +framehandle WoWReforgedActionsBarUI__MultiboardTooltip +trigger WoWReforgedActionsBarUI__MultiboardTrigger + +integer array WoWReforgedActionsBarUI__currentMultiboard +boolean array WoWReforgedActionsBarUI__checked //endglobals from WoWReforgedActionsBarUI //globals from WoWReforgedCinematic: constant boolean LIBRARY_WoWReforgedCinematic=true @@ -4380,7 +4381,7 @@ group array WoWReforgedCinematic__playerSelections //endglobals from WoWReforgedCinematic //globals from WoWReforgedRacesUI: constant boolean LIBRARY_WoWReforgedRacesUI=true -timer WoWReforgedRacesUI___updateTimer= CreateTimer() +timer WoWReforgedRacesUI__updateTimer= CreateTimer() //endglobals from WoWReforgedRacesUI // User-defined dialog array udg_GameModeSelectionDialog @@ -8649,6 +8650,9 @@ destructable gg_dest_B015_20354= null destructable gg_dest_Dofw_20353= null destructable gg_dest_B015_20543= null destructable gg_dest_Dofw_20546= null +trigger gg_trg_Heroes_Init_Old_Horde= null +trigger gg_trg_Heroes_Init_Alliance_of_Lordaeron= null +trigger gg_trg_Game_Information_Players= null trigger l__library_init @@ -8691,7 +8695,7 @@ boolean array s__AArrowKeys_m_up boolean array s__AArrowKeys_m_down boolean array s__AArrowKeys_m_left boolean array s__AArrowKeys_m_right -constant integer si__Ascii___Inits=2 +constant integer si__Ascii__Inits=2 constant integer si__Attributes___A=3 integer si__Attributes___A_F=0 integer si__Attributes___A_I=0 @@ -8706,10 +8710,10 @@ integer array si__Attributes___V_V real array s__Attributes___V_value real array s__Attributes___V_max real array s__Attributes___V_regeneration -constant integer si__BlackArrowSystem___S=5 -integer si__BlackArrowSystem___S_F=0 -integer si__BlackArrowSystem___S_I=0 -integer array si__BlackArrowSystem___S_V +constant integer si__BlackArrowSystem__S=5 +integer si__BlackArrowSystem__S_F=0 +integer si__BlackArrowSystem__S_I=0 +integer array si__BlackArrowSystem__S_V constant integer si__TimerGroup32=6 constant integer si__DiceGroup=7 integer si__DiceGroup_F=0 @@ -8741,10 +8745,10 @@ integer array s__ArcingTextTag_next integer array s__ArcingTextTag_prev integer array s__ArcingTextTag_rn integer s__ArcingTextTag_ic= 0 -constant integer si__GameStatus___GameStatus=11 -integer si__GameStatus___GameStatus_F=0 -integer si__GameStatus___GameStatus_I=0 -integer array si__GameStatus___GameStatus_V +constant integer si__GameStatus__GameStatus=11 +integer si__GameStatus__GameStatus_F=0 +integer si__GameStatus__GameStatus_I=0 +integer array si__GameStatus__GameStatus_V constant integer si__Indexer=12 integer si__Indexer_F=0 integer si__Indexer_I=0 @@ -8756,10 +8760,10 @@ integer s__Indexer_id= - 1 unit s__Indexer_unit trigger s__Indexer_onIndex= CreateTrigger() trigger s__Indexer_onDeindex= CreateTrigger() -constant integer si__ItemRespawnSystem___S=13 -integer si__ItemRespawnSystem___S_F=0 -integer si__ItemRespawnSystem___S_I=0 -integer array si__ItemRespawnSystem___S_V +constant integer si__ItemRespawnSystem__S=13 +integer si__ItemRespawnSystem__S_F=0 +integer si__ItemRespawnSystem__S_I=0 +integer array si__ItemRespawnSystem__S_V constant integer si__LineSegment=14 constant real s__LineSegment_MAX_UNIT_COLLISION= 197.00 constant rect s__LineSegment_RECT= Rect(0, 0, 0, 0) @@ -8868,8 +8872,8 @@ integer s__WorldBounds_centerY rect s__WorldBounds_world region s__WorldBounds_worldRegion constant integer si__CooldownReduction___AbilityList=67 -integer s__CooldownReduction___AbilityList_Alloc___instanceCount= 0 -integer array s__CooldownReduction___AbilityList_Alloc___recycle +integer s__CooldownReduction___AbilityList_Alloc__instanceCount= 0 +integer array s__CooldownReduction___AbilityList_Alloc__recycle integer array s__CooldownReduction___AbilityList_next integer array s__CooldownReduction___AbilityList_prev unit array s__CooldownReduction___AbilityList_unit @@ -8986,8 +8990,8 @@ integer s__Knockback_temp= 0 rect s__Knockback_destRect= Rect(0, 0, 1, 1) real s__Knockback_tx= 0.00 real s__Knockback_ty= 0.00 -boolean s__Knockback_ListModule_List___destroying= false -boolean array s__Knockback_ListModule_List___inlist +boolean s__Knockback_ListModule_List__destroying= false +boolean array s__Knockback_ListModule_List__inlist integer s__Knockback_count= 0 integer array s__Knockback_next integer array s__Knockback_prev @@ -9001,8 +9005,8 @@ filterfunc array s__MassSpell_filter constant integer si__MissileEffect___Effect=76 integer array s__MissileEffect___Effect_next integer array s__MissileEffect___Effect_prev -integer s__MissileEffect___Effect_Alloc___instanceCount= 0 -integer array s__MissileEffect___Effect_Alloc___recycle +integer s__MissileEffect___Effect_Alloc__instanceCount= 0 +integer array s__MissileEffect___Effect_Alloc__recycle real array s__MissileEffect___Effect_x real array s__MissileEffect___Effect_y real array s__MissileEffect___Effect_z @@ -9092,8 +9096,8 @@ integer s__Resource_resourcesCount= 0 constant integer si__SpellEffectEvent___S=86 integer s__SpellEffectEvent___S_tb constant integer si__Tenacity___List=87 -integer s__Tenacity___List_Alloc___instanceCount= 0 -integer array s__Tenacity___List_Alloc___recycle +integer s__Tenacity___List_Alloc__instanceCount= 0 +integer array s__Tenacity___List_Alloc__recycle integer array s__Tenacity___List_next integer array s__Tenacity___List_prev real array s__Tenacity___List_tenacity @@ -9807,8 +9811,8 @@ integer array s__CrowdControl_type constant integer si__MissileUtils___MGroup=134 integer array s__MissileUtils___MGroup_next integer array s__MissileUtils___MGroup_prev -integer s__MissileUtils___MGroup_Alloc___instanceCount= 0 -integer array s__MissileUtils___MGroup_Alloc___recycle +integer s__MissileUtils___MGroup_Alloc__instanceCount= 0 +integer array s__MissileUtils___MGroup_Alloc__recycle integer array s__MissileUtils___MGroup_missile constant integer si__MissileGroup=135 integer si__MissileGroup_F=0 @@ -10203,7 +10207,7 @@ trigger st__Missiles_terminate trigger st__Missiles_reset trigger st__Missiles_move trigger st__TenacityUtils_addTimed -trigger st__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___resurrectionTimer +trigger st__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__resurrectionTimer trigger st__ResetCooldown_reset trigger st__TimedAbility_add trigger st__EffectSpam_spam @@ -10298,23 +10302,23 @@ trigger array st___prototype192 trigger array st___prototype193 trigger array st___prototype194 trigger array st___prototype219 -trigger array st___prototype254 -trigger array st___prototype270 +trigger array st___prototype251 +trigger array st___prototype267 +trigger array st___prototype277 +trigger array st___prototype278 +trigger array st___prototype279 trigger array st___prototype280 trigger array st___prototype281 trigger array st___prototype282 trigger array st___prototype283 trigger array st___prototype284 trigger array st___prototype285 -trigger array st___prototype286 -trigger array st___prototype287 -trigger array st___prototype288 trigger array st___prototype359 integer f__result_integer trigger array st___prototype390 trigger array st___prototype464 -trigger array st___prototype485 trigger array st___prototype486 +trigger array st___prototype487 unit f__arg_unit1 unit f__arg_unit2 integer f__arg_integer1 @@ -12124,32 +12128,32 @@ function s__Attributes___V_deallocate takes integer this returns nothing set si__Attributes___V_F=this endfunction -//Generated allocator of BlackArrowSystem___S -function s__BlackArrowSystem___S__allocate takes nothing returns integer - local integer this=si__BlackArrowSystem___S_F +//Generated allocator of BlackArrowSystem__S +function s__BlackArrowSystem__S__allocate takes nothing returns integer + local integer this=si__BlackArrowSystem__S_F if (this!=0) then - set si__BlackArrowSystem___S_F=si__BlackArrowSystem___S_V[this] + set si__BlackArrowSystem__S_F=si__BlackArrowSystem__S_V[this] else - set si__BlackArrowSystem___S_I=si__BlackArrowSystem___S_I+1 - set this=si__BlackArrowSystem___S_I + set si__BlackArrowSystem__S_I=si__BlackArrowSystem__S_I+1 + set this=si__BlackArrowSystem__S_I endif if (this>8190) then return 0 endif - set si__BlackArrowSystem___S_V[this]=-1 + set si__BlackArrowSystem__S_V[this]=-1 return this endfunction -//Generated destructor of BlackArrowSystem___S -function s__BlackArrowSystem___S_deallocate takes integer this returns nothing +//Generated destructor of BlackArrowSystem__S +function s__BlackArrowSystem__S_deallocate takes integer this returns nothing if this==null then return - elseif (si__BlackArrowSystem___S_V[this]!=-1) then + elseif (si__BlackArrowSystem__S_V[this]!=-1) then return endif - set si__BlackArrowSystem___S_V[this]=si__BlackArrowSystem___S_F - set si__BlackArrowSystem___S_F=this + set si__BlackArrowSystem__S_V[this]=si__BlackArrowSystem__S_F + set si__BlackArrowSystem__S_F=this endfunction //Generated allocator of DiceGroup @@ -13136,8 +13140,8 @@ function s__ResetCooldown_deallocate takes integer this returns nothing set si__ResetCooldown_F=this endfunction -//Generated method caller for UnitEventEx___UnitEventEx.UnitEventEx___UnitEventExCore___resurrectionTimer -function sc__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___resurrectionTimer takes nothing returns nothing +//Generated method caller for UnitEventEx___UnitEventEx.UnitEventEx___UnitEventExCore__resurrectionTimer +function sc__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__resurrectionTimer takes nothing returns nothing set UnitEventEx___rezCheck=false call DestroyTimer(GetExpiredTimer()) endfunction @@ -13523,32 +13527,32 @@ function s__PagedButtons_Page_deallocate takes integer this returns nothing set si__PagedButtons_Page_F=this endfunction -//Generated allocator of GameStatus___GameStatus -function s__GameStatus___GameStatus__allocate takes nothing returns integer - local integer this=si__GameStatus___GameStatus_F +//Generated allocator of GameStatus__GameStatus +function s__GameStatus__GameStatus__allocate takes nothing returns integer + local integer this=si__GameStatus__GameStatus_F if (this!=0) then - set si__GameStatus___GameStatus_F=si__GameStatus___GameStatus_V[this] + set si__GameStatus__GameStatus_F=si__GameStatus__GameStatus_V[this] else - set si__GameStatus___GameStatus_I=si__GameStatus___GameStatus_I+1 - set this=si__GameStatus___GameStatus_I + set si__GameStatus__GameStatus_I=si__GameStatus__GameStatus_I+1 + set this=si__GameStatus__GameStatus_I endif if (this>8190) then return 0 endif - set si__GameStatus___GameStatus_V[this]=-1 + set si__GameStatus__GameStatus_V[this]=-1 return this endfunction -//Generated destructor of GameStatus___GameStatus -function s__GameStatus___GameStatus_deallocate takes integer this returns nothing +//Generated destructor of GameStatus__GameStatus +function s__GameStatus__GameStatus_deallocate takes integer this returns nothing if this==null then return - elseif (si__GameStatus___GameStatus_V[this]!=-1) then + elseif (si__GameStatus__GameStatus_V[this]!=-1) then return endif - set si__GameStatus___GameStatus_V[this]=si__GameStatus___GameStatus_F - set si__GameStatus___GameStatus_F=this + set si__GameStatus__GameStatus_V[this]=si__GameStatus__GameStatus_F + set si__GameStatus__GameStatus_F=this endfunction //Generated allocator of PagedButtons_Type @@ -14066,32 +14070,32 @@ function sc__Evasion_deallocate takes integer this returns nothing set si__Evasion_F=this endfunction -//Generated allocator of ItemRespawnSystem___S -function s__ItemRespawnSystem___S__allocate takes nothing returns integer - local integer this=si__ItemRespawnSystem___S_F +//Generated allocator of ItemRespawnSystem__S +function s__ItemRespawnSystem__S__allocate takes nothing returns integer + local integer this=si__ItemRespawnSystem__S_F if (this!=0) then - set si__ItemRespawnSystem___S_F=si__ItemRespawnSystem___S_V[this] + set si__ItemRespawnSystem__S_F=si__ItemRespawnSystem__S_V[this] else - set si__ItemRespawnSystem___S_I=si__ItemRespawnSystem___S_I+1 - set this=si__ItemRespawnSystem___S_I + set si__ItemRespawnSystem__S_I=si__ItemRespawnSystem__S_I+1 + set this=si__ItemRespawnSystem__S_I endif if (this>8190) then return 0 endif - set si__ItemRespawnSystem___S_V[this]=-1 + set si__ItemRespawnSystem__S_V[this]=-1 return this endfunction -//Generated destructor of ItemRespawnSystem___S -function s__ItemRespawnSystem___S_deallocate takes integer this returns nothing +//Generated destructor of ItemRespawnSystem__S +function s__ItemRespawnSystem__S_deallocate takes integer this returns nothing if this==null then return - elseif (si__ItemRespawnSystem___S_V[this]!=-1) then + elseif (si__ItemRespawnSystem__S_V[this]!=-1) then return endif - set si__ItemRespawnSystem___S_V[this]=si__ItemRespawnSystem___S_F - set si__ItemRespawnSystem___S_F=this + set si__ItemRespawnSystem__S_V[this]=si__ItemRespawnSystem__S_F + set si__ItemRespawnSystem__S_F=this endfunction //Generated allocator of Lever @@ -14626,7 +14630,7 @@ function s__Knockback__allocate takes nothing returns integer set s__Knockback_onEndAction[this]= 0 set s__Knockback_onTargetDeathAction[this]= 0 set s__Knockback_filterFunc[this]= 0 - set s__Knockback_ListModule_List___inlist[this]= false + set s__Knockback_ListModule_List__inlist[this]= false set s__Knockback_next[this]= 0 set s__Knockback_prev[this]= 0 set si__Knockback_V[this]=-1 @@ -15394,118 +15398,118 @@ function sc___prototype219_evaluate takes integer i,unit a1,group a2 returns not call TriggerEvaluate(st___prototype219[i]) endfunction -function sc___prototype254_execute takes integer i,unit a1,real a2,real a3 returns nothing +function sc___prototype251_execute takes integer i,unit a1,real a2,real a3 returns nothing set f__arg_unit1=a1 set f__arg_real1=a2 set f__arg_real2=a3 - call TriggerExecute(st___prototype254[i]) + call TriggerExecute(st___prototype251[i]) endfunction -function sc___prototype254_evaluate takes integer i,unit a1,real a2,real a3 returns nothing +function sc___prototype251_evaluate takes integer i,unit a1,real a2,real a3 returns nothing set f__arg_unit1=a1 set f__arg_real1=a2 set f__arg_real2=a3 - call TriggerEvaluate(st___prototype254[i]) + call TriggerEvaluate(st___prototype251[i]) endfunction -function sc___prototype270_execute takes integer i,integer a1,string a2,string a3,string a4 returns nothing +function sc___prototype267_execute takes integer i,integer a1,string a2,string a3,string a4 returns nothing set f__arg_integer1=a1 set f__arg_string1=a2 set f__arg_string2=a3 set f__arg_string3=a4 - call TriggerExecute(st___prototype270[i]) + call TriggerExecute(st___prototype267[i]) endfunction -function sc___prototype270_evaluate takes integer i,integer a1,string a2,string a3,string a4 returns nothing +function sc___prototype267_evaluate takes integer i,integer a1,string a2,string a3,string a4 returns nothing set f__arg_integer1=a1 set f__arg_string1=a2 set f__arg_string2=a3 set f__arg_string3=a4 - call TriggerEvaluate(st___prototype270[i]) + call TriggerEvaluate(st___prototype267[i]) endfunction -function sc___prototype280_execute takes integer i,player a1,real a2,real a3,string a4 returns nothing +function sc___prototype277_execute takes integer i,player a1,real a2,real a3,string a4 returns nothing set f__arg_player1=a1 set f__arg_real1=a2 set f__arg_real2=a3 set f__arg_string1=a4 - call TriggerExecute(st___prototype280[i]) + call TriggerExecute(st___prototype277[i]) endfunction -function sc___prototype280_evaluate takes integer i,player a1,real a2,real a3,string a4 returns nothing +function sc___prototype277_evaluate takes integer i,player a1,real a2,real a3,string a4 returns nothing set f__arg_player1=a1 set f__arg_real1=a2 set f__arg_real2=a3 set f__arg_string1=a4 - call TriggerEvaluate(st___prototype280[i]) + call TriggerEvaluate(st___prototype277[i]) endfunction -function sc___prototype281_execute takes integer i,player a1,real a2,real a3,real a4,string a5 returns nothing +function sc___prototype278_execute takes integer i,player a1,real a2,real a3,real a4,string a5 returns nothing set f__arg_player1=a1 set f__arg_real1=a2 set f__arg_real2=a3 set f__arg_real3=a4 set f__arg_string1=a5 - call TriggerExecute(st___prototype281[i]) + call TriggerExecute(st___prototype278[i]) endfunction -function sc___prototype281_evaluate takes integer i,player a1,real a2,real a3,real a4,string a5 returns nothing +function sc___prototype278_evaluate takes integer i,player a1,real a2,real a3,real a4,string a5 returns nothing set f__arg_player1=a1 set f__arg_real1=a2 set f__arg_real2=a3 set f__arg_real3=a4 set f__arg_string1=a5 - call TriggerEvaluate(st___prototype281[i]) + call TriggerEvaluate(st___prototype278[i]) endfunction -function sc___prototype282_execute takes integer i,force a1,string a2 returns nothing +function sc___prototype279_execute takes integer i,force a1,string a2 returns nothing set f__arg_force1=a1 set f__arg_string1=a2 - call TriggerExecute(st___prototype282[i]) + call TriggerExecute(st___prototype279[i]) endfunction -function sc___prototype282_evaluate takes integer i,force a1,string a2 returns nothing +function sc___prototype279_evaluate takes integer i,force a1,string a2 returns nothing set f__arg_force1=a1 set f__arg_string1=a2 - call TriggerEvaluate(st___prototype282[i]) + call TriggerEvaluate(st___prototype279[i]) endfunction -function sc___prototype283_execute takes integer i,force a1,real a2,string a3 returns nothing +function sc___prototype280_execute takes integer i,force a1,real a2,string a3 returns nothing set f__arg_force1=a1 set f__arg_real1=a2 set f__arg_string1=a3 - call TriggerExecute(st___prototype283[i]) + call TriggerExecute(st___prototype280[i]) endfunction -function sc___prototype283_evaluate takes integer i,force a1,real a2,string a3 returns nothing +function sc___prototype280_evaluate takes integer i,force a1,real a2,string a3 returns nothing set f__arg_force1=a1 set f__arg_real1=a2 set f__arg_string1=a3 - call TriggerEvaluate(st___prototype283[i]) + call TriggerEvaluate(st___prototype280[i]) endfunction -function sc___prototype284_execute takes integer i,force a1,integer a2,string a3 returns nothing +function sc___prototype281_execute takes integer i,force a1,integer a2,string a3 returns nothing set f__arg_force1=a1 set f__arg_integer1=a2 set f__arg_string1=a3 - call TriggerExecute(st___prototype284[i]) + call TriggerExecute(st___prototype281[i]) endfunction -function sc___prototype284_evaluate takes integer i,force a1,integer a2,string a3 returns nothing +function sc___prototype281_evaluate takes integer i,force a1,integer a2,string a3 returns nothing set f__arg_force1=a1 set f__arg_integer1=a2 set f__arg_string1=a3 - call TriggerEvaluate(st___prototype284[i]) + call TriggerEvaluate(st___prototype281[i]) endfunction -function sc___prototype285_execute takes integer i,force a1,unit a2,string a3,sound a4,string a5,integer a6,real a7,boolean a8 returns nothing +function sc___prototype282_execute takes integer i,force a1,unit a2,string a3,sound a4,string a5,integer a6,real a7,boolean a8 returns nothing set f__arg_force1=a1 set f__arg_unit1=a2 set f__arg_string1=a3 @@ -15515,9 +15519,9 @@ function sc___prototype285_execute takes integer i,force a1,unit a2,string a3,so set f__arg_real1=a7 set f__arg_boolean1=a8 - call TriggerExecute(st___prototype285[i]) + call TriggerExecute(st___prototype282[i]) endfunction -function sc___prototype285_evaluate takes integer i,force a1,unit a2,string a3,sound a4,string a5,integer a6,real a7,boolean a8 returns nothing +function sc___prototype282_evaluate takes integer i,force a1,unit a2,string a3,sound a4,string a5,integer a6,real a7,boolean a8 returns nothing set f__arg_force1=a1 set f__arg_unit1=a2 set f__arg_string1=a3 @@ -15527,10 +15531,10 @@ function sc___prototype285_evaluate takes integer i,force a1,unit a2,string a3,s set f__arg_real1=a7 set f__arg_boolean1=a8 - call TriggerEvaluate(st___prototype285[i]) + call TriggerEvaluate(st___prototype282[i]) endfunction -function sc___prototype286_execute takes integer i,force a1,player a2,integer a3,string a4,location a5,sound a6,string a7,integer a8,real a9,boolean a10 returns nothing +function sc___prototype283_execute takes integer i,force a1,player a2,integer a3,string a4,location a5,sound a6,string a7,integer a8,real a9,boolean a10 returns nothing set f__arg_force1=a1 set f__arg_player1=a2 set f__arg_integer1=a3 @@ -15542,9 +15546,9 @@ function sc___prototype286_execute takes integer i,force a1,player a2,integer a3 set f__arg_real1=a9 set f__arg_boolean1=a10 - call TriggerExecute(st___prototype286[i]) + call TriggerExecute(st___prototype283[i]) endfunction -function sc___prototype286_evaluate takes integer i,force a1,player a2,integer a3,string a4,location a5,sound a6,string a7,integer a8,real a9,boolean a10 returns nothing +function sc___prototype283_evaluate takes integer i,force a1,player a2,integer a3,string a4,location a5,sound a6,string a7,integer a8,real a9,boolean a10 returns nothing set f__arg_force1=a1 set f__arg_player1=a2 set f__arg_integer1=a3 @@ -15556,10 +15560,10 @@ function sc___prototype286_evaluate takes integer i,force a1,player a2,integer a set f__arg_real1=a9 set f__arg_boolean1=a10 - call TriggerEvaluate(st___prototype286[i]) + call TriggerEvaluate(st___prototype283[i]) endfunction -function sc___prototype287_execute takes integer i,integer a1,playercolor a2,string a3,string a4,real a5,real a6 returns nothing +function sc___prototype284_execute takes integer i,integer a1,playercolor a2,string a3,string a4,real a5,real a6 returns nothing set f__arg_integer1=a1 set f__arg_playercolor1=a2 set f__arg_string1=a3 @@ -15567,9 +15571,9 @@ function sc___prototype287_execute takes integer i,integer a1,playercolor a2,str set f__arg_real1=a5 set f__arg_real2=a6 - call TriggerExecute(st___prototype287[i]) + call TriggerExecute(st___prototype284[i]) endfunction -function sc___prototype287_evaluate takes integer i,integer a1,playercolor a2,string a3,string a4,real a5,real a6 returns nothing +function sc___prototype284_evaluate takes integer i,integer a1,playercolor a2,string a3,string a4,real a5,real a6 returns nothing set f__arg_integer1=a1 set f__arg_playercolor1=a2 set f__arg_string1=a3 @@ -15577,10 +15581,10 @@ function sc___prototype287_evaluate takes integer i,integer a1,playercolor a2,st set f__arg_real1=a5 set f__arg_real2=a6 - call TriggerEvaluate(st___prototype287[i]) + call TriggerEvaluate(st___prototype284[i]) endfunction -function sc___prototype288_execute takes integer i,sound a1,integer a2,playercolor a3,string a4,string a5,real a6,real a7 returns nothing +function sc___prototype285_execute takes integer i,sound a1,integer a2,playercolor a3,string a4,string a5,real a6,real a7 returns nothing set f__arg_sound1=a1 set f__arg_integer1=a2 set f__arg_playercolor1=a3 @@ -15589,9 +15593,9 @@ function sc___prototype288_execute takes integer i,sound a1,integer a2,playercol set f__arg_real1=a6 set f__arg_real2=a7 - call TriggerExecute(st___prototype288[i]) + call TriggerExecute(st___prototype285[i]) endfunction -function sc___prototype288_evaluate takes integer i,sound a1,integer a2,playercolor a3,string a4,string a5,real a6,real a7 returns nothing +function sc___prototype285_evaluate takes integer i,sound a1,integer a2,playercolor a3,string a4,string a5,real a6,real a7 returns nothing set f__arg_sound1=a1 set f__arg_integer1=a2 set f__arg_playercolor1=a3 @@ -15600,7 +15604,7 @@ function sc___prototype288_evaluate takes integer i,sound a1,integer a2,playerco set f__arg_real1=a6 set f__arg_real2=a7 - call TriggerEvaluate(st___prototype288[i]) + call TriggerEvaluate(st___prototype285[i]) endfunction function sc___prototype359_execute takes integer i,integer a1,unit a2 returns nothing @@ -15644,30 +15648,30 @@ function sc___prototype464_evaluate takes integer i,quest a1,boolean a2 returns call TriggerEvaluate(st___prototype464[i]) endfunction -function sc___prototype485_execute takes integer i,boolean a1,unit a2 returns nothing +function sc___prototype486_execute takes integer i,boolean a1,unit a2 returns nothing set f__arg_boolean1=a1 set f__arg_unit1=a2 - call TriggerExecute(st___prototype485[i]) + call TriggerExecute(st___prototype486[i]) endfunction -function sc___prototype485_evaluate takes integer i,boolean a1,unit a2 returns nothing +function sc___prototype486_evaluate takes integer i,boolean a1,unit a2 returns nothing set f__arg_boolean1=a1 set f__arg_unit1=a2 - call TriggerEvaluate(st___prototype485[i]) + call TriggerEvaluate(st___prototype486[i]) endfunction -function sc___prototype486_execute takes integer i,unit a1,location a2 returns nothing +function sc___prototype487_execute takes integer i,unit a1,location a2 returns nothing set f__arg_unit1=a1 set f__arg_location1=a2 - call TriggerExecute(st___prototype486[i]) + call TriggerExecute(st___prototype487[i]) endfunction -function sc___prototype486_evaluate takes integer i,unit a1,location a2 returns nothing +function sc___prototype487_evaluate takes integer i,unit a1,location a2 returns nothing set f__arg_unit1=a1 set f__arg_location1=a2 - call TriggerEvaluate(st___prototype486[i]) + call TriggerEvaluate(st___prototype487[i]) endfunction function h__RemoveUnit takes unit a0 returns nothing @@ -15677,7 +15681,7 @@ function h__RemoveUnit takes unit a0 returns nothing call sc___prototype10_evaluate(2,a0) //hook: IdleWorkersSystem__RemoveUnitHook call sc___prototype10_evaluate(3,a0) - //hook: ItemOrbOfLight___RemoveUnitHook + //hook: ItemOrbOfLight__RemoveUnitHook call sc___prototype10_evaluate(4,a0) //hook: RemoveUnitSoundSetPerUnit call sc___prototype10_evaluate(5,a0) @@ -15707,9 +15711,9 @@ function h__RemoveUnit takes unit a0 returns nothing call sc___prototype10_evaluate(15,a0) //hook: PhoenixEgg___RemoveUnitHook call sc___prototype10_evaluate(16,a0) - //hook: Railway___RemoveUnitHook + //hook: Railway__RemoveUnitHook call sc___prototype10_evaluate(17,a0) - //hook: RayConfig___RemoveUnitHook + //hook: RayConfig__RemoveUnitHook call sc___prototype10_evaluate(18,a0) //hook: Telekinesis___RemoveUnitTelekinesis call sc___prototype10_evaluate(19,a0) @@ -15717,7 +15721,7 @@ function h__RemoveUnit takes unit a0 returns nothing call sc___prototype10_evaluate(20,a0) //hook: RemoveAuraCaster call sc___prototype10_evaluate(21,a0) - //hook: WoWReforgedOldHorde___RemoveDeathKnightHook + //hook: WoWReforgedOldHorde__RemoveDeathKnightHook call sc___prototype10_evaluate(22,a0) //hook: WoWReforgedSummonedUnits__RemoveUnitHook call sc___prototype10_evaluate(23,a0) @@ -15734,12 +15738,12 @@ function h__RemoveUnit takes unit a0 returns nothing call RemoveUnit(a0) endfunction function h__DestroyBoolExpr takes boolexpr a0 returns nothing - //hook: GroupUtils___HookDestroyBoolExpr + //hook: GroupUtils__HookDestroyBoolExpr call sc___prototype54_evaluate(1,a0) call DestroyBoolExpr(a0) endfunction function h__RemoveItem takes item a0 returns nothing - //hook: ItemRespawnSystem___RemoveItemCleanup + //hook: ItemRespawnSystem__RemoveItemCleanup call sc___prototype80_evaluate(1,a0) call RemoveItem(a0) endfunction @@ -15831,69 +15835,69 @@ call UpdateEachStockBuilding(a0,a1) endfunction function h__CreateQuestBJ takes integer a0, string a1, string a2, string a3 returns quest //hook: WoWReforgedInfoQuests___CreateQuestBJHook - call sc___prototype270_evaluate(1,a0,a1,a2,a3) + call sc___prototype267_evaluate(1,a0,a1,a2,a3) //hook: WoWReforgedQuests___CreateQuestBJHook - call sc___prototype270_evaluate(2,a0,a1,a2,a3) + call sc___prototype267_evaluate(2,a0,a1,a2,a3) return CreateQuestBJ(a0,a1,a2,a3) endfunction function h__DisplayTextToPlayer takes player a0, real a1, real a2, string a3 returns nothing - //hook: Log___DisplayTextToPlayerHook - call sc___prototype280_evaluate(1,a0,a1,a2,a3) + //hook: Log__DisplayTextToPlayerHook + call sc___prototype277_evaluate(1,a0,a1,a2,a3) call DisplayTextToPlayer(a0,a1,a2,a3) endfunction function h__DisplayTimedTextToPlayer takes player a0, real a1, real a2, real a3, string a4 returns nothing - //hook: Log___DisplayTimedTextToPlayerHook - call sc___prototype281_evaluate(1,a0,a1,a2,a3,a4) + //hook: Log__DisplayTimedTextToPlayerHook + call sc___prototype278_evaluate(1,a0,a1,a2,a3,a4) call DisplayTimedTextToPlayer(a0,a1,a2,a3,a4) endfunction function h__DisplayTimedTextFromPlayer takes player a0, real a1, real a2, real a3, string a4 returns nothing - //hook: Log___DisplayTimedTextFromPlayerHook - call sc___prototype281_evaluate(2,a0,a1,a2,a3,a4) + //hook: Log__DisplayTimedTextFromPlayerHook + call sc___prototype278_evaluate(2,a0,a1,a2,a3,a4) call DisplayTimedTextFromPlayer(a0,a1,a2,a3,a4) endfunction function h__DisplayTextToForce takes force a0, string a1 returns nothing - //hook: Log___DisplayTextToForceHook - call sc___prototype282_evaluate(1,a0,a1) + //hook: Log__DisplayTextToForceHook + call sc___prototype279_evaluate(1,a0,a1) call DisplayTextToForce(a0,a1) endfunction function h__DisplayTimedTextToForce takes force a0, real a1, string a2 returns nothing - //hook: Log___DisplayTimedTextToForceHook - call sc___prototype283_evaluate(1,a0,a1,a2) + //hook: Log__DisplayTimedTextToForceHook + call sc___prototype280_evaluate(1,a0,a1,a2) call DisplayTimedTextToForce(a0,a1,a2) endfunction function h__QuestMessageBJ takes force a0, integer a1, string a2 returns nothing - //hook: Log___QuestMessageBJHook - call sc___prototype284_evaluate(1,a0,a1,a2) + //hook: Log__QuestMessageBJHook + call sc___prototype281_evaluate(1,a0,a1,a2) call QuestMessageBJ(a0,a1,a2) endfunction function h__BJDebugMsg takes string a0 returns nothing - //hook: Log___BJDebugMsgHook + //hook: Log__BJDebugMsgHook call sc___prototype38_evaluate(2,a0) call BJDebugMsg(a0) endfunction function h__BlzDisplayChatMessage takes player a0, integer a1, string a2 returns nothing - //hook: Log___BlzDisplayChatMessageHook + //hook: Log__BlzDisplayChatMessageHook call sc___prototype93_evaluate(1,a0,a1,a2) call BlzDisplayChatMessage(a0,a1,a2) endfunction function h__TransmissionFromUnitWithNameBJ takes force a0, unit a1, string a2, sound a3, string a4, integer a5, real a6, boolean a7 returns nothing - //hook: Log___TransmissionFromUnitWithNameBJHook - call sc___prototype285_evaluate(1,a0,a1,a2,a3,a4,a5,a6,a7) + //hook: Log__TransmissionFromUnitWithNameBJHook + call sc___prototype282_evaluate(1,a0,a1,a2,a3,a4,a5,a6,a7) call TransmissionFromUnitWithNameBJ(a0,a1,a2,a3,a4,a5,a6,a7) endfunction function h__TransmissionFromUnitTypeWithNameBJ takes force a0, player a1, integer a2, string a3, location a4, sound a5, string a6, integer a7, real a8, boolean a9 returns nothing - //hook: Log___TransmissionFromUnitTypeWithNameBJHook - call sc___prototype286_evaluate(1,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9) + //hook: Log__TransmissionFromUnitTypeWithNameBJHook + call sc___prototype283_evaluate(1,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9) call TransmissionFromUnitTypeWithNameBJ(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9) endfunction function h__SetCinematicScene takes integer a0, playercolor a1, string a2, string a3, real a4, real a5 returns nothing - //hook: Log___SetCinematicSceneHook - call sc___prototype287_evaluate(1,a0,a1,a2,a3,a4,a5) + //hook: Log__SetCinematicSceneHook + call sc___prototype284_evaluate(1,a0,a1,a2,a3,a4,a5) call SetCinematicScene(a0,a1,a2,a3,a4,a5) endfunction function h__SetCinematicSceneBJ takes sound a0, integer a1, playercolor a2, string a3, string a4, real a5, real a6 returns nothing - //hook: Log___SetCinematicSceneBJHook - call sc___prototype288_evaluate(1,a0,a1,a2,a3,a4,a5,a6) + //hook: Log__SetCinematicSceneBJHook + call sc___prototype285_evaluate(1,a0,a1,a2,a3,a4,a5,a6) call SetCinematicSceneBJ(a0,a1,a2,a3,a4,a5,a6) endfunction function h__GroupAddUnitSimple takes unit a0, group a1 returns nothing @@ -15913,17 +15917,17 @@ call WaygateActivate(a0,a1) endfunction function h__WaygateActivateBJ takes boolean a0, unit a1 returns nothing //hook: WoWReforgedPortals__HookWaygateActivateBJ - call sc___prototype485_evaluate(1,a0,a1) + call sc___prototype486_evaluate(1,a0,a1) call WaygateActivateBJ(a0,a1) endfunction function h__WaygateSetDestination takes unit a0, real a1, real a2 returns nothing //hook: WoWReforgedPortals__HookWaygateSetDestination - call sc___prototype254_evaluate(1,a0,a1,a2) + call sc___prototype251_evaluate(1,a0,a1,a2) call WaygateSetDestination(a0,a1,a2) endfunction function h__WaygateSetDestinationLocBJ takes unit a0, location a1 returns nothing //hook: WoWReforgedPortals__HookWaygateSetDestinationLocBJ - call sc___prototype486_evaluate(1,a0,a1) + call sc___prototype487_evaluate(1,a0,a1) call WaygateSetDestinationLocBJ(a0,a1) endfunction @@ -16350,31 +16354,31 @@ endfunction //library Alloc ends //library Ascii: function Char2Ascii takes string p returns integer - local integer z= Ascii___i[StringHash(p) / 0x1F0748 + 0x40D] - if ( Ascii___c[z] != p ) then - if ( Ascii___c[z - 32] != p ) then - if ( Ascii___c[Ascii___h[z]] != p ) then - if ( Ascii___c[Ascii___y[z]] != p ) then - if ( Ascii___c[83] != p ) then + local integer z= Ascii__i[StringHash(p) / 0x1F0748 + 0x40D] + if ( Ascii__c[z] != p ) then + if ( Ascii__c[z - 32] != p ) then + if ( Ascii__c[Ascii__h[z]] != p ) then + if ( Ascii__c[Ascii__y[z]] != p ) then + if ( Ascii__c[83] != p ) then return 0 endif return 83 endif - return Ascii___y[z] + return Ascii__y[z] endif - return Ascii___h[z] + return Ascii__h[z] endif return z - 32 endif return z endfunction function Ascii2Char takes integer a returns string - return Ascii___c[a] + return Ascii__c[a] endfunction function A2S takes integer a returns string local string s="" loop - set s=Ascii___c[a - a / 256 * 256] + s + set s=Ascii__c[a - a / 256 * 256] + s set a=a / 256 exitwhen 0 == a endloop @@ -16385,7 +16389,7 @@ endfunction local integer l=StringLength(s) local integer j=0 local string m - local integer l__Ascii___h + local integer l__Ascii__h loop exitwhen j == l set a=a * 256 + Char2Ascii(SubString(s, j, j + 1)) @@ -16393,437 +16397,437 @@ endfunction endloop return a endfunction -//Implemented from module Ascii___Init: - function s__Ascii___Inits_Ascii___Init___onInit takes nothing returns nothing - set Ascii___i[966]=8 - set Ascii___i[1110]=9 - set Ascii___i[1621]=10 - set Ascii___i[1375]=12 - set Ascii___i[447]=13 - set Ascii___i[233]=32 - set Ascii___i[2014]=33 - set Ascii___i[1348]=34 - set Ascii___i[1038]=35 - set Ascii___i[1299]=36 - set Ascii___i[1018]=37 - set Ascii___i[1312]=38 - set Ascii___i[341]=39 - set Ascii___i[939]=40 - set Ascii___i[969]=41 - set Ascii___i[952]=42 - set Ascii___i[2007]=43 - set Ascii___i[1415]=44 - set Ascii___i[2020]=45 - set Ascii___i[904]=46 - set Ascii___i[1941]=47 - set Ascii___i[918]=48 - set Ascii___i[1593]=49 - set Ascii___i[719]=50 - set Ascii___i[617]=51 - set Ascii___i[703]=52 - set Ascii___i[573]=53 - set Ascii___i[707]=54 - set Ascii___i[1208]=55 - set Ascii___i[106]=56 - set Ascii___i[312]=57 - set Ascii___i[124]=58 - set Ascii___i[1176]=59 - set Ascii___i[74]=60 - set Ascii___i[1206]=61 - set Ascii___i[86]=62 - set Ascii___i[340]=63 - set Ascii___i[35]=64 - set Ascii___i[257]=65 - set Ascii___i[213]=66 - set Ascii___i[271]=67 - set Ascii___i[219]=68 - set Ascii___i[1330]=69 - set Ascii___i[1425]=70 - set Ascii___i[1311]=71 - set Ascii___i[238]=72 - set Ascii___i[1349]=73 - set Ascii___i[244]=74 - set Ascii___i[1350]=75 - set Ascii___i[205]=76 - set Ascii___i[1392]=77 - set Ascii___i[1378]=78 - set Ascii___i[1432]=79 - set Ascii___i[1455]=80 - set Ascii___i[1454]=81 - set Ascii___i[1431]=82 - set Ascii___i[1409]=83 - set Ascii___i[1442]=84 - set Ascii___i[534]=85 - set Ascii___i[1500]=86 - set Ascii___i[771]=87 - set Ascii___i[324]=88 - set Ascii___i[1021]=89 - set Ascii___i[73]=90 - set Ascii___i[1265]=91 - set Ascii___i[1941]=92 - set Ascii___i[1671]=93 - set Ascii___i[1451]=94 - set Ascii___i[1952]=95 - set Ascii___i[252]=96 - set Ascii___i[257]=97 - set Ascii___i[213]=98 - set Ascii___i[271]=99 - set Ascii___i[219]=100 - set Ascii___i[1330]=101 - set Ascii___i[1425]=102 - set Ascii___i[1311]=103 - set Ascii___i[238]=104 - set Ascii___i[1349]=105 - set Ascii___i[244]=106 - set Ascii___i[1350]=107 - set Ascii___i[205]=108 - set Ascii___i[1392]=109 - set Ascii___i[1378]=110 - set Ascii___i[1432]=111 - set Ascii___i[1455]=112 - set Ascii___i[1454]=113 - set Ascii___i[1431]=114 - set Ascii___i[1409]=115 - set Ascii___i[1442]=116 - set Ascii___i[534]=117 - set Ascii___i[1500]=118 - set Ascii___i[771]=119 - set Ascii___i[324]=120 - set Ascii___i[1021]=121 - set Ascii___i[73]=122 - set Ascii___i[868]=123 - set Ascii___i[1254]=124 - set Ascii___i[588]=125 - set Ascii___i[93]=126 - set Ascii___i[316]=161 - set Ascii___i[779]=162 - set Ascii___i[725]=163 - set Ascii___i[287]=164 - set Ascii___i[212]=165 - set Ascii___i[7]=166 - set Ascii___i[29]=167 - set Ascii___i[1958]=168 - set Ascii___i[1009]=169 - set Ascii___i[1580]=170 - set Ascii___i[1778]=171 - set Ascii___i[103]=172 - set Ascii___i[400]=174 - set Ascii___i[1904]=175 - set Ascii___i[135]=176 - set Ascii___i[1283]=177 - set Ascii___i[469]=178 - set Ascii___i[363]=179 - set Ascii___i[550]=180 - set Ascii___i[1831]=181 - set Ascii___i[1308]=182 - set Ascii___i[1234]=183 - set Ascii___i[1017]=184 - set Ascii___i[1093]=185 - set Ascii___i[1577]=186 - set Ascii___i[606]=187 - set Ascii___i[1585]=188 - set Ascii___i[1318]=189 - set Ascii___i[980]=190 - set Ascii___i[1699]=191 - set Ascii___i[1292]=192 - set Ascii___i[477]=193 - set Ascii___i[709]=194 - set Ascii___i[1600]=195 - set Ascii___i[2092]=196 - set Ascii___i[50]=197 - set Ascii___i[546]=198 - set Ascii___i[408]=199 - set Ascii___i[853]=200 - set Ascii___i[205]=201 - set Ascii___i[411]=202 - set Ascii___i[1311]=203 - set Ascii___i[1422]=204 - set Ascii___i[1808]=205 - set Ascii___i[457]=206 - set Ascii___i[1280]=207 - set Ascii___i[614]=208 - set Ascii___i[1037]=209 - set Ascii___i[237]=210 - set Ascii___i[1409]=211 - set Ascii___i[1023]=212 - set Ascii___i[1361]=213 - set Ascii___i[695]=214 - set Ascii___i[161]=215 - set Ascii___i[1645]=216 - set Ascii___i[1822]=217 - set Ascii___i[644]=218 - set Ascii___i[1395]=219 - set Ascii___i[677]=220 - set Ascii___i[1677]=221 - set Ascii___i[881]=222 - set Ascii___i[861]=223 - set Ascii___i[1408]=224 - set Ascii___i[1864]=225 - set Ascii___i[1467]=226 - set Ascii___i[1819]=227 - set Ascii___i[1971]=228 - set Ascii___i[949]=229 - set Ascii___i[774]=230 - set Ascii___i[1828]=231 - set Ascii___i[865]=232 - set Ascii___i[699]=233 - set Ascii___i[786]=234 - set Ascii___i[1806]=235 - set Ascii___i[1286]=236 - set Ascii___i[1128]=237 - set Ascii___i[1490]=238 - set Ascii___i[1720]=239 - set Ascii___i[1817]=240 - set Ascii___i[729]=241 - set Ascii___i[1191]=242 - set Ascii___i[1164]=243 - set Ascii___i[413]=244 - set Ascii___i[349]=245 - set Ascii___i[1409]=246 - set Ascii___i[660]=247 - set Ascii___i[2016]=248 - set Ascii___i[1087]=249 - set Ascii___i[1497]=250 - set Ascii___i[753]=251 - set Ascii___i[1579]=252 - set Ascii___i[1456]=253 - set Ascii___i[606]=254 - set Ascii___i[1625]=255 - set Ascii___h[92]=47 - set Ascii___h[201]=108 - set Ascii___h[201]=76 - set Ascii___h[203]=103 - set Ascii___h[203]=71 - set Ascii___h[246]=115 - set Ascii___h[246]=83 - set Ascii___h[246]=211 - set Ascii___h[254]=187 - set Ascii___y[201]=108 - set Ascii___y[203]=103 - set Ascii___y[246]=115 - - set Ascii___c[8]="\b" - set Ascii___c[9]="\t" - set Ascii___c[10]="\n" - set Ascii___c[12]="\f" - set Ascii___c[13]="\r" - set Ascii___c[32]=" " - set Ascii___c[33]="!" - set Ascii___c[34]="\"" - set Ascii___c[35]="#" - set Ascii___c[36]="$" - set Ascii___c[37]="" - set Ascii___c[38]="&" - set Ascii___c[39]="'" - set Ascii___c[40]="(" - set Ascii___c[41]=")" - set Ascii___c[42]="*" - set Ascii___c[43]="+" - set Ascii___c[44]="," - set Ascii___c[45]="-" - set Ascii___c[46]="." - set Ascii___c[47]="/" - set Ascii___c[48]="0" - set Ascii___c[49]="1" - set Ascii___c[50]="2" - set Ascii___c[51]="3" - set Ascii___c[52]="4" - set Ascii___c[53]="5" - set Ascii___c[54]="6" - set Ascii___c[55]="7" - set Ascii___c[56]="8" - set Ascii___c[57]="9" - set Ascii___c[58]=":" - set Ascii___c[59]=";" - set Ascii___c[60]="<" - set Ascii___c[61]="=" - set Ascii___c[62]=">" - set Ascii___c[63]="?" - set Ascii___c[64]="@" - set Ascii___c[65]="A" - set Ascii___c[66]="B" - set Ascii___c[67]="C" - set Ascii___c[68]="D" - set Ascii___c[69]="E" - set Ascii___c[70]="F" - set Ascii___c[71]="G" - set Ascii___c[72]="H" - set Ascii___c[73]="I" - set Ascii___c[74]="J" - set Ascii___c[75]="K" - set Ascii___c[76]="L" - set Ascii___c[77]="M" - set Ascii___c[78]="N" - set Ascii___c[79]="O" - set Ascii___c[80]="P" - set Ascii___c[81]="Q" - set Ascii___c[82]="R" - set Ascii___c[83]="S" - set Ascii___c[84]="T" - set Ascii___c[85]="U" - set Ascii___c[86]="V" - set Ascii___c[87]="W" - set Ascii___c[88]="X" - set Ascii___c[89]="Y" - set Ascii___c[90]="Z" - set Ascii___c[91]="[" - set Ascii___c[92]="\\" - set Ascii___c[93]="]" - set Ascii___c[94]="^" - set Ascii___c[95]="_" - set Ascii___c[96]="`" - set Ascii___c[97]="a" - set Ascii___c[98]="b" - set Ascii___c[99]="c" - set Ascii___c[100]="d" - set Ascii___c[101]="e" - set Ascii___c[102]="f" - set Ascii___c[103]="g" - set Ascii___c[104]="h" - set Ascii___c[105]="i" - set Ascii___c[106]="j" - set Ascii___c[107]="k" - set Ascii___c[108]="l" - set Ascii___c[109]="m" - set Ascii___c[110]="n" - set Ascii___c[111]="o" - set Ascii___c[112]="p" - set Ascii___c[113]="q" - set Ascii___c[114]="r" - set Ascii___c[115]="s" - set Ascii___c[116]="t" - set Ascii___c[117]="u" - set Ascii___c[118]="v" - set Ascii___c[119]="w" - set Ascii___c[120]="x" - set Ascii___c[121]="y" - set Ascii___c[122]="z" - set Ascii___c[123]="{" - set Ascii___c[124]="|" - set Ascii___c[125]="}" - set Ascii___c[126]="~" - set Ascii___c[128]="€" - set Ascii___c[130]="‚" - set Ascii___c[131]="ƒ" - set Ascii___c[132]="„" - set Ascii___c[133]="…" - set Ascii___c[134]="†" - set Ascii___c[135]="‡" - set Ascii___c[136]="ˆ" - set Ascii___c[137]="‰" - set Ascii___c[138]="Š" - set Ascii___c[139]="‹" - set Ascii___c[140]="Œ" - set Ascii___c[142]="Ž" - set Ascii___c[145]="‘" - set Ascii___c[146]="’" - set Ascii___c[147]="“" - set Ascii___c[148]="”" - set Ascii___c[149]="•" - set Ascii___c[150]="–" - set Ascii___c[151]="—" - set Ascii___c[152]="˜" - set Ascii___c[153]="™" - set Ascii___c[154]="š" - set Ascii___c[155]="›" - set Ascii___c[156]="œ" - set Ascii___c[158]="ž" - set Ascii___c[159]="Ÿ" - set Ascii___c[160]=" " - set Ascii___c[161]="¡" - set Ascii___c[162]="¢" - set Ascii___c[163]="£" - set Ascii___c[164]="¤" - set Ascii___c[165]="¥" - set Ascii___c[166]="¦" - set Ascii___c[167]="§" - set Ascii___c[168]="¨" - set Ascii___c[169]="©" - set Ascii___c[170]="ª" - set Ascii___c[171]="«" - set Ascii___c[172]="¬" - set Ascii___c[174]="®" - set Ascii___c[175]="¯" - set Ascii___c[176]="°" - set Ascii___c[177]="±" - set Ascii___c[178]="²" - set Ascii___c[179]="³" - set Ascii___c[180]="´" - set Ascii___c[181]="µ" - set Ascii___c[182]="¶" - set Ascii___c[183]="·" - set Ascii___c[184]="¸" - set Ascii___c[185]="¹" - set Ascii___c[186]="º" - set Ascii___c[187]="»" - set Ascii___c[188]="¼" - set Ascii___c[189]="½" - set Ascii___c[190]="¾" - set Ascii___c[191]="¿" - set Ascii___c[192]="À" - set Ascii___c[193]="Á" - set Ascii___c[194]="Â" - set Ascii___c[195]="Ã" - set Ascii___c[196]="Ä" - set Ascii___c[197]="Å" - set Ascii___c[198]="Æ" - set Ascii___c[199]="Ç" - set Ascii___c[200]="È" - set Ascii___c[201]="É" - set Ascii___c[202]="Ê" - set Ascii___c[203]="Ë" - set Ascii___c[204]="Ì" - set Ascii___c[205]="Í" - set Ascii___c[206]="Î" - set Ascii___c[207]="Ï" - set Ascii___c[208]="Ð" - set Ascii___c[209]="Ñ" - set Ascii___c[210]="Ò" - set Ascii___c[211]="Ó" - set Ascii___c[212]="Ô" - set Ascii___c[213]="Õ" - set Ascii___c[214]="Ö" - set Ascii___c[215]="×" - set Ascii___c[216]="Ø" - set Ascii___c[217]="Ù" - set Ascii___c[218]="Ú" - set Ascii___c[219]="Û" - set Ascii___c[220]="Ü" - set Ascii___c[221]="Ý" - set Ascii___c[222]="Þ" - set Ascii___c[223]="ß" - set Ascii___c[224]="à" - set Ascii___c[225]="á" - set Ascii___c[226]="â" - set Ascii___c[227]="ã" - set Ascii___c[228]="ä" - set Ascii___c[229]="å" - set Ascii___c[230]="æ" - set Ascii___c[231]="ç" - set Ascii___c[232]="è" - set Ascii___c[233]="é" - set Ascii___c[234]="ê" - set Ascii___c[235]="ë" - set Ascii___c[236]="ì" - set Ascii___c[237]="í" - set Ascii___c[238]="î" - set Ascii___c[239]="ï" - set Ascii___c[240]="ð" - set Ascii___c[241]="ñ" - set Ascii___c[242]="ò" - set Ascii___c[243]="ó" - set Ascii___c[244]="ô" - set Ascii___c[245]="õ" - set Ascii___c[246]="ö" - set Ascii___c[247]="÷" - set Ascii___c[248]="ø" - set Ascii___c[249]="ù" - set Ascii___c[250]="ú" - set Ascii___c[251]="û" - set Ascii___c[252]="ü" - set Ascii___c[253]="ý" - set Ascii___c[254]="þ" - set Ascii___c[255]="ÿ" +//Implemented from module Ascii__Init: + function s__Ascii__Inits_Ascii__Init__onInit takes nothing returns nothing + set Ascii__i[966]=8 + set Ascii__i[1110]=9 + set Ascii__i[1621]=10 + set Ascii__i[1375]=12 + set Ascii__i[447]=13 + set Ascii__i[233]=32 + set Ascii__i[2014]=33 + set Ascii__i[1348]=34 + set Ascii__i[1038]=35 + set Ascii__i[1299]=36 + set Ascii__i[1018]=37 + set Ascii__i[1312]=38 + set Ascii__i[341]=39 + set Ascii__i[939]=40 + set Ascii__i[969]=41 + set Ascii__i[952]=42 + set Ascii__i[2007]=43 + set Ascii__i[1415]=44 + set Ascii__i[2020]=45 + set Ascii__i[904]=46 + set Ascii__i[1941]=47 + set Ascii__i[918]=48 + set Ascii__i[1593]=49 + set Ascii__i[719]=50 + set Ascii__i[617]=51 + set Ascii__i[703]=52 + set Ascii__i[573]=53 + set Ascii__i[707]=54 + set Ascii__i[1208]=55 + set Ascii__i[106]=56 + set Ascii__i[312]=57 + set Ascii__i[124]=58 + set Ascii__i[1176]=59 + set Ascii__i[74]=60 + set Ascii__i[1206]=61 + set Ascii__i[86]=62 + set Ascii__i[340]=63 + set Ascii__i[35]=64 + set Ascii__i[257]=65 + set Ascii__i[213]=66 + set Ascii__i[271]=67 + set Ascii__i[219]=68 + set Ascii__i[1330]=69 + set Ascii__i[1425]=70 + set Ascii__i[1311]=71 + set Ascii__i[238]=72 + set Ascii__i[1349]=73 + set Ascii__i[244]=74 + set Ascii__i[1350]=75 + set Ascii__i[205]=76 + set Ascii__i[1392]=77 + set Ascii__i[1378]=78 + set Ascii__i[1432]=79 + set Ascii__i[1455]=80 + set Ascii__i[1454]=81 + set Ascii__i[1431]=82 + set Ascii__i[1409]=83 + set Ascii__i[1442]=84 + set Ascii__i[534]=85 + set Ascii__i[1500]=86 + set Ascii__i[771]=87 + set Ascii__i[324]=88 + set Ascii__i[1021]=89 + set Ascii__i[73]=90 + set Ascii__i[1265]=91 + set Ascii__i[1941]=92 + set Ascii__i[1671]=93 + set Ascii__i[1451]=94 + set Ascii__i[1952]=95 + set Ascii__i[252]=96 + set Ascii__i[257]=97 + set Ascii__i[213]=98 + set Ascii__i[271]=99 + set Ascii__i[219]=100 + set Ascii__i[1330]=101 + set Ascii__i[1425]=102 + set Ascii__i[1311]=103 + set Ascii__i[238]=104 + set Ascii__i[1349]=105 + set Ascii__i[244]=106 + set Ascii__i[1350]=107 + set Ascii__i[205]=108 + set Ascii__i[1392]=109 + set Ascii__i[1378]=110 + set Ascii__i[1432]=111 + set Ascii__i[1455]=112 + set Ascii__i[1454]=113 + set Ascii__i[1431]=114 + set Ascii__i[1409]=115 + set Ascii__i[1442]=116 + set Ascii__i[534]=117 + set Ascii__i[1500]=118 + set Ascii__i[771]=119 + set Ascii__i[324]=120 + set Ascii__i[1021]=121 + set Ascii__i[73]=122 + set Ascii__i[868]=123 + set Ascii__i[1254]=124 + set Ascii__i[588]=125 + set Ascii__i[93]=126 + set Ascii__i[316]=161 + set Ascii__i[779]=162 + set Ascii__i[725]=163 + set Ascii__i[287]=164 + set Ascii__i[212]=165 + set Ascii__i[7]=166 + set Ascii__i[29]=167 + set Ascii__i[1958]=168 + set Ascii__i[1009]=169 + set Ascii__i[1580]=170 + set Ascii__i[1778]=171 + set Ascii__i[103]=172 + set Ascii__i[400]=174 + set Ascii__i[1904]=175 + set Ascii__i[135]=176 + set Ascii__i[1283]=177 + set Ascii__i[469]=178 + set Ascii__i[363]=179 + set Ascii__i[550]=180 + set Ascii__i[1831]=181 + set Ascii__i[1308]=182 + set Ascii__i[1234]=183 + set Ascii__i[1017]=184 + set Ascii__i[1093]=185 + set Ascii__i[1577]=186 + set Ascii__i[606]=187 + set Ascii__i[1585]=188 + set Ascii__i[1318]=189 + set Ascii__i[980]=190 + set Ascii__i[1699]=191 + set Ascii__i[1292]=192 + set Ascii__i[477]=193 + set Ascii__i[709]=194 + set Ascii__i[1600]=195 + set Ascii__i[2092]=196 + set Ascii__i[50]=197 + set Ascii__i[546]=198 + set Ascii__i[408]=199 + set Ascii__i[853]=200 + set Ascii__i[205]=201 + set Ascii__i[411]=202 + set Ascii__i[1311]=203 + set Ascii__i[1422]=204 + set Ascii__i[1808]=205 + set Ascii__i[457]=206 + set Ascii__i[1280]=207 + set Ascii__i[614]=208 + set Ascii__i[1037]=209 + set Ascii__i[237]=210 + set Ascii__i[1409]=211 + set Ascii__i[1023]=212 + set Ascii__i[1361]=213 + set Ascii__i[695]=214 + set Ascii__i[161]=215 + set Ascii__i[1645]=216 + set Ascii__i[1822]=217 + set Ascii__i[644]=218 + set Ascii__i[1395]=219 + set Ascii__i[677]=220 + set Ascii__i[1677]=221 + set Ascii__i[881]=222 + set Ascii__i[861]=223 + set Ascii__i[1408]=224 + set Ascii__i[1864]=225 + set Ascii__i[1467]=226 + set Ascii__i[1819]=227 + set Ascii__i[1971]=228 + set Ascii__i[949]=229 + set Ascii__i[774]=230 + set Ascii__i[1828]=231 + set Ascii__i[865]=232 + set Ascii__i[699]=233 + set Ascii__i[786]=234 + set Ascii__i[1806]=235 + set Ascii__i[1286]=236 + set Ascii__i[1128]=237 + set Ascii__i[1490]=238 + set Ascii__i[1720]=239 + set Ascii__i[1817]=240 + set Ascii__i[729]=241 + set Ascii__i[1191]=242 + set Ascii__i[1164]=243 + set Ascii__i[413]=244 + set Ascii__i[349]=245 + set Ascii__i[1409]=246 + set Ascii__i[660]=247 + set Ascii__i[2016]=248 + set Ascii__i[1087]=249 + set Ascii__i[1497]=250 + set Ascii__i[753]=251 + set Ascii__i[1579]=252 + set Ascii__i[1456]=253 + set Ascii__i[606]=254 + set Ascii__i[1625]=255 + set Ascii__h[92]=47 + set Ascii__h[201]=108 + set Ascii__h[201]=76 + set Ascii__h[203]=103 + set Ascii__h[203]=71 + set Ascii__h[246]=115 + set Ascii__h[246]=83 + set Ascii__h[246]=211 + set Ascii__h[254]=187 + set Ascii__y[201]=108 + set Ascii__y[203]=103 + set Ascii__y[246]=115 + + set Ascii__c[8]="\b" + set Ascii__c[9]="\t" + set Ascii__c[10]="\n" + set Ascii__c[12]="\f" + set Ascii__c[13]="\r" + set Ascii__c[32]=" " + set Ascii__c[33]="!" + set Ascii__c[34]="\"" + set Ascii__c[35]="#" + set Ascii__c[36]="$" + set Ascii__c[37]="" + set Ascii__c[38]="&" + set Ascii__c[39]="'" + set Ascii__c[40]="(" + set Ascii__c[41]=")" + set Ascii__c[42]="*" + set Ascii__c[43]="+" + set Ascii__c[44]="," + set Ascii__c[45]="-" + set Ascii__c[46]="." + set Ascii__c[47]="/" + set Ascii__c[48]="0" + set Ascii__c[49]="1" + set Ascii__c[50]="2" + set Ascii__c[51]="3" + set Ascii__c[52]="4" + set Ascii__c[53]="5" + set Ascii__c[54]="6" + set Ascii__c[55]="7" + set Ascii__c[56]="8" + set Ascii__c[57]="9" + set Ascii__c[58]=":" + set Ascii__c[59]=";" + set Ascii__c[60]="<" + set Ascii__c[61]="=" + set Ascii__c[62]=">" + set Ascii__c[63]="?" + set Ascii__c[64]="@" + set Ascii__c[65]="A" + set Ascii__c[66]="B" + set Ascii__c[67]="C" + set Ascii__c[68]="D" + set Ascii__c[69]="E" + set Ascii__c[70]="F" + set Ascii__c[71]="G" + set Ascii__c[72]="H" + set Ascii__c[73]="I" + set Ascii__c[74]="J" + set Ascii__c[75]="K" + set Ascii__c[76]="L" + set Ascii__c[77]="M" + set Ascii__c[78]="N" + set Ascii__c[79]="O" + set Ascii__c[80]="P" + set Ascii__c[81]="Q" + set Ascii__c[82]="R" + set Ascii__c[83]="S" + set Ascii__c[84]="T" + set Ascii__c[85]="U" + set Ascii__c[86]="V" + set Ascii__c[87]="W" + set Ascii__c[88]="X" + set Ascii__c[89]="Y" + set Ascii__c[90]="Z" + set Ascii__c[91]="[" + set Ascii__c[92]="\\" + set Ascii__c[93]="]" + set Ascii__c[94]="^" + set Ascii__c[95]="_" + set Ascii__c[96]="`" + set Ascii__c[97]="a" + set Ascii__c[98]="b" + set Ascii__c[99]="c" + set Ascii__c[100]="d" + set Ascii__c[101]="e" + set Ascii__c[102]="f" + set Ascii__c[103]="g" + set Ascii__c[104]="h" + set Ascii__c[105]="i" + set Ascii__c[106]="j" + set Ascii__c[107]="k" + set Ascii__c[108]="l" + set Ascii__c[109]="m" + set Ascii__c[110]="n" + set Ascii__c[111]="o" + set Ascii__c[112]="p" + set Ascii__c[113]="q" + set Ascii__c[114]="r" + set Ascii__c[115]="s" + set Ascii__c[116]="t" + set Ascii__c[117]="u" + set Ascii__c[118]="v" + set Ascii__c[119]="w" + set Ascii__c[120]="x" + set Ascii__c[121]="y" + set Ascii__c[122]="z" + set Ascii__c[123]="{" + set Ascii__c[124]="|" + set Ascii__c[125]="}" + set Ascii__c[126]="~" + set Ascii__c[128]="€" + set Ascii__c[130]="‚" + set Ascii__c[131]="ƒ" + set Ascii__c[132]="„" + set Ascii__c[133]="…" + set Ascii__c[134]="†" + set Ascii__c[135]="‡" + set Ascii__c[136]="ˆ" + set Ascii__c[137]="‰" + set Ascii__c[138]="Š" + set Ascii__c[139]="‹" + set Ascii__c[140]="Œ" + set Ascii__c[142]="Ž" + set Ascii__c[145]="‘" + set Ascii__c[146]="’" + set Ascii__c[147]="“" + set Ascii__c[148]="”" + set Ascii__c[149]="•" + set Ascii__c[150]="–" + set Ascii__c[151]="—" + set Ascii__c[152]="˜" + set Ascii__c[153]="™" + set Ascii__c[154]="š" + set Ascii__c[155]="›" + set Ascii__c[156]="œ" + set Ascii__c[158]="ž" + set Ascii__c[159]="Ÿ" + set Ascii__c[160]=" " + set Ascii__c[161]="¡" + set Ascii__c[162]="¢" + set Ascii__c[163]="£" + set Ascii__c[164]="¤" + set Ascii__c[165]="¥" + set Ascii__c[166]="¦" + set Ascii__c[167]="§" + set Ascii__c[168]="¨" + set Ascii__c[169]="©" + set Ascii__c[170]="ª" + set Ascii__c[171]="«" + set Ascii__c[172]="¬" + set Ascii__c[174]="®" + set Ascii__c[175]="¯" + set Ascii__c[176]="°" + set Ascii__c[177]="±" + set Ascii__c[178]="²" + set Ascii__c[179]="³" + set Ascii__c[180]="´" + set Ascii__c[181]="µ" + set Ascii__c[182]="¶" + set Ascii__c[183]="·" + set Ascii__c[184]="¸" + set Ascii__c[185]="¹" + set Ascii__c[186]="º" + set Ascii__c[187]="»" + set Ascii__c[188]="¼" + set Ascii__c[189]="½" + set Ascii__c[190]="¾" + set Ascii__c[191]="¿" + set Ascii__c[192]="À" + set Ascii__c[193]="Á" + set Ascii__c[194]="Â" + set Ascii__c[195]="Ã" + set Ascii__c[196]="Ä" + set Ascii__c[197]="Å" + set Ascii__c[198]="Æ" + set Ascii__c[199]="Ç" + set Ascii__c[200]="È" + set Ascii__c[201]="É" + set Ascii__c[202]="Ê" + set Ascii__c[203]="Ë" + set Ascii__c[204]="Ì" + set Ascii__c[205]="Í" + set Ascii__c[206]="Î" + set Ascii__c[207]="Ï" + set Ascii__c[208]="Ð" + set Ascii__c[209]="Ñ" + set Ascii__c[210]="Ò" + set Ascii__c[211]="Ó" + set Ascii__c[212]="Ô" + set Ascii__c[213]="Õ" + set Ascii__c[214]="Ö" + set Ascii__c[215]="×" + set Ascii__c[216]="Ø" + set Ascii__c[217]="Ù" + set Ascii__c[218]="Ú" + set Ascii__c[219]="Û" + set Ascii__c[220]="Ü" + set Ascii__c[221]="Ý" + set Ascii__c[222]="Þ" + set Ascii__c[223]="ß" + set Ascii__c[224]="à" + set Ascii__c[225]="á" + set Ascii__c[226]="â" + set Ascii__c[227]="ã" + set Ascii__c[228]="ä" + set Ascii__c[229]="å" + set Ascii__c[230]="æ" + set Ascii__c[231]="ç" + set Ascii__c[232]="è" + set Ascii__c[233]="é" + set Ascii__c[234]="ê" + set Ascii__c[235]="ë" + set Ascii__c[236]="ì" + set Ascii__c[237]="í" + set Ascii__c[238]="î" + set Ascii__c[239]="ï" + set Ascii__c[240]="ð" + set Ascii__c[241]="ñ" + set Ascii__c[242]="ò" + set Ascii__c[243]="ó" + set Ascii__c[244]="ô" + set Ascii__c[245]="õ" + set Ascii__c[246]="ö" + set Ascii__c[247]="÷" + set Ascii__c[248]="ø" + set Ascii__c[249]="ù" + set Ascii__c[250]="ú" + set Ascii__c[251]="û" + set Ascii__c[252]="ü" + set Ascii__c[253]="ý" + set Ascii__c[254]="þ" + set Ascii__c[255]="ÿ" endfunction //library Ascii ends @@ -16912,74 +16916,74 @@ endfunction function GetTriggerBlackArrowCaster takes nothing returns unit - return BlackArrowSystem___BlackArrowCaster + return BlackArrowSystem__BlackArrowCaster endfunction function GetTriggerBlackArrowTarget takes nothing returns unit - return BlackArrowSystem___BlackArrowTarget + return BlackArrowSystem__BlackArrowTarget endfunction function GetTriggerBlackArrowSummonedUnits takes nothing returns group - return BlackArrowSystem___BlackArrowSummonedUnits + return BlackArrowSystem__BlackArrowSummonedUnits endfunction function GetTriggerBlackArrowAbilityId takes nothing returns integer - return BlackArrowSystem___BlackArrowAbilityId + return BlackArrowSystem__BlackArrowAbilityId endfunction function TriggerRegisterBlackArrowEvent takes trigger whichTrigger returns nothing - set BlackArrowSystem___BlackArrowCallbackTrigger[BlackArrowSystem___BlackArrowCallbackTriggerCounter]=whichTrigger - set BlackArrowSystem___BlackArrowCallbackTriggerCounter=BlackArrowSystem___BlackArrowCallbackTriggerCounter + 1 + set BlackArrowSystem__BlackArrowCallbackTrigger[BlackArrowSystem__BlackArrowCallbackTriggerCounter]=whichTrigger + set BlackArrowSystem__BlackArrowCallbackTriggerCounter=BlackArrowSystem__BlackArrowCallbackTriggerCounter + 1 endfunction function BlackArrowAddAbility takes integer abilityId,integer level,integer summonedUnitTypeId,integer summonedUnitsCount,real summonedUnitDuration,real durationHero,real durationUnit,integer buffId returns integer - set BlackArrowSystem___BlackArrowAbiliyId[BlackArrowSystem___BlackArrowAbilityCounter]=abilityId - set BlackArrowSystem___BlackArrowAbiliyLevel[BlackArrowSystem___BlackArrowAbilityCounter]=level - set BlackArrowSystem___BlackArrowAbiliySummonedUnitTypeId[BlackArrowSystem___BlackArrowAbilityCounter]=summonedUnitTypeId - set BlackArrowSystem___BlackArrowAbiliySummonedUnitsCount[BlackArrowSystem___BlackArrowAbilityCounter]=summonedUnitsCount - set BlackArrowSystem___BlackArrowAbiliySummonedUnitDuration[BlackArrowSystem___BlackArrowAbilityCounter]=summonedUnitDuration - set BlackArrowSystem___BlackArrowAbiliyDurationHero[BlackArrowSystem___BlackArrowAbilityCounter]=durationHero - set BlackArrowSystem___BlackArrowAbiliyDurationUnit[BlackArrowSystem___BlackArrowAbilityCounter]=durationUnit - set BlackArrowSystem___BlackArrowAbiliyBuffId[BlackArrowSystem___BlackArrowAbilityCounter]=buffId + set BlackArrowSystem__BlackArrowAbiliyId[BlackArrowSystem__BlackArrowAbilityCounter]=abilityId + set BlackArrowSystem__BlackArrowAbiliyLevel[BlackArrowSystem__BlackArrowAbilityCounter]=level + set BlackArrowSystem__BlackArrowAbiliySummonedUnitTypeId[BlackArrowSystem__BlackArrowAbilityCounter]=summonedUnitTypeId + set BlackArrowSystem__BlackArrowAbiliySummonedUnitsCount[BlackArrowSystem__BlackArrowAbilityCounter]=summonedUnitsCount + set BlackArrowSystem__BlackArrowAbiliySummonedUnitDuration[BlackArrowSystem__BlackArrowAbilityCounter]=summonedUnitDuration + set BlackArrowSystem__BlackArrowAbiliyDurationHero[BlackArrowSystem__BlackArrowAbilityCounter]=durationHero + set BlackArrowSystem__BlackArrowAbiliyDurationUnit[BlackArrowSystem__BlackArrowAbilityCounter]=durationUnit + set BlackArrowSystem__BlackArrowAbiliyBuffId[BlackArrowSystem__BlackArrowAbilityCounter]=buffId - set BlackArrowSystem___BlackArrowAbilityCounter=BlackArrowSystem___BlackArrowAbilityCounter + 1 + set BlackArrowSystem__BlackArrowAbilityCounter=BlackArrowSystem__BlackArrowAbilityCounter + 1 - return BlackArrowSystem___BlackArrowAbilityCounter - 1 + return BlackArrowSystem__BlackArrowAbilityCounter - 1 endfunction function BlackArrowAddItemTypeId takes integer itemTypeId,integer abilityIndex returns integer - set BlackArrowSystem___BlackArrowItemTypeId[BlackArrowSystem___BlackArrowItemTypeCounter]=itemTypeId - set BlackArrowSystem___BlackArrowItemTypeAbilityIndex[BlackArrowSystem___BlackArrowItemTypeCounter]=abilityIndex + set BlackArrowSystem__BlackArrowItemTypeId[BlackArrowSystem__BlackArrowItemTypeCounter]=itemTypeId + set BlackArrowSystem__BlackArrowItemTypeAbilityIndex[BlackArrowSystem__BlackArrowItemTypeCounter]=abilityIndex - set BlackArrowSystem___BlackArrowItemTypeCounter=BlackArrowSystem___BlackArrowItemTypeCounter + 1 + set BlackArrowSystem__BlackArrowItemTypeCounter=BlackArrowSystem__BlackArrowItemTypeCounter + 1 - return BlackArrowSystem___BlackArrowItemTypeCounter - 1 + return BlackArrowSystem__BlackArrowItemTypeCounter - 1 endfunction function BlackArrowAddAutoCaster takes unit whichUnit returns nothing - call GroupAddUnit(BlackArrowSystem___BlackArrowAutoCasters, whichUnit) + call GroupAddUnit(BlackArrowSystem__BlackArrowAutoCasters, whichUnit) endfunction function BlackArrowRemoveAutoCaster takes unit whichUnit returns nothing - call GroupRemoveUnit(BlackArrowSystem___BlackArrowAutoCasters, whichUnit) + call GroupRemoveUnit(BlackArrowSystem__BlackArrowAutoCasters, whichUnit) endfunction function BlackArrowIsAutoCaster takes unit which returns boolean - return IsUnitInGroup(which, BlackArrowSystem___BlackArrowAutoCasters) + return IsUnitInGroup(which, BlackArrowSystem__BlackArrowAutoCasters) endfunction function BlackArrowPrintDebug takes nothing returns nothing - call h__BJDebugMsg("Targets: " + I2S(CountUnitsInGroup(BlackArrowSystem___BlackArrowTargets))) - call h__BJDebugMsg("Auto Casters: " + I2S(CountUnitsInGroup(BlackArrowSystem___BlackArrowAutoCasters))) - call h__BJDebugMsg("Item Units: " + I2S(CountUnitsInGroup(BlackArrowSystem___BlackArrowItemUnits))) + call h__BJDebugMsg("Targets: " + I2S(CountUnitsInGroup(BlackArrowSystem__BlackArrowTargets))) + call h__BJDebugMsg("Auto Casters: " + I2S(CountUnitsInGroup(BlackArrowSystem__BlackArrowAutoCasters))) + call h__BJDebugMsg("Item Units: " + I2S(CountUnitsInGroup(BlackArrowSystem__BlackArrowItemUnits))) endfunction -function BlackArrowSystem___GetMatchingBlackArrowAbilityIndex takes unit caster returns integer +function BlackArrowSystem__GetMatchingBlackArrowAbilityIndex takes unit caster returns integer local integer result= 0 local integer i= 1 loop - exitwhen ( i >= BlackArrowSystem___BlackArrowAbilityCounter or result > 0 ) - if ( GetUnitAbilityLevel(caster, BlackArrowSystem___BlackArrowAbiliyId[i]) == BlackArrowSystem___BlackArrowAbiliyLevel[i] ) then + exitwhen ( i >= BlackArrowSystem__BlackArrowAbilityCounter or result > 0 ) + if ( GetUnitAbilityLevel(caster, BlackArrowSystem__BlackArrowAbiliyId[i]) == BlackArrowSystem__BlackArrowAbiliyLevel[i] ) then set result=i endif set i=i + 1 @@ -16988,12 +16992,12 @@ function BlackArrowSystem___GetMatchingBlackArrowAbilityIndex takes unit caster return result endfunction -function BlackArrowSystem___GetMatchingBlackArrowItemTypeIndex takes integer itemTypeId returns integer +function BlackArrowSystem__GetMatchingBlackArrowItemTypeIndex takes integer itemTypeId returns integer local integer result= 0 local integer i= 1 loop - exitwhen ( i >= BlackArrowSystem___BlackArrowItemTypeCounter or result > 0 ) - if ( BlackArrowSystem___BlackArrowItemTypeId[i] == itemTypeId ) then + exitwhen ( i >= BlackArrowSystem__BlackArrowItemTypeCounter or result > 0 ) + if ( BlackArrowSystem__BlackArrowItemTypeId[i] == itemTypeId ) then set result=i endif set i=i + 1 @@ -17002,92 +17006,92 @@ function BlackArrowSystem___GetMatchingBlackArrowItemTypeIndex takes integer ite return result endfunction -function BlackArrowSystem___TimerFunctionBlackArrowBuffExpires takes nothing returns nothing - local unit target= LoadUnitHandle(BlackArrowSystem___BlackArrowHashTable, GetHandleId(GetExpiredTimer()), 0) - call FlushChildHashtable(BlackArrowSystem___BlackArrowHashTable, GetHandleId(target)) +function BlackArrowSystem__TimerFunctionBlackArrowBuffExpires takes nothing returns nothing + local unit target= LoadUnitHandle(BlackArrowSystem__BlackArrowHashTable, GetHandleId(GetExpiredTimer()), 0) + call FlushChildHashtable(BlackArrowSystem__BlackArrowHashTable, GetHandleId(target)) call UnitRemoveAbility(target, BlackArrowSystem_BUFF_ABILITY_ID) - call GroupRemoveUnit(BlackArrowSystem___BlackArrowTargets, target) + call GroupRemoveUnit(BlackArrowSystem__BlackArrowTargets, target) set target=null endfunction -function BlackArrowSystem___MarkTarget takes integer abilityIndex,unit source,unit target returns nothing - local timer whichTimer= LoadTimerHandle(BlackArrowSystem___BlackArrowHashTable, 0, GetHandleId(target)) +function BlackArrowSystem__MarkTarget takes integer abilityIndex,unit source,unit target returns nothing + local timer whichTimer= LoadTimerHandle(BlackArrowSystem__BlackArrowHashTable, 0, GetHandleId(target)) //call BJDebugMsg("Marking Black Arrow target " + GetUnitName(GetTriggerUnit())) if ( whichTimer != null ) then - call FlushChildHashtable(BlackArrowSystem___BlackArrowHashTable, GetHandleId(whichTimer)) + call FlushChildHashtable(BlackArrowSystem__BlackArrowHashTable, GetHandleId(whichTimer)) call PauseTimer(whichTimer) call DestroyTimer(whichTimer) set whichTimer=null endif set whichTimer=CreateTimer() - call SaveUnitHandle(BlackArrowSystem___BlackArrowHashTable, GetHandleId(whichTimer), 0, target) - call SaveTimerHandle(BlackArrowSystem___BlackArrowHashTable, GetHandleId(target), 0, whichTimer) - call SaveUnitHandle(BlackArrowSystem___BlackArrowHashTable, GetHandleId(target), 1, source) - call SaveInteger(BlackArrowSystem___BlackArrowHashTable, GetHandleId(target), 2, abilityIndex) + call SaveUnitHandle(BlackArrowSystem__BlackArrowHashTable, GetHandleId(whichTimer), 0, target) + call SaveTimerHandle(BlackArrowSystem__BlackArrowHashTable, GetHandleId(target), 0, whichTimer) + call SaveUnitHandle(BlackArrowSystem__BlackArrowHashTable, GetHandleId(target), 1, source) + call SaveInteger(BlackArrowSystem__BlackArrowHashTable, GetHandleId(target), 2, abilityIndex) if ( IsUnitType(target, UNIT_TYPE_HERO) ) then - call TimerStart(whichTimer, BlackArrowSystem___BlackArrowAbiliyDurationHero[abilityIndex], false, function BlackArrowSystem___TimerFunctionBlackArrowBuffExpires) + call TimerStart(whichTimer, BlackArrowSystem__BlackArrowAbiliyDurationHero[abilityIndex], false, function BlackArrowSystem__TimerFunctionBlackArrowBuffExpires) else - call TimerStart(whichTimer, BlackArrowSystem___BlackArrowAbiliyDurationUnit[abilityIndex], false, function BlackArrowSystem___TimerFunctionBlackArrowBuffExpires) + call TimerStart(whichTimer, BlackArrowSystem__BlackArrowAbiliyDurationUnit[abilityIndex], false, function BlackArrowSystem__TimerFunctionBlackArrowBuffExpires) endif call UnitAddAbility(target, BlackArrowSystem_BUFF_ABILITY_ID) - if ( not IsUnitInGroup(target, BlackArrowSystem___BlackArrowTargets) ) then - call GroupAddUnit(BlackArrowSystem___BlackArrowTargets, target) + if ( not IsUnitInGroup(target, BlackArrowSystem__BlackArrowTargets) ) then + call GroupAddUnit(BlackArrowSystem__BlackArrowTargets, target) endif endfunction -function BlackArrowSystem___ExecuteCallbackTriggers takes unit source,unit target,group summonedUnits,integer abilityId returns nothing +function BlackArrowSystem__ExecuteCallbackTriggers takes unit source,unit target,group summonedUnits,integer abilityId returns nothing local integer i= 0 - set BlackArrowSystem___BlackArrowCaster=source - set BlackArrowSystem___BlackArrowTarget=target - set BlackArrowSystem___BlackArrowSummonedUnits=summonedUnits - set BlackArrowSystem___BlackArrowAbilityId=abilityId + set BlackArrowSystem__BlackArrowCaster=source + set BlackArrowSystem__BlackArrowTarget=target + set BlackArrowSystem__BlackArrowSummonedUnits=summonedUnits + set BlackArrowSystem__BlackArrowAbilityId=abilityId loop - exitwhen ( i == BlackArrowSystem___BlackArrowCallbackTriggerCounter ) - call TriggerExecute(BlackArrowSystem___BlackArrowCallbackTrigger[i]) + exitwhen ( i == BlackArrowSystem__BlackArrowCallbackTriggerCounter ) + call TriggerExecute(BlackArrowSystem__BlackArrowCallbackTrigger[i]) set i=i + 1 endloop endfunction -function BlackArrowSystem___SummonEffect takes integer abilityIndex,unit source,unit target returns group +function BlackArrowSystem__SummonEffect takes integer abilityIndex,unit source,unit target returns group local location tmpLocation= GetUnitLoc(target) // Does not leak since it uses bj_lastCreatedGroup: - local group summonedUnits= CreateNUnitsAtLoc(BlackArrowSystem___BlackArrowAbiliySummonedUnitsCount[abilityIndex], BlackArrowSystem___BlackArrowAbiliySummonedUnitTypeId[abilityIndex], GetOwningPlayer(source), tmpLocation, GetUnitFacing(target)) + local group summonedUnits= CreateNUnitsAtLoc(BlackArrowSystem__BlackArrowAbiliySummonedUnitsCount[abilityIndex], BlackArrowSystem__BlackArrowAbiliySummonedUnitTypeId[abilityIndex], GetOwningPlayer(source), tmpLocation, GetUnitFacing(target)) local integer i= 0 loop exitwhen ( i == BlzGroupGetSize(summonedUnits) ) call SetUnitAnimation(BlzGroupUnitAt(summonedUnits, i), "Birth") - call UnitApplyTimedLife(BlzGroupUnitAt(summonedUnits, i), BlackArrowSystem___BlackArrowAbiliyBuffId[abilityIndex], BlackArrowSystem___BlackArrowAbiliySummonedUnitDuration[abilityIndex]) + call UnitApplyTimedLife(BlzGroupUnitAt(summonedUnits, i), BlackArrowSystem__BlackArrowAbiliyBuffId[abilityIndex], BlackArrowSystem__BlackArrowAbiliySummonedUnitDuration[abilityIndex]) set i=i + 1 endloop - call BlackArrowSystem___ExecuteCallbackTriggers(source , target , summonedUnits , BlackArrowSystem___BlackArrowAbiliyId[abilityIndex]) + call BlackArrowSystem__ExecuteCallbackTriggers(source , target , summonedUnits , BlackArrowSystem__BlackArrowAbiliyId[abilityIndex]) return summonedUnits endfunction -function BlackArrowSystem___Effect takes unit target returns group - local timer whichTimer= LoadTimerHandle(BlackArrowSystem___BlackArrowHashTable, GetHandleId(target), 0) - local unit source= LoadUnitHandle(BlackArrowSystem___BlackArrowHashTable, GetHandleId(target), 1) - local integer abilityIndex= LoadInteger(BlackArrowSystem___BlackArrowHashTable, GetHandleId(target), 2) - local group summonedUnits= BlackArrowSystem___SummonEffect(abilityIndex , source , target) +function BlackArrowSystem__Effect takes unit target returns group + local timer whichTimer= LoadTimerHandle(BlackArrowSystem__BlackArrowHashTable, GetHandleId(target), 0) + local unit source= LoadUnitHandle(BlackArrowSystem__BlackArrowHashTable, GetHandleId(target), 1) + local integer abilityIndex= LoadInteger(BlackArrowSystem__BlackArrowHashTable, GetHandleId(target), 2) + local group summonedUnits= BlackArrowSystem__SummonEffect(abilityIndex , source , target) //call BJDebugMsg("Black Arrow effect on target " + GetUnitName(target) + " with ability level " + I2S(BlackArrowAbiliyLevel[abilityIndex]) + " summoning units of type " + GetObjectName(BlackArrowAbiliySummonedUnitTypeId[abilityIndex])) if ( whichTimer != null ) then - call FlushChildHashtable(BlackArrowSystem___BlackArrowHashTable, GetHandleId(whichTimer)) + call FlushChildHashtable(BlackArrowSystem__BlackArrowHashTable, GetHandleId(whichTimer)) call PauseTimer(whichTimer) call DestroyTimer(whichTimer) set whichTimer=null endif - call FlushChildHashtable(BlackArrowSystem___BlackArrowHashTable, GetHandleId(target)) + call FlushChildHashtable(BlackArrowSystem__BlackArrowHashTable, GetHandleId(target)) call UnitRemoveAbility(target, BlackArrowSystem_BUFF_ABILITY_ID) - call GroupRemoveUnit(BlackArrowSystem___BlackArrowTargets, target) + call GroupRemoveUnit(BlackArrowSystem__BlackArrowTargets, target) // remove the decaying corpse call h__RemoveUnit(target) @@ -17098,15 +17102,15 @@ function BlackArrowSystem___Effect takes unit target returns group return summonedUnits endfunction -function BlackArrowSystem___TriggerConditionDamage takes nothing returns boolean - return not IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_SUMMONED) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_MECHANICAL) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_RESISTANT) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_MAGIC_IMMUNE) and GetUnitLevel(GetTriggerUnit()) > 5 and ( ( IsUnitInGroup(GetEventDamageSource(), BlackArrowSystem___BlackArrowAutoCasters) and BlackArrowSystem___GetMatchingBlackArrowAbilityIndex(GetEventDamageSource()) > 0 ) or IsUnitInGroup(GetEventDamageSource(), BlackArrowSystem___BlackArrowItemUnits) ) +function BlackArrowSystem__TriggerConditionDamage takes nothing returns boolean + return not IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_SUMMONED) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_MECHANICAL) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_RESISTANT) and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_MAGIC_IMMUNE) and GetUnitLevel(GetTriggerUnit()) > 5 and ( ( IsUnitInGroup(GetEventDamageSource(), BlackArrowSystem__BlackArrowAutoCasters) and BlackArrowSystem__GetMatchingBlackArrowAbilityIndex(GetEventDamageSource()) > 0 ) or IsUnitInGroup(GetEventDamageSource(), BlackArrowSystem__BlackArrowItemUnits) ) endfunction function BlackArrowUnitGetOrbItem takes unit whichUnit,item excludeItem returns integer local integer i= 0 loop exitwhen ( i >= UnitInventorySize(whichUnit) ) - if ( ( excludeItem == null or UnitItemInSlot(whichUnit, i) != excludeItem ) and BlackArrowSystem___GetMatchingBlackArrowItemTypeIndex(GetItemTypeId(UnitItemInSlot(whichUnit, i))) > 0 ) then + if ( ( excludeItem == null or UnitItemInSlot(whichUnit, i) != excludeItem ) and BlackArrowSystem__GetMatchingBlackArrowItemTypeIndex(GetItemTypeId(UnitItemInSlot(whichUnit, i))) > 0 ) then return i endif set i=i + 1 @@ -17114,53 +17118,53 @@ function BlackArrowUnitGetOrbItem takes unit whichUnit,item excludeItem returns return - 1 endfunction -function BlackArrowSystem___TriggerActionDamage takes nothing returns nothing +function BlackArrowSystem__TriggerActionDamage takes nothing returns nothing local integer itemIndex= BlackArrowUnitGetOrbItem(GetEventDamageSource() , null) - local integer abilityIndex= BlackArrowSystem___GetMatchingBlackArrowAbilityIndex(GetEventDamageSource()) + local integer abilityIndex= BlackArrowSystem__GetMatchingBlackArrowAbilityIndex(GetEventDamageSource()) if ( itemIndex != - 1 and abilityIndex == 0 ) then - call BlackArrowSystem___MarkTarget(BlackArrowSystem___BlackArrowItemTypeAbilityIndex[itemIndex] , GetEventDamageSource() , GetTriggerUnit()) + call BlackArrowSystem__MarkTarget(BlackArrowSystem__BlackArrowItemTypeAbilityIndex[itemIndex] , GetEventDamageSource() , GetTriggerUnit()) else - call BlackArrowSystem___MarkTarget(abilityIndex , GetEventDamageSource() , GetTriggerUnit()) + call BlackArrowSystem__MarkTarget(abilityIndex , GetEventDamageSource() , GetTriggerUnit()) endif endfunction -function BlackArrowSystem___TriggerConditionDeath takes nothing returns boolean - return IsUnitInGroup(GetTriggerUnit(), BlackArrowSystem___BlackArrowTargets) +function BlackArrowSystem__TriggerConditionDeath takes nothing returns boolean + return IsUnitInGroup(GetTriggerUnit(), BlackArrowSystem__BlackArrowTargets) endfunction -function BlackArrowSystem___TriggerActionDeath takes nothing returns nothing - call BlackArrowSystem___Effect(GetTriggerUnit()) +function BlackArrowSystem__TriggerActionDeath takes nothing returns nothing + call BlackArrowSystem__Effect(GetTriggerUnit()) endfunction -function BlackArrowSystem___TriggerConditionOrder takes nothing returns boolean +function BlackArrowSystem__TriggerConditionOrder takes nothing returns boolean return GetIssuedOrderId() == OrderId(BlackArrowSystem_ORDER_ON) or GetIssuedOrderId() == OrderId(BlackArrowSystem_ORDER_OFF) endfunction -function BlackArrowSystem___TriggerActionOrder takes nothing returns nothing +function BlackArrowSystem__TriggerActionOrder takes nothing returns nothing if ( GetIssuedOrderId() == OrderId(BlackArrowSystem_ORDER_ON) ) then - if ( not (IsUnitInGroup((GetTriggerUnit()), BlackArrowSystem___BlackArrowAutoCasters)) ) then // INLINED!! - call GroupAddUnit(BlackArrowSystem___BlackArrowAutoCasters, (GetTriggerUnit())) // INLINED!! + if ( not (IsUnitInGroup((GetTriggerUnit()), BlackArrowSystem__BlackArrowAutoCasters)) ) then // INLINED!! + call GroupAddUnit(BlackArrowSystem__BlackArrowAutoCasters, (GetTriggerUnit())) // INLINED!! //call BJDebugMsg("Adding unit " + GetUnitName(caster) + " to casters.") endif else - if ( (IsUnitInGroup((GetTriggerUnit()), BlackArrowSystem___BlackArrowAutoCasters)) ) then // INLINED!! - call GroupRemoveUnit(BlackArrowSystem___BlackArrowAutoCasters, (GetTriggerUnit())) // INLINED!! + if ( (IsUnitInGroup((GetTriggerUnit()), BlackArrowSystem__BlackArrowAutoCasters)) ) then // INLINED!! + call GroupRemoveUnit(BlackArrowSystem__BlackArrowAutoCasters, (GetTriggerUnit())) // INLINED!! //call BJDebugMsg("Removing unit " + GetUnitName(GetTriggerUnit()) + " from casters.") endif endif endfunction -function BlackArrowSystem___TriggerConditionPickupItem takes nothing returns boolean - return not IsUnitInGroup(GetTriggerUnit(), BlackArrowSystem___BlackArrowItemUnits) and BlackArrowSystem___GetMatchingBlackArrowItemTypeIndex(GetItemTypeId(GetManipulatedItem())) > 0 +function BlackArrowSystem__TriggerConditionPickupItem takes nothing returns boolean + return not IsUnitInGroup(GetTriggerUnit(), BlackArrowSystem__BlackArrowItemUnits) and BlackArrowSystem__GetMatchingBlackArrowItemTypeIndex(GetItemTypeId(GetManipulatedItem())) > 0 endfunction -function BlackArrowSystem___TriggerActionPickupItem takes nothing returns nothing - call GroupAddUnit(BlackArrowSystem___BlackArrowItemUnits, GetTriggerUnit()) +function BlackArrowSystem__TriggerActionPickupItem takes nothing returns nothing + call GroupAddUnit(BlackArrowSystem__BlackArrowItemUnits, GetTriggerUnit()) //call BJDebugMsg("Unit " + GetUnitName(GetTriggerUnit()) + " picked up a Black Arrow orb item.") endfunction -function BlackArrowSystem___TriggerConditionDropItem takes nothing returns boolean - local boolean result= IsUnitInGroup(GetTriggerUnit(), BlackArrowSystem___BlackArrowItemUnits) and BlackArrowSystem___GetMatchingBlackArrowItemTypeIndex(GetItemTypeId(GetManipulatedItem())) > 0 +function BlackArrowSystem__TriggerConditionDropItem takes nothing returns boolean + local boolean result= IsUnitInGroup(GetTriggerUnit(), BlackArrowSystem__BlackArrowItemUnits) and BlackArrowSystem__GetMatchingBlackArrowItemTypeIndex(GetItemTypeId(GetManipulatedItem())) > 0 if ( result ) then // we need to exclude the dropped item since it is not dropped yet @@ -17170,12 +17174,12 @@ function BlackArrowSystem___TriggerConditionDropItem takes nothing returns boole return result endfunction -function BlackArrowSystem___TriggerActionDropItem takes nothing returns nothing - call GroupRemoveUnit(BlackArrowSystem___BlackArrowItemUnits, GetTriggerUnit()) +function BlackArrowSystem__TriggerActionDropItem takes nothing returns nothing + call GroupRemoveUnit(BlackArrowSystem__BlackArrowItemUnits, GetTriggerUnit()) //call BJDebugMsg("Unit " + GetUnitName(GetTriggerUnit()) + " dropped the final Black Arrow orb item.") endfunction -function BlackArrowSystem___AddStandardObjectData takes nothing returns nothing +function BlackArrowSystem__AddStandardObjectData takes nothing returns nothing call BlackArrowAddAbility('ANba' , 1 , 'ndr1' , 1 , 80.0 , 0.0 , 2.0 , 'BNdm') call BlackArrowAddAbility('ANba' , 2 , 'ndr2' , 1 , 80.0 , 0.0 , 2.0 , 'BNdm') call BlackArrowAddAbility('ANba' , 3 , 'ndr3' , 1 , 80.0 , 0.0 , 2.0 , 'BNdm') @@ -17183,48 +17187,48 @@ function BlackArrowSystem___AddStandardObjectData takes nothing returns nothing call BlackArrowAddItemTypeId('odef' , BlackArrowAddAbility('ANbs' , 1 , 'ndr1' , 1 , 80.0 , 0.0 , 2.0 , 'BNdm')) endfunction -function BlackArrowSystem___FilterForUnitWithOrb takes nothing returns boolean +function BlackArrowSystem__FilterForUnitWithOrb takes nothing returns boolean return UnitInventorySize(GetFilterUnit()) > 0 and BlackArrowUnitGetOrbItem(GetFilterUnit() , null) != - 1 endfunction -function BlackArrowSystem___AddAllUnitsWithOrbs takes nothing returns nothing +function BlackArrowSystem__AddAllUnitsWithOrbs takes nothing returns nothing local group whichGroup= CreateGroup() - call GroupEnumUnitsInRect(whichGroup, GetPlayableMapRect(), Filter(function BlackArrowSystem___FilterForUnitWithOrb)) + call GroupEnumUnitsInRect(whichGroup, GetPlayableMapRect(), Filter(function BlackArrowSystem__FilterForUnitWithOrb)) set bj_wantDestroyGroup=true - call GroupAddGroup(whichGroup, BlackArrowSystem___BlackArrowItemUnits) + call GroupAddGroup(whichGroup, BlackArrowSystem__BlackArrowItemUnits) //call BJDebugMsg("Units with orbs size " + I2S(CountUnitsInGroup(BlackArrowItemUnits))) set whichGroup=null endfunction -//Implemented from module BlackArrowSystem___Init: +//Implemented from module BlackArrowSystem__Init: - function s__BlackArrowSystem___S_BlackArrowSystem___Init___onInit takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem___BlackArrowDamageTrigger, EVENT_PLAYER_UNIT_DAMAGED) - call TriggerAddCondition(BlackArrowSystem___BlackArrowDamageTrigger, Condition(function BlackArrowSystem___TriggerConditionDamage)) - call TriggerAddAction(BlackArrowSystem___BlackArrowDamageTrigger, function BlackArrowSystem___TriggerActionDamage) + function s__BlackArrowSystem__S_BlackArrowSystem__Init__onInit takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem__BlackArrowDamageTrigger, EVENT_PLAYER_UNIT_DAMAGED) + call TriggerAddCondition(BlackArrowSystem__BlackArrowDamageTrigger, Condition(function BlackArrowSystem__TriggerConditionDamage)) + call TriggerAddAction(BlackArrowSystem__BlackArrowDamageTrigger, function BlackArrowSystem__TriggerActionDamage) - call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem___BlackArrowDeathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(BlackArrowSystem___BlackArrowDeathTrigger, Condition(function BlackArrowSystem___TriggerConditionDeath)) - call TriggerAddAction(BlackArrowSystem___BlackArrowDeathTrigger, function BlackArrowSystem___TriggerActionDeath) + call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem__BlackArrowDeathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(BlackArrowSystem__BlackArrowDeathTrigger, Condition(function BlackArrowSystem__TriggerConditionDeath)) + call TriggerAddAction(BlackArrowSystem__BlackArrowDeathTrigger, function BlackArrowSystem__TriggerActionDeath) - call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem___BlackArrowOrderTrigger, EVENT_PLAYER_UNIT_ISSUED_ORDER) - call TriggerAddCondition(BlackArrowSystem___BlackArrowOrderTrigger, Condition(function BlackArrowSystem___TriggerConditionOrder)) - call TriggerAddAction(BlackArrowSystem___BlackArrowOrderTrigger, function BlackArrowSystem___TriggerActionOrder) + call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem__BlackArrowOrderTrigger, EVENT_PLAYER_UNIT_ISSUED_ORDER) + call TriggerAddCondition(BlackArrowSystem__BlackArrowOrderTrigger, Condition(function BlackArrowSystem__TriggerConditionOrder)) + call TriggerAddAction(BlackArrowSystem__BlackArrowOrderTrigger, function BlackArrowSystem__TriggerActionOrder) - call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem___BlackArrowItemPickupTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) - call TriggerAddCondition(BlackArrowSystem___BlackArrowItemPickupTrigger, Condition(function BlackArrowSystem___TriggerConditionPickupItem)) - call TriggerAddAction(BlackArrowSystem___BlackArrowItemPickupTrigger, function BlackArrowSystem___TriggerActionPickupItem) + call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem__BlackArrowItemPickupTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) + call TriggerAddCondition(BlackArrowSystem__BlackArrowItemPickupTrigger, Condition(function BlackArrowSystem__TriggerConditionPickupItem)) + call TriggerAddAction(BlackArrowSystem__BlackArrowItemPickupTrigger, function BlackArrowSystem__TriggerActionPickupItem) - call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem___BlackArrowItemDropTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) - call TriggerAddCondition(BlackArrowSystem___BlackArrowItemDropTrigger, Condition(function BlackArrowSystem___TriggerConditionDropItem)) - call TriggerAddAction(BlackArrowSystem___BlackArrowItemDropTrigger, function BlackArrowSystem___TriggerActionDropItem) + call TriggerRegisterAnyUnitEventBJ(BlackArrowSystem__BlackArrowItemDropTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) + call TriggerAddCondition(BlackArrowSystem__BlackArrowItemDropTrigger, Condition(function BlackArrowSystem__TriggerConditionDropItem)) + call TriggerAddAction(BlackArrowSystem__BlackArrowItemDropTrigger, function BlackArrowSystem__TriggerActionDropItem) - call BlackArrowSystem___AddStandardObjectData() + call BlackArrowSystem__AddStandardObjectData() - call BlackArrowSystem___AddAllUnitsWithOrbs() + call BlackArrowSystem__AddAllUnitsWithOrbs() endfunction @@ -17243,20 +17247,20 @@ endfunction //library BookOfFastTravel: -function BookOfFastTravel___FilterAlliedNonStructures takes nothing returns boolean - return GetOwningPlayer(GetFilterUnit()) == GetOwningPlayer(BookOfFastTravel___tmpCaster) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and IsUnitAliveBJ(GetFilterUnit()) +function BookOfFastTravel__FilterAlliedNonStructures takes nothing returns boolean + return GetOwningPlayer(GetFilterUnit()) == GetOwningPlayer(BookOfFastTravel__tmpCaster) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and IsUnitAliveBJ(GetFilterUnit()) endfunction -function BookOfFastTravel___ForGroupMove takes nothing returns nothing - call SetUnitPosition(GetEnumUnit(), GetUnitX(BookOfFastTravel___tmpTarget), GetUnitY(BookOfFastTravel___tmpTarget)) +function BookOfFastTravel__ForGroupMove takes nothing returns nothing + call SetUnitPosition(GetEnumUnit(), GetUnitX(BookOfFastTravel__tmpTarget), GetUnitY(BookOfFastTravel__tmpTarget)) endfunction function BookOfFastTravel takes unit caster,unit portal returns nothing local group targets= CreateGroup() - set BookOfFastTravel___tmpCaster=caster - set BookOfFastTravel___tmpTarget=portal - call GroupEnumUnitsInRange(targets, GetUnitX(caster), GetUnitY(caster), 512.0, Filter(function BookOfFastTravel___FilterAlliedNonStructures)) - call ForGroup(targets, function BookOfFastTravel___ForGroupMove) + set BookOfFastTravel__tmpCaster=caster + set BookOfFastTravel__tmpTarget=portal + call GroupEnumUnitsInRange(targets, GetUnitX(caster), GetUnitY(caster), 512.0, Filter(function BookOfFastTravel__FilterAlliedNonStructures)) + call ForGroup(targets, function BookOfFastTravel__ForGroupMove) call PingMinimapForPlayer(GetOwningPlayer(caster), GetUnitX(portal), GetUnitY(portal), 6.0) call GroupClear(targets) call DestroyGroup(targets) @@ -17283,41 +17287,41 @@ endfunction //========================================================================================= //======================================================================= - function BoundSentinel___dis takes nothing returns nothing + function BoundSentinel__dis takes nothing returns nothing local unit u=GetTriggerUnit() local real x=GetUnitX(u) local real y=GetUnitY(u) - if ( x > BoundSentinel___maxx ) then - set x=BoundSentinel___maxx - elseif ( x < BoundSentinel___minx ) then - set x=BoundSentinel___minx + if ( x > BoundSentinel__maxx ) then + set x=BoundSentinel__maxx + elseif ( x < BoundSentinel__minx ) then + set x=BoundSentinel__minx endif - if ( y > BoundSentinel___maxy ) then - set y=BoundSentinel___maxy - elseif ( y < BoundSentinel___miny ) then - set y=BoundSentinel___miny + if ( y > BoundSentinel__maxy ) then + set y=BoundSentinel__maxy + elseif ( y < BoundSentinel__miny ) then + set y=BoundSentinel__miny endif call SetUnitX(u, x) call SetUnitY(u, y) set u=null endfunction - function BoundSentinel___init takes nothing returns nothing + function BoundSentinel__init takes nothing returns nothing local trigger t=CreateTrigger() local region r=CreateRegion() local rect rc - set BoundSentinel___minx=GetCameraBoundMinX() - BoundSentinel___EXTRA - set BoundSentinel___miny=GetCameraBoundMinY() - BoundSentinel___EXTRA - set BoundSentinel___maxx=GetCameraBoundMaxX() + BoundSentinel___EXTRA - set BoundSentinel___maxy=GetCameraBoundMaxY() + BoundSentinel___EXTRA - set rc=Rect(BoundSentinel___minx, BoundSentinel___miny, BoundSentinel___maxx, BoundSentinel___maxy) + set BoundSentinel__minx=GetCameraBoundMinX() - BoundSentinel__EXTRA + set BoundSentinel__miny=GetCameraBoundMinY() - BoundSentinel__EXTRA + set BoundSentinel__maxx=GetCameraBoundMaxX() + BoundSentinel__EXTRA + set BoundSentinel__maxy=GetCameraBoundMaxY() + BoundSentinel__EXTRA + set rc=Rect(BoundSentinel__minx, BoundSentinel__miny, BoundSentinel__maxx, BoundSentinel__maxy) call RegionAddRect(r, rc) call RemoveRect(rc) call TriggerRegisterLeaveRegion(t, r, null) - call TriggerAddAction(t, function BoundSentinel___dis) + call TriggerAddAction(t, function BoundSentinel__dis) //this is not necessary but I'll do it anyway: set t=null @@ -17327,145 +17331,145 @@ endfunction //library BoundSentinel ends //library CTL: - function CTL___E takes nothing returns nothing - local integer i=CTL___ns[0] - set CTL___ns[0]=0 + function CTL__E takes nothing returns nothing + local integer i=CTL__ns[0] + set CTL__ns[0]=0 loop exitwhen 0 == i - if ( 0 == CTL___p[i] ) then - if ( 0 == CTL___n[i] ) then - call TriggerRemoveCondition(CTL___t, CTL___ct[CTL___th[i]]) - set CTL___ct[CTL___th[i]]=null - set CTL___tc=CTL___tc - 1 - set CTL___rf[CTL___th[i]]=0 + if ( 0 == CTL__p[i] ) then + if ( 0 == CTL__n[i] ) then + call TriggerRemoveCondition(CTL__t, CTL__ct[CTL__th[i]]) + set CTL__ct[CTL__th[i]]=null + set CTL__tc=CTL__tc - 1 + set CTL__rf[CTL__th[i]]=0 else - set CTL___rf[CTL___th[i]]=CTL___n[i] - set CTL___p[CTL___n[i]]=0 + set CTL__rf[CTL__th[i]]=CTL__n[i] + set CTL__p[CTL__n[i]]=0 endif else - set CTL___p[CTL___n[i]]=CTL___p[i] - set CTL___n[CTL___p[i]]=CTL___n[i] + set CTL__p[CTL__n[i]]=CTL__p[i] + set CTL__n[CTL__p[i]]=CTL__n[i] endif - set CTL___n[i]=CTL___n[0] - set CTL___n[0]=i - set i=CTL___ns[i] + set CTL__n[i]=CTL__n[0] + set CTL__n[0]=i + set i=CTL__ns[i] endloop loop - exitwhen 0 == CTL___i32cr - set CTL___i32cr=CTL___i32cr - 1 - set i=CTL___i32r[CTL___i32cr] - if ( not CTL___e32[i] ) then - call TriggerRemoveCondition(CTL___t, CTL___ct[i]) - set CTL___ct[i]=null + exitwhen 0 == CTL__i32cr + set CTL__i32cr=CTL__i32cr - 1 + set i=CTL__i32r[CTL__i32cr] + if ( not CTL__e32[i] ) then + call TriggerRemoveCondition(CTL__t, CTL__ct[i]) + set CTL__ct[i]=null - if ( CTL___id32[i] ) then - set CTL___tgr[i]=CTL___tgr[0] - set CTL___tgr[0]=i - set CTL___id32[i]=false - set CTL___e32[i]=false - set CTL___ir32[i]=false + if ( CTL__id32[i] ) then + set CTL__tgr[i]=CTL__tgr[0] + set CTL__tgr[0]=i + set CTL__id32[i]=false + set CTL__e32[i]=false + set CTL__ir32[i]=false endif endif endloop - if ( 0 == CTL___tc ) then - call PauseTimer(CTL___m) + if ( 0 == CTL__tc ) then + call PauseTimer(CTL__m) else - call TriggerEvaluate(CTL___t) + call TriggerEvaluate(CTL__t) endif endfunction - function CTL___CT takes integer r returns integer + function CTL__CT takes integer r returns integer local integer i local integer f - if ( 0 == CTL___n[0] ) then - set i=CTL___ic + 1 - set CTL___ic=i + if ( 0 == CTL__n[0] ) then + set i=CTL__ic + 1 + set CTL__ic=i else - set i=CTL___n[0] - set CTL___n[0]=CTL___n[i] + set i=CTL__n[0] + set CTL__n[0]=CTL__n[i] endif - set CTL___th[i]=r - set CTL___ns[i]=- 1 - set f=CTL___rf[r] + set CTL__th[i]=r + set CTL__ns[i]=- 1 + set f=CTL__rf[r] if ( 0 == f ) then - set CTL___n[i]=0 - set CTL___p[i]=0 - set CTL___rf[r]=i - set CTL___ct[r]=TriggerAddCondition(CTL___t, CTL___rc[r]) + set CTL__n[i]=0 + set CTL__p[i]=0 + set CTL__rf[r]=i + set CTL__ct[r]=TriggerAddCondition(CTL__t, CTL__rc[r]) //set ct[r] = null - if ( 0 == CTL___tc ) then - call TimerStart(CTL___m, .031250000, true, function CTL___E) + if ( 0 == CTL__tc ) then + call TimerStart(CTL__m, .031250000, true, function CTL__E) endif - set CTL___tc=CTL___tc + 1 + set CTL__tc=CTL__tc + 1 else - set CTL___n[i]=f - set CTL___p[i]=0 - set CTL___p[f]=i - set CTL___rf[r]=i + set CTL__n[i]=f + set CTL__p[i]=0 + set CTL__p[f]=i + set CTL__rf[r]=i endif return i endfunction -function CTL___DT takes integer l__CTL___t returns nothing - set CTL___ns[l__CTL___t]=CTL___ns[0] - set CTL___ns[0]=l__CTL___t +function CTL__DT takes integer l__CTL__t returns nothing + set CTL__ns[l__CTL__t]=CTL__ns[0] + set CTL__ns[0]=l__CTL__t endfunction - function CTL___A takes code c returns integer - local integer i= CTL___tgr[0] + function CTL__A takes code c returns integer + local integer i= CTL__tgr[0] if ( 0 == i ) then - set i=CTL___tgc + 1 - set CTL___tgc=i + set i=CTL__tgc + 1 + set CTL__tgc=i else - set CTL___tgr[0]=CTL___tgr[i] + set CTL__tgr[0]=CTL__tgr[i] endif - set CTL___rc[i]=Condition(c) + set CTL__rc[i]=Condition(c) return i endfunction - function CTL___A32 takes integer i returns nothing - if ( not CTL___e32[i] ) then - if ( not CTL___ir32[i] and not CTL___id32[i] ) then - set CTL___ct[i]=TriggerAddCondition(CTL___t, CTL___rc[i]) + function CTL__A32 takes integer i returns nothing + if ( not CTL__e32[i] ) then + if ( not CTL__ir32[i] and not CTL__id32[i] ) then + set CTL__ct[i]=TriggerAddCondition(CTL__t, CTL__rc[i]) endif - if ( 0 == CTL___tc ) then - call TimerStart(CTL___m, .031250000, true, function CTL___E) + if ( 0 == CTL__tc ) then + call TimerStart(CTL__m, .031250000, true, function CTL__E) endif - set CTL___tc=CTL___tc + 1 - set CTL___e32[i]=true + set CTL__tc=CTL__tc + 1 + set CTL__e32[i]=true endif endfunction - function CTL___SR32 takes integer i returns nothing - if ( CTL___e32[i] ) then - if ( not CTL___ir32[i] and not CTL___id32[i] ) then - set CTL___i32r[CTL___i32cr]=i - set CTL___i32cr=CTL___i32cr + 1 - set CTL___ir32[i]=true + function CTL__SR32 takes integer i returns nothing + if ( CTL__e32[i] ) then + if ( not CTL__ir32[i] and not CTL__id32[i] ) then + set CTL__i32r[CTL__i32cr]=i + set CTL__i32cr=CTL__i32cr + 1 + set CTL__ir32[i]=true endif - set CTL___e32[i]=false - set CTL___tc=CTL___tc - 1 + set CTL__e32[i]=false + set CTL__tc=CTL__tc - 1 endif endfunction - function CTL___DT32 takes integer i returns nothing - if ( not CTL___id32[i] ) then - if ( not CTL___ir32[i] ) then - set CTL___ir32[i]=true - set CTL___tc=CTL___tc - 1 - set CTL___i32r[CTL___i32cr]=i - set CTL___i32cr=CTL___i32cr + 1 - set CTL___e32[i]=false + function CTL__DT32 takes integer i returns nothing + if ( not CTL__id32[i] ) then + if ( not CTL__ir32[i] ) then + set CTL__ir32[i]=true + set CTL__tc=CTL__tc - 1 + set CTL__i32r[CTL__i32cr]=i + set CTL__i32cr=CTL__i32cr + 1 + set CTL__e32[i]=false endif - set CTL___id32[i]=true + set CTL__id32[i]=true endif endfunction function s__TimerGroup32_create takes code c returns integer - return CTL___A(c) + return CTL__A(c) endfunction function s__TimerGroup32_destroy takes integer this returns nothing - call CTL___DT32(this) + call CTL__DT32(this) endfunction function s__TimerGroup32_start takes integer this returns nothing - call CTL___A32(this) + call CTL__A32(this) endfunction function s__TimerGroup32_stop takes integer this returns nothing - call CTL___SR32(this) + call CTL__SR32(this) endfunction //library CTL ends @@ -17862,8 +17866,8 @@ endfunction return s__File_write(s__File_open(filename),"") endfunction -//Implemented from module FileIO___FileInit: - function s__File_FileIO___FileInit___onInit takes nothing returns nothing +//Implemented from module FileIO__FileInit: + function s__File_FileIO__FileInit__onInit takes nothing returns nothing local string originalTooltip // We can't use a single ability with multiple levels because @@ -18138,18 +18142,18 @@ endfunction // function FrameLoaderAdd takes code func returns nothing // func runs when the game is loaded. function FrameLoaderAdd takes code func returns nothing - call TriggerAddAction(FrameLoader___actionTrigger, func) + call TriggerAddAction(FrameLoader__actionTrigger, func) endfunction - function FrameLoader___timerAction takes nothing returns nothing - call TriggerExecute(FrameLoader___actionTrigger) + function FrameLoader__timerAction takes nothing returns nothing + call TriggerExecute(FrameLoader__actionTrigger) endfunction - function FrameLoader___eventAction takes nothing returns nothing - call TimerStart(FrameLoader___t, 0, false, function FrameLoader___timerAction) + function FrameLoader__eventAction takes nothing returns nothing + call TimerStart(FrameLoader__t, 0, false, function FrameLoader__timerAction) endfunction - function FrameLoader___init_function takes nothing returns nothing - call TriggerRegisterGameEvent(FrameLoader___eventTrigger, EVENT_GAME_LOADED) - call TriggerAddAction(FrameLoader___eventTrigger, function FrameLoader___eventAction) + function FrameLoader__init_function takes nothing returns nothing + call TriggerRegisterGameEvent(FrameLoader__eventTrigger, EVENT_GAME_LOADED) + call TriggerAddAction(FrameLoader__eventTrigger, function FrameLoader__eventAction) endfunction //library FrameLoader ends @@ -18157,32 +18161,32 @@ endfunction function FrameSaverAdd takes code func returns nothing - call TriggerAddAction(FrameSaver___saveTrigger, func) + call TriggerAddAction(FrameSaver__saveTrigger, func) endfunction function FrameSaverAddEx takes code func,code func2 returns nothing - call TriggerAddAction(FrameSaver___saveTrigger, (func)) // INLINED!! - call TriggerAddAction(FrameSaver___afterSaveTrigger, func2) + call TriggerAddAction(FrameSaver__saveTrigger, (func)) // INLINED!! + call TriggerAddAction(FrameSaver__afterSaveTrigger, func2) endfunction -function FrameSaver___TimerFunctionAfterSave takes nothing returns nothing - call TriggerExecute(FrameSaver___afterSaveTrigger) +function FrameSaver__TimerFunctionAfterSave takes nothing returns nothing + call TriggerExecute(FrameSaver__afterSaveTrigger) endfunction -function FrameSaver___TriggerActionStartAfterSaveTimer takes nothing returns nothing - call TimerStart(FrameSaver___t, FrameSaver___DELAY, false, function FrameSaver___TimerFunctionAfterSave) +function FrameSaver__TriggerActionStartAfterSaveTimer takes nothing returns nothing + call TimerStart(FrameSaver__t, FrameSaver__DELAY, false, function FrameSaver__TimerFunctionAfterSave) endfunction -function FrameSaver___TriggerActionCancelAfterSaveTimer takes nothing returns nothing - call PauseTimer(FrameSaver___t) +function FrameSaver__TriggerActionCancelAfterSaveTimer takes nothing returns nothing + call PauseTimer(FrameSaver__t) endfunction -function FrameSaver___Init takes nothing returns nothing - call TriggerRegisterGameEvent(FrameSaver___saveTrigger, EVENT_GAME_SAVE) - call TriggerAddAction(FrameSaver___saveTrigger, function FrameSaver___TriggerActionStartAfterSaveTimer) +function FrameSaver__Init takes nothing returns nothing + call TriggerRegisterGameEvent(FrameSaver__saveTrigger, EVENT_GAME_SAVE) + call TriggerAddAction(FrameSaver__saveTrigger, function FrameSaver__TriggerActionStartAfterSaveTimer) - call TriggerRegisterGameEvent(FrameSaver___loadTrigger, EVENT_GAME_LOADED) - call TriggerAddAction(FrameSaver___loadTrigger, function FrameSaver___TriggerActionCancelAfterSaveTimer) + call TriggerRegisterGameEvent(FrameSaver__loadTrigger, EVENT_GAME_LOADED) + call TriggerAddAction(FrameSaver__loadTrigger, function FrameSaver__TriggerActionCancelAfterSaveTimer) endfunction @@ -18195,13 +18199,13 @@ endfunction function GetGameStatus takes nothing returns integer - return GameStatus___status + return GameStatus__status endfunction -//Implemented from module GameStatus___GameStatusInit: +//Implemented from module GameStatus__GameStatusInit: - function s__GameStatus___GameStatus_GameStatus___GameStatusInit___onInit takes nothing returns nothing + function s__GameStatus__GameStatus_GameStatus__GameStatusInit__onInit takes nothing returns nothing local player firstPlayer local unit u local boolean selected @@ -18214,7 +18218,7 @@ endfunction endloop // force the player to select a dummy unit - set u=CreateUnit(firstPlayer, GameStatus___DUMMY_UNIT_ID, 0, 0, 0) + set u=CreateUnit(firstPlayer, GameStatus__DUMMY_UNIT_ID, 0, 0, 0) call SelectUnit(u, true) set selected=IsUnitSelected(u, firstPlayer) call h__RemoveUnit(u) @@ -18224,14 +18228,14 @@ endfunction // detect if replay or offline game if ( ReloadGameCachesFromDisk() ) then - set GameStatus___status=GAME_STATUS_OFFLINE + set GameStatus__status=GAME_STATUS_OFFLINE else - set GameStatus___status=GAME_STATUS_REPLAY + set GameStatus__status=GAME_STATUS_REPLAY endif else // if the unit wasn't selected instantly, the game is online - set GameStatus___status=GAME_STATUS_ONLINE + set GameStatus__status=GAME_STATUS_ONLINE endif endfunction @@ -18243,7 +18247,7 @@ endfunction function ClearGeneratedIds takes nothing returns nothing - set GenerateIds___generatedIdsCounter=0 + set GenerateIds__generatedIdsCounter=0 endfunction function GenerateId takes integer id returns boolean @@ -18253,36 +18257,36 @@ function GenerateId takes integer id returns boolean return false endif loop - exitwhen ( i == GenerateIds___generatedIdsCounter or not result ) - if ( GenerateIds___generatedIds[i] == id ) then + exitwhen ( i == GenerateIds__generatedIdsCounter or not result ) + if ( GenerateIds__generatedIds[i] == id ) then set result=false endif set i=i + 1 endloop if ( result ) then - set GenerateIds___generatedIds[GenerateIds___generatedIdsCounter]=id - set GenerateIds___generatedIdsCounter=GenerateIds___generatedIdsCounter + 1 + set GenerateIds__generatedIds[GenerateIds__generatedIdsCounter]=id + set GenerateIds__generatedIdsCounter=GenerateIds__generatedIdsCounter + 1 endif return result endfunction function ClearGeneratedStringIds takes nothing returns nothing - set GenerateIds___generatedIdsStringsCounter=0 + set GenerateIds__generatedIdsStringsCounter=0 endfunction function GenerateIdString takes string id returns boolean local boolean result= true local integer i= 0 loop - exitwhen ( i == GenerateIds___generatedIdsStringsCounter or not result ) - if ( GenerateIds___generatedIdsStrings[i] == id ) then + exitwhen ( i == GenerateIds__generatedIdsStringsCounter or not result ) + if ( GenerateIds__generatedIdsStrings[i] == id ) then set result=false endif set i=i + 1 endloop if ( result ) then - set GenerateIds___generatedIdsStrings[GenerateIds___generatedIdsStringsCounter]=id - set GenerateIds___generatedIdsStringsCounter=GenerateIds___generatedIdsStringsCounter + 1 + set GenerateIds__generatedIdsStrings[GenerateIds__generatedIdsStringsCounter]=id + set GenerateIds__generatedIdsStringsCounter=GenerateIds__generatedIdsStringsCounter + 1 endif return result endfunction @@ -18367,38 +18371,38 @@ endfunction -function GroupUtils___HookDestroyGroup takes group g returns nothing +function GroupUtils__HookDestroyGroup takes group g returns nothing if g == ENUM_GROUP then call h__BJDebugMsg("GroupUtils_Warning: ENUM_GROUP destroyed") endif endfunction -function GroupUtils___AddEx takes nothing returns nothing - if GroupUtils___Flag then - call GroupClear(GroupUtils___Refr) - set GroupUtils___Flag=false +function GroupUtils__AddEx takes nothing returns nothing + if GroupUtils__Flag then + call GroupClear(GroupUtils__Refr) + set GroupUtils__Flag=false endif - call GroupAddUnit(GroupUtils___Refr, GetEnumUnit()) + call GroupAddUnit(GroupUtils__Refr, GetEnumUnit()) endfunction function GroupRefresh takes group g returns nothing - set GroupUtils___Flag=true - set GroupUtils___Refr=g - call ForGroup(GroupUtils___Refr, function GroupUtils___AddEx) - if GroupUtils___Flag then + set GroupUtils__Flag=true + set GroupUtils__Refr=g + call ForGroup(GroupUtils__Refr, function GroupUtils__AddEx) + if GroupUtils__Flag then call GroupClear(g) endif endfunction function NewGroup takes nothing returns group - if GroupUtils___Count == 0 then - set GroupUtils___Groups[0]=CreateGroup() + if GroupUtils__Count == 0 then + set GroupUtils__Groups[0]=CreateGroup() else - set GroupUtils___Count=GroupUtils___Count - 1 + set GroupUtils__Count=GroupUtils__Count - 1 endif - call SaveInteger(GroupUtils___ht, 0, GetHandleId(GroupUtils___Groups[GroupUtils___Count]), 1) + call SaveInteger(GroupUtils__ht, 0, GetHandleId(GroupUtils__Groups[GroupUtils__Count]), 1) - return GroupUtils___Groups[GroupUtils___Count] + return GroupUtils__Groups[GroupUtils__Count] endfunction function ReleaseGroup takes group g returns boolean local integer id= GetHandleId(g) @@ -18412,104 +18416,104 @@ function ReleaseGroup takes group g returns boolean if g == null then return false - elseif not HaveSavedInteger(GroupUtils___ht, 0, id) then + elseif not HaveSavedInteger(GroupUtils__ht, 0, id) then return false - elseif LoadInteger(GroupUtils___ht, 0, id) == 2 then + elseif LoadInteger(GroupUtils__ht, 0, id) == 2 then return false - elseif GroupUtils___Count == 8191 then + elseif GroupUtils__Count == 8191 then call DestroyGroup(g) return false endif - call SaveInteger(GroupUtils___ht, 0, id, 2) + call SaveInteger(GroupUtils__ht, 0, id, 2) call GroupClear(g) - set GroupUtils___Groups[GroupUtils___Count]=g - set GroupUtils___Count=GroupUtils___Count + 1 + set GroupUtils__Groups[GroupUtils__Count]=g + set GroupUtils__Count=GroupUtils__Count + 1 return true endfunction -function GroupUtils___Filter takes nothing returns boolean - return IsUnitInRangeXY(GetFilterUnit(), GroupUtils___X, GroupUtils___Y, GroupUtils___R) +function GroupUtils__Filter takes nothing returns boolean + return IsUnitInRangeXY(GetFilterUnit(), GroupUtils__X, GroupUtils__Y, GroupUtils__R) endfunction -function GroupUtils___HookDestroyBoolExpr takes boolexpr b returns nothing +function GroupUtils__HookDestroyBoolExpr takes boolexpr b returns nothing local integer bid= GetHandleId(b) - if HaveSavedHandle(GroupUtils___H, 0, bid) then + if HaveSavedHandle(GroupUtils__H, 0, bid) then //Clear the saved boolexpr - call h__DestroyBoolExpr(LoadBooleanExprHandle(GroupUtils___H, 0, bid)) - call RemoveSavedHandle(GroupUtils___H, 0, bid) + call h__DestroyBoolExpr(LoadBooleanExprHandle(GroupUtils__H, 0, bid)) + call RemoveSavedHandle(GroupUtils__H, 0, bid) endif endfunction -//processed hook: hook DestroyBoolExpr GroupUtils___HookDestroyBoolExpr +//processed hook: hook DestroyBoolExpr GroupUtils__HookDestroyBoolExpr -constant function GroupUtils___GetRadius takes real radius returns real +constant function GroupUtils__GetRadius takes real radius returns real - return radius + GroupUtils___MAX_COLLISION_SIZE + return radius + GroupUtils__MAX_COLLISION_SIZE endfunction function GroupEnumUnitsInArea takes group whichGroup,real x,real y,real radius,boolexpr l__filter returns nothing - local real prevX= GroupUtils___X - local real prevY= GroupUtils___Y - local real prevR= GroupUtils___R + local real prevX= GroupUtils__X + local real prevY= GroupUtils__Y + local real prevR= GroupUtils__R local integer bid= 0 //Set variables to new values - set GroupUtils___X=x - set GroupUtils___Y=y - set GroupUtils___R=radius + set GroupUtils__X=x + set GroupUtils__Y=y + set GroupUtils__R=radius if l__filter == null then //Adjusts for null boolexprs passed to the function - set l__filter=Condition(function GroupUtils___Filter) + set l__filter=Condition(function GroupUtils__Filter) else //Check for a saved boolexpr set bid=GetHandleId(l__filter) - if HaveSavedHandle(GroupUtils___H, 0, bid) then + if HaveSavedHandle(GroupUtils__H, 0, bid) then //Set the filter to use to the saved one - set l__filter=LoadBooleanExprHandle(GroupUtils___H, 0, bid) + set l__filter=LoadBooleanExprHandle(GroupUtils__H, 0, bid) else //Create a new And() boolexpr for this filter - set l__filter=And(Condition(function GroupUtils___Filter), l__filter) - call SaveBooleanExprHandle(GroupUtils___H, 0, bid, l__filter) + set l__filter=And(Condition(function GroupUtils__Filter), l__filter) + call SaveBooleanExprHandle(GroupUtils__H, 0, bid, l__filter) endif endif //Enumerate, if they want to use the boolexpr, this lets them - call GroupEnumUnitsInRange(whichGroup, x, y, (((radius)*1.0) + GroupUtils___MAX_COLLISION_SIZE), l__filter) // INLINED!! + call GroupEnumUnitsInRange(whichGroup, x, y, (((radius)*1.0) + GroupUtils__MAX_COLLISION_SIZE), l__filter) // INLINED!! //Give back original settings so nested enumerations work - set GroupUtils___X=prevX - set GroupUtils___Y=prevY - set GroupUtils___R=prevR + set GroupUtils__X=prevX + set GroupUtils__Y=prevY + set GroupUtils__R=prevR endfunction function GroupUnitsInArea takes group whichGroup,real x,real y,real radius returns nothing - local real prevX= GroupUtils___X - local real prevY= GroupUtils___Y - local real prevR= GroupUtils___R + local real prevX= GroupUtils__X + local real prevY= GroupUtils__Y + local real prevR= GroupUtils__R //Set variables to new values - set GroupUtils___X=x - set GroupUtils___Y=y - set GroupUtils___R=radius + set GroupUtils__X=x + set GroupUtils__Y=y + set GroupUtils__R=radius //Enumerate - call GroupEnumUnitsInRange(whichGroup, x, y, (((radius)*1.0) + GroupUtils___MAX_COLLISION_SIZE), Condition(function GroupUtils___Filter)) // INLINED!! + call GroupEnumUnitsInRange(whichGroup, x, y, (((radius)*1.0) + GroupUtils__MAX_COLLISION_SIZE), Condition(function GroupUtils__Filter)) // INLINED!! //Give back original settings so nested enumerations work - set GroupUtils___X=prevX - set GroupUtils___Y=prevY - set GroupUtils___R=prevR + set GroupUtils__X=prevX + set GroupUtils__Y=prevY + set GroupUtils__R=prevR endfunction -function GroupUtils___True takes nothing returns boolean +function GroupUtils__True takes nothing returns boolean return true endfunction -function GroupUtils___False takes nothing returns boolean +function GroupUtils__False takes nothing returns boolean return false endfunction -function GroupUtils___Init takes nothing returns nothing - set BOOLEXPR_TRUE=Condition(function GroupUtils___True) - set BOOLEXPR_FALSE=Condition(function GroupUtils___False) +function GroupUtils__Init takes nothing returns nothing + set BOOLEXPR_TRUE=Condition(function GroupUtils__True) + set BOOLEXPR_FALSE=Condition(function GroupUtils__False) endfunction //library GroupUtils ends @@ -18876,13 +18880,13 @@ endfunction //library Indexer ends //library ItemOrbOfLight: -function ItemOrbOfLight___RemoveUnitHook takes unit whichUnit returns nothing +function ItemOrbOfLight__RemoveUnitHook takes unit whichUnit returns nothing if ( IsUnitInGroup(whichUnit, udg_ItemOrbOfLightCarriers) ) then call GroupRemoveUnit(udg_ItemOrbOfLightCarriers, whichUnit) endif endfunction -//processed hook: hook RemoveUnit ItemOrbOfLight___RemoveUnitHook +//processed hook: hook RemoveUnit ItemOrbOfLight__RemoveUnitHook //library ItemOrbOfLight ends @@ -18890,187 +18894,187 @@ endfunction function GetTriggerRespawnItem takes nothing returns item - return ItemRespawnSystem___callbackItem + return ItemRespawnSystem__callbackItem endfunction function GetTriggerRespawnItemIndex takes nothing returns integer - return ItemRespawnSystem___callbackIndex + return ItemRespawnSystem__callbackIndex endfunction function TriggerRegisterItemRespawnEvent takes trigger whichTrigger returns nothing - local integer index= ItemRespawnSystem___callbackRespawnTriggersCounter - set ItemRespawnSystem___callbackRespawnTriggers[index]=whichTrigger - set ItemRespawnSystem___callbackRespawnTriggersCounter=ItemRespawnSystem___callbackRespawnTriggersCounter + 1 + local integer index= ItemRespawnSystem__callbackRespawnTriggersCounter + set ItemRespawnSystem__callbackRespawnTriggers[index]=whichTrigger + set ItemRespawnSystem__callbackRespawnTriggersCounter=ItemRespawnSystem__callbackRespawnTriggersCounter + 1 endfunction -function ItemRespawnSystem___EvaluateAndExecuteCallbackRespawnTriggers takes integer index returns nothing +function ItemRespawnSystem__EvaluateAndExecuteCallbackRespawnTriggers takes integer index returns nothing local integer i= 0 loop - exitwhen ( i >= ItemRespawnSystem___callbackRespawnTriggersCounter ) - set ItemRespawnSystem___callbackItem=ItemRespawnSystem___respawnItemItem[index] - set ItemRespawnSystem___callbackIndex=index - call ConditionalTriggerExecute(ItemRespawnSystem___callbackRespawnTriggers[i]) + exitwhen ( i >= ItemRespawnSystem__callbackRespawnTriggersCounter ) + set ItemRespawnSystem__callbackItem=ItemRespawnSystem__respawnItemItem[index] + set ItemRespawnSystem__callbackIndex=index + call ConditionalTriggerExecute(ItemRespawnSystem__callbackRespawnTriggers[i]) set i=i + 1 endloop endfunction function TriggerRegisterItemRespawnStartsEvent takes trigger whichTrigger returns nothing - local integer index= ItemRespawnSystem___callbackRespawnStartsTriggersCounter - set ItemRespawnSystem___callbackRespawnStartsTriggers[index]=whichTrigger - set ItemRespawnSystem___callbackRespawnStartsTriggersCounter=ItemRespawnSystem___callbackRespawnStartsTriggersCounter + 1 + local integer index= ItemRespawnSystem__callbackRespawnStartsTriggersCounter + set ItemRespawnSystem__callbackRespawnStartsTriggers[index]=whichTrigger + set ItemRespawnSystem__callbackRespawnStartsTriggersCounter=ItemRespawnSystem__callbackRespawnStartsTriggersCounter + 1 endfunction -function ItemRespawnSystem___EvaluateAndExecuteCallbackRespawnStartsTriggers takes integer index returns nothing +function ItemRespawnSystem__EvaluateAndExecuteCallbackRespawnStartsTriggers takes integer index returns nothing local integer i= 0 loop - exitwhen ( i >= ItemRespawnSystem___callbackRespawnStartsTriggersCounter ) - set ItemRespawnSystem___callbackItem=ItemRespawnSystem___respawnItemItem[index] - set ItemRespawnSystem___callbackIndex=index - call ConditionalTriggerExecute(ItemRespawnSystem___callbackRespawnStartsTriggers[i]) + exitwhen ( i >= ItemRespawnSystem__callbackRespawnStartsTriggersCounter ) + set ItemRespawnSystem__callbackItem=ItemRespawnSystem__respawnItemItem[index] + set ItemRespawnSystem__callbackIndex=index + call ConditionalTriggerExecute(ItemRespawnSystem__callbackRespawnStartsTriggers[i]) set i=i + 1 endloop endfunction -function ItemRespawnSystem___ClearItemRespawnIndex takes integer handleID returns nothing - if ( HaveSavedInteger(ItemRespawnSystem___respawnItemHashTable, handleID, 0) ) then - call FlushChildHashtable(ItemRespawnSystem___respawnItemHashTable, handleID) +function ItemRespawnSystem__ClearItemRespawnIndex takes integer handleID returns nothing + if ( HaveSavedInteger(ItemRespawnSystem__respawnItemHashTable, handleID, 0) ) then + call FlushChildHashtable(ItemRespawnSystem__respawnItemHashTable, handleID) endif endfunction -function ItemRespawnSystem___GetItemRespawnIndexByHandleID takes integer handleID returns integer - if ( HaveSavedInteger(ItemRespawnSystem___respawnItemHashTable, handleID, 0) ) then - return LoadInteger(ItemRespawnSystem___respawnItemHashTable, handleID, 0) +function ItemRespawnSystem__GetItemRespawnIndexByHandleID takes integer handleID returns integer + if ( HaveSavedInteger(ItemRespawnSystem__respawnItemHashTable, handleID, 0) ) then + return LoadInteger(ItemRespawnSystem__respawnItemHashTable, handleID, 0) endif return - 1 endfunction function GetItemRespawnIndex takes item whichItem returns integer - return ItemRespawnSystem___GetItemRespawnIndexByHandleID(GetHandleId(whichItem)) + return ItemRespawnSystem__GetItemRespawnIndexByHandleID(GetHandleId(whichItem)) endfunction function GetItemRespawnCounter takes nothing returns integer - return ItemRespawnSystem___respawnItemCounter + return ItemRespawnSystem__respawnItemCounter endfunction function IsRespawnItemValid takes integer index returns boolean if ( index < 0 ) then return false endif - return ItemRespawnSystem___respawnItemIsValid[index] + return ItemRespawnSystem__respawnItemIsValid[index] endfunction function RespawnItem takes integer index returns boolean - if ( not IsRespawnItemValid(index) or ItemRespawnSystem___respawnItemItem[index] != null ) then + if ( not IsRespawnItemValid(index) or ItemRespawnSystem__respawnItemItem[index] != null ) then return false endif - if ( ItemRespawnSystem___respawnItemType[index] == ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEM ) then - set ItemRespawnSystem___respawnItemItem[index]=CreateItem(ItemRespawnSystem___respawnItemItemTypeId[index], ItemRespawnSystem___respawnItemX[index], ItemRespawnSystem___respawnItemY[index]) - elseif ( ItemRespawnSystem___respawnItemType[index] == ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEMPOOL ) then - set ItemRespawnSystem___respawnItemItem[index]=PlaceRandomItem(ItemRespawnSystem___respawnItemPool[index], ItemRespawnSystem___respawnItemX[index], ItemRespawnSystem___respawnItemY[index]) - elseif ( ItemRespawnSystem___respawnItemType[index] == ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_LEVEL ) then - set ItemRespawnSystem___respawnItemItem[index]=CreateItem(ChooseRandomItem(ItemRespawnSystem___respawnItemRandomLevel[index]), ItemRespawnSystem___respawnItemX[index], ItemRespawnSystem___respawnItemY[index]) - elseif ( ItemRespawnSystem___respawnItemType[index] == ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_TYPE_AND_LEVEL ) then - set ItemRespawnSystem___respawnItemItem[index]=CreateItem(ChooseRandomItemEx(ItemRespawnSystem___respawnItemRandomType[index], ItemRespawnSystem___respawnItemRandomLevel[index]), ItemRespawnSystem___respawnItemX[index], ItemRespawnSystem___respawnItemY[index]) + if ( ItemRespawnSystem__respawnItemType[index] == ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEM ) then + set ItemRespawnSystem__respawnItemItem[index]=CreateItem(ItemRespawnSystem__respawnItemItemTypeId[index], ItemRespawnSystem__respawnItemX[index], ItemRespawnSystem__respawnItemY[index]) + elseif ( ItemRespawnSystem__respawnItemType[index] == ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEMPOOL ) then + set ItemRespawnSystem__respawnItemItem[index]=PlaceRandomItem(ItemRespawnSystem__respawnItemPool[index], ItemRespawnSystem__respawnItemX[index], ItemRespawnSystem__respawnItemY[index]) + elseif ( ItemRespawnSystem__respawnItemType[index] == ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_LEVEL ) then + set ItemRespawnSystem__respawnItemItem[index]=CreateItem(ChooseRandomItem(ItemRespawnSystem__respawnItemRandomLevel[index]), ItemRespawnSystem__respawnItemX[index], ItemRespawnSystem__respawnItemY[index]) + elseif ( ItemRespawnSystem__respawnItemType[index] == ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_TYPE_AND_LEVEL ) then + set ItemRespawnSystem__respawnItemItem[index]=CreateItem(ChooseRandomItemEx(ItemRespawnSystem__respawnItemRandomType[index], ItemRespawnSystem__respawnItemRandomLevel[index]), ItemRespawnSystem__respawnItemX[index], ItemRespawnSystem__respawnItemY[index]) endif - set ItemRespawnSystem___respawnItemHandleId[index]=GetHandleId(ItemRespawnSystem___respawnItemItem[index]) - call SaveInteger(ItemRespawnSystem___respawnItemHashTable, ItemRespawnSystem___respawnItemHandleId[index], 0, index) - set ItemRespawnSystem___evaluateIndex=index - call TriggerEvaluate(ItemRespawnSystem___refreshEvaluateTrigger) - call ItemRespawnSystem___EvaluateAndExecuteCallbackRespawnTriggers(index) + set ItemRespawnSystem__respawnItemHandleId[index]=GetHandleId(ItemRespawnSystem__respawnItemItem[index]) + call SaveInteger(ItemRespawnSystem__respawnItemHashTable, ItemRespawnSystem__respawnItemHandleId[index], 0, index) + set ItemRespawnSystem__evaluateIndex=index + call TriggerEvaluate(ItemRespawnSystem__refreshEvaluateTrigger) + call ItemRespawnSystem__EvaluateAndExecuteCallbackRespawnTriggers(index) return true endfunction function RespawnAllItems takes nothing returns nothing local integer i= 0 loop - exitwhen ( i >= ItemRespawnSystem___respawnItemCounter ) - if ( IsRespawnItemValid(i) and ItemRespawnSystem___respawnItemItem[i] == null ) then + exitwhen ( i >= ItemRespawnSystem__respawnItemCounter ) + if ( IsRespawnItemValid(i) and ItemRespawnSystem__respawnItemItem[i] == null ) then call RespawnItem(i) endif set i=i + 1 endloop endfunction -function ItemRespawnSystem___TimerFunctionRespawnItem takes nothing returns nothing - local integer index= LoadInteger(ItemRespawnSystem___respawnItemHashTable, GetHandleId(GetExpiredTimer()), 0) +function ItemRespawnSystem__TimerFunctionRespawnItem takes nothing returns nothing + local integer index= LoadInteger(ItemRespawnSystem__respawnItemHashTable, GetHandleId(GetExpiredTimer()), 0) call RespawnItem(index) endfunction function StartItemRespawn takes integer index returns nothing - call ItemRespawnSystem___EvaluateAndExecuteCallbackRespawnStartsTriggers(index) + call ItemRespawnSystem__EvaluateAndExecuteCallbackRespawnStartsTriggers(index) - if ( ItemRespawnSystem___respawnItemHandleId[index] != 0 ) then - call ItemRespawnSystem___ClearItemRespawnIndex(ItemRespawnSystem___respawnItemHandleId[index]) + if ( ItemRespawnSystem__respawnItemHandleId[index] != 0 ) then + call ItemRespawnSystem__ClearItemRespawnIndex(ItemRespawnSystem__respawnItemHandleId[index]) endif - set ItemRespawnSystem___respawnItemItem[index]=null - set ItemRespawnSystem___respawnItemHandleId[index]=0 - call TimerStart(ItemRespawnSystem___respawnItemTimer[index], ItemRespawnSystem___respawnItemTimeout[index], false, function ItemRespawnSystem___TimerFunctionRespawnItem) + set ItemRespawnSystem__respawnItemItem[index]=null + set ItemRespawnSystem__respawnItemHandleId[index]=0 + call TimerStart(ItemRespawnSystem__respawnItemTimer[index], ItemRespawnSystem__respawnItemTimeout[index], false, function ItemRespawnSystem__TimerFunctionRespawnItem) endfunction -function ItemRespawnSystem___TriggerActionDeath takes nothing returns nothing - local integer index= ItemRespawnSystem___GetItemRespawnIndexByHandleID(GetHandleId(GetTriggerWidget())) +function ItemRespawnSystem__TriggerActionDeath takes nothing returns nothing + local integer index= ItemRespawnSystem__GetItemRespawnIndexByHandleID(GetHandleId(GetTriggerWidget())) call StartItemRespawn(index) endfunction -function ItemRespawnSystem___RefreshDeathTrigger takes integer index returns nothing - if ( ItemRespawnSystem___respawnItemDeathTrigger[index] != null ) then - call DestroyTrigger(ItemRespawnSystem___respawnItemDeathTrigger[index]) - set ItemRespawnSystem___respawnItemDeathTrigger[index]=null +function ItemRespawnSystem__RefreshDeathTrigger takes integer index returns nothing + if ( ItemRespawnSystem__respawnItemDeathTrigger[index] != null ) then + call DestroyTrigger(ItemRespawnSystem__respawnItemDeathTrigger[index]) + set ItemRespawnSystem__respawnItemDeathTrigger[index]=null endif - set ItemRespawnSystem___respawnItemDeathTrigger[index]=CreateTrigger() - call TriggerRegisterDeathEvent(ItemRespawnSystem___respawnItemDeathTrigger[index], ItemRespawnSystem___respawnItemItem[index]) - call TriggerAddAction(ItemRespawnSystem___respawnItemDeathTrigger[index], function ItemRespawnSystem___TriggerActionDeath) + set ItemRespawnSystem__respawnItemDeathTrigger[index]=CreateTrigger() + call TriggerRegisterDeathEvent(ItemRespawnSystem__respawnItemDeathTrigger[index], ItemRespawnSystem__respawnItemItem[index]) + call TriggerAddAction(ItemRespawnSystem__respawnItemDeathTrigger[index], function ItemRespawnSystem__TriggerActionDeath) endfunction -function ItemRespawnSystem___RefreshDeathTriggerEvaluate takes nothing returns boolean - call ItemRespawnSystem___RefreshDeathTrigger(ItemRespawnSystem___evaluateIndex) +function ItemRespawnSystem__RefreshDeathTriggerEvaluate takes nothing returns boolean + call ItemRespawnSystem__RefreshDeathTrigger(ItemRespawnSystem__evaluateIndex) return false endfunction -function ItemRespawnSystem___AddRespawnItemDefault takes integer index,real x,real y returns nothing - set ItemRespawnSystem___respawnItemIsValid[index]=true - set ItemRespawnSystem___respawnItemX[index]=x - set ItemRespawnSystem___respawnItemY[index]=y - set ItemRespawnSystem___respawnItemTimer[index]=CreateTimer() - set ItemRespawnSystem___respawnItemTimeout[index]=ItemRespawnSystem_DEFAULT_TIMEOUT - call SaveInteger(ItemRespawnSystem___respawnItemHashTable, GetHandleId(ItemRespawnSystem___respawnItemTimer[index]), 0, index) - set ItemRespawnSystem___respawnItemEnabled[index]=true - call ItemRespawnSystem___RefreshDeathTrigger(index) +function ItemRespawnSystem__AddRespawnItemDefault takes integer index,real x,real y returns nothing + set ItemRespawnSystem__respawnItemIsValid[index]=true + set ItemRespawnSystem__respawnItemX[index]=x + set ItemRespawnSystem__respawnItemY[index]=y + set ItemRespawnSystem__respawnItemTimer[index]=CreateTimer() + set ItemRespawnSystem__respawnItemTimeout[index]=ItemRespawnSystem_DEFAULT_TIMEOUT + call SaveInteger(ItemRespawnSystem__respawnItemHashTable, GetHandleId(ItemRespawnSystem__respawnItemTimer[index]), 0, index) + set ItemRespawnSystem__respawnItemEnabled[index]=true + call ItemRespawnSystem__RefreshDeathTrigger(index) loop - set ItemRespawnSystem___respawnItemFreeIndex=ItemRespawnSystem___respawnItemFreeIndex + 1 - exitwhen ( not IsRespawnItemValid(ItemRespawnSystem___respawnItemFreeIndex) ) + set ItemRespawnSystem__respawnItemFreeIndex=ItemRespawnSystem__respawnItemFreeIndex + 1 + exitwhen ( not IsRespawnItemValid(ItemRespawnSystem__respawnItemFreeIndex) ) endloop - if ( index >= ItemRespawnSystem___respawnItemCounter ) then - set ItemRespawnSystem___respawnItemCounter=index + 1 + if ( index >= ItemRespawnSystem__respawnItemCounter ) then + set ItemRespawnSystem__respawnItemCounter=index + 1 endif endfunction function AddRespawnItem takes item whichItem returns integer - local integer index= ItemRespawnSystem___respawnItemFreeIndex - set ItemRespawnSystem___respawnItemType[index]=ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEM - set ItemRespawnSystem___respawnItemItem[index]=whichItem - set ItemRespawnSystem___respawnItemHandleId[index]=GetHandleId(whichItem) - set ItemRespawnSystem___respawnItemItemTypeId[index]=GetItemTypeId(whichItem) - set ItemRespawnSystem___respawnItemPool[index]=null - call ItemRespawnSystem___AddRespawnItemDefault(index , GetItemX(whichItem) , GetItemY(whichItem)) + local integer index= ItemRespawnSystem__respawnItemFreeIndex + set ItemRespawnSystem__respawnItemType[index]=ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEM + set ItemRespawnSystem__respawnItemItem[index]=whichItem + set ItemRespawnSystem__respawnItemHandleId[index]=GetHandleId(whichItem) + set ItemRespawnSystem__respawnItemItemTypeId[index]=GetItemTypeId(whichItem) + set ItemRespawnSystem__respawnItemPool[index]=null + call ItemRespawnSystem__AddRespawnItemDefault(index , GetItemX(whichItem) , GetItemY(whichItem)) - call SaveInteger(ItemRespawnSystem___respawnItemHashTable, ItemRespawnSystem___respawnItemHandleId[index], 0, index) + call SaveInteger(ItemRespawnSystem__respawnItemHashTable, ItemRespawnSystem__respawnItemHandleId[index], 0, index) return index endfunction function AddRespawnItemPool takes itempool whichItemPool,real x,real y returns integer - local integer index= ItemRespawnSystem___respawnItemFreeIndex - set ItemRespawnSystem___respawnItemType[index]=ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEMPOOL - set ItemRespawnSystem___respawnItemItem[index]=null - set ItemRespawnSystem___respawnItemHandleId[index]=0 - set ItemRespawnSystem___respawnItemItemTypeId[index]=0 - set ItemRespawnSystem___respawnItemPool[index]=whichItemPool - call ItemRespawnSystem___AddRespawnItemDefault(index , x , y) + local integer index= ItemRespawnSystem__respawnItemFreeIndex + set ItemRespawnSystem__respawnItemType[index]=ItemRespawnSystem_ITEM_RESPAWN_TYPE_ITEMPOOL + set ItemRespawnSystem__respawnItemItem[index]=null + set ItemRespawnSystem__respawnItemHandleId[index]=0 + set ItemRespawnSystem__respawnItemItemTypeId[index]=0 + set ItemRespawnSystem__respawnItemPool[index]=whichItemPool + call ItemRespawnSystem__AddRespawnItemDefault(index , x , y) call RespawnItem(index) @@ -19078,15 +19082,15 @@ function AddRespawnItemPool takes itempool whichItemPool,real x,real y returns i endfunction function AddRespawnItemRandom takes integer level,real x,real y returns integer - local integer index= ItemRespawnSystem___respawnItemFreeIndex - set ItemRespawnSystem___respawnItemType[index]=ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_LEVEL - set ItemRespawnSystem___respawnItemItem[index]=null - set ItemRespawnSystem___respawnItemHandleId[index]=0 - set ItemRespawnSystem___respawnItemItemTypeId[index]=0 - set ItemRespawnSystem___respawnItemPool[index]=null - set ItemRespawnSystem___respawnItemRandomLevel[index]=level - set ItemRespawnSystem___respawnItemRandomType[index]=null - call ItemRespawnSystem___AddRespawnItemDefault(index , x , y) + local integer index= ItemRespawnSystem__respawnItemFreeIndex + set ItemRespawnSystem__respawnItemType[index]=ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_LEVEL + set ItemRespawnSystem__respawnItemItem[index]=null + set ItemRespawnSystem__respawnItemHandleId[index]=0 + set ItemRespawnSystem__respawnItemItemTypeId[index]=0 + set ItemRespawnSystem__respawnItemPool[index]=null + set ItemRespawnSystem__respawnItemRandomLevel[index]=level + set ItemRespawnSystem__respawnItemRandomType[index]=null + call ItemRespawnSystem__AddRespawnItemDefault(index , x , y) call RespawnItem(index) @@ -19094,15 +19098,15 @@ function AddRespawnItemRandom takes integer level,real x,real y returns integer endfunction function AddRespawnItemRandomEx takes itemtype whichType,integer level,real x,real y returns integer - local integer index= ItemRespawnSystem___respawnItemFreeIndex - set ItemRespawnSystem___respawnItemType[index]=ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_TYPE_AND_LEVEL - set ItemRespawnSystem___respawnItemItem[index]=null - set ItemRespawnSystem___respawnItemHandleId[index]=0 - set ItemRespawnSystem___respawnItemItemTypeId[index]=0 - set ItemRespawnSystem___respawnItemPool[index]=null - set ItemRespawnSystem___respawnItemRandomLevel[index]=level - set ItemRespawnSystem___respawnItemRandomType[index]=whichType - call ItemRespawnSystem___AddRespawnItemDefault(index , x , y) + local integer index= ItemRespawnSystem__respawnItemFreeIndex + set ItemRespawnSystem__respawnItemType[index]=ItemRespawnSystem_ITEM_RESPAWN_TYPE_RANDOM_TYPE_AND_LEVEL + set ItemRespawnSystem__respawnItemItem[index]=null + set ItemRespawnSystem__respawnItemHandleId[index]=0 + set ItemRespawnSystem__respawnItemItemTypeId[index]=0 + set ItemRespawnSystem__respawnItemPool[index]=null + set ItemRespawnSystem__respawnItemRandomLevel[index]=level + set ItemRespawnSystem__respawnItemRandomType[index]=whichType + call ItemRespawnSystem__AddRespawnItemDefault(index , x , y) call RespawnItem(index) @@ -19111,29 +19115,29 @@ endfunction function RemoveRespawnItem takes integer index returns boolean if ( IsRespawnItemValid(index) ) then - set ItemRespawnSystem___respawnItemIsValid[index]=false + set ItemRespawnSystem__respawnItemIsValid[index]=false - if ( ItemRespawnSystem___respawnItemItem[index] != null ) then - call ItemRespawnSystem___ClearItemRespawnIndex(GetHandleId(ItemRespawnSystem___respawnItemItem[index])) + if ( ItemRespawnSystem__respawnItemItem[index] != null ) then + call ItemRespawnSystem__ClearItemRespawnIndex(GetHandleId(ItemRespawnSystem__respawnItemItem[index])) endif - set ItemRespawnSystem___respawnItemTimeout[index]=0 - set ItemRespawnSystem___respawnItemType[index]=0 - set ItemRespawnSystem___respawnItemItem[index]=null - set ItemRespawnSystem___respawnItemHandleId[index]=0 - set ItemRespawnSystem___respawnItemItemTypeId[index]=0 - set ItemRespawnSystem___respawnItemPool[index]=null - set ItemRespawnSystem___respawnItemRandomLevel[index]=0 - set ItemRespawnSystem___respawnItemRandomType[index]=null + set ItemRespawnSystem__respawnItemTimeout[index]=0 + set ItemRespawnSystem__respawnItemType[index]=0 + set ItemRespawnSystem__respawnItemItem[index]=null + set ItemRespawnSystem__respawnItemHandleId[index]=0 + set ItemRespawnSystem__respawnItemItemTypeId[index]=0 + set ItemRespawnSystem__respawnItemPool[index]=null + set ItemRespawnSystem__respawnItemRandomLevel[index]=0 + set ItemRespawnSystem__respawnItemRandomType[index]=null - call PauseTimer(ItemRespawnSystem___respawnItemTimer[index]) - call FlushChildHashtable(ItemRespawnSystem___respawnItemHashTable, GetHandleId(ItemRespawnSystem___respawnItemTimer[index])) - call DestroyTimer(ItemRespawnSystem___respawnItemTimer[index]) + call PauseTimer(ItemRespawnSystem__respawnItemTimer[index]) + call FlushChildHashtable(ItemRespawnSystem__respawnItemHashTable, GetHandleId(ItemRespawnSystem__respawnItemTimer[index])) + call DestroyTimer(ItemRespawnSystem__respawnItemTimer[index]) - set ItemRespawnSystem___respawnItemFreeIndex=index + set ItemRespawnSystem__respawnItemFreeIndex=index - if ( index == ItemRespawnSystem___respawnItemCounter - 1 ) then - set ItemRespawnSystem___respawnItemCounter=ItemRespawnSystem___respawnItemCounter - 1 + if ( index == ItemRespawnSystem__respawnItemCounter - 1 ) then + set ItemRespawnSystem__respawnItemCounter=ItemRespawnSystem__respawnItemCounter - 1 endif return true @@ -19143,112 +19147,112 @@ function RemoveRespawnItem takes integer index returns boolean endfunction function SetRespawnItemEnabled takes integer index,boolean enabled returns nothing - set ItemRespawnSystem___respawnItemEnabled[index]=enabled + set ItemRespawnSystem__respawnItemEnabled[index]=enabled endfunction function IsRespawnItemEnabled takes integer index returns boolean - return ItemRespawnSystem___respawnItemEnabled[index] + return ItemRespawnSystem__respawnItemEnabled[index] endfunction function GetRespawnItemTimer takes integer index returns timer - return ItemRespawnSystem___respawnItemTimer[index] + return ItemRespawnSystem__respawnItemTimer[index] endfunction function GetRespawnItemType takes integer index returns integer - return ItemRespawnSystem___respawnItemType[index] + return ItemRespawnSystem__respawnItemType[index] endfunction function SetRespawnItemTimeout takes integer index,real timeout returns nothing - set ItemRespawnSystem___respawnItemTimeout[index]=timeout + set ItemRespawnSystem__respawnItemTimeout[index]=timeout endfunction function GetRespawnItemTimeout takes integer index returns real - return ItemRespawnSystem___respawnItemTimeout[index] + return ItemRespawnSystem__respawnItemTimeout[index] endfunction function SetRespawnItemX takes integer index,real x returns nothing - set ItemRespawnSystem___respawnItemX[index]=x + set ItemRespawnSystem__respawnItemX[index]=x endfunction function GetRespawnItemX takes integer index returns real - return ItemRespawnSystem___respawnItemX[index] + return ItemRespawnSystem__respawnItemX[index] endfunction function SetRespawnItemY takes integer index,real y returns nothing - set ItemRespawnSystem___respawnItemX[index]=y + set ItemRespawnSystem__respawnItemX[index]=y endfunction function GetRespawnItemY takes integer index returns real - return ItemRespawnSystem___respawnItemY[index] + return ItemRespawnSystem__respawnItemY[index] endfunction function SetRespawnItem takes integer index,item whichItem returns nothing - set ItemRespawnSystem___respawnItemItem[index]=whichItem + set ItemRespawnSystem__respawnItemItem[index]=whichItem endfunction function GetRespawnItem takes integer index returns item - return ItemRespawnSystem___respawnItemItem[index] + return ItemRespawnSystem__respawnItemItem[index] endfunction function SetRespawnItemPool takes integer index,itempool whichItemPool returns nothing - set ItemRespawnSystem___respawnItemPool[index]=whichItemPool + set ItemRespawnSystem__respawnItemPool[index]=whichItemPool endfunction function GetRespawnItemPool takes integer index returns itempool - return ItemRespawnSystem___respawnItemPool[index] + return ItemRespawnSystem__respawnItemPool[index] endfunction function SetRespawnItemLevel takes integer index,integer level returns nothing - set ItemRespawnSystem___respawnItemRandomLevel[index]=level + set ItemRespawnSystem__respawnItemRandomLevel[index]=level endfunction function GetRespawnItemLevel takes integer index returns integer - return ItemRespawnSystem___respawnItemRandomLevel[index] + return ItemRespawnSystem__respawnItemRandomLevel[index] endfunction function SetRespawnItemItemType takes integer index,itemtype whichItemType returns nothing - set ItemRespawnSystem___respawnItemRandomType[index]=whichItemType + set ItemRespawnSystem__respawnItemRandomType[index]=whichItemType endfunction function GetRespawnItemItemType takes integer index returns itemtype - return ItemRespawnSystem___respawnItemRandomType[index] + return ItemRespawnSystem__respawnItemRandomType[index] endfunction -function ItemRespawnSystem___TriggerConditionRespawnItem takes nothing returns boolean - local integer index= (ItemRespawnSystem___GetItemRespawnIndexByHandleID(GetHandleId((GetManipulatedItem())))) // INLINED!! - return IsRespawnItemValid(index) and (ItemRespawnSystem___respawnItemEnabled[(index)]) // INLINED!! +function ItemRespawnSystem__TriggerConditionRespawnItem takes nothing returns boolean + local integer index= (ItemRespawnSystem__GetItemRespawnIndexByHandleID(GetHandleId((GetManipulatedItem())))) // INLINED!! + return IsRespawnItemValid(index) and (ItemRespawnSystem__respawnItemEnabled[(index)]) // INLINED!! endfunction -function ItemRespawnSystem___TriggerActionRespawnItem takes nothing returns nothing - local integer index= (ItemRespawnSystem___GetItemRespawnIndexByHandleID(GetHandleId((GetManipulatedItem())))) // INLINED!! +function ItemRespawnSystem__TriggerActionRespawnItem takes nothing returns nothing + local integer index= (ItemRespawnSystem__GetItemRespawnIndexByHandleID(GetHandleId((GetManipulatedItem())))) // INLINED!! call StartItemRespawn(index) endfunction -function ItemRespawnSystem___AddEnumItem takes nothing returns nothing +function ItemRespawnSystem__AddEnumItem takes nothing returns nothing call AddRespawnItem(GetEnumItem()) endfunction -//Implemented from module ItemRespawnSystem___Init: +//Implemented from module ItemRespawnSystem__Init: - function s__ItemRespawnSystem___S_ItemRespawnSystem___Init___onInit takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(ItemRespawnSystem___pickupItemTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) - call TriggerAddCondition(ItemRespawnSystem___pickupItemTrigger, Condition(function ItemRespawnSystem___TriggerConditionRespawnItem)) - call TriggerAddAction(ItemRespawnSystem___pickupItemTrigger, function ItemRespawnSystem___TriggerActionRespawnItem) + function s__ItemRespawnSystem__S_ItemRespawnSystem__Init__onInit takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(ItemRespawnSystem__pickupItemTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) + call TriggerAddCondition(ItemRespawnSystem__pickupItemTrigger, Condition(function ItemRespawnSystem__TriggerConditionRespawnItem)) + call TriggerAddAction(ItemRespawnSystem__pickupItemTrigger, function ItemRespawnSystem__TriggerActionRespawnItem) - call TriggerAddCondition(ItemRespawnSystem___refreshEvaluateTrigger, Condition(function ItemRespawnSystem___RefreshDeathTriggerEvaluate)) + call TriggerAddCondition(ItemRespawnSystem__refreshEvaluateTrigger, Condition(function ItemRespawnSystem__RefreshDeathTriggerEvaluate)) - call EnumItemsInRect(GetPlayableMapRect(), null, function ItemRespawnSystem___AddEnumItem) + call EnumItemsInRect(GetPlayableMapRect(), null, function ItemRespawnSystem__AddEnumItem) endfunction -function ItemRespawnSystem___RemoveItemCleanup takes item whichItem returns nothing +function ItemRespawnSystem__RemoveItemCleanup takes item whichItem returns nothing local integer handleID= GetHandleId(whichItem) - call ItemRespawnSystem___ClearItemRespawnIndex(handleID) + call ItemRespawnSystem__ClearItemRespawnIndex(handleID) endfunction -//processed hook: hook RemoveItem ItemRespawnSystem___RemoveItemCleanup +//processed hook: hook RemoveItem ItemRespawnSystem__RemoveItemCleanup // Change Log: @@ -19752,61 +19756,61 @@ endfunction function MaxItemStacks_GetStackItemDummy takes nothing returns unit - return MaxItemStacks___stackItemDummy + return MaxItemStacks__stackItemDummy endfunction function GetMaxStacksByItemTypeIdFresh takes integer itemTypeId returns integer local integer i= 0 local item tmpItem= CreateItem(itemTypeId, 0.0, 0.0) - set MaxItemStacks___stackCounter=1 + set MaxItemStacks__stackCounter=1 call SetItemCharges(tmpItem, 1) - call UnitAddItem(MaxItemStacks___stackItemDummy, tmpItem) + call UnitAddItem(MaxItemStacks__stackItemDummy, tmpItem) set i=1 loop set tmpItem=CreateItem(itemTypeId, 0.0, 0.0) call SetItemCharges(tmpItem, 1) - call UnitAddItem(MaxItemStacks___stackItemDummy, tmpItem) - exitwhen ( MaxItemStacks___stackCounter <= i ) + call UnitAddItem(MaxItemStacks__stackItemDummy, tmpItem) + exitwhen ( MaxItemStacks__stackCounter <= i ) set i=i + 1 - exitwhen ( i >= MaxItemStacks___MAX_STACKS_ALLOWED ) + exitwhen ( i >= MaxItemStacks__MAX_STACKS_ALLOWED ) endloop - if ( UnitItemInSlot(MaxItemStacks___stackItemDummy, 0) != null ) then - call h__RemoveItem(UnitItemInSlot(MaxItemStacks___stackItemDummy, 0)) + if ( UnitItemInSlot(MaxItemStacks__stackItemDummy, 0) != null ) then + call h__RemoveItem(UnitItemInSlot(MaxItemStacks__stackItemDummy, 0)) endif - if ( UnitItemInSlot(MaxItemStacks___stackItemDummy, 1) != null ) then - call h__RemoveItem(UnitItemInSlot(MaxItemStacks___stackItemDummy, 1)) + if ( UnitItemInSlot(MaxItemStacks__stackItemDummy, 1) != null ) then + call h__RemoveItem(UnitItemInSlot(MaxItemStacks__stackItemDummy, 1)) endif - call SaveInteger(MaxItemStacks___stackHashTable, itemTypeId, 0, MaxItemStacks___stackCounter) - return MaxItemStacks___stackCounter + call SaveInteger(MaxItemStacks__stackHashTable, itemTypeId, 0, MaxItemStacks__stackCounter) + return MaxItemStacks__stackCounter endfunction function GetMaxStacksByItemTypeId takes integer itemTypeId returns integer - if ( HaveSavedInteger(MaxItemStacks___stackHashTable, itemTypeId, 0) ) then - return LoadInteger(MaxItemStacks___stackHashTable, itemTypeId, 0) + if ( HaveSavedInteger(MaxItemStacks__stackHashTable, itemTypeId, 0) ) then + return LoadInteger(MaxItemStacks__stackHashTable, itemTypeId, 0) endif return GetMaxStacksByItemTypeIdFresh(itemTypeId) endfunction -function MaxItemStacks___TriggerConditionStack takes nothing returns boolean - set MaxItemStacks___stackCounter=MaxItemStacks___stackCounter + 1 +function MaxItemStacks__TriggerConditionStack takes nothing returns boolean + set MaxItemStacks__stackCounter=MaxItemStacks__stackCounter + 1 return false endfunction -function MaxItemStacks___Init takes nothing returns nothing - set MaxItemStacks___stackItemDummy=CreateUnit(Player(PLAYER_NEUTRAL_PASSIVE), MaxItemStacks___DUMMY_UNIT_TYPE_MAX_CHECKS, MaxItemStacks___DUMMY_X, MaxItemStacks___DUMMY_Y, 0.0) - call SetUnitInvulnerable(MaxItemStacks___stackItemDummy, true) - if ( IsUnitType(MaxItemStacks___stackItemDummy, UNIT_TYPE_HERO) ) then - call SuspendHeroXP(MaxItemStacks___stackItemDummy, true) +function MaxItemStacks__Init takes nothing returns nothing + set MaxItemStacks__stackItemDummy=CreateUnit(Player(PLAYER_NEUTRAL_PASSIVE), MaxItemStacks__DUMMY_UNIT_TYPE_MAX_CHECKS, MaxItemStacks__DUMMY_X, MaxItemStacks__DUMMY_Y, 0.0) + call SetUnitInvulnerable(MaxItemStacks__stackItemDummy, true) + if ( IsUnitType(MaxItemStacks__stackItemDummy, UNIT_TYPE_HERO) ) then + call SuspendHeroXP(MaxItemStacks__stackItemDummy, true) endif - call SetUnitUseFood(MaxItemStacks___stackItemDummy, false) - call ShowUnit(MaxItemStacks___stackItemDummy, false) - call BlzSetUnitWeaponBooleanField(MaxItemStacks___stackItemDummy, UNIT_WEAPON_BF_ATTACKS_ENABLED, 0, false) - call BlzSetUnitWeaponBooleanField(MaxItemStacks___stackItemDummy, UNIT_WEAPON_BF_ATTACKS_ENABLED, 1, false) - call SetUnitPathing(MaxItemStacks___stackItemDummy, false) - call SetUnitMoveSpeed(MaxItemStacks___stackItemDummy, 0.0) - call TriggerRegisterUnitEvent(MaxItemStacks___stackItemTrigger, MaxItemStacks___stackItemDummy, EVENT_UNIT_STACK_ITEM) - call TriggerAddCondition(MaxItemStacks___stackItemTrigger, Condition(function MaxItemStacks___TriggerConditionStack)) + call SetUnitUseFood(MaxItemStacks__stackItemDummy, false) + call ShowUnit(MaxItemStacks__stackItemDummy, false) + call BlzSetUnitWeaponBooleanField(MaxItemStacks__stackItemDummy, UNIT_WEAPON_BF_ATTACKS_ENABLED, 0, false) + call BlzSetUnitWeaponBooleanField(MaxItemStacks__stackItemDummy, UNIT_WEAPON_BF_ATTACKS_ENABLED, 1, false) + call SetUnitPathing(MaxItemStacks__stackItemDummy, false) + call SetUnitMoveSpeed(MaxItemStacks__stackItemDummy, 0.0) + call TriggerRegisterUnitEvent(MaxItemStacks__stackItemTrigger, MaxItemStacks__stackItemDummy, EVENT_UNIT_STACK_ITEM) + call TriggerAddCondition(MaxItemStacks__stackItemTrigger, Condition(function MaxItemStacks__TriggerConditionStack)) endfunction // Change Log: @@ -20019,17 +20023,17 @@ endfunction call TriggerRemoveCondition(s__UserMouse_evTrigger[eventId], whichHandler) endfunction -//Implemented from module MouseUtils___Init: - function s__UserMouse_MouseUtils___Init___invokeTimerInit takes nothing returns nothing +//Implemented from module MouseUtils__Init: + function s__UserMouse_MouseUtils__Init__invokeTimerInit takes nothing returns nothing call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) call s__UserMouse_initCallback() // INLINED!! endfunction - function s__UserMouse_MouseUtils___Init___onInit takes nothing returns nothing + function s__UserMouse_MouseUtils__Init__onInit takes nothing returns nothing set s__UserMouse_evTrigger[EVENT_MOUSE_UP]=CreateTrigger() set s__UserMouse_evTrigger[EVENT_MOUSE_DOWN]=CreateTrigger() set s__UserMouse_evTrigger[EVENT_MOUSE_MOVE]=CreateTrigger() - call TimerStart(CreateTimer(), 0.00, false, function s__UserMouse_MouseUtils___Init___invokeTimerInit) + call TimerStart(CreateTimer(), 0.00, false, function s__UserMouse_MouseUtils__Init__invokeTimerInit) endfunction function GetPlayerMouseX takes player p returns real return s__UserMouse_mouseX[s__UserMouse__staticgetindex(p)] @@ -20055,19 +20059,19 @@ endfunction function OnStartGame takes code func returns nothing - call TriggerAddAction(OnStartGame___startGameTrigger, func) + call TriggerAddAction(OnStartGame__startGameTrigger, func) endfunction -function OnStartGame___TimerFunctionStartGame takes nothing returns nothing +function OnStartGame__TimerFunctionStartGame takes nothing returns nothing local timer t= GetExpiredTimer() - call TriggerExecute(OnStartGame___startGameTrigger) + call TriggerExecute(OnStartGame__startGameTrigger) call PauseTimer(t) call DestroyTimer(t) set t=null endfunction -function OnStartGame___Init takes nothing returns nothing - call TimerStart(CreateTimer(), 0.0, false, function OnStartGame___TimerFunctionStartGame) +function OnStartGame__Init takes nothing returns nothing + call TimerStart(CreateTimer(), 0.0, false, function OnStartGame__TimerFunctionStartGame) endfunction @@ -20198,12 +20202,12 @@ endfunction //library Reflection: -function Reflection___AngleBetweenUnits takes unit u0,unit u1 returns real +function Reflection__AngleBetweenUnits takes unit u0,unit u1 returns real return bj_RADTODEG * Atan2(GetUnitY(u1) - GetUnitY(u0), GetUnitX(u1) - GetUnitX(u0)) endfunction function Reflect takes unit whichUnit,unit source,real damage returns nothing - local unit dummy= CreateUnit(GetOwningPlayer(whichUnit), Reflection_DUMMY_UNIT_TYPE_ID, GetUnitX(whichUnit), GetUnitY(whichUnit), Reflection___AngleBetweenUnits(whichUnit , source)) + local unit dummy= CreateUnit(GetOwningPlayer(whichUnit), Reflection_DUMMY_UNIT_TYPE_ID, GetUnitX(whichUnit), GetUnitY(whichUnit), Reflection__AngleBetweenUnits(whichUnit , source)) call SetUnitState(whichUnit, UNIT_STATE_LIFE, GetUnitState(whichUnit, UNIT_STATE_LIFE) + damage) @@ -20238,20 +20242,20 @@ function Reflect takes unit whichUnit,unit source,real damage returns nothing set dummy=null endfunction -function Reflection___TriggerConditionDamage takes nothing returns boolean +function Reflection__TriggerConditionDamage takes nothing returns boolean local integer level= GetUnitAbilityLevel(GetTriggerUnit(), Reflection_ABILITY_ID) return level > 0 and BlzGetEventWeaponType() == WEAPON_TYPE_WHOKNOWS and GetRandomInt(0, 100) <= Reflection_BASE_CHANCE + level * Reflection_LEVEL_CHANCE endfunction -function Reflection___TriggerActionDamage takes nothing returns nothing +function Reflection__TriggerActionDamage takes nothing returns nothing local integer level= GetUnitAbilityLevel(GetTriggerUnit(), Reflection_ABILITY_ID) call Reflect(GetTriggerUnit() , GetEventDamageSource() , GetEventDamage() * I2R(Reflection_BASE_PERCENTAGE + level * Reflection_LEVEL_PERCENTAGE) / 100) endfunction -function Reflection___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(Reflection___damageTrigger, EVENT_PLAYER_UNIT_DAMAGED) - call TriggerAddCondition(Reflection___damageTrigger, Condition(function Reflection___TriggerConditionDamage)) - call TriggerAddAction(Reflection___damageTrigger, function Reflection___TriggerActionDamage) +function Reflection__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(Reflection__damageTrigger, EVENT_PLAYER_UNIT_DAMAGED) + call TriggerAddCondition(Reflection__damageTrigger, Condition(function Reflection__TriggerConditionDamage)) + call TriggerAddAction(Reflection__damageTrigger, function Reflection__TriggerActionDamage) endfunction @@ -20310,12 +20314,12 @@ endfunction if ( GetLocalPlayer() == ForPlayer ) then call ClearTextMessages() call h__DisplayTimedTextToPlayer(ForPlayer, 0.52, 0.96, 2.00, msg) - call StartSound(SimError___error) + call StartSound(SimError__error) endif endfunction - function SimError___init takes nothing returns nothing - set SimError___error=CreateSoundFromLabel("InterfaceError", false, false, false, 10, 10) + function SimError__init takes nothing returns nothing + set SimError__error=CreateSoundFromLabel("InterfaceError", false, false, false, 10, 10) //call StartSound( error ) //apparently the bug in which you play a sound for the first time //and it doesn't work is not there anymore in patch 1.22 endfunction @@ -21627,42 +21631,42 @@ function IsTerrainPlatform takes real x,real y returns boolean return not IsTerrainPathable(x, y, PATHING_TYPE_FLOATABILITY) and not IsTerrainPathable(x, y, PATHING_TYPE_WALKABILITY) and not IsTerrainPathable(x, y, PATHING_TYPE_BUILDABILITY) endfunction -function TerrainPathability___HideItem takes nothing returns nothing +function TerrainPathability__HideItem takes nothing returns nothing if IsItemVisible(GetEnumItem()) then - set TerrainPathability___Hid[TerrainPathability___HidMax]=GetEnumItem() - call SetItemVisible(TerrainPathability___Hid[TerrainPathability___HidMax], false) - set TerrainPathability___HidMax=TerrainPathability___HidMax + 1 + set TerrainPathability__Hid[TerrainPathability__HidMax]=GetEnumItem() + call SetItemVisible(TerrainPathability__Hid[TerrainPathability__HidMax], false) + set TerrainPathability__HidMax=TerrainPathability__HidMax + 1 endif endfunction function IsTerrainWalkable takes real x,real y returns boolean //Hide any items in the area to avoid conflicts with our item - call MoveRectTo(TerrainPathability___Find, x, y) - call EnumItemsInRect(TerrainPathability___Find, null, function TerrainPathability___HideItem) + call MoveRectTo(TerrainPathability__Find, x, y) + call EnumItemsInRect(TerrainPathability__Find, null, function TerrainPathability__HideItem) //Try to move the test item and get its coords - call SetItemPosition(TerrainPathability___Item, x, y) //Unhides the item - set TerrainPathability_X=GetItemX(TerrainPathability___Item) - set TerrainPathability_Y=GetItemY(TerrainPathability___Item) + call SetItemPosition(TerrainPathability__Item, x, y) //Unhides the item + set TerrainPathability_X=GetItemX(TerrainPathability__Item) + set TerrainPathability_Y=GetItemY(TerrainPathability__Item) - call SetItemVisible(TerrainPathability___Item, false) //Hide it again + call SetItemVisible(TerrainPathability__Item, false) //Hide it again //Unhide any items hidden at the start loop - exitwhen TerrainPathability___HidMax <= 0 - set TerrainPathability___HidMax=TerrainPathability___HidMax - 1 - call SetItemVisible(TerrainPathability___Hid[TerrainPathability___HidMax], true) - set TerrainPathability___Hid[TerrainPathability___HidMax]=null + exitwhen TerrainPathability__HidMax <= 0 + set TerrainPathability__HidMax=TerrainPathability__HidMax - 1 + call SetItemVisible(TerrainPathability__Hid[TerrainPathability__HidMax], true) + set TerrainPathability__Hid[TerrainPathability__HidMax]=null endloop //Return walkability - return ( TerrainPathability_X - x ) * ( TerrainPathability_X - x ) + ( TerrainPathability_Y - y ) * ( TerrainPathability_Y - y ) <= TerrainPathability___MAX_RANGE * TerrainPathability___MAX_RANGE and not IsTerrainPathable(x, y, PATHING_TYPE_WALKABILITY) + return ( TerrainPathability_X - x ) * ( TerrainPathability_X - x ) + ( TerrainPathability_Y - y ) * ( TerrainPathability_Y - y ) <= TerrainPathability__MAX_RANGE * TerrainPathability__MAX_RANGE and not IsTerrainPathable(x, y, PATHING_TYPE_WALKABILITY) endfunction -function TerrainPathability___Init takes nothing returns nothing - set TerrainPathability___Find=Rect(0., 0., 128., 128.) - set TerrainPathability___Item=CreateItem(TerrainPathability___DUMMY_ITEM_ID, 0, 0) - call SetItemVisible(TerrainPathability___Item, false) +function TerrainPathability__Init takes nothing returns nothing + set TerrainPathability__Find=Rect(0., 0., 128., 128.) + set TerrainPathability__Item=CreateItem(TerrainPathability__DUMMY_ITEM_ID, 0, 0) + call SetItemVisible(TerrainPathability__Item, false) endfunction //library TerrainPathability ends @@ -22060,25 +22064,25 @@ endfunction function AddTree takes integer id returns integer - local integer index= TreeUtils___count - set TreeUtils___ids[index]=id - set TreeUtils___count=index + 1 + local integer index= TreeUtils__count + set TreeUtils__ids[index]=id + set TreeUtils__count=index + 1 return index endfunction function GetTree takes integer index returns integer - return TreeUtils___ids[index] + return TreeUtils__ids[index] endfunction function GetTreeCount takes nothing returns integer - return TreeUtils___count + return TreeUtils__count endfunction function IsTree takes integer id returns boolean local integer i= 0 loop - exitwhen ( i == TreeUtils___count ) - if ( TreeUtils___ids[i] == id ) then + exitwhen ( i == TreeUtils__count ) + if ( TreeUtils__ids[i] == id ) then return true endif set i=i + 1 @@ -22090,7 +22094,7 @@ function IsDestructableTree takes destructable whichDestructable returns boolean return IsTree(GetDestructableTypeId(whichDestructable)) endfunction -function TreeUtils___Init takes nothing returns nothing +function TreeUtils__Init takes nothing returns nothing call AddTree(SUMMER_TREE_WALL) call AddTree(ASHENVALE_TREE_WALL) call AddTree(ASHENVALE_CANOPY_TREE) @@ -22402,16 +22406,16 @@ endfunction function Villager255_ResetAnimations takes nothing returns nothing - set Villager255___animationsCounter=0 + set Villager255__animationsCounter=0 endfunction function Villager255_AddAnimation takes integer index returns nothing - set Villager255___animations[Villager255___animationsCounter]=index - set Villager255___animationsCounter=Villager255___animationsCounter + 1 + set Villager255__animations[Villager255__animationsCounter]=index + set Villager255__animationsCounter=Villager255__animationsCounter + 1 endfunction function Villager255_GetRandomAnimation takes nothing returns integer - return Villager255___animations[GetRandomInt(0, Villager255___animationsCounter - 1)] + return Villager255__animations[GetRandomInt(0, Villager255__animationsCounter - 1)] endfunction function SetVillager255Animation takes unit whichUnit,integer category returns nothing @@ -22454,7 +22458,7 @@ function SetVillager255Animation takes unit whichUnit,integer category returns n // attack with a weapon in each hand -> no buckler in right hand elseif ( category == VILLAGER_255_ANIMATION_ATTACK_TWO_WEAPONS ) then // attack either with left or right hand TODO animation for both hands? - set Villager255___animationsCounter=0 // INLINED!! + set Villager255__animationsCounter=0 // INLINED!! call Villager255_AddAnimation(21) call Villager255_AddAnimation(22) call Villager255_AddAnimation(40) @@ -22463,41 +22467,41 @@ function SetVillager255Animation takes unit whichUnit,integer category returns n call Villager255_AddAnimation(24) call Villager255_AddAnimation(25) call Villager255_AddAnimation(26) - call SetUnitAnimationByIndex(whichUnit, (Villager255___animations[GetRandomInt(0, Villager255___animationsCounter - 1)])) // INLINED!! + call SetUnitAnimationByIndex(whichUnit, (Villager255__animations[GetRandomInt(0, Villager255__animationsCounter - 1)])) // INLINED!! //call BJDebugMsg("Attack with two weapons") // Attack with one left handed weapon elseif ( category == VILLAGER_255_ANIMATION_ATTACK_LEFT_HAND_WEAPON ) then - set Villager255___animationsCounter=0 // INLINED!! + set Villager255__animationsCounter=0 // INLINED!! call Villager255_AddAnimation(21) call Villager255_AddAnimation(41) call Villager255_AddAnimation(42) call Villager255_AddAnimation(23) call Villager255_AddAnimation(25) - call SetUnitAnimationByIndex(whichUnit, (Villager255___animations[GetRandomInt(0, Villager255___animationsCounter - 1)])) // INLINED!! + call SetUnitAnimationByIndex(whichUnit, (Villager255__animations[GetRandomInt(0, Villager255__animationsCounter - 1)])) // INLINED!! //call BJDebugMsg("Attack with one left handed weapon") // Attack with one right handed weapon elseif ( category == VILLAGER_255_ANIMATION_ATTACK_RIGHT_HAND_WEAPON ) then - set Villager255___animationsCounter=0 // INLINED!! + set Villager255__animationsCounter=0 // INLINED!! call Villager255_AddAnimation(22) call Villager255_AddAnimation(39) call Villager255_AddAnimation(40) call Villager255_AddAnimation(24) call Villager255_AddAnimation(26) - call SetUnitAnimationByIndex(whichUnit, (Villager255___animations[GetRandomInt(0, Villager255___animationsCounter - 1)])) // INLINED!! + call SetUnitAnimationByIndex(whichUnit, (Villager255__animations[GetRandomInt(0, Villager255__animationsCounter - 1)])) // INLINED!! elseif ( category == VILLAGER_255_ANIMATION_ATTACK_MINIGUN ) then - set Villager255___animationsCounter=0 // INLINED!! + set Villager255__animationsCounter=0 // INLINED!! call Villager255_AddAnimation(150) call Villager255_AddAnimation(156) - call SetUnitAnimationByIndex(whichUnit, (Villager255___animations[GetRandomInt(0, Villager255___animationsCounter - 1)])) // INLINED!! + call SetUnitAnimationByIndex(whichUnit, (Villager255__animations[GetRandomInt(0, Villager255__animationsCounter - 1)])) // INLINED!! elseif ( category == VILLAGER_255_ANIMATION_ATTACK_SHOOT_GUN ) then - set Villager255___animationsCounter=0 // INLINED!! + set Villager255__animationsCounter=0 // INLINED!! call Villager255_AddAnimation(148) call Villager255_AddAnimation(149) call Villager255_AddAnimation(151) call Villager255_AddAnimation(154) call Villager255_AddAnimation(155) call Villager255_AddAnimation(157) - call SetUnitAnimationByIndex(whichUnit, (Villager255___animations[GetRandomInt(0, Villager255___animationsCounter - 1)])) // INLINED!! + call SetUnitAnimationByIndex(whichUnit, (Villager255__animations[GetRandomInt(0, Villager255__animationsCounter - 1)])) // INLINED!! elseif ( category == VILLAGER_255_ANIMATION_ATTACK_TWO_HAND ) then call SetUnitAnimationByIndex(whichUnit, GetRandomInt(56, 59)) endif @@ -22706,16 +22710,16 @@ function UpdateAllWallsAround takes unit wall returns nothing set wallsAround=null endfunction -function WallsSystem___TriggerConditionDeath takes nothing returns boolean +function WallsSystem__TriggerConditionDeath takes nothing returns boolean if ( IsWallType(GetUnitTypeId(GetTriggerUnit())) ) then call UpdateAllWallsAround(GetTriggerUnit()) endif return false endfunction -function WallsSystem___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WallsSystem___deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WallsSystem___deathTrigger, Condition(function WallsSystem___TriggerConditionDeath)) +function WallsSystem__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WallsSystem__deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WallsSystem__deathTrigger, Condition(function WallsSystem__TriggerConditionDeath)) endfunction @@ -22921,16 +22925,16 @@ function UpdateAllWallsAroundAir takes unit wall returns nothing set wallsAround=null endfunction -function WallsSystemAir___TriggerConditionDeath takes nothing returns boolean +function WallsSystemAir__TriggerConditionDeath takes nothing returns boolean if ( IsWallTypeAir(GetUnitTypeId(GetTriggerUnit())) ) then call UpdateAllWallsAroundAir(GetTriggerUnit()) endif return false endfunction -function WallsSystemAir___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WallsSystemAir___deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WallsSystemAir___deathTrigger, Condition(function WallsSystemAir___TriggerConditionDeath)) +function WallsSystemAir__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WallsSystemAir__deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WallsSystemAir__deathTrigger, Condition(function WallsSystemAir__TriggerConditionDeath)) endfunction @@ -23226,6 +23230,10 @@ function IsHalloween takes nothing returns boolean return s__CalendarEvent_running[halloween] endfunction +function IsCarnival takes nothing returns boolean + return s__CalendarEvent_running[carnival] +endfunction + //library WoWReforgedCalendarEvents ends //library WoWReforgedCarHorn: @@ -24575,10 +24583,10 @@ endfunction function SetUrlUiVisible takes boolean visible returns nothing - call BlzFrameSetVisible(WoWReforgedUrlUi___BackgroundFrame, visible) - call BlzFrameSetVisible(WoWReforgedUrlUi___TitleFrame, visible) - call BlzFrameSetVisible(WoWReforgedUrlUi___EditBox, visible) - call BlzFrameSetVisible(WoWReforgedUrlUi___CloseButton, visible) + call BlzFrameSetVisible(WoWReforgedUrlUi__BackgroundFrame, visible) + call BlzFrameSetVisible(WoWReforgedUrlUi__TitleFrame, visible) + call BlzFrameSetVisible(WoWReforgedUrlUi__EditBox, visible) + call BlzFrameSetVisible(WoWReforgedUrlUi__CloseButton, visible) endfunction function HideUrlUi takes nothing returns nothing @@ -24595,8 +24603,8 @@ function ShowUrlUi takes player whichPlayer,string title,string text returns not call SetUrlUiVisibleForPlayer(whichPlayer , true) if ( whichPlayer == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedUrlUi___TitleFrame, title) - call BlzFrameSetText(WoWReforgedUrlUi___EditBox, text) + call BlzFrameSetText(WoWReforgedUrlUi__TitleFrame, title) + call BlzFrameSetText(WoWReforgedUrlUi__EditBox, text) endif endfunction @@ -24616,43 +24624,43 @@ function HideUrlUiForPlayer takes player whichPlayer returns nothing call SetUrlUiVisibleForPlayer(whichPlayer , false) endfunction -function WoWReforgedUrlUi___CloseFunction takes nothing returns nothing +function WoWReforgedUrlUi__CloseFunction takes nothing returns nothing //call BJDebugMsg("Click close") call SetUrlUiVisibleForPlayer((GetTriggerPlayer()) , false) // INLINED!! endfunction function CreateUrlUi takes nothing returns nothing - set WoWReforgedUrlUi___BackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedUrlUi___BackgroundFrame, FRAMEPOINT_TOPLEFT, WoWReforgedUrlUi___X, WoWReforgedUrlUi___Y) - call BlzFrameSetAbsPoint(WoWReforgedUrlUi___BackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedUrlUi___UI_SIZE_X, WoWReforgedUrlUi___Y - WoWReforgedUrlUi___UI_SIZE_Y) - - set WoWReforgedUrlUi___TitleFrame=BlzCreateFrameByType("TEXT", "DiscordGuiTitle", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedUrlUi___TitleFrame, FRAMEPOINT_TOPLEFT, WoWReforgedUrlUi___X, WoWReforgedUrlUi___UI_TITLE_Y) - call BlzFrameSetAbsPoint(WoWReforgedUrlUi___TitleFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedUrlUi___UI_SIZE_X, WoWReforgedUrlUi___UI_TITLE_Y - WoWReforgedUrlUi___UI_TITLE_HEIGHT) - call BlzFrameSetTextAlignment(WoWReforgedUrlUi___TitleFrame, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - call BlzFrameSetScale(WoWReforgedUrlUi___TitleFrame, 1.0) - call BlzFrameSetVisible(WoWReforgedUrlUi___TitleFrame, false) - - set WoWReforgedUrlUi___EditBox=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedUrlUi___EditBox, FRAMEPOINT_TOPLEFT, WoWReforgedUrlUi___UI_LINEEDIT_X, WoWReforgedUrlUi___UI_LINEEDIT_Y) - call BlzFrameSetAbsPoint(WoWReforgedUrlUi___EditBox, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedUrlUi___UI_LINEEDIT_X + WoWReforgedUrlUi___UI_LINEEDIT_WIDTH, WoWReforgedUrlUi___UI_LINEEDIT_Y - WoWReforgedUrlUi___UI_LINE_HEIGHT) - call BlzFrameSetEnable(WoWReforgedUrlUi___EditBox, true) - - set WoWReforgedUrlUi___CloseButton=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedUrlUi___CloseButton, FRAMEPOINT_TOPLEFT, WoWReforgedUrlUi___UI_CLOSE_BUTTON_X, WoWReforgedUrlUi___UI_CLOSE_BUTTON_Y) - call BlzFrameSetAbsPoint(WoWReforgedUrlUi___CloseButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedUrlUi___UI_CLOSE_BUTTON_X + WoWReforgedUrlUi___UI_CLOSE_BUTTON_WIDTH, WoWReforgedUrlUi___UI_CLOSE_BUTTON_Y - WoWReforgedUrlUi___UI_CLOSE_BUTTON_HEIGHT) - call BlzFrameSetText(WoWReforgedUrlUi___CloseButton, "|cffFCD20DClose|r") - call BlzFrameSetScale(WoWReforgedUrlUi___CloseButton, 1.00) - - set WoWReforgedUrlUi___CloseTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedUrlUi___CloseTrigger, WoWReforgedUrlUi___CloseButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedUrlUi___CloseTrigger, function WoWReforgedUrlUi___CloseFunction) + set WoWReforgedUrlUi__BackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedUrlUi__BackgroundFrame, FRAMEPOINT_TOPLEFT, WoWReforgedUrlUi__X, WoWReforgedUrlUi__Y) + call BlzFrameSetAbsPoint(WoWReforgedUrlUi__BackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedUrlUi__UI_SIZE_X, WoWReforgedUrlUi__Y - WoWReforgedUrlUi__UI_SIZE_Y) + + set WoWReforgedUrlUi__TitleFrame=BlzCreateFrameByType("TEXT", "DiscordGuiTitle", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedUrlUi__TitleFrame, FRAMEPOINT_TOPLEFT, WoWReforgedUrlUi__X, WoWReforgedUrlUi__UI_TITLE_Y) + call BlzFrameSetAbsPoint(WoWReforgedUrlUi__TitleFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedUrlUi__UI_SIZE_X, WoWReforgedUrlUi__UI_TITLE_Y - WoWReforgedUrlUi__UI_TITLE_HEIGHT) + call BlzFrameSetTextAlignment(WoWReforgedUrlUi__TitleFrame, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + call BlzFrameSetScale(WoWReforgedUrlUi__TitleFrame, 1.0) + call BlzFrameSetVisible(WoWReforgedUrlUi__TitleFrame, false) + + set WoWReforgedUrlUi__EditBox=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedUrlUi__EditBox, FRAMEPOINT_TOPLEFT, WoWReforgedUrlUi__UI_LINEEDIT_X, WoWReforgedUrlUi__UI_LINEEDIT_Y) + call BlzFrameSetAbsPoint(WoWReforgedUrlUi__EditBox, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedUrlUi__UI_LINEEDIT_X + WoWReforgedUrlUi__UI_LINEEDIT_WIDTH, WoWReforgedUrlUi__UI_LINEEDIT_Y - WoWReforgedUrlUi__UI_LINE_HEIGHT) + call BlzFrameSetEnable(WoWReforgedUrlUi__EditBox, true) + + set WoWReforgedUrlUi__CloseButton=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedUrlUi__CloseButton, FRAMEPOINT_TOPLEFT, WoWReforgedUrlUi__UI_CLOSE_BUTTON_X, WoWReforgedUrlUi__UI_CLOSE_BUTTON_Y) + call BlzFrameSetAbsPoint(WoWReforgedUrlUi__CloseButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedUrlUi__UI_CLOSE_BUTTON_X + WoWReforgedUrlUi__UI_CLOSE_BUTTON_WIDTH, WoWReforgedUrlUi__UI_CLOSE_BUTTON_Y - WoWReforgedUrlUi__UI_CLOSE_BUTTON_HEIGHT) + call BlzFrameSetText(WoWReforgedUrlUi__CloseButton, "|cffFCD20DClose|r") + call BlzFrameSetScale(WoWReforgedUrlUi__CloseButton, 1.00) + + set WoWReforgedUrlUi__CloseTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedUrlUi__CloseTrigger, WoWReforgedUrlUi__CloseButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedUrlUi__CloseTrigger, function WoWReforgedUrlUi__CloseFunction) // hide for all players call SetUrlUiVisible(false) endfunction -function WoWReforgedUrlUi___Init takes nothing returns nothing +function WoWReforgedUrlUi__Init takes nothing returns nothing //call FrameSaverAdd(function HideUrlUi) @@ -24667,7 +24675,7 @@ endfunction //Implemented from module WorldBounds___WorldBoundInit: - function s__WorldBounds_WorldBounds___WorldBoundInit___onInit takes nothing returns nothing + function s__WorldBounds_WorldBounds___WorldBoundInit__onInit takes nothing returns nothing set s__WorldBounds_world=GetWorldBounds() set s__WorldBounds_maxX=R2I(GetRectMaxX(s__WorldBounds_world)) @@ -24777,12 +24785,12 @@ endfunction function s__CooldownReduction___AbilityList_allocate takes nothing returns integer local integer this - if ( s__CooldownReduction___AbilityList_Alloc___recycle[(0)] == 0 ) then - set s__CooldownReduction___AbilityList_Alloc___instanceCount=s__CooldownReduction___AbilityList_Alloc___instanceCount + 1 - set this=s__CooldownReduction___AbilityList_Alloc___instanceCount + if ( s__CooldownReduction___AbilityList_Alloc__recycle[(0)] == 0 ) then + set s__CooldownReduction___AbilityList_Alloc__instanceCount=s__CooldownReduction___AbilityList_Alloc__instanceCount + 1 + set this=s__CooldownReduction___AbilityList_Alloc__instanceCount else - set this=s__CooldownReduction___AbilityList_Alloc___recycle[(0)] - set s__CooldownReduction___AbilityList_Alloc___recycle[(0)]=s__CooldownReduction___AbilityList_Alloc___recycle[s__CooldownReduction___AbilityList_Alloc___recycle[(0)]] + set this=s__CooldownReduction___AbilityList_Alloc__recycle[(0)] + set s__CooldownReduction___AbilityList_Alloc__recycle[(0)]=s__CooldownReduction___AbilityList_Alloc__recycle[s__CooldownReduction___AbilityList_Alloc__recycle[(0)]] endif @@ -24790,8 +24798,8 @@ endfunction endfunction function s__CooldownReduction___AbilityList_deallocate takes integer this returns nothing - set s__CooldownReduction___AbilityList_Alloc___recycle[this]=s__CooldownReduction___AbilityList_Alloc___recycle[(0)] - set s__CooldownReduction___AbilityList_Alloc___recycle[(0)]=this + set s__CooldownReduction___AbilityList_Alloc__recycle[this]=s__CooldownReduction___AbilityList_Alloc__recycle[(0)] + set s__CooldownReduction___AbilityList_Alloc__recycle[(0)]=this endfunction //Implemented from module CooldownReduction___List: @@ -25143,16 +25151,16 @@ endfunction // Finally you have to set the used textures into local data function GetIdleWorkerOverlayParent takes nothing returns framehandle - return CustomConsoleUI___idleWorkerButtonOverlayParent + return CustomConsoleUI__idleWorkerButtonOverlayParent endfunction function AddCustomConsole takes integer index,string texture returns nothing set CustomConsoleUI_dataCount[index]=CustomConsoleUI_dataCount[index] + 1 - set CustomConsoleUI_data[index * CustomConsoleUI___dataPageSize + CustomConsoleUI_dataCount[index]]=texture + set CustomConsoleUI_data[index * CustomConsoleUI__dataPageSize + CustomConsoleUI_dataCount[index]]=texture endfunction function HasCustomConsole takes integer index returns boolean - local integer pageValue= index * CustomConsoleUI___dataPageSize + local integer pageValue= index * CustomConsoleUI__dataPageSize return CustomConsoleUI_data[pageValue + 5] != null and CustomConsoleUI_data[pageValue + 5] != "" and StringLength(CustomConsoleUI_data[pageValue + 5]) > 0 endfunction @@ -25161,13 +25169,13 @@ endfunction if GetLocalPlayer() != p then return endif - if ( (GameStatus___status) == GAME_STATUS_REPLAY ) then // INLINED!! + if ( (GameStatus__status) == GAME_STATUS_REPLAY ) then // INLINED!! return endif if index < 1 then set index=GetHandleId(GetPlayerRace(p)) endif - set pageValue=index * CustomConsoleUI___dataPageSize + set pageValue=index * CustomConsoleUI__dataPageSize call BlzFrameSetTexture(BlzGetFrameByName("CustomConsoleUI5T", 0), CustomConsoleUI_data[pageValue + 5], 0, false) call BlzFrameSetTexture(BlzGetFrameByName("CustomConsoleUI6T", 0), CustomConsoleUI_data[pageValue + 6], 0, false) call BlzFrameSetTexture(BlzGetFrameByName("CustomConsoleUI4T", 0), CustomConsoleUI_data[pageValue + 4], 0, false) @@ -25188,16 +25196,16 @@ endfunction call BlzFrameSetTexture(BlzGetFrameByName("InventoryCoverTexture", 0), CustomConsoleUI_data[pageValue + 8], 0, true) //call BJDebugMsg("Apply worker button texture " + data[pageValue + 9] + " for race " + I2S(index)) - call BlzFrameSetTexture(CustomConsoleUI___idleWorkerButtonOverlay, CustomConsoleUI_data[pageValue + 9], 0, false) + call BlzFrameSetTexture(CustomConsoleUI__idleWorkerButtonOverlay, CustomConsoleUI_data[pageValue + 9], 0, false) else - call BlzFrameSetTexture(CustomConsoleUI___customInventoryCover, CustomConsoleUI_data[pageValue + 8], 0, true) + call BlzFrameSetTexture(CustomConsoleUI__customInventoryCover, CustomConsoleUI_data[pageValue + 8], 0, true) endif call BlzFrameSetPoint(BlzGetFrameByName("CustomConsoleUIClock", 0), FRAMEPOINT_TOP, BlzGetFrameByName("ConsoleUI", 0), FRAMEPOINT_TOP, CustomConsoleUI_x[index], CustomConsoleUI_y[index]) endfunction function CreateCustomConsole takes nothing returns nothing - if ( (GameStatus___status) == GAME_STATUS_REPLAY ) then // INLINED!! + if ( (GameStatus__status) == GAME_STATUS_REPLAY ) then // INLINED!! return endif @@ -25209,18 +25217,18 @@ endfunction if GetLocalizedString("REFORGED") != "REFORGED" then // Requires a native existing only in Reforged - set CustomConsoleUI___idleWorkerButton=BlzFrameGetChild(BlzGetFrameByName("ConsoleUI", 0), 7) - set CustomConsoleUI___idleWorkerButtonOverlayParent=BlzCreateSimpleFrame("SimpleTextureFrame", CustomConsoleUI___idleWorkerButton, 0) - set CustomConsoleUI___idleWorkerButtonOverlay=BlzGetFrameByName("SimpleTextureFrameValue", 0) - call BlzFrameSetAllPoints(CustomConsoleUI___idleWorkerButtonOverlay, CustomConsoleUI___idleWorkerButton) - call BlzFrameSetLevel(CustomConsoleUI___idleWorkerButtonOverlayParent, 4) + set CustomConsoleUI__idleWorkerButton=BlzFrameGetChild(BlzGetFrameByName("ConsoleUI", 0), 7) + set CustomConsoleUI__idleWorkerButtonOverlayParent=BlzCreateSimpleFrame("SimpleTextureFrame", CustomConsoleUI__idleWorkerButton, 0) + set CustomConsoleUI__idleWorkerButtonOverlay=BlzGetFrameByName("SimpleTextureFrameValue", 0) + call BlzFrameSetAllPoints(CustomConsoleUI__idleWorkerButtonOverlay, CustomConsoleUI__idleWorkerButton) + call BlzFrameSetLevel(CustomConsoleUI__idleWorkerButtonOverlayParent, 4) else - set CustomConsoleUI___customInventoryCoverParent=BlzCreateSimpleFrame("SimpleTextureFrame", BlzGetFrameByName("ConsoleUI", 0), 0) - call BlzFrameSetLevel(CustomConsoleUI___customInventoryCoverParent, 4) - set CustomConsoleUI___customInventoryCover=BlzGetFrameByName("SimpleTextureFrameValue", 0) - call BlzFrameSetAbsPoint(CustomConsoleUI___customInventoryCover, FRAMEPOINT_BOTTOMRIGHT, 0.6, 0) - call BlzFrameSetAbsPoint(CustomConsoleUI___customInventoryCover, FRAMEPOINT_TOPLEFT, 0.6 - 0.128, 0.2558) + set CustomConsoleUI__customInventoryCoverParent=BlzCreateSimpleFrame("SimpleTextureFrame", BlzGetFrameByName("ConsoleUI", 0), 0) + call BlzFrameSetLevel(CustomConsoleUI__customInventoryCoverParent, 4) + set CustomConsoleUI__customInventoryCover=BlzGetFrameByName("SimpleTextureFrameValue", 0) + call BlzFrameSetAbsPoint(CustomConsoleUI__customInventoryCover, FRAMEPOINT_BOTTOMRIGHT, 0.6, 0) + call BlzFrameSetAbsPoint(CustomConsoleUI__customInventoryCover, FRAMEPOINT_TOPLEFT, 0.6 - 0.128, 0.2558) endif // Preload @@ -25241,23 +25249,23 @@ endfunction call BlzGetFrameByName("CustomConsoleUI5B", 0) call BlzGetFrameByName("CustomConsoleUI6B", 0) endfunction - function CustomConsoleUI___Init takes nothing returns nothing - if ( (GameStatus___status) != GAME_STATUS_REPLAY ) then // INLINED!! + function CustomConsoleUI__Init takes nothing returns nothing + if ( (GameStatus__status) != GAME_STATUS_REPLAY ) then // INLINED!! call CreateCustomConsole() call UseCustomConsole(GetLocalPlayer() , 0) endif endfunction - function CustomConsoleUI___at0s takes nothing returns nothing - call CustomConsoleUI___Init() + function CustomConsoleUI__at0s takes nothing returns nothing + call CustomConsoleUI__Init() call DestroyTimer(GetExpiredTimer()) endfunction - function CustomConsoleUI___update takes nothing returns nothing + function CustomConsoleUI__update takes nothing returns nothing // Barade: Did not work for me. - call BlzFrameSetVisible(CustomConsoleUI___customInventoryCoverParent, not BlzFrameIsVisible(BlzGetOriginFrame(ORIGIN_FRAME_ITEM_BUTTON, 0))) + call BlzFrameSetVisible(CustomConsoleUI__customInventoryCoverParent, not BlzFrameIsVisible(BlzGetOriginFrame(ORIGIN_FRAME_ITEM_BUTTON, 0))) endfunction - function CustomConsoleUI___init_function takes nothing returns nothing + function CustomConsoleUI__init_function takes nothing returns nothing local integer index= 0 set index=GetHandleId(RACE_HUMAN) call AddCustomConsole(index , "ui\\console\\human\\humanuitile01") @@ -25327,9 +25335,9 @@ endfunction if GetLocalizedString("REFORGED") == "REFORGED" then //call TimerStart(CreateTimer(), 1/32.0, true, function update) endif - call TimerStart(CreateTimer(), 0, false, function CustomConsoleUI___at0s) + call TimerStart(CreateTimer(), 0, false, function CustomConsoleUI__at0s) - call TriggerAddAction(FrameLoader___actionTrigger, (function CustomConsoleUI___Init)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function CustomConsoleUI__Init)) // INLINED!! endfunction @@ -25754,7 +25762,7 @@ endfunction endif endfunction - function GetMainSelectedUnit___FilterFunction takes nothing returns boolean + function GetMainSelectedUnit__FilterFunction takes nothing returns boolean local unit u= GetFilterUnit() local real prio= BlzGetUnitRealField(u, UNIT_RF_PRIORITY) local boolean found= false @@ -25762,28 +25770,28 @@ endfunction local integer loopB= 0 // compare the current u with allready found, to place it in the right slot loop - exitwhen loopA > GetMainSelectedUnit___unitsCount - if BlzGetUnitRealField(GetMainSelectedUnit___units[loopA], UNIT_RF_PRIORITY) < prio then - set GetMainSelectedUnit___unitsCount=GetMainSelectedUnit___unitsCount + 1 - set loopB=GetMainSelectedUnit___unitsCount + exitwhen loopA > GetMainSelectedUnit__unitsCount + if BlzGetUnitRealField(GetMainSelectedUnit__units[loopA], UNIT_RF_PRIORITY) < prio then + set GetMainSelectedUnit__unitsCount=GetMainSelectedUnit__unitsCount + 1 + set loopB=GetMainSelectedUnit__unitsCount loop exitwhen loopB <= loopA - set GetMainSelectedUnit___units[loopB]=GetMainSelectedUnit___units[loopB - 1] + set GetMainSelectedUnit__units[loopB]=GetMainSelectedUnit__units[loopB - 1] set loopB=loopB - 1 endloop - set GetMainSelectedUnit___units[loopA]=u + set GetMainSelectedUnit__units[loopA]=u set found=true exitwhen true // equal prio and better colisions Value - elseif BlzGetUnitRealField(GetMainSelectedUnit___units[loopA], UNIT_RF_PRIORITY) == prio and GetUnitOrderValue(GetMainSelectedUnit___units[loopA]) > GetUnitOrderValue(u) then - set GetMainSelectedUnit___unitsCount=GetMainSelectedUnit___unitsCount + 1 - set loopB=GetMainSelectedUnit___unitsCount + elseif BlzGetUnitRealField(GetMainSelectedUnit__units[loopA], UNIT_RF_PRIORITY) == prio and GetUnitOrderValue(GetMainSelectedUnit__units[loopA]) > GetUnitOrderValue(u) then + set GetMainSelectedUnit__unitsCount=GetMainSelectedUnit__unitsCount + 1 + set loopB=GetMainSelectedUnit__unitsCount loop exitwhen loopB <= loopA - set GetMainSelectedUnit___units[loopB]=GetMainSelectedUnit___units[loopB - 1] + set GetMainSelectedUnit__units[loopB]=GetMainSelectedUnit__units[loopB - 1] set loopB=loopB - 1 endloop - set GetMainSelectedUnit___units[loopA]=u + set GetMainSelectedUnit__units[loopA]=u set found=true exitwhen true endif @@ -25792,8 +25800,8 @@ endfunction // not found add it at the end if not found then - set GetMainSelectedUnit___unitsCount=GetMainSelectedUnit___unitsCount + 1 - set GetMainSelectedUnit___units[GetMainSelectedUnit___unitsCount]=u + set GetMainSelectedUnit__unitsCount=GetMainSelectedUnit__unitsCount + 1 + set GetMainSelectedUnit__units[GetMainSelectedUnit__unitsCount]=u endif set u=null @@ -25803,11 +25811,11 @@ endfunction function GetSelectedUnitIndex takes nothing returns integer local integer i= 0 // local player is in group selection? - if BlzFrameIsVisible(GetMainSelectedUnit___containerFrame) then + if BlzFrameIsVisible(GetMainSelectedUnit__containerFrame) then // find the first visible yellow Background Frame loop exitwhen i > 11 - if BlzFrameIsVisible(GetMainSelectedUnit___frames[i]) then + if BlzFrameIsVisible(GetMainSelectedUnit__frames[i]) then return i endif set i=i + 1 @@ -25818,18 +25826,18 @@ endfunction function GetMainSelectedUnit takes player whichPlayer,integer index returns unit if index >= 0 then - call GroupEnumUnitsSelected(GetMainSelectedUnit___Group, whichPlayer, GetMainSelectedUnit___filter) - set bj_groupRandomCurrentPick=GetMainSelectedUnit___units[index + 1] + call GroupEnumUnitsSelected(GetMainSelectedUnit__Group, whichPlayer, GetMainSelectedUnit__filter) + set bj_groupRandomCurrentPick=GetMainSelectedUnit__units[index + 1] //clear table loop - exitwhen GetMainSelectedUnit___unitsCount <= 0 - set GetMainSelectedUnit___units[GetMainSelectedUnit___unitsCount]=null - set GetMainSelectedUnit___unitsCount=GetMainSelectedUnit___unitsCount - 1 + exitwhen GetMainSelectedUnit__unitsCount <= 0 + set GetMainSelectedUnit__units[GetMainSelectedUnit__unitsCount]=null + set GetMainSelectedUnit__unitsCount=GetMainSelectedUnit__unitsCount - 1 endloop return bj_groupRandomCurrentPick else - call GroupEnumUnitsSelected(GetMainSelectedUnit___Group, whichPlayer, null) - return FirstOfGroup(GetMainSelectedUnit___Group) + call GroupEnumUnitsSelected(GetMainSelectedUnit__Group, whichPlayer, null) + return FirstOfGroup(GetMainSelectedUnit__Group) endif endfunction @@ -25838,33 +25846,33 @@ endfunction return GetMainSelectedUnit(GetLocalPlayer() , GetSelectedUnitIndex()) endfunction - function GetMainSelectedUnit___init_functionAt0s takes nothing returns nothing + function GetMainSelectedUnit__init_functionAt0s takes nothing returns nothing local integer i= 0 local framehandle console= BlzGetFrameByName("ConsoleUI", 0) local framehandle bottomUI= BlzFrameGetChild(console, 1) local framehandle groupframe= BlzFrameGetChild(bottomUI, 5) local framehandle buttonContainer //globals - set GetMainSelectedUnit___containerFrame=BlzFrameGetChild(groupframe, 0) + set GetMainSelectedUnit__containerFrame=BlzFrameGetChild(groupframe, 0) // give this frames a handleId loop - exitwhen i >= BlzFrameGetChildrenCount(GetMainSelectedUnit___containerFrame) - 1 - set buttonContainer=BlzFrameGetChild(GetMainSelectedUnit___containerFrame, i) - set GetMainSelectedUnit___frames[i]=BlzFrameGetChild(buttonContainer, 0) + exitwhen i >= BlzFrameGetChildrenCount(GetMainSelectedUnit__containerFrame) - 1 + set buttonContainer=BlzFrameGetChild(GetMainSelectedUnit__containerFrame, i) + set GetMainSelectedUnit__frames[i]=BlzFrameGetChild(buttonContainer, 0) set i=i + 1 endloop endfunction - function GetMainSelectedUnit___timerFunction_init_functionAt0s takes nothing returns nothing - call GetMainSelectedUnit___init_functionAt0s() + function GetMainSelectedUnit__timerFunction_init_functionAt0s takes nothing returns nothing + call GetMainSelectedUnit__init_functionAt0s() call DestroyTimer(GetExpiredTimer()) endfunction - function GetMainSelectedUnit___init_function takes nothing returns nothing - set GetMainSelectedUnit___filter=Filter(function GetMainSelectedUnit___FilterFunction) - call TimerStart(CreateTimer(), 0, false, function GetMainSelectedUnit___timerFunction_init_functionAt0s) + function GetMainSelectedUnit__init_function takes nothing returns nothing + set GetMainSelectedUnit__filter=Filter(function GetMainSelectedUnit__FilterFunction) + call TimerStart(CreateTimer(), 0, false, function GetMainSelectedUnit__timerFunction_init_functionAt0s) - call TriggerAddAction(FrameLoader___actionTrigger, (function GetMainSelectedUnit___init_functionAt0s)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function GetMainSelectedUnit__init_functionAt0s)) // INLINED!! endfunction @@ -26051,21 +26059,21 @@ endfunction function SetItemUnstackEnabled takes unit whichUnit,boolean enabled returns nothing if ( enabled ) then - if ( IsUnitInGroup(whichUnit, ItemUnstackSystem___disabledUnits) ) then - call GroupRemoveUnit(ItemUnstackSystem___disabledUnits, whichUnit) + if ( IsUnitInGroup(whichUnit, ItemUnstackSystem__disabledUnits) ) then + call GroupRemoveUnit(ItemUnstackSystem__disabledUnits, whichUnit) endif else - if ( not IsUnitInGroup(whichUnit, ItemUnstackSystem___disabledUnits) ) then - call GroupAddUnit(ItemUnstackSystem___disabledUnits, whichUnit) + if ( not IsUnitInGroup(whichUnit, ItemUnstackSystem__disabledUnits) ) then + call GroupAddUnit(ItemUnstackSystem__disabledUnits, whichUnit) endif endif endfunction function IsItemUnstackEnabled takes unit whichUnit returns boolean - return not IsUnitInGroup(whichUnit, ItemUnstackSystem___disabledUnits) + return not IsUnitInGroup(whichUnit, ItemUnstackSystem__disabledUnits) endfunction -function ItemUnstackSystem___GetMaxStacksByItemTypeIdIntern takes integer itemTypeId returns integer +function ItemUnstackSystem__GetMaxStacksByItemTypeIdIntern takes integer itemTypeId returns integer return GetMaxStacksByItemTypeId(itemTypeId) @@ -26073,7 +26081,7 @@ function ItemUnstackSystem___GetMaxStacksByItemTypeIdIntern takes integer itemTy endfunction -function ItemUnstackSystem___CopyItemProps takes item sourceItem,item targetItem returns nothing +function ItemUnstackSystem__CopyItemProps takes item sourceItem,item targetItem returns nothing // some seem broken //call BlzSetItemName(targetItem, GetItemName(sourceItem)) call BlzSetItemDescription(targetItem, BlzGetItemDescription(sourceItem)) @@ -26087,7 +26095,7 @@ function ItemUnstackSystem___CopyItemProps takes item sourceItem,item targetItem endif endfunction -function ItemUnstackSystem___GetItemSlot takes unit hero,item whichItem returns integer +function ItemUnstackSystem__GetItemSlot takes unit hero,item whichItem returns integer local integer sourceSlot= - 1 local integer i= 0 loop @@ -26100,7 +26108,7 @@ function ItemUnstackSystem___GetItemSlot takes unit hero,item whichItem returns return sourceSlot endfunction -function ItemUnstackSystem___AddUnstackedItem takes unit hero,integer itemTypeId,integer charges,integer sourceSlot,item sourceItem returns nothing +function ItemUnstackSystem__AddUnstackedItem takes unit hero,integer itemTypeId,integer charges,integer sourceSlot,item sourceItem returns nothing local item itemInNextSlot= null local item itemInPreviousSlot= null local integer inventorySize= UnitInventorySize(hero) @@ -26115,7 +26123,7 @@ function ItemUnstackSystem___AddUnstackedItem takes unit hero,integer itemTypeId local integer i= sourceSlot + 1 local integer j= sourceSlot - 1 // check for a slot with an item with the same type and free stacks - if ( ItemUnstackSystem___ALLOW_STACKING_NEXT_ITEM ) then + if ( ItemUnstackSystem__ALLOW_STACKING_NEXT_ITEM ) then set maxCharges=(GetMaxStacksByItemTypeId((itemTypeId))) // INLINED!! loop set itemInNextSlot=UnitItemInSlot(hero, i) @@ -26140,7 +26148,7 @@ function ItemUnstackSystem___AddUnstackedItem takes unit hero,integer itemTypeId set i=i + 1 exitwhen ( remainingCharges == 0 or i >= inventorySize ) endloop - if ( ItemUnstackSystem___STACKING_NEXT_ITEM_FROM_START and remainingCharges > 0 and sourceSlot > 0 ) then + if ( ItemUnstackSystem__STACKING_NEXT_ITEM_FROM_START and remainingCharges > 0 and sourceSlot > 0 ) then set i=0 loop set itemInNextSlot=UnitItemInSlot(hero, i) @@ -26179,7 +26187,7 @@ function ItemUnstackSystem___AddUnstackedItem takes unit hero,integer itemTypeId set addedToFreeSlot=true call UnitAddItemToSlotById(hero, itemTypeId, i) set unstackedItem=UnitItemInSlot(hero, i) - call ItemUnstackSystem___CopyItemProps(sourceItem , unstackedItem) + call ItemUnstackSystem__CopyItemProps(sourceItem , unstackedItem) set unstackedCharges=IMinBJ(maxCharges, remainingCharges) call SetItemCharges(unstackedItem, unstackedCharges) set remainingCharges=remainingCharges - unstackedCharges @@ -26187,7 +26195,7 @@ function ItemUnstackSystem___AddUnstackedItem takes unit hero,integer itemTypeId set addedToFreeSlot=true call UnitAddItemToSlotById(hero, itemTypeId, j) set unstackedItem=UnitItemInSlot(hero, j) - call ItemUnstackSystem___CopyItemProps(sourceItem , unstackedItem) + call ItemUnstackSystem__CopyItemProps(sourceItem , unstackedItem) set unstackedCharges=IMinBJ(maxCharges, remainingCharges) call SetItemCharges(unstackedItem, unstackedCharges) set remainingCharges=remainingCharges - unstackedCharges @@ -26204,43 +26212,43 @@ function ItemUnstackSystem___AddUnstackedItem takes unit hero,integer itemTypeId set unstackedItem=CreateItem(itemTypeId, GetUnitX(hero), GetUnitY(hero)) set unstackedCharges=IMinBJ(maxCharges, remainingCharges) call SetItemCharges(unstackedItem, unstackedCharges) - call ItemUnstackSystem___CopyItemProps(sourceItem , unstackedItem) + call ItemUnstackSystem__CopyItemProps(sourceItem , unstackedItem) set remainingCharges=remainingCharges - unstackedCharges endloop set unstackedItem=null endfunction -function ItemUnstackSystem___TriggerConditionOrderUnstack takes nothing returns boolean - local boolean isEnabled= (not IsUnitInGroup((GetTriggerUnit()), ItemUnstackSystem___disabledUnits)) // INLINED!! +function ItemUnstackSystem__TriggerConditionOrderUnstack takes nothing returns boolean + local boolean isEnabled= (not IsUnitInGroup((GetTriggerUnit()), ItemUnstackSystem__disabledUnits)) // INLINED!! local integer orderId= GetIssuedOrderId() local item targetItem= GetOrderTargetItem() local integer maxStacks= (GetMaxStacksByItemTypeId((GetItemTypeId(targetItem)))) // INLINED!! local integer charges= GetItemCharges(targetItem) - local boolean result= isEnabled and orderId >= 852002 and orderId <= 852007 and targetItem != null and maxStacks > 0 and charges > 1 and ItemUnstackSystem___GetItemSlot(GetTriggerUnit() , targetItem) == orderId - 852002 + local boolean result= isEnabled and orderId >= 852002 and orderId <= 852007 and targetItem != null and maxStacks > 0 and charges > 1 and ItemUnstackSystem__GetItemSlot(GetTriggerUnit() , targetItem) == orderId - 852002 set targetItem=null return result endfunction -function ItemUnstackSystem___TriggerActionOrderUnstack takes nothing returns nothing +function ItemUnstackSystem__TriggerActionOrderUnstack takes nothing returns nothing local unit hero= GetTriggerUnit() local item sourceItem= GetOrderTargetItem() local integer sourceItemTypeId= GetItemTypeId(sourceItem) - local integer sourceSlot= ItemUnstackSystem___GetItemSlot(hero , sourceItem) + local integer sourceSlot= ItemUnstackSystem__GetItemSlot(hero , sourceItem) local integer charges= 1 // wait for completing the order or the item is not at the target slot call TriggerSleepAction(0.0) // item does still exist and was dropped on its previous slot // we are not sure if this works when the item is removed via triggers since the value of the variable becomes an invalid reference if ( sourceItem != null and GetWidgetLife(sourceItem) > 0.0 and GetItemCharges(sourceItem) > 0 and UnitItemInSlot(hero, sourceSlot) == sourceItem ) then - if ( ItemUnstackSystem___UNSTACK_HALF_CHARGES ) then + if ( ItemUnstackSystem__UNSTACK_HALF_CHARGES ) then set charges=IMaxBJ(GetItemCharges(sourceItem) / 2, 1) else - set charges=IMinBJ(GetItemCharges(sourceItem) - 1, ItemUnstackSystem___MAX_UNSTACKED_CHARGES) + set charges=IMinBJ(GetItemCharges(sourceItem) - 1, ItemUnstackSystem__MAX_UNSTACKED_CHARGES) endif if ( charges > 0 ) then call SetItemCharges(sourceItem, GetItemCharges(sourceItem) - charges) - call ItemUnstackSystem___AddUnstackedItem(hero , sourceItemTypeId , charges , sourceSlot , sourceItem) + call ItemUnstackSystem__AddUnstackedItem(hero , sourceItemTypeId , charges , sourceSlot , sourceItem) endif endif @@ -26248,12 +26256,12 @@ function ItemUnstackSystem___TriggerActionOrderUnstack takes nothing returns not set sourceItem=null endfunction -function ItemUnstackSystem___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(ItemUnstackSystem___orderTrigger, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER) - call TriggerAddCondition(ItemUnstackSystem___orderTrigger, Condition(function ItemUnstackSystem___TriggerConditionOrderUnstack)) - call TriggerAddAction(ItemUnstackSystem___orderTrigger, function ItemUnstackSystem___TriggerActionOrderUnstack) +function ItemUnstackSystem__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(ItemUnstackSystem__orderTrigger, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER) + call TriggerAddCondition(ItemUnstackSystem__orderTrigger, Condition(function ItemUnstackSystem__TriggerConditionOrderUnstack)) + call TriggerAddAction(ItemUnstackSystem__orderTrigger, function ItemUnstackSystem__TriggerActionOrderUnstack) - call SetItemUnstackEnabled((MaxItemStacks___stackItemDummy) , false) // INLINED!! + call SetItemUnstackEnabled((MaxItemStacks__stackItemDummy) , false) // INLINED!! endfunction // Change Log: @@ -26339,13 +26347,13 @@ endfunction //Implemented from module CTL: function s__Jump_create takes nothing returns integer - return CTL___CT(s__Jump_rctl32) + return CTL__CT(s__Jump_rctl32) endfunction function s__Jump_destroy takes integer this returns nothing - call CTL___DT(this) + call CTL__DT(this) endfunction function s__Jump_ectl32 takes nothing returns boolean - local integer this=CTL___rf[s__Jump_rctl32] + local integer this=CTL__rf[s__Jump_rctl32] local real x local real y local real z @@ -26415,20 +26423,20 @@ endfunction set EVENT_JUMP_FINISH=1 set EVENT_JUMP_UNIT=null set s__Jump_u[this]=null - call CTL___DT((this)) // INLINED!! + call CTL__DT((this)) // INLINED!! endif //Implemented from module CTLNull: - set this=CTL___n[this] + set this=CTL__n[this] endloop //Implemented from module CTLEnd: return false endfunction - function s__Jump_CTLEnd___onInit takes nothing returns nothing - set s__Jump_rctl32=CTL___A(function s__Jump_ectl32) + function s__Jump_CTLEnd__onInit takes nothing returns nothing + set s__Jump_rctl32=CTL__A(function s__Jump_ectl32) endfunction function s__Jump_start takes unit un,real x1,real y1,real maxZ,real time,real gravity returns integer - local integer this= (CTL___CT(s__Jump_rctl32)) // INLINED!! + local integer this= (CTL__CT(s__Jump_rctl32)) // INLINED!! local real x0= GetUnitX(un) local real y0= GetUnitY(un) local real angle= Atan2(y1 - y0, x1 - x0) @@ -26516,20 +26524,20 @@ endfunction endfunction function s__Knockback_listRemove takes integer this returns nothing - if not s__Knockback_ListModule_List___inlist[this] then + if not s__Knockback_ListModule_List__inlist[this] then return endif - set s__Knockback_ListModule_List___inlist[this]=false + set s__Knockback_ListModule_List__inlist[this]=false set s__Knockback_next[s__Knockback_prev[this]]=s__Knockback_next[this] set s__Knockback_prev[s__Knockback_next[this]]=s__Knockback_prev[this] set s__Knockback_count=s__Knockback_count - 1 endfunction function s__Knockback_listAdd takes integer this returns nothing - if s__Knockback_ListModule_List___inlist[this] or s__Knockback_ListModule_List___destroying then + if s__Knockback_ListModule_List__inlist[this] or s__Knockback_ListModule_List__destroying then return endif - set s__Knockback_ListModule_List___inlist[this]=true + set s__Knockback_ListModule_List__inlist[this]=true set s__Knockback_next[(s__Knockback_prev[(0)])]=this // INLINED!! set s__Knockback_prev[this]=(s__Knockback_prev[(0)]) // INLINED!! set s__Knockback_prev[(0)]=this @@ -26538,13 +26546,13 @@ endfunction function s__Knockback_listDestroy takes nothing returns nothing local integer this= (s__Knockback_prev[(0)]) // INLINED!! - set s__Knockback_ListModule_List___destroying=true + set s__Knockback_ListModule_List__destroying=true loop exitwhen this == 0 call sc__Knockback_deallocate(this) set this=s__Knockback_prev[this] endloop - set s__Knockback_ListModule_List___destroying=false + set s__Knockback_ListModule_List__destroying=false endfunction @@ -27028,12 +27036,12 @@ endfunction function s__MissileEffect___Effect_allocate takes nothing returns integer local integer this - if ( s__MissileEffect___Effect_Alloc___recycle[(0)] == 0 ) then - set s__MissileEffect___Effect_Alloc___instanceCount=s__MissileEffect___Effect_Alloc___instanceCount + 1 - set this=s__MissileEffect___Effect_Alloc___instanceCount + if ( s__MissileEffect___Effect_Alloc__recycle[(0)] == 0 ) then + set s__MissileEffect___Effect_Alloc__instanceCount=s__MissileEffect___Effect_Alloc__instanceCount + 1 + set this=s__MissileEffect___Effect_Alloc__instanceCount else - set this=s__MissileEffect___Effect_Alloc___recycle[(0)] - set s__MissileEffect___Effect_Alloc___recycle[(0)]=s__MissileEffect___Effect_Alloc___recycle[s__MissileEffect___Effect_Alloc___recycle[(0)]] + set this=s__MissileEffect___Effect_Alloc__recycle[(0)] + set s__MissileEffect___Effect_Alloc__recycle[(0)]=s__MissileEffect___Effect_Alloc__recycle[s__MissileEffect___Effect_Alloc__recycle[(0)]] endif @@ -27041,8 +27049,8 @@ endfunction endfunction function s__MissileEffect___Effect_deallocate takes integer this returns nothing - set s__MissileEffect___Effect_Alloc___recycle[this]=s__MissileEffect___Effect_Alloc___recycle[(0)] - set s__MissileEffect___Effect_Alloc___recycle[(0)]=this + set s__MissileEffect___Effect_Alloc__recycle[this]=s__MissileEffect___Effect_Alloc__recycle[(0)] + set s__MissileEffect___Effect_Alloc__recycle[(0)]=this endfunction @@ -27620,28 +27628,28 @@ endfunction //Implemented from module PluginSpellEffect___Event: - function s__Spell_PluginSpellEffect___Event___GetUnitZ takes unit u returns real + function s__Spell_PluginSpellEffect___Event__GetUnitZ takes unit u returns real call MoveLocation(s__Spell_location, GetUnitX(u), GetUnitY(u)) return GetUnitFlyHeight(u) + GetLocationZ(s__Spell_location) endfunction - function s__Spell_PluginSpellEffect___Event___GetSpellTargetZ takes nothing returns real + function s__Spell_PluginSpellEffect___Event__GetSpellTargetZ takes nothing returns real call MoveLocation(s__Spell_location, s__Spell_x, s__Spell_y) if s__PluginSpellEffect___SUnit_unit[s__Spell_target] != null then - return s__Spell_PluginSpellEffect___Event___GetUnitZ(s__PluginSpellEffect___SUnit_unit[s__Spell_target]) + return s__Spell_PluginSpellEffect___Event__GetUnitZ(s__PluginSpellEffect___SUnit_unit[s__Spell_target]) else return GetLocationZ(s__Spell_location) endif endfunction - function s__Spell_PluginSpellEffect___Event___onCast takes nothing returns nothing + function s__Spell_PluginSpellEffect___Event__onCast takes nothing returns nothing set s__PluginSpellEffect___SUnit_unit[s__Spell_source]=GetTriggerUnit() set s__PluginSpellEffect___SUnit_player[s__Spell_source]=GetOwningPlayer(s__PluginSpellEffect___SUnit_unit[s__Spell_source]) set s__PluginSpellEffect___SUnit_handle[s__Spell_source]=GetHandleId(s__PluginSpellEffect___SUnit_unit[s__Spell_source]) set s__PluginSpellEffect___SUnit_id[s__Spell_source]=GetUnitUserData(s__PluginSpellEffect___SUnit_unit[s__Spell_source]) set s__PluginSpellEffect___SUnit_x[s__Spell_source]=GetUnitX(s__PluginSpellEffect___SUnit_unit[s__Spell_source]) set s__PluginSpellEffect___SUnit_y[s__Spell_source]=GetUnitY(s__PluginSpellEffect___SUnit_unit[s__Spell_source]) - set s__PluginSpellEffect___SUnit_z[s__Spell_source]=s__Spell_PluginSpellEffect___Event___GetUnitZ(s__PluginSpellEffect___SUnit_unit[s__Spell_source]) + set s__PluginSpellEffect___SUnit_z[s__Spell_source]=s__Spell_PluginSpellEffect___Event__GetUnitZ(s__PluginSpellEffect___SUnit_unit[s__Spell_source]) set s__PluginSpellEffect___SUnit_isHero[s__Spell_source]=IsUnitType(s__PluginSpellEffect___SUnit_unit[s__Spell_source], UNIT_TYPE_HERO) set s__PluginSpellEffect___SUnit_isStructure[s__Spell_source]=IsUnitType(s__PluginSpellEffect___SUnit_unit[s__Spell_source], UNIT_TYPE_STRUCTURE) @@ -27651,23 +27659,23 @@ endfunction set s__PluginSpellEffect___SUnit_id[s__Spell_target]=GetUnitUserData(s__PluginSpellEffect___SUnit_unit[s__Spell_target]) set s__PluginSpellEffect___SUnit_x[s__Spell_target]=GetUnitX(s__PluginSpellEffect___SUnit_unit[s__Spell_target]) set s__PluginSpellEffect___SUnit_y[s__Spell_target]=GetUnitY(s__PluginSpellEffect___SUnit_unit[s__Spell_target]) - set s__PluginSpellEffect___SUnit_z[s__Spell_target]=s__Spell_PluginSpellEffect___Event___GetUnitZ(s__PluginSpellEffect___SUnit_unit[s__Spell_target]) + set s__PluginSpellEffect___SUnit_z[s__Spell_target]=s__Spell_PluginSpellEffect___Event__GetUnitZ(s__PluginSpellEffect___SUnit_unit[s__Spell_target]) set s__PluginSpellEffect___SUnit_isHero[s__Spell_target]=IsUnitType(s__PluginSpellEffect___SUnit_unit[s__Spell_target], UNIT_TYPE_HERO) set s__PluginSpellEffect___SUnit_isStructure[s__Spell_target]=IsUnitType(s__PluginSpellEffect___SUnit_unit[s__Spell_target], UNIT_TYPE_STRUCTURE) set s__Spell_x=GetSpellTargetX() set s__Spell_y=GetSpellTargetY() - set s__Spell_z=s__Spell_PluginSpellEffect___Event___GetSpellTargetZ() + set s__Spell_z=s__Spell_PluginSpellEffect___Event__GetSpellTargetZ() set s__Spell_id=GetSpellAbilityId() set s__Spell_level=GetUnitAbilityLevel(s__PluginSpellEffect___SUnit_unit[s__Spell_source], s__Spell_id) set s__Spell_ability=BlzGetUnitAbility(s__PluginSpellEffect___SUnit_unit[s__Spell_source], s__Spell_id) endfunction - function s__Spell_PluginSpellEffect___Event___onInit takes nothing returns nothing + function s__Spell_PluginSpellEffect___Event__onInit takes nothing returns nothing set s__Spell_source=(s__PluginSpellEffect___SUnit__allocate()) // INLINED!! set s__Spell_target=(s__PluginSpellEffect___SUnit__allocate()) // INLINED!! - call RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_SPELL_EFFECT , function s__Spell_PluginSpellEffect___Event___onCast) + call RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_SPELL_EFFECT , function s__Spell_PluginSpellEffect___Event__onCast) endfunction //library PluginSpellEffect ends @@ -27740,7 +27748,7 @@ endfunction //Implemented from module RegisterNativeEvent___NativeEventInit: - function s__RegisterNativeEvent___NativeEvent_RegisterNativeEvent___NativeEventInit___onInit takes nothing returns nothing + function s__RegisterNativeEvent___NativeEvent_RegisterNativeEvent___NativeEventInit__onInit takes nothing returns nothing set s__RegisterNativeEvent___NativeEvent_table=s__TableArray__staticgetindex(0x2000) @@ -29340,7 +29348,7 @@ endfunction endfunction - function s__SpellEffectEvent___S_SpellEffectEvent___M___onInit takes nothing returns nothing + function s__SpellEffectEvent___S_SpellEffectEvent___M__onInit takes nothing returns nothing set s__SpellEffectEvent___S_tb=s__Table_create() @@ -29491,144 +29499,6 @@ endfunction //library Stupidity ends -//library Taunts: - - -function GetTauntsCount takes nothing returns integer - return Taunts___TauntsCount -endfunction - -function GetTauntChatCommand takes integer taunt returns string - return Taunts___TauntChatCommands[taunt] -endfunction - -function GetTauntText takes integer taunt returns string - return Taunts___TauntTexts[taunt] -endfunction - -function GetTauntSound takes integer taunt returns sound - return Taunts___TauntSounds[taunt] -endfunction - -function SetPlayerTauntsEnabled takes player whichPlayer,boolean enabled returns nothing - set Taunts___TauntsEnabled[GetPlayerId(whichPlayer)]=enabled -endfunction - -function IsPlayerTauntsEnabled takes player whichPlayer returns boolean - return Taunts___TauntsEnabled[GetPlayerId(whichPlayer)] -endfunction - -function GetTauntsChatCommands takes nothing returns string - local string text= "-taunts, -tauntson/off" - local integer i= 0 - local integer max= (Taunts___TauntsCount) // INLINED!! - loop - exitwhen ( i == max ) - set text=text + ", " + (Taunts___TauntChatCommands[(i)]) // INLINED!! - set i=i + 1 - endloop - return text -endfunction - -function PlayPlayerTaunt takes player whichPlayer,integer taunt returns nothing - local player slotPlayer= null - local integer i= 0 - loop - exitwhen ( i == bj_MAX_PLAYERS ) - set slotPlayer=Player(i) - if ( (Taunts___TauntsEnabled[GetPlayerId((slotPlayer))]) ) then // INLINED!! - if ( slotPlayer == GetLocalPlayer() ) then - call StartSound((Taunts___TauntSounds[(taunt)])) // INLINED!! - endif - endif - set slotPlayer=null - set i=i + 1 - endloop - // send to all at once even to the ones which have disabled taunts - // otherwise the player will see his/her chat messages listed n times - call h__BlzDisplayChatMessage(whichPlayer, 0, (Taunts___TauntTexts[(taunt)])) // INLINED!! -endfunction - -function Taunts___TriggerConditionChatCommand takes nothing returns boolean - local integer taunt= LoadInteger(Taunts___h, GetHandleId(GetTriggeringTrigger()), 0) - call PlayPlayerTaunt(GetTriggerPlayer() , taunt) - return false -endfunction - -function AddTaunt takes string chatCommand,string text,sound whichSound returns integer - local integer index= Taunts___TauntsCount - set Taunts___TauntChatCommands[index]=chatCommand - set Taunts___TauntTexts[index]=text - set Taunts___TauntSounds[index]=whichSound - set Taunts___TauntsChatTrigger[index]=CreateTrigger() - call TriggerRegisterAnyPlayerChatEvent(Taunts___TauntsChatTrigger[index] , chatCommand , true) - call TriggerAddCondition(Taunts___TauntsChatTrigger[index], Condition(function Taunts___TriggerConditionChatCommand)) - call SaveInteger(Taunts___h, GetHandleId(Taunts___TauntsChatTrigger[index]), 0, index) - set Taunts___TauntsCount=Taunts___TauntsCount + 1 - return index -endfunction - -function Taunts___AddQuestItemSpecific takes string description returns nothing - -call CreateQuestItem(bj_lastCreatedQuest , (description)) // INLINED!! - - - -endfunction - -function CreateTauntsQuest takes nothing returns quest - local quest q= h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "Taunts", "Taunts can be used to send sounds with chat commands to other players.", "ReplaceableTextures\\CommandButtons\\BTNPandaTaunt.blp") - local integer i= 0 - local integer max= (Taunts___TauntsCount) // INLINED!! - call CreateQuestItem(bj_lastCreatedQuest , (("\"-taunts\": Lists all taunts."))) // INLINED!! - call CreateQuestItem(bj_lastCreatedQuest , (("\"-tauntson/off\": Enables/disables taunts."))) // INLINED!! - loop - exitwhen ( i == max ) - call CreateQuestItem(bj_lastCreatedQuest , (("\"" + (Taunts___TauntChatCommands[(i)]) + "\": " + (Taunts___TauntTexts[(i)])))) // INLINED!! - set i=i + 1 - endloop - return q -endfunction - -function Taunts___TriggerConditionTauntsOn takes nothing returns boolean - set Taunts___TauntsEnabled[GetPlayerId((GetTriggerPlayer() ))]=( true) // INLINED!! - call h__DisplayTimedTextToPlayer(GetTriggerPlayer(), 0.0, 0.0, 6.0, "Enabled taunts.") - return false -endfunction - -function Taunts___TriggerConditionTauntsOff takes nothing returns boolean - set Taunts___TauntsEnabled[GetPlayerId((GetTriggerPlayer() ))]=( false) // INLINED!! - call h__DisplayTimedTextToPlayer(GetTriggerPlayer(), 0.0, 0.0, 6.0, "Disabled taunts.") - return false -endfunction - -function Taunts___TriggerConditionTaunts takes nothing returns boolean - local string msg= "Taunts (disabled): " - if ( (Taunts___TauntsEnabled[GetPlayerId((GetTriggerPlayer()))]) ) then // INLINED!! - set msg="Taunts (enabled): " - endif - set msg=msg + GetTauntsChatCommands() - call h__DisplayTimedTextToPlayer(GetTriggerPlayer(), 0.0, 0.0, 6.0, msg) - return false -endfunction - -function Taunts___Init takes nothing returns nothing - local integer i= 0 - loop - exitwhen ( i == bj_MAX_PLAYERS ) - set Taunts___TauntsEnabled[i]=true - set i=i + 1 - endloop - call TriggerRegisterAnyPlayerChatEvent(Taunts___TauntsEnableChatTrigger , "-tauntson" , true) - call TriggerAddCondition(Taunts___TauntsEnableChatTrigger, Condition(function Taunts___TriggerConditionTauntsOn)) - call TriggerRegisterAnyPlayerChatEvent(Taunts___TauntsDisableChatTrigger , "-tauntsoff" , true) - call TriggerAddCondition(Taunts___TauntsDisableChatTrigger, Condition(function Taunts___TriggerConditionTauntsOff)) - call TriggerRegisterAnyPlayerChatEvent(Taunts___TauntsListChatTrigger , "-taunts" , true) - call TriggerAddCondition(Taunts___TauntsListChatTrigger, Condition(function Taunts___TriggerConditionTaunts)) -endfunction - - -//library Taunts ends //library Tenacity: // Intro @@ -29717,12 +29587,12 @@ endfunction function s__Tenacity___List_allocate takes nothing returns integer local integer this - if ( s__Tenacity___List_Alloc___recycle[(0)] == 0 ) then - set s__Tenacity___List_Alloc___instanceCount=s__Tenacity___List_Alloc___instanceCount + 1 - set this=s__Tenacity___List_Alloc___instanceCount + if ( s__Tenacity___List_Alloc__recycle[(0)] == 0 ) then + set s__Tenacity___List_Alloc__instanceCount=s__Tenacity___List_Alloc__instanceCount + 1 + set this=s__Tenacity___List_Alloc__instanceCount else - set this=s__Tenacity___List_Alloc___recycle[(0)] - set s__Tenacity___List_Alloc___recycle[(0)]=s__Tenacity___List_Alloc___recycle[s__Tenacity___List_Alloc___recycle[(0)]] + set this=s__Tenacity___List_Alloc__recycle[(0)] + set s__Tenacity___List_Alloc__recycle[(0)]=s__Tenacity___List_Alloc__recycle[s__Tenacity___List_Alloc__recycle[(0)]] endif @@ -29730,8 +29600,8 @@ endfunction endfunction function s__Tenacity___List_deallocate takes integer this returns nothing - set s__Tenacity___List_Alloc___recycle[this]=s__Tenacity___List_Alloc___recycle[(0)] - set s__Tenacity___List_Alloc___recycle[(0)]=this + set s__Tenacity___List_Alloc__recycle[this]=s__Tenacity___List_Alloc__recycle[(0)] + set s__Tenacity___List_Alloc__recycle[(0)]=this endfunction //Implemented from module Tenacity___ListModule: @@ -31409,7 +31279,7 @@ endfunction //Implemented from module TurretSystem__Init: - function s__TurretSystem__S_TurretSystem__Init___onInit takes nothing returns nothing + function s__TurretSystem__S_TurretSystem__Init__onInit takes nothing returns nothing call TriggerRegisterAnyUnitEventBJ(TurretSystem__TurretSystemAttackTrigger, EVENT_PLAYER_UNIT_ATTACKED) call TriggerAddCondition(TurretSystem__TurretSystemAttackTrigger, Condition(function TurretSystem__TurretSystemTriggerConditionAttack)) call TriggerAddAction(TurretSystem__TurretSystemAttackTrigger, function TurretSystem__TurretSystemTriggerActionAttack) @@ -31542,7 +31412,7 @@ endfunction return false endfunction - function s__UnitDex_UnitDex___UnitDexCore___onGameStart takes nothing returns nothing + function s__UnitDex_UnitDex___UnitDexCore__onGameStart takes nothing returns nothing local integer i= 1 loop @@ -31564,7 +31434,7 @@ endfunction call DestroyTimer(GetExpiredTimer()) endfunction - function s__UnitDex_UnitDex___UnitDexCore___onEnter takes nothing returns boolean + function s__UnitDex_UnitDex___UnitDexCore__onEnter takes nothing returns boolean local unit u= GetFilterUnit() local integer i= (GetUnitUserData((u))) // INLINED!! local integer t= UnitDex___Index @@ -31628,7 +31498,7 @@ endfunction return false endfunction - function s__UnitDex_UnitDex___UnitDexCore___onLeave takes nothing returns boolean + function s__UnitDex_UnitDex___UnitDexCore__onLeave takes nothing returns boolean local unit u local integer i @@ -31679,7 +31549,7 @@ endfunction return false endfunction - function s__UnitDex_UnitDex___UnitDexCore___onInit takes nothing returns nothing + function s__UnitDex_UnitDex___UnitDexCore__onInit takes nothing returns nothing local trigger t= CreateTrigger() local integer i= 0 local player p @@ -31694,7 +31564,7 @@ endfunction - set UnitDex___FilterEnter=Filter(function s__UnitDex_UnitDex___UnitDexCore___onEnter) + set UnitDex___FilterEnter=Filter(function s__UnitDex_UnitDex___UnitDexCore__onEnter) // Begin to index units when they enter the map @@ -31706,7 +31576,7 @@ endfunction - call TriggerAddCondition(t, Filter(function s__UnitDex_UnitDex___UnitDexCore___onLeave)) + call TriggerAddCondition(t, Filter(function s__UnitDex_UnitDex___UnitDexCore__onLeave)) set UnitDex___IndexTrig[EVENT_UNIT_INDEX]=CreateTrigger() set UnitDex___IndexTrig[EVENT_UNIT_DEINDEX]=CreateTrigger() @@ -31742,7 +31612,7 @@ endfunction set s__UnitDex_LastIndex=s__UnitDex_Counter // run init triggers - call TimerStart(CreateTimer(), 0.00, false, function s__UnitDex_UnitDex___UnitDexCore___onGameStart) + call TimerStart(CreateTimer(), 0.00, false, function s__UnitDex_UnitDex___UnitDexCore__onGameStart) endfunction @@ -31856,7 +31726,7 @@ endfunction //Implemented from module UnitGroupRespawnSystemConfig___Init: - function s__UnitGroupRespawnSystemConfig___S_UnitGroupRespawnSystemConfig___Init___onInit takes nothing returns nothing + function s__UnitGroupRespawnSystemConfig___S_UnitGroupRespawnSystemConfig___Init__onInit takes nothing returns nothing call ForceAddPlayer(UnitGroupRespawnSystemConfig_AUTO_ADDED_GROUP_PLAYERS, Player(PLAYER_NEUTRAL_AGGRESSIVE)) call ForceAddPlayer(UnitGroupRespawnSystemConfig_AUTO_ADDED_GROUP_PLAYERS, Player(22)) // Creep Heroes, udg_BossesPlayer is not initialized call ForceAddPlayer(UnitGroupRespawnSystemConfig_AUTO_ADDED_GROUP_PLAYERS, Player(20)) // Gaia, udg_Gaia is not initialized @@ -34557,7 +34427,7 @@ function WoWReforgedLevers__Init takes nothing returns nothing call TriggerRegisterAnyUnitEventBJ(WoWReforgedLevers__sellTrigger, EVENT_PLAYER_UNIT_SELL) call TriggerAddCondition(WoWReforgedLevers__sellTrigger, Condition(function WoWReforgedLevers__TriggerConditionSell)) - call TriggerAddAction(OnStartGame___startGameTrigger, (function WoWReforgedLevers__GameStart)) // INLINED!! + call TriggerAddAction(OnStartGame__startGameTrigger, (function WoWReforgedLevers__GameStart)) // INLINED!! endfunction @@ -35295,34 +35165,34 @@ endfunction //library GetMainSelectedUnitForPlayer: -function GetMainSelectedUnitForPlayer___TriggerConditionSync takes nothing returns boolean +function GetMainSelectedUnitForPlayer__TriggerConditionSync takes nothing returns boolean if ( BlzGetTriggerSyncPrefix() == GetMainSelectedUnitForPlayer_PREFIX ) then - set GetMainSelectedUnitForPlayer___syncGetSelectedUnitIndex[GetPlayerId(GetTriggerPlayer())]=S2I(BlzGetTriggerSyncData()) + set GetMainSelectedUnitForPlayer__syncGetSelectedUnitIndex[GetPlayerId(GetTriggerPlayer())]=S2I(BlzGetTriggerSyncData()) endif return false endfunction function GetMainSelectedUnitForPlayer_GetSyncTimerHandleId takes nothing returns integer - return GetHandleId(GetMainSelectedUnitForPlayer___syncTimer) + return GetHandleId(GetMainSelectedUnitForPlayer__syncTimer) endfunction function GetMainSelectedUnitForPlayer_PauseSyncTimer takes nothing returns nothing - call PauseTimer(GetMainSelectedUnitForPlayer___syncTimer) + call PauseTimer(GetMainSelectedUnitForPlayer__syncTimer) endfunction function GetMainSelectedUnitForPlayer_ResumeSyncTimer takes nothing returns nothing - call ResumeTimer(GetMainSelectedUnitForPlayer___syncTimer) + call ResumeTimer(GetMainSelectedUnitForPlayer__syncTimer) endfunction function GetSelectedUnitIndexForPlayer takes player whichPlayer returns integer - return GetMainSelectedUnitForPlayer___syncGetSelectedUnitIndex[GetPlayerId(whichPlayer)] + return GetMainSelectedUnitForPlayer__syncGetSelectedUnitIndex[GetPlayerId(whichPlayer)] endfunction function GetMainSelectedUnitForPlayer takes player whichPlayer returns unit - return GetMainSelectedUnit(whichPlayer , (GetMainSelectedUnitForPlayer___syncGetSelectedUnitIndex[GetPlayerId((whichPlayer))])) // INLINED!! + return GetMainSelectedUnit(whichPlayer , (GetMainSelectedUnitForPlayer__syncGetSelectedUnitIndex[GetPlayerId((whichPlayer))])) // INLINED!! endfunction -function GetMainSelectedUnitForPlayer___TimerFunctionSync takes nothing returns nothing +function GetMainSelectedUnitForPlayer__TimerFunctionSync takes nothing returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) @@ -35333,22 +35203,22 @@ function GetMainSelectedUnitForPlayer___TimerFunctionSync takes nothing returns endloop endfunction -function GetMainSelectedUnitForPlayer___Init takes nothing returns nothing +function GetMainSelectedUnitForPlayer__Init takes nothing returns nothing local player slotPlayer local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) set slotPlayer=Player(i) if ( GetPlayerSlotState(slotPlayer) == PLAYER_SLOT_STATE_PLAYING and GetPlayerController(slotPlayer) == MAP_CONTROL_COMPUTER ) then - call TriggerRegisterPlayerEvent(GetMainSelectedUnitForPlayer___syncTrigger, Player(i), EVENT_PLAYER_SYNC_DATA) + call TriggerRegisterPlayerEvent(GetMainSelectedUnitForPlayer__syncTrigger, Player(i), EVENT_PLAYER_SYNC_DATA) endif set slotPlayer=null - set GetMainSelectedUnitForPlayer___syncGetSelectedUnitIndex[i]=- 1 + set GetMainSelectedUnitForPlayer__syncGetSelectedUnitIndex[i]=- 1 set i=i + 1 endloop - call TriggerAddCondition(GetMainSelectedUnitForPlayer___syncTrigger, Condition(function GetMainSelectedUnitForPlayer___TriggerConditionSync)) + call TriggerAddCondition(GetMainSelectedUnitForPlayer__syncTrigger, Condition(function GetMainSelectedUnitForPlayer__TriggerConditionSync)) - call TimerStart(GetMainSelectedUnitForPlayer___syncTimer, GetMainSelectedUnitForPlayer_SYNC_INTERVAL, true, function GetMainSelectedUnitForPlayer___TimerFunctionSync) + call TimerStart(GetMainSelectedUnitForPlayer__syncTimer, GetMainSelectedUnitForPlayer_SYNC_INTERVAL, true, function GetMainSelectedUnitForPlayer__TimerFunctionSync) // make sure that the timer will be paused and not run before restoring frames of GetMainSelectedUnit after loading the game @@ -35427,68 +35297,68 @@ endfunction function TriggerRegisterLogEvent takes trigger whichTrigger returns nothing - set Log___callbackTriggers[Log___callbackTriggersCounter]=whichTrigger - set Log___callbackTriggersCounter=Log___callbackTriggersCounter + 1 + set Log__callbackTriggers[Log__callbackTriggersCounter]=whichTrigger + set Log__callbackTriggersCounter=Log__callbackTriggersCounter + 1 endfunction function GetTriggerLogPlayer takes nothing returns player - return Log___triggerLogPlayer + return Log__triggerLogPlayer endfunction function GetTriggerLogMessage takes nothing returns string - return Log___triggerLogMessage + return Log__triggerLogMessage endfunction -function Log___ExecuteCallbackTriggers takes player whichPlayer,string msg returns nothing +function Log__ExecuteCallbackTriggers takes player whichPlayer,string msg returns nothing local integer i= 0 local player slotPlayer= null loop - exitwhen ( i == Log___callbackTriggersCounter ) - set Log___triggerLogPlayer=whichPlayer - set Log___triggerLogMessage=msg - call ConditionalTriggerExecute(Log___callbackTriggers[i]) + exitwhen ( i == Log__callbackTriggersCounter ) + set Log__triggerLogPlayer=whichPlayer + set Log__triggerLogMessage=msg + call ConditionalTriggerExecute(Log__callbackTriggers[i]) set i=i + 1 endloop endfunction -function Log___Index2D takes integer Value1,integer Value2,integer MaxValue2 returns integer +function Log__Index2D takes integer Value1,integer Value2,integer MaxValue2 returns integer return Value1 * MaxValue2 + Value2 endfunction -function Log___GetLogEntryIndex takes player whichPlayer,integer index returns integer - return Log___Index2D(index , GetPlayerId(whichPlayer) , bj_MAX_PLAYERS) +function Log__GetLogEntryIndex takes player whichPlayer,integer index returns integer + return Log__Index2D(index , GetPlayerId(whichPlayer) , bj_MAX_PLAYERS) endfunction function ClearLog takes player whichPlayer returns nothing - set Log___logCounter[GetPlayerId(whichPlayer)]=0 + set Log__logCounter[GetPlayerId(whichPlayer)]=0 endfunction function IsLogEnabled takes player whichPlayer returns boolean - return Log___logEnabled[GetPlayerId(whichPlayer)] + return Log__logEnabled[GetPlayerId(whichPlayer)] endfunction function SetLogEnabled takes player whichPlayer,boolean enabled returns nothing - set Log___logEnabled[GetPlayerId(whichPlayer)]=enabled + set Log__logEnabled[GetPlayerId(whichPlayer)]=enabled endfunction function GetLogMaximum takes player whichPlayer returns integer - return Log___logMaximum[GetPlayerId(whichPlayer)] + return Log__logMaximum[GetPlayerId(whichPlayer)] endfunction function SetLogMaximum takes player whichPlayer,integer maximum returns nothing - set Log___logMaximum[GetPlayerId(whichPlayer)]=maximum + set Log__logMaximum[GetPlayerId(whichPlayer)]=maximum endfunction function GetLogEntry takes player whichPlayer,integer index returns string - return Log___log[Log___GetLogEntryIndex(whichPlayer , index)] + return Log__log[Log__GetLogEntryIndex(whichPlayer , index)] endfunction function GetLogCounter takes player whichPlayer returns integer - return Log___logCounter[GetPlayerId(whichPlayer)] + return Log__logCounter[GetPlayerId(whichPlayer)] endfunction function GetLocalizedMessage takes string msg returns string - if ( StringStartsWith(msg , Log___TRIGSTR_PREFIX) ) then + if ( StringStartsWith(msg , Log__TRIGSTR_PREFIX) ) then return GetLocalizedString(msg) endif @@ -35513,72 +35383,72 @@ endfunction function AddLog takes player whichPlayer,string msg returns nothing - local integer index= (Log___logCounter[GetPlayerId((whichPlayer))]) // INLINED!! + local integer index= (Log__logCounter[GetPlayerId((whichPlayer))]) // INLINED!! local integer i= 0 local integer max= 0 - if ( (Log___logEnabled[GetPlayerId((whichPlayer))]) ) then // INLINED!! + if ( (Log__logEnabled[GetPlayerId((whichPlayer))]) ) then // INLINED!! set msg=RemoveStartingEmptyLines(msg) set msg=GetLocalizedMessage(msg) - set max=(Log___logMaximum[GetPlayerId((whichPlayer))]) // INLINED!! + set max=(Log__logMaximum[GetPlayerId((whichPlayer))]) // INLINED!! if ( index >= max ) then set i=1 loop exitwhen ( i >= max ) - set Log___log[Log___GetLogEntryIndex(whichPlayer , i - 1)]=Log___log[Log___GetLogEntryIndex(whichPlayer , i)] + set Log__log[Log__GetLogEntryIndex(whichPlayer , i - 1)]=Log__log[Log__GetLogEntryIndex(whichPlayer , i)] set i=i + 1 endloop - set Log___log[Log___GetLogEntryIndex(whichPlayer , max - 1)]=msg + set Log__log[Log__GetLogEntryIndex(whichPlayer , max - 1)]=msg else - set Log___logCounter[GetPlayerId(whichPlayer)]=index + 1 - set Log___log[Log___GetLogEntryIndex(whichPlayer , index)]=msg + set Log__logCounter[GetPlayerId(whichPlayer)]=index + 1 + set Log__log[Log__GetLogEntryIndex(whichPlayer , index)]=msg endif - call Log___ExecuteCallbackTriggers(whichPlayer , msg) + call Log__ExecuteCallbackTriggers(whichPlayer , msg) endif endfunction -function Log___DisplayTextToPlayerHook takes player toPlayer,real x,real y,string message returns nothing +function Log__DisplayTextToPlayerHook takes player toPlayer,real x,real y,string message returns nothing call AddLog(toPlayer , message) endfunction -function Log___DisplayTimedTextToPlayerHook takes player toPlayer,real x,real y,real duration,string message returns nothing +function Log__DisplayTimedTextToPlayerHook takes player toPlayer,real x,real y,real duration,string message returns nothing call AddLog(toPlayer , message) endfunction -function Log___DisplayTimedTextFromPlayerHook takes player toPlayer,real x,real y,real duration,string message returns nothing +function Log__DisplayTimedTextFromPlayerHook takes player toPlayer,real x,real y,real duration,string message returns nothing call AddLog(toPlayer , message) endfunction -function Log___ForForceAddLog takes nothing returns nothing - call AddLog(GetEnumPlayer() , Log___tmpMessage) +function Log__ForForceAddLog takes nothing returns nothing + call AddLog(GetEnumPlayer() , Log__tmpMessage) endfunction -function Log___DisplayTextToForceHook takes force toForce,string message returns nothing - set Log___tmpMessage=message - call ForForce(toForce, function Log___ForForceAddLog) +function Log__DisplayTextToForceHook takes force toForce,string message returns nothing + set Log__tmpMessage=message + call ForForce(toForce, function Log__ForForceAddLog) endfunction -function Log___DisplayTimedTextToForceHook takes force toForce,real duration,string message returns nothing - set Log___tmpMessage=message - call ForForce(toForce, function Log___ForForceAddLog) +function Log__DisplayTimedTextToForceHook takes force toForce,real duration,string message returns nothing + set Log__tmpMessage=message + call ForForce(toForce, function Log__ForForceAddLog) endfunction -function Log___QuestMessageBJHook takes force f,integer messageType,string message returns nothing - set Log___tmpMessage=" " - call ForForce(f, function Log___ForForceAddLog) - set Log___tmpMessage=message - call ForForce(f, function Log___ForForceAddLog) +function Log__QuestMessageBJHook takes force f,integer messageType,string message returns nothing + set Log__tmpMessage=" " + call ForForce(f, function Log__ForForceAddLog) + set Log__tmpMessage=message + call ForForce(f, function Log__ForForceAddLog) endfunction -function Log___BJDebugMsgHook takes string msg returns nothing - set Log___tmpMessage=msg - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) +function Log__BJDebugMsgHook takes string msg returns nothing + set Log__tmpMessage=msg + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) endfunction -function Log___GetChatMessageRecipient takes integer recipient returns string +function Log__GetChatMessageRecipient takes integer recipient returns string if ( recipient == 0 ) then return "All" elseif ( recipient == 1 ) then @@ -35595,75 +35465,75 @@ endfunction // 1: "Allies" // 2: "Observers" // 3+: "Private" -function Log___BlzDisplayChatMessageHook takes player whichPlayer,integer recipient,string message returns nothing - set Log___tmpMessage="[" + Log___GetChatMessageRecipient(recipient) + "] " + GetPlayerNameColoredSimple(whichPlayer) + ": " + message - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) +function Log__BlzDisplayChatMessageHook takes player whichPlayer,integer recipient,string message returns nothing + set Log__tmpMessage="[" + Log__GetChatMessageRecipient(recipient) + "] " + GetPlayerNameColoredSimple(whichPlayer) + ": " + message + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) endfunction -//processed hook: hook DisplayTextToPlayer Log___DisplayTextToPlayerHook -//processed hook: hook DisplayTimedTextToPlayer Log___DisplayTimedTextToPlayerHook -//processed hook: hook DisplayTimedTextFromPlayer Log___DisplayTimedTextFromPlayerHook -//processed hook: hook DisplayTextToForce Log___DisplayTextToForceHook -//processed hook: hook DisplayTimedTextToForce Log___DisplayTimedTextToForceHook -//processed hook: hook QuestMessageBJ Log___QuestMessageBJHook -//processed hook: hook BJDebugMsg Log___BJDebugMsgHook -//processed hook: hook BlzDisplayChatMessage Log___BlzDisplayChatMessageHook +//processed hook: hook DisplayTextToPlayer Log__DisplayTextToPlayerHook +//processed hook: hook DisplayTimedTextToPlayer Log__DisplayTimedTextToPlayerHook +//processed hook: hook DisplayTimedTextFromPlayer Log__DisplayTimedTextFromPlayerHook +//processed hook: hook DisplayTextToForce Log__DisplayTextToForceHook +//processed hook: hook DisplayTimedTextToForce Log__DisplayTimedTextToForceHook +//processed hook: hook QuestMessageBJ Log__QuestMessageBJHook +//processed hook: hook BJDebugMsg Log__BJDebugMsgHook +//processed hook: hook BlzDisplayChatMessage Log__BlzDisplayChatMessageHook -function Log___TransmissionFromUnitWithNameBJHook takes force toForce,unit whichUnit,string unitName,sound soundHandle,string message,integer timeType,real timeVal,boolean wait returns nothing - set Log___tmpMessage=" " - call ForForce(toForce, function Log___ForForceAddLog) - set Log___tmpMessage="|cffffcc00" + GetLocalizedMessage(unitName) + ":|r " + GetLocalizedMessage(message) - call ForForce(toForce, function Log___ForForceAddLog) +function Log__TransmissionFromUnitWithNameBJHook takes force toForce,unit whichUnit,string unitName,sound soundHandle,string message,integer timeType,real timeVal,boolean wait returns nothing + set Log__tmpMessage=" " + call ForForce(toForce, function Log__ForForceAddLog) + set Log__tmpMessage="|cffffcc00" + GetLocalizedMessage(unitName) + ":|r " + GetLocalizedMessage(message) + call ForForce(toForce, function Log__ForForceAddLog) endfunction -function Log___TransmissionFromUnitTypeWithNameBJHook takes force toForce,player fromPlayer,integer unitId,string unitName,location loc,sound soundHandle,string message,integer timeType,real timeVal,boolean wait returns nothing - set Log___tmpMessage=" " - call ForForce(toForce, function Log___ForForceAddLog) - set Log___tmpMessage="|cffffcc00" + GetLocalizedMessage(GetObjectName(unitId)) + ":|r " + GetLocalizedMessage(message) - call ForForce(toForce, function Log___ForForceAddLog) +function Log__TransmissionFromUnitTypeWithNameBJHook takes force toForce,player fromPlayer,integer unitId,string unitName,location loc,sound soundHandle,string message,integer timeType,real timeVal,boolean wait returns nothing + set Log__tmpMessage=" " + call ForForce(toForce, function Log__ForForceAddLog) + set Log__tmpMessage="|cffffcc00" + GetLocalizedMessage(GetObjectName(unitId)) + ":|r " + GetLocalizedMessage(message) + call ForForce(toForce, function Log__ForForceAddLog) endfunction -function Log___SetCinematicSceneHook takes integer portraitUnitId,playercolor color,string speakerTitle,string text,real sceneDuration,real voiceoverDuration returns nothing - set Log___tmpMessage=" " - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) - set Log___tmpMessage="|cffffcc00" + speakerTitle + ":|r " + GetLocalizedMessage(text) - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) +function Log__SetCinematicSceneHook takes integer portraitUnitId,playercolor color,string speakerTitle,string text,real sceneDuration,real voiceoverDuration returns nothing + set Log__tmpMessage=" " + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) + set Log__tmpMessage="|cffffcc00" + speakerTitle + ":|r " + GetLocalizedMessage(text) + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) endfunction -function Log___SetCinematicSceneBJHook takes sound soundHandle,integer portraitUnitId,playercolor color,string speakerTitle,string text,real sceneDuration,real voiceoverDuration returns nothing - set Log___tmpMessage=" " - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) - set Log___tmpMessage="|cffffcc00" + speakerTitle + ":|r " + GetLocalizedMessage(text) - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) +function Log__SetCinematicSceneBJHook takes sound soundHandle,integer portraitUnitId,playercolor color,string speakerTitle,string text,real sceneDuration,real voiceoverDuration returns nothing + set Log__tmpMessage=" " + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) + set Log__tmpMessage="|cffffcc00" + speakerTitle + ":|r " + GetLocalizedMessage(text) + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) endfunction -//processed hook: hook TransmissionFromUnitWithNameBJ Log___TransmissionFromUnitWithNameBJHook -//processed hook: hook TransmissionFromUnitTypeWithNameBJ Log___TransmissionFromUnitTypeWithNameBJHook -//processed hook: hook SetCinematicScene Log___SetCinematicSceneHook -//processed hook: hook SetCinematicSceneBJ Log___SetCinematicSceneBJHook +//processed hook: hook TransmissionFromUnitWithNameBJ Log__TransmissionFromUnitWithNameBJHook +//processed hook: hook TransmissionFromUnitTypeWithNameBJ Log__TransmissionFromUnitTypeWithNameBJHook +//processed hook: hook SetCinematicScene Log__SetCinematicSceneHook +//processed hook: hook SetCinematicSceneBJ Log__SetCinematicSceneBJHook -function Log___TriggerActionChatMessage takes nothing returns nothing +function Log__TriggerActionChatMessage takes nothing returns nothing call AddLog(GetTriggerPlayer() , GetPlayerNameColoredSimple(GetTriggerPlayer()) + ": " + GetEventPlayerChatString()) endfunction -function Log___Init takes nothing returns nothing +function Log__Init takes nothing returns nothing local trigger t= null local integer i= 0 local player slotPlayer= null set t=CreateTrigger() - call TriggerAddAction(t, function Log___TriggerActionChatMessage) + call TriggerAddAction(t, function Log__TriggerActionChatMessage) loop exitwhen ( i == bj_MAX_PLAYERS ) set slotPlayer=Player(i) - set Log___logEnabled[GetPlayerId((slotPlayer ))]=( GetPlayerController(slotPlayer) == MAP_CONTROL_USER and GetPlayerSlotState(slotPlayer) == PLAYER_SLOT_STATE_PLAYING) // INLINED!! - set Log___logMaximum[GetPlayerId((slotPlayer ))]=( LOG_MAXIMUM) // INLINED!! + set Log__logEnabled[GetPlayerId((slotPlayer ))]=( GetPlayerController(slotPlayer) == MAP_CONTROL_USER and GetPlayerSlotState(slotPlayer) == PLAYER_SLOT_STATE_PLAYING) // INLINED!! + set Log__logMaximum[GetPlayerId((slotPlayer ))]=( LOG_MAXIMUM) // INLINED!! call TriggerRegisterPlayerChatEvent(t, slotPlayer, "", false) @@ -38947,6 +38817,147 @@ endfunction endfunction //library SpellVamp ends +//library Taunts: + + +function GetTauntsCount takes nothing returns integer + return Taunts___TauntsCount +endfunction + +function GetTauntChatCommand takes integer taunt returns string + return Taunts___TauntChatCommands[taunt] +endfunction + +function GetTauntText takes integer taunt returns string + return Taunts___TauntTexts[taunt] +endfunction + +function GetTauntSound takes integer taunt returns sound + return Taunts___TauntSounds[taunt] +endfunction + +function SetPlayerTauntsEnabled takes player whichPlayer,boolean enabled returns nothing + set Taunts___TauntsEnabled[GetPlayerId(whichPlayer)]=enabled +endfunction + +function IsPlayerTauntsEnabled takes player whichPlayer returns boolean + return Taunts___TauntsEnabled[GetPlayerId(whichPlayer)] +endfunction + +function GetTauntsChatCommands takes nothing returns string + local string text= "-taunts, -tauntson/off" + local integer i= 0 + local integer max= (Taunts___TauntsCount) // INLINED!! + loop + exitwhen ( i == max ) + set text=text + ", " + (Taunts___TauntChatCommands[(i)]) // INLINED!! + set i=i + 1 + endloop + return text +endfunction + +function PlayPlayerTaunt takes player whichPlayer,integer taunt returns nothing + local player slotPlayer= null + local integer i= 0 + loop + exitwhen ( i == bj_MAX_PLAYERS ) + set slotPlayer=Player(i) + if ( (Taunts___TauntsEnabled[GetPlayerId((slotPlayer))]) ) then // INLINED!! + if ( slotPlayer == GetLocalPlayer() ) then + call StartSound((Taunts___TauntSounds[(taunt)])) // INLINED!! + endif + endif + set slotPlayer=null + set i=i + 1 + endloop + // send to all at once even to the ones which have disabled taunts + // otherwise the player will see his/her chat messages listed n times + call h__BlzDisplayChatMessage(whichPlayer, 0, (Taunts___TauntTexts[(taunt)])) // INLINED!! +endfunction + +function Taunts___TriggerConditionChatCommand takes nothing returns boolean + local integer taunt= LoadInteger(Taunts___h, GetHandleId(GetTriggeringTrigger()), 0) + call PlayPlayerTaunt(GetTriggerPlayer() , taunt) + return false +endfunction + +function AddTaunt takes string chatCommand,string text,sound whichSound returns integer + local integer index= Taunts___TauntsCount + set Taunts___TauntChatCommands[index]=chatCommand + set Taunts___TauntTexts[index]=text + set Taunts___TauntSounds[index]=whichSound + set Taunts___TauntsChatTrigger[index]=CreateTrigger() + call TriggerRegisterAnyPlayerChatEvent(Taunts___TauntsChatTrigger[index] , chatCommand , true) + call TriggerAddCondition(Taunts___TauntsChatTrigger[index], Condition(function Taunts___TriggerConditionChatCommand)) + call SaveInteger(Taunts___h, GetHandleId(Taunts___TauntsChatTrigger[index]), 0, index) + set Taunts___TauntsCount=Taunts___TauntsCount + 1 + return index +endfunction + +function Taunts___AddQuestItemSpecific takes string description returns nothing + +call CreateQuestItem(bj_lastCreatedQuest , (description)) // INLINED!! + + + +endfunction + +function CreateTauntsQuest takes nothing returns quest + local quest q= h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "Taunts", "Taunts can be used to send sounds with chat commands to other players.", "ReplaceableTextures\\CommandButtons\\BTNPandaTaunt.blp") + local integer i= 0 + local integer max= (Taunts___TauntsCount) // INLINED!! + + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! + + call CreateQuestItem(bj_lastCreatedQuest , (("\"-taunts\": Lists all taunts."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("\"-tauntson/off\": Enables/disables taunts."))) // INLINED!! + loop + exitwhen ( i == max ) + call CreateQuestItem(bj_lastCreatedQuest , (("\"" + (Taunts___TauntChatCommands[(i)]) + "\": " + (Taunts___TauntTexts[(i)])))) // INLINED!! + set i=i + 1 + endloop + return q +endfunction + +function Taunts___TriggerConditionTauntsOn takes nothing returns boolean + set Taunts___TauntsEnabled[GetPlayerId((GetTriggerPlayer() ))]=( true) // INLINED!! + call h__DisplayTimedTextToPlayer(GetTriggerPlayer(), 0.0, 0.0, 6.0, "Enabled taunts.") + return false +endfunction + +function Taunts___TriggerConditionTauntsOff takes nothing returns boolean + set Taunts___TauntsEnabled[GetPlayerId((GetTriggerPlayer() ))]=( false) // INLINED!! + call h__DisplayTimedTextToPlayer(GetTriggerPlayer(), 0.0, 0.0, 6.0, "Disabled taunts.") + return false +endfunction + +function Taunts___TriggerConditionTaunts takes nothing returns boolean + local string msg= "Taunts (disabled): " + if ( (Taunts___TauntsEnabled[GetPlayerId((GetTriggerPlayer()))]) ) then // INLINED!! + set msg="Taunts (enabled): " + endif + set msg=msg + GetTauntsChatCommands() + call h__DisplayTimedTextToPlayer(GetTriggerPlayer(), 0.0, 0.0, 6.0, msg) + return false +endfunction + +function Taunts___Init takes nothing returns nothing + local integer i= 0 + loop + exitwhen ( i == bj_MAX_PLAYERS ) + set Taunts___TauntsEnabled[i]=true + set i=i + 1 + endloop + call TriggerRegisterAnyPlayerChatEvent(Taunts___TauntsEnableChatTrigger , "-tauntson" , true) + call TriggerAddCondition(Taunts___TauntsEnableChatTrigger, Condition(function Taunts___TriggerConditionTauntsOn)) + call TriggerRegisterAnyPlayerChatEvent(Taunts___TauntsDisableChatTrigger , "-tauntsoff" , true) + call TriggerAddCondition(Taunts___TauntsDisableChatTrigger, Condition(function Taunts___TriggerConditionTauntsOff)) + call TriggerRegisterAnyPlayerChatEvent(Taunts___TauntsListChatTrigger , "-taunts" , true) + call TriggerAddCondition(Taunts___TauntsListChatTrigger, Condition(function Taunts___TriggerConditionTaunts)) +endfunction + + +//library Taunts ends //library TenacityUtils: // Utility Library that include a few extra functions to deal with Tenacity @@ -39168,7 +39179,7 @@ endfunction //Implemented from module UnitEventEx___UnitEventExCore: - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___afterIndex takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__afterIndex takes nothing returns nothing local integer i= UnitEventEx___Stack local integer id local unit u @@ -39214,15 +39225,15 @@ endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___timerCheck takes unit u returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__timerCheck takes unit u returns nothing set UnitEventEx___Stack=UnitEventEx___Stack + 1 set UnitEventEx___IndexedUnit[UnitEventEx___Stack]=u - call TimerStart(UnitEventEx___AfterIndexTimer, 0., false, function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___afterIndex) + call TimerStart(UnitEventEx___AfterIndexTimer, 0., false, function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__afterIndex) endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___unload takes unit u returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__unload takes unit u returns nothing local integer id= (GetUnitUserData((u))) // INLINED!! local integer cargo_id= (GetUnitUserData((UnitEventEx___CargoUnit[id]))) // INLINED!! @@ -39235,7 +39246,7 @@ endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onOrder takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onOrder takes nothing returns nothing local unit u= GetTriggerUnit() local integer id= (GetUnitUserData((u))) // INLINED!! @@ -39253,7 +39264,7 @@ endfunction // This does not detect unloaded corpses. if UnitEventEx___CargoUnit[id] != null and not IsUnitLoaded(u) or UnitAlive(u) then - call s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___unload(u) + call s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__unload(u) endif set u=null @@ -39336,7 +39347,7 @@ endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onDeath takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onDeath takes nothing returns nothing local unit u= GetTriggerUnit() local integer id= (GetUnitUserData((u))) // INLINED!! @@ -39357,14 +39368,14 @@ endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onLoad takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onLoad takes nothing returns nothing local unit u= GetTriggerUnit() local integer id= (GetUnitUserData((u))) // INLINED!! local integer cargo_id // if unit somehow loaded into a transport while being inside another, unload it if UnitEventEx___CargoUnit[id] != null then - call s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___unload(u) + call s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__unload(u) endif @@ -39396,7 +39407,7 @@ endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onEnter takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onEnter takes nothing returns nothing local unit u= GetFilterUnit() local integer id= (GetUnitUserData((u))) // INLINED!! local integer cargo_id= (GetUnitUserData((UnitEventEx___CargoUnit[id]))) // INLINED!! @@ -39406,7 +39417,7 @@ endfunction // The unit was dead, but has re-entered the map. Used to detect when a Meat Wagon unloads a corpse. if id > 0 then if not IsUnitLoaded(u) and UnitEventEx___CargoUnit[id] != null then - call s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___unload(u) + call s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__unload(u) endif endif @@ -39415,7 +39426,7 @@ endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onIndex takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onIndex takes nothing returns nothing local unit u= (s__UnitDex_Unit[s__UnitDex_LastIndex]) // INLINED!! local integer id= (GetUnitUserData((u))) // INLINED!! @@ -39440,14 +39451,14 @@ endfunction endif // This is called here so as to set the variable IsNew[] to false after 0. seconds. - call s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___timerCheck(u) + call s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__timerCheck(u) set u=null endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onDeindex takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onDeindex takes nothing returns nothing local unit u= (s__UnitDex_Unit[s__UnitDex_LastIndex]) // INLINED!! local integer id= (GetUnitUserData((u))) // INLINED!! @@ -39459,7 +39470,7 @@ endfunction endfunction - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onInit takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onInit takes nothing returns nothing local integer i @@ -39480,8 +39491,8 @@ endfunction set EVENT_ON_REINCARNATION_FINISH=CreateNativeEvent() set EVENT_ON_UNIT_CREATED=CreateNativeEvent() - call RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_ISSUED_ORDER , function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onOrder) - call RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_DEATH , function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onDeath) + call RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_ISSUED_ORDER , function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onOrder) + call RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_DEATH , function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onDeath) @@ -39494,16 +39505,16 @@ endfunction - call TriggerRegisterEnterRegion(CreateTrigger(), s__WorldBounds_worldRegion, Condition(function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onEnter)) + call TriggerRegisterEnterRegion(CreateTrigger(), s__WorldBounds_worldRegion, Condition(function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onEnter)) - call RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_LOADED , function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onLoad) + call RegisterPlayerUnitEvent(EVENT_PLAYER_UNIT_LOADED , function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onLoad) - call RegisterUnitIndexEvent(Condition(function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onDeindex) , EVENT_UNIT_DEINDEX) + call RegisterUnitIndexEvent(Condition(function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onDeindex) , EVENT_UNIT_DEINDEX) - call RegisterUnitIndexEvent(Condition(function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onIndex) , EVENT_UNIT_INDEX) + call RegisterUnitIndexEvent(Condition(function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onIndex) , EVENT_UNIT_INDEX) @@ -39515,14 +39526,14 @@ endfunction // see resurrectionTimer below. - call TimerStart(CreateTimer(), 0., false, function sc__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___resurrectionTimer) + call TimerStart(CreateTimer(), 0., false, function sc__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__resurrectionTimer) endfunction // for some reason dummy recyclers creating dummies to store fires off a resurrection event, so // this boolean rezCheck is set to false after a 0. second timer to prevent this from happening. // rezCheck must be false for a resurrection event to happen. - function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___resurrectionTimer takes nothing returns nothing + function s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__resurrectionTimer takes nothing returns nothing set UnitEventEx___rezCheck=false call DestroyTimer(GetExpiredTimer()) endfunction @@ -41988,8 +41999,16 @@ function AddAllChanges takes nothing returns nothing call CreateQuestItem(bj_lastCreatedQuest , (("Rename property Draktharon Keep into Azjol-Nerub."))) // INLINED!! call CreateQuestItem(bj_lastCreatedQuest , (("Register NPC Xe'ra."))) // INLINED!! call CreateQuestItem(bj_lastCreatedQuest , (("Add depencency equivalents for Goblin Mobile Turrets."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("GetObjectRace considers dependency equivalents now."))) // INLINED!! call CreateQuestItem(bj_lastCreatedQuest , (("Support AI for race Old Horde."))) // INLINED!! call CreateQuestItem(bj_lastCreatedQuest , (("Support AI for race Alliance of Lordaeron."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("Improve zones."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("Improve website data."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("Add calendar event Carnival."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("Allow player colors for alliance chat commands."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("Allow player colors for votekick chat command."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("Support ships for property Sunstrider Isle."))) // INLINED!! + call CreateQuestItem(bj_lastCreatedQuest , (("Add info quest Players."))) // INLINED!! call AddVersion("3.30") @@ -46890,14 +46909,6 @@ endfunction //library WoWReforgedProspector ends -//library WoWReforgedTaunts: - -function AddTauntWoWReforged takes nothing returns nothing - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! -endfunction - - -//library WoWReforgedTaunts ends //library AStructCoreInterfaceThirdPersonCamera: @@ -49865,24 +49876,24 @@ endfunction function EnableLogUI takes nothing returns nothing - call EnableTrigger(LogUI___closeTrigger) - call EnableTrigger(LogUI___chatCommandTrigger) - call EnableTrigger(LogUI___logTrigger) + call EnableTrigger(LogUI__closeTrigger) + call EnableTrigger(LogUI__chatCommandTrigger) + call EnableTrigger(LogUI__logTrigger) endfunction function DisableLogUI takes nothing returns nothing - call DisableTrigger(LogUI___closeTrigger) - call DisableTrigger(LogUI___chatCommandTrigger) - call DisableTrigger(LogUI___logTrigger) + call DisableTrigger(LogUI__closeTrigger) + call DisableTrigger(LogUI__chatCommandTrigger) + call DisableTrigger(LogUI__logTrigger) endfunction function UpdateLogUIVisible takes nothing returns nothing - local integer max= (Log___logCounter[GetPlayerId((GetLocalPlayer()))]) // INLINED!! + local integer max= (Log__logCounter[GetPlayerId((GetLocalPlayer()))]) // INLINED!! local integer i= 0 - call BlzFrameSetText(LogUI___TextAreaFrame, "") + call BlzFrameSetText(LogUI__TextAreaFrame, "") loop exitwhen ( i == max ) - call BlzFrameAddText(LogUI___TextAreaFrame, (Log___log[Log___GetLogEntryIndex((GetLocalPlayer() ) , ( i))])) // INLINED!! + call BlzFrameAddText(LogUI__TextAreaFrame, (Log__log[Log__GetLogEntryIndex((GetLocalPlayer() ) , ( i))])) // INLINED!! set i=i + 1 endloop endfunction @@ -49891,7 +49902,7 @@ function SetLogUIVisible takes boolean visible returns nothing if ( visible ) then call UpdateLogUIVisible() endif - call BlzFrameSetVisible(LogUI___BackgroundFrame, visible) + call BlzFrameSetVisible(LogUI__BackgroundFrame, visible) endfunction function ShowLogUI takes nothing returns nothing @@ -49920,53 +49931,53 @@ function HideLogUIForPlayer takes player whichPlayer returns nothing endif endfunction -function LogUI___CloseFunction takes nothing returns nothing +function LogUI__CloseFunction takes nothing returns nothing call HideLogUIForPlayer(GetTriggerPlayer()) endfunction function LogUI_CreateUI takes nothing returns nothing local framehandle f= null - set LogUI___BackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(LogUI___BackgroundFrame, FRAMEPOINT_TOPLEFT, LogUI_X, LogUI_Y) - call BlzFrameSetAbsPoint(LogUI___BackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, LogUI_X + LogUI_WIDTH, LogUI_Y - LogUI_HEIGHT) + set LogUI__BackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(LogUI__BackgroundFrame, FRAMEPOINT_TOPLEFT, LogUI_X, LogUI_Y) + call BlzFrameSetAbsPoint(LogUI__BackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, LogUI_X + LogUI_WIDTH, LogUI_Y - LogUI_HEIGHT) - set f=BlzCreateFrame("EscMenuTitleTextTemplate", LogUI___BackgroundFrame, 0, 0) + set f=BlzCreateFrame("EscMenuTitleTextTemplate", LogUI__BackgroundFrame, 0, 0) call BlzFrameSetAbsPoint(f, FRAMEPOINT_TOPLEFT, LogUI_TITLE_X, LogUI_TITLE_Y) call BlzFrameSetAbsPoint(f, FRAMEPOINT_BOTTOMRIGHT, LogUI_TITLE_X + LogUI_WIDTH, LogUI_TITLE_Y - LogUI_TITLE_HEIGHT) call BlzFrameSetTextAlignment(f, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) call BlzFrameSetText(f, GetLocalizedString("MESSAGE_LOG")) - set LogUI___TextAreaFrame=BlzCreateFrame("EscMenuTextAreaTemplate", LogUI___BackgroundFrame, 0, 0) - call BlzFrameSetAbsPoint(LogUI___TextAreaFrame, FRAMEPOINT_TOPLEFT, LogUI_TEXT_AREA_X, LogUI_TEXT_AREA_Y) - call BlzFrameSetAbsPoint(LogUI___TextAreaFrame, FRAMEPOINT_BOTTOMRIGHT, LogUI_TEXT_AREA_X + LogUI_TEXT_AREA_WIDTH, LogUI_TEXT_AREA_Y - LogUI_TEXT_AREA_HEIGHT) - call BlzFrameSetFont(LogUI___TextAreaFrame, "MasterFont", 0.011, 0) + set LogUI__TextAreaFrame=BlzCreateFrame("EscMenuTextAreaTemplate", LogUI__BackgroundFrame, 0, 0) + call BlzFrameSetAbsPoint(LogUI__TextAreaFrame, FRAMEPOINT_TOPLEFT, LogUI_TEXT_AREA_X, LogUI_TEXT_AREA_Y) + call BlzFrameSetAbsPoint(LogUI__TextAreaFrame, FRAMEPOINT_BOTTOMRIGHT, LogUI_TEXT_AREA_X + LogUI_TEXT_AREA_WIDTH, LogUI_TEXT_AREA_Y - LogUI_TEXT_AREA_HEIGHT) + call BlzFrameSetFont(LogUI__TextAreaFrame, "MasterFont", 0.011, 0) - set f=BlzCreateFrame("ScriptDialogButton", LogUI___BackgroundFrame, 0, 0) + set f=BlzCreateFrame("ScriptDialogButton", LogUI__BackgroundFrame, 0, 0) call BlzFrameSetAbsPoint(f, FRAMEPOINT_TOPLEFT, LogUI_CLOSE_BUTTON_X, LogUI_CLOSE_BUTTON_Y) call BlzFrameSetAbsPoint(f, FRAMEPOINT_BOTTOMRIGHT, LogUI_CLOSE_BUTTON_X + LogUI_CLOSE_BUTTON_WIDTH, LogUI_CLOSE_BUTTON_Y - LogUI_CLOSE_BUTTON_HEIGHT) call BlzFrameSetText(f, "|cffffcc00" + GetLocalizedString("OK") + "|r") - set LogUI___closeTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(LogUI___closeTrigger, f, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(LogUI___closeTrigger, function LogUI___CloseFunction) + set LogUI__closeTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(LogUI__closeTrigger, f, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(LogUI__closeTrigger, function LogUI__CloseFunction) call SetLogUIVisible(false) // INLINED!! endfunction -function LogUI___TriggerActionShowLogUI takes nothing returns nothing +function LogUI__TriggerActionShowLogUI takes nothing returns nothing call ShowLogUIForPlayer(GetTriggerPlayer()) endfunction -function LogUI___TriggerActionLog takes nothing returns nothing - if ( (Log___triggerLogPlayer) == GetLocalPlayer() ) then // INLINED!! - if ( BlzFrameIsVisible(LogUI___BackgroundFrame) ) then +function LogUI__TriggerActionLog takes nothing returns nothing + if ( (Log__triggerLogPlayer) == GetLocalPlayer() ) then // INLINED!! + if ( BlzFrameIsVisible(LogUI__BackgroundFrame) ) then call UpdateLogUIVisible() endif endif endfunction -function LogUI___TimerFunctionStart takes nothing returns nothing +function LogUI__TimerFunctionStart takes nothing returns nothing local integer i= 0 local player slotPlayer= null loop @@ -49974,19 +49985,19 @@ function LogUI___TimerFunctionStart takes nothing returns nothing set slotPlayer=Player(i) if ( GetPlayerController(slotPlayer) == MAP_CONTROL_USER and GetPlayerSlotState(slotPlayer) == PLAYER_SLOT_STATE_PLAYING ) then if ( StringLength(LogUI_CHAT_COMMAND_SHORT) > 0 ) then - call TriggerRegisterPlayerChatEvent(LogUI___chatCommandTrigger, slotPlayer, LogUI_CHAT_COMMAND_SHORT, true) + call TriggerRegisterPlayerChatEvent(LogUI__chatCommandTrigger, slotPlayer, LogUI_CHAT_COMMAND_SHORT, true) endif if ( StringLength(LogUI_CHAT_COMMAND) > 0 ) then - call TriggerRegisterPlayerChatEvent(LogUI___chatCommandTrigger, slotPlayer, LogUI_CHAT_COMMAND, true) + call TriggerRegisterPlayerChatEvent(LogUI__chatCommandTrigger, slotPlayer, LogUI_CHAT_COMMAND, true) endif endif set slotPlayer=null set i=i + 1 endloop - call TriggerAddAction(LogUI___chatCommandTrigger, function LogUI___TriggerActionShowLogUI) + call TriggerAddAction(LogUI__chatCommandTrigger, function LogUI__TriggerActionShowLogUI) - call TriggerRegisterLogEvent(LogUI___logTrigger) - call TriggerAddAction(LogUI___logTrigger, function LogUI___TriggerActionLog) + call TriggerRegisterLogEvent(LogUI__logTrigger) + call TriggerAddAction(LogUI__logTrigger, function LogUI__TriggerActionLog) call BlzLoadTOCFile(LogUI_TOC_FILE) @@ -49996,12 +50007,12 @@ function LogUI___TimerFunctionStart takes nothing returns nothing call DestroyTimer(GetExpiredTimer()) endfunction -function LogUI___Init takes nothing returns nothing - call TimerStart(CreateTimer(), 0.0, false, function LogUI___TimerFunctionStart) +function LogUI__Init takes nothing returns nothing + call TimerStart(CreateTimer(), 0.0, false, function LogUI__TimerFunctionStart) // Prevents crashes on loading save games: - call TriggerAddAction(FrameLoader___actionTrigger, (function LogUI_CreateUI)) // INLINED!! - call TriggerAddAction(FrameLoader___actionTrigger, (function EnableLogUI)) // INLINED!! - call TriggerAddAction(FrameSaver___saveTrigger, (function HideLogUI)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function LogUI_CreateUI)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function EnableLogUI)) // INLINED!! + call TriggerAddAction(FrameSaver__saveTrigger, (function HideLogUI)) // INLINED!! call FrameSaverAddEx(function DisableLogUI , function EnableLogUI) endfunction @@ -50493,12 +50504,12 @@ endfunction function s__MissileUtils___MGroup_allocate takes nothing returns integer local integer this - if ( s__MissileUtils___MGroup_Alloc___recycle[(0)] == 0 ) then - set s__MissileUtils___MGroup_Alloc___instanceCount=s__MissileUtils___MGroup_Alloc___instanceCount + 1 - set this=s__MissileUtils___MGroup_Alloc___instanceCount + if ( s__MissileUtils___MGroup_Alloc__recycle[(0)] == 0 ) then + set s__MissileUtils___MGroup_Alloc__instanceCount=s__MissileUtils___MGroup_Alloc__instanceCount + 1 + set this=s__MissileUtils___MGroup_Alloc__instanceCount else - set this=s__MissileUtils___MGroup_Alloc___recycle[(0)] - set s__MissileUtils___MGroup_Alloc___recycle[(0)]=s__MissileUtils___MGroup_Alloc___recycle[s__MissileUtils___MGroup_Alloc___recycle[(0)]] + set this=s__MissileUtils___MGroup_Alloc__recycle[(0)] + set s__MissileUtils___MGroup_Alloc__recycle[(0)]=s__MissileUtils___MGroup_Alloc__recycle[s__MissileUtils___MGroup_Alloc__recycle[(0)]] endif @@ -50506,8 +50517,8 @@ endfunction endfunction function s__MissileUtils___MGroup_deallocate takes integer this returns nothing - set s__MissileUtils___MGroup_Alloc___recycle[this]=s__MissileUtils___MGroup_Alloc___recycle[(0)] - set s__MissileUtils___MGroup_Alloc___recycle[(0)]=this + set s__MissileUtils___MGroup_Alloc__recycle[this]=s__MissileUtils___MGroup_Alloc__recycle[(0)] + set s__MissileUtils___MGroup_Alloc__recycle[(0)]=this endfunction @@ -51398,10 +51409,10 @@ endfunction function PagedButtonsUI___Init takes nothing returns nothing call TimerStart(CreateTimer(), 0.0, false, function PagedButtonsUI___TimerFunctionStart) - call TriggerAddAction(FrameLoader___actionTrigger, (function PagedButtonsUI_CreateUI)) // INLINED!! - call TriggerAddAction(FrameSaver___saveTrigger, (function HidePagedButtonsUI)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function PagedButtonsUI_CreateUI)) // INLINED!! + call TriggerAddAction(FrameSaver__saveTrigger, (function HidePagedButtonsUI)) // INLINED!! - call TriggerAddAction(FrameSaver___saveTrigger, (function PagedButtonsUI___ResetPreviewFrame)) // INLINED!! + call TriggerAddAction(FrameSaver__saveTrigger, (function PagedButtonsUI___ResetPreviewFrame)) // INLINED!! endfunction @@ -51774,7 +51785,7 @@ function ResourcesGui___Init takes nothing returns nothing call TriggerAddCondition(ResourcesGui___progressBarFinishTrigger, Condition(function ResourcesGui___TriggerConditionProgressBarFinish)) - call TriggerAddAction(FrameLoader___actionTrigger, (function ResourcesGui___CreateResourcesUI)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function ResourcesGui___CreateResourcesUI)) // INLINED!! endfunction @@ -52394,7 +52405,7 @@ function UnitSoundSetsFakeBars___Init takes nothing returns nothing endloop - call TriggerAddAction(FrameLoader___actionTrigger, (function UnitSoundSetsFakeBars___InitFunctionCreatePlayerPortraits)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function UnitSoundSetsFakeBars___InitFunctionCreatePlayerPortraits)) // INLINED!! @@ -52427,7 +52438,7 @@ function WoWReforgedCritters___AddAllCrittersAsSingleUnitRespawns takes nothing endfunction function WoWReforgedCritters___Init takes nothing returns nothing - call TriggerAddAction(OnStartGame___startGameTrigger, (function WoWReforgedCritters___AddAllCrittersAsSingleUnitRespawns)) // INLINED!! + call TriggerAddAction(OnStartGame__startGameTrigger, (function WoWReforgedCritters___AddAllCrittersAsSingleUnitRespawns)) // INLINED!! endfunction @@ -52610,11 +52621,19 @@ function WoWReforgedRandomCorpse__ReplaceAllRandomCorpses takes nothing returns endfunction function WoWReforgedRandomCorpse__Init takes nothing returns nothing - call TriggerAddAction(OnStartGame___startGameTrigger, (function WoWReforgedRandomCorpse__ReplaceAllRandomCorpses)) // INLINED!! + call TriggerAddAction(OnStartGame__startGameTrigger, (function WoWReforgedRandomCorpse__ReplaceAllRandomCorpses)) // INLINED!! endfunction //library WoWReforgedRandomCorpse ends +//library WoWReforgedTaunts: + +function AddTauntWoWReforged takes nothing returns nothing + call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! +endfunction + + +//library WoWReforgedTaunts ends //library WoWReforgedVotes: function AddWowReforgedVote takes nothing returns nothing @@ -53465,7 +53484,7 @@ endfunction endif if bonus == BONUS_LIFE_STEAL then - call UnitRemoveAbility(source, NewBonus___LIFE_STEAL_ABILITY) + call UnitRemoveAbility(source, NewBonus__LIFE_STEAL_ABILITY) endif endfunction @@ -53524,9 +53543,9 @@ endfunction set s__NewBonus_count=s__NewBonus_count + 1 - if s__NewBonus_amount[key] != 0 and ( s__NewBonus_count - s__NewBonus_last < NewBonus___RECURSION_LIMIT ) then + if s__NewBonus_amount[key] != 0 and ( s__NewBonus_count - s__NewBonus_last < NewBonus__RECURSION_LIMIT ) then loop - exitwhen s__NewBonus_type[key] == next or ( i - s__NewBonus_last > NewBonus___RECURSION_LIMIT ) + exitwhen s__NewBonus_type[key] == next or ( i - s__NewBonus_last > NewBonus__RECURSION_LIMIT ) set next=s__NewBonus_type[key] if s__NewBonus_event[next] != null then @@ -53601,31 +53620,31 @@ endfunction function s__NewBonus_get takes unit source,integer bonus returns real if bonus == BONUS_DAMAGE then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___DAMAGE_ABILITY), NewBonus___DAMAGE_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__DAMAGE_ABILITY), NewBonus__DAMAGE_FIELD, 0)) elseif bonus == BONUS_ARMOR then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___ARMOR_ABILITY), NewBonus___ARMOR_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__ARMOR_ABILITY), NewBonus__ARMOR_FIELD, 0)) elseif bonus == BONUS_HEALTH then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___HEALTH_ABILITY), NewBonus___HEALTH_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__HEALTH_ABILITY), NewBonus__HEALTH_FIELD, 0)) elseif bonus == BONUS_MANA then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___MANA_ABILITY), NewBonus___MANA_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__MANA_ABILITY), NewBonus__MANA_FIELD, 0)) elseif bonus == BONUS_AGILITY then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___STATS_ABILITY), NewBonus___AGILITY_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__STATS_ABILITY), NewBonus__AGILITY_FIELD, 0)) elseif bonus == BONUS_STRENGTH then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___STATS_ABILITY), NewBonus___STRENGTH_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__STATS_ABILITY), NewBonus__STRENGTH_FIELD, 0)) elseif bonus == BONUS_INTELLIGENCE then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___STATS_ABILITY), NewBonus___INTELLIGENCE_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__STATS_ABILITY), NewBonus__INTELLIGENCE_FIELD, 0)) elseif bonus == BONUS_MOVEMENT_SPEED then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___MOVEMENTSPEED_ABILITY), NewBonus___MOVEMENTSPEED_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__MOVEMENTSPEED_ABILITY), NewBonus__MOVEMENTSPEED_FIELD, 0)) elseif bonus == BONUS_SIGHT_RANGE then - return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus___SIGHT_RANGE_ABILITY), NewBonus___SIGHT_RANGE_FIELD, 0)) + return I2R(BlzGetAbilityIntegerLevelField(BlzGetUnitAbility(source, NewBonus__SIGHT_RANGE_ABILITY), NewBonus__SIGHT_RANGE_FIELD, 0)) elseif bonus == BONUS_HEALTH_REGEN then - return BlzGetAbilityRealLevelField(BlzGetUnitAbility(source, NewBonus___HEALTHREGEN_ABILITY), NewBonus___HEALTHREGEN_FIELD, 0) + return BlzGetAbilityRealLevelField(BlzGetUnitAbility(source, NewBonus__HEALTHREGEN_ABILITY), NewBonus__HEALTHREGEN_FIELD, 0) elseif bonus == BONUS_MANA_REGEN then - return BlzGetAbilityRealLevelField(BlzGetUnitAbility(source, NewBonus___MANAREGEN_ABILITY), NewBonus___MANAREGEN_FIELD, 0) + return BlzGetAbilityRealLevelField(BlzGetUnitAbility(source, NewBonus__MANAREGEN_ABILITY), NewBonus__MANAREGEN_FIELD, 0) elseif bonus == BONUS_ATTACK_SPEED then - return BlzGetAbilityRealLevelField(BlzGetUnitAbility(source, NewBonus___ATTACKSPEED_ABILITY), NewBonus___ATTACKSPEED_FIELD, 0) + return BlzGetAbilityRealLevelField(BlzGetUnitAbility(source, NewBonus__ATTACKSPEED_ABILITY), NewBonus__ATTACKSPEED_FIELD, 0) elseif bonus == BONUS_MAGIC_RESISTANCE then - return BlzGetAbilityRealLevelField(BlzGetUnitAbility(source, NewBonus___MAGIC_RESISTANCE_ABILITY), NewBonus___MAGIC_RESISTANCE_FIELD, 0) + return BlzGetAbilityRealLevelField(BlzGetUnitAbility(source, NewBonus__MAGIC_RESISTANCE_ABILITY), NewBonus__MAGIC_RESISTANCE_FIELD, 0) elseif bonus >= BONUS_EVASION_CHANCE and bonus <= s__NewBonus_last then if bonus == BONUS_EVASION_CHANCE then @@ -53700,9 +53719,9 @@ endfunction endif if bonus == BONUS_DAMAGE then - return s__NewBonus_setAbilityI(source , NewBonus___DAMAGE_ABILITY , NewBonus___DAMAGE_FIELD , value , adding) + return s__NewBonus_setAbilityI(source , NewBonus__DAMAGE_ABILITY , NewBonus__DAMAGE_FIELD , value , adding) elseif bonus == BONUS_ARMOR then - return s__NewBonus_setAbilityI(source , NewBonus___ARMOR_ABILITY , NewBonus___ARMOR_FIELD , value , adding) + return s__NewBonus_setAbilityI(source , NewBonus__ARMOR_ABILITY , NewBonus__ARMOR_FIELD , value , adding) elseif bonus == BONUS_HEALTH then set p=GetUnitLifePercent(source) @@ -53712,7 +53731,7 @@ endfunction call BlzSetUnitMaxHP(source, R2I(BlzGetUnitMaxHP(source) + value)) endif - call s__NewBonus_setAbilityI(source , NewBonus___HEALTH_ABILITY , NewBonus___HEALTH_FIELD , value , adding) + call s__NewBonus_setAbilityI(source , NewBonus__HEALTH_ABILITY , NewBonus__HEALTH_FIELD , value , adding) call SetUnitLifePercentBJ(source, p) return value @@ -53725,18 +53744,18 @@ endfunction call BlzSetUnitMaxMana(source, R2I(BlzGetUnitMaxMana(source) + value)) endif - call s__NewBonus_setAbilityI(source , NewBonus___MANA_ABILITY , NewBonus___MANA_FIELD , value , adding) + call s__NewBonus_setAbilityI(source , NewBonus__MANA_ABILITY , NewBonus__MANA_FIELD , value , adding) call SetUnitManaPercentBJ(source, p) return value elseif bonus == BONUS_AGILITY then - return s__NewBonus_setAbilityI(source , NewBonus___STATS_ABILITY , NewBonus___AGILITY_FIELD , value , adding) + return s__NewBonus_setAbilityI(source , NewBonus__STATS_ABILITY , NewBonus__AGILITY_FIELD , value , adding) elseif bonus == BONUS_STRENGTH then - return s__NewBonus_setAbilityI(source , NewBonus___STATS_ABILITY , NewBonus___STRENGTH_FIELD , value , adding) + return s__NewBonus_setAbilityI(source , NewBonus__STATS_ABILITY , NewBonus__STRENGTH_FIELD , value , adding) elseif bonus == BONUS_INTELLIGENCE then - return s__NewBonus_setAbilityI(source , NewBonus___STATS_ABILITY , NewBonus___INTELLIGENCE_FIELD , value , adding) + return s__NewBonus_setAbilityI(source , NewBonus__STATS_ABILITY , NewBonus__INTELLIGENCE_FIELD , value , adding) elseif bonus == BONUS_MOVEMENT_SPEED then - return s__NewBonus_setAbilityI(source , NewBonus___MOVEMENTSPEED_ABILITY , NewBonus___MOVEMENTSPEED_FIELD , value , adding) + return s__NewBonus_setAbilityI(source , NewBonus__MOVEMENTSPEED_ABILITY , NewBonus__MOVEMENTSPEED_FIELD , value , adding) elseif bonus == BONUS_SIGHT_RANGE then if value == 0 and not adding then call BlzSetUnitRealField(source, UNIT_RF_SIGHT_RADIUS, ( BlzGetUnitRealField(source, UNIT_RF_SIGHT_RADIUS) - s__NewBonus_get(source , bonus) )) @@ -53744,17 +53763,17 @@ endfunction call BlzSetUnitRealField(source, UNIT_RF_SIGHT_RADIUS, ( BlzGetUnitRealField(source, UNIT_RF_SIGHT_RADIUS) + value )) endif - call s__NewBonus_setAbilityI(source , NewBonus___SIGHT_RANGE_ABILITY , NewBonus___SIGHT_RANGE_FIELD , value , adding) + call s__NewBonus_setAbilityI(source , NewBonus__SIGHT_RANGE_ABILITY , NewBonus__SIGHT_RANGE_FIELD , value , adding) return value elseif bonus == BONUS_HEALTH_REGEN then - return s__NewBonus_setAbilityR(source , NewBonus___HEALTHREGEN_ABILITY , NewBonus___HEALTHREGEN_FIELD , value) + return s__NewBonus_setAbilityR(source , NewBonus__HEALTHREGEN_ABILITY , NewBonus__HEALTHREGEN_FIELD , value) elseif bonus == BONUS_MANA_REGEN then - return s__NewBonus_setAbilityR(source , NewBonus___MANAREGEN_ABILITY , NewBonus___MANAREGEN_FIELD , value) + return s__NewBonus_setAbilityR(source , NewBonus__MANAREGEN_ABILITY , NewBonus__MANAREGEN_FIELD , value) elseif bonus == BONUS_ATTACK_SPEED then - return s__NewBonus_setAbilityR(source , NewBonus___ATTACKSPEED_ABILITY , NewBonus___ATTACKSPEED_FIELD , value) + return s__NewBonus_setAbilityR(source , NewBonus__ATTACKSPEED_ABILITY , NewBonus__ATTACKSPEED_FIELD , value) elseif bonus == BONUS_MAGIC_RESISTANCE then - return s__NewBonus_setAbilityR(source , NewBonus___MAGIC_RESISTANCE_ABILITY , NewBonus___MAGIC_RESISTANCE_FIELD , value) + return s__NewBonus_setAbilityR(source , NewBonus__MAGIC_RESISTANCE_ABILITY , NewBonus__MAGIC_RESISTANCE_FIELD , value) elseif bonus >= BONUS_EVASION_CHANCE and bonus <= s__NewBonus_last then if bonus == BONUS_EVASION_CHANCE then @@ -54058,12 +54077,12 @@ function GetRailwayRectFromCurrentPosition takes unit whichUnit returns integer endfunction function UnitIsInRailwayStation takes unit whichUnit returns boolean - local integer index= LoadInteger(Railway___h, GetHandleId(udg_RailwayLocomotive), Railway___KEY_STATION) + local integer index= LoadInteger(Railway__h, GetHandleId(udg_RailwayLocomotive), Railway__KEY_STATION) return index != - 1 endfunction function MoveUnitToRailwayStation takes unit whichUnit returns nothing - local integer index= LoadInteger(Railway___h, GetHandleId(udg_RailwayLocomotive), Railway___KEY_STATION) + local integer index= LoadInteger(Railway__h, GetHandleId(udg_RailwayLocomotive), Railway__KEY_STATION) if ( index != - 1 ) then call SetUnitX(whichUnit, GetRectCenterX(udg_RailwayStationUnloadRects[index])) call SetUnitY(whichUnit, GetRectCenterY(udg_RailwayStationUnloadRects[index])) @@ -54081,8 +54100,8 @@ function InitRailwayFromCurrentPositions takes nothing returns nothing set slotUnit=BlzGroupUnitAt(udg_Railway, i) set index=GetRailwayRectFromCurrentPosition(slotUnit) if ( index != - 1 ) then - call SaveInteger(Railway___h, GetHandleId(slotUnit), Railway___KEY_POSITION, index) - call SaveInteger(Railway___h, GetHandleId(slotUnit), Railway___KEY_STATION, 0) // initial station + call SaveInteger(Railway__h, GetHandleId(slotUnit), Railway__KEY_POSITION, index) + call SaveInteger(Railway__h, GetHandleId(slotUnit), Railway__KEY_STATION, 0) // initial station endif set slotUnit=null set i=i + 1 @@ -54090,7 +54109,7 @@ function InitRailwayFromCurrentPositions takes nothing returns nothing endfunction function GetRailwayRect takes unit whichUnit returns integer - return LoadInteger(Railway___h, GetHandleId(whichUnit), Railway___KEY_POSITION) + return LoadInteger(Railway__h, GetHandleId(whichUnit), Railway__KEY_POSITION) endfunction function GetRailwayRectDirection takes integer index returns integer @@ -54098,7 +54117,7 @@ function GetRailwayRectDirection takes integer index returns integer endfunction function MoveRailwayFromCurrentPosition takes unit whichUnit returns integer - local integer index= (LoadInteger(Railway___h, GetHandleId((whichUnit)), Railway___KEY_POSITION)) // INLINED!! + local integer index= (LoadInteger(Railway__h, GetHandleId((whichUnit)), Railway__KEY_POSITION)) // INLINED!! local real distance= 30.0 local integer direction= 0 local real x= 0.0 @@ -54183,8 +54202,8 @@ function AddRailwayRect takes nothing returns nothing endif call RegionAddRect(r, udg_TmpRect) - call SaveInteger(Railway___h, GetHandleId(r), Railway___KEY_POSITION, udg_RailwayRectsCounter) - call TriggerRegisterEnterRegion(Railway___enterTrigger, r, null) + call SaveInteger(Railway__h, GetHandleId(r), Railway__KEY_POSITION, udg_RailwayRectsCounter) + call TriggerRegisterEnterRegion(Railway__enterTrigger, r, null) set udg_RailwayRectsCounter=udg_RailwayRectsCounter + 1 endfunction @@ -54196,49 +54215,49 @@ function AddRailwayStation takes nothing returns nothing set udg_RailwayStationUnloadRects[udg_RailwayStationsCounter]=udg_TmpRect2 call RegionAddRect(r, udg_TmpRect) - call SaveInteger(Railway___h, GetHandleId(r), Railway___KEY_POSITION, udg_RailwayStationsCounter) - call TriggerRegisterEnterRegion(Railway___enterStationTrigger, r, null) - call TriggerRegisterLeaveRegion(Railway___leaveStationTrigger, r, null) + call SaveInteger(Railway__h, GetHandleId(r), Railway__KEY_POSITION, udg_RailwayStationsCounter) + call TriggerRegisterEnterRegion(Railway__enterStationTrigger, r, null) + call TriggerRegisterLeaveRegion(Railway__leaveStationTrigger, r, null) set udg_RailwayStationsCounter=udg_RailwayStationsCounter + 1 endfunction -function Railway___TriggerConditionEnter takes nothing returns boolean - local integer index= LoadInteger(Railway___h, GetHandleId(GetTriggeringRegion()), Railway___KEY_POSITION) +function Railway__TriggerConditionEnter takes nothing returns boolean + local integer index= LoadInteger(Railway__h, GetHandleId(GetTriggeringRegion()), Railway__KEY_POSITION) if ( IsUnitInGroup(GetTriggerUnit(), udg_Railway) ) then - call SaveInteger(Railway___h, GetHandleId(GetTriggerUnit()), 0, index) + call SaveInteger(Railway__h, GetHandleId(GetTriggerUnit()), 0, index) endif return false endfunction -function Railway___TriggerConditionEnterStation takes nothing returns boolean - local integer index= LoadInteger(Railway___h, GetHandleId(GetTriggeringRegion()), Railway___KEY_POSITION) +function Railway__TriggerConditionEnterStation takes nothing returns boolean + local integer index= LoadInteger(Railway__h, GetHandleId(GetTriggeringRegion()), Railway__KEY_POSITION) if ( IsUnitInGroup(GetTriggerUnit(), udg_Railway) ) then - call SaveInteger(Railway___h, GetHandleId(GetTriggerUnit()), Railway___KEY_STATION, index) + call SaveInteger(Railway__h, GetHandleId(GetTriggerUnit()), Railway__KEY_STATION, index) endif return false endfunction -function Railway___TriggerConditionLeaveStation takes nothing returns boolean +function Railway__TriggerConditionLeaveStation takes nothing returns boolean if ( IsUnitInGroup(GetTriggerUnit(), udg_Railway) ) then - call SaveInteger(Railway___h, GetHandleId(GetTriggerUnit()), Railway___KEY_STATION, - 1) + call SaveInteger(Railway__h, GetHandleId(GetTriggerUnit()), Railway__KEY_STATION, - 1) endif return false endfunction -function Railway___Init takes nothing returns nothing - call TriggerAddCondition(Railway___enterTrigger, Condition(function Railway___TriggerConditionEnter)) - call TriggerAddCondition(Railway___enterStationTrigger, Condition(function Railway___TriggerConditionEnterStation)) - call TriggerAddCondition(Railway___leaveStationTrigger, Condition(function Railway___TriggerConditionLeaveStation)) +function Railway__Init takes nothing returns nothing + call TriggerAddCondition(Railway__enterTrigger, Condition(function Railway__TriggerConditionEnter)) + call TriggerAddCondition(Railway__enterStationTrigger, Condition(function Railway__TriggerConditionEnterStation)) + call TriggerAddCondition(Railway__leaveStationTrigger, Condition(function Railway__TriggerConditionLeaveStation)) endfunction -function Railway___RemoveUnitHook takes unit whichUnit returns nothing +function Railway__RemoveUnitHook takes unit whichUnit returns nothing if ( IsUnitInGroup(whichUnit, udg_RailwayCargo) ) then call GroupRemoveUnit(udg_RailwayCargo, whichUnit) endif endfunction -//processed hook: hook RemoveUnit Railway___RemoveUnitHook +//processed hook: hook RemoveUnit Railway__RemoveUnitHook //library Railway ends @@ -54246,55 +54265,55 @@ endfunction -function RayConfig___HasDummy takes unit target,integer abilityId returns boolean - return HaveSavedHandle(RayConfig___h, GetHandleId(target), abilityId) +function RayConfig__HasDummy takes unit target,integer abilityId returns boolean + return HaveSavedHandle(RayConfig__h, GetHandleId(target), abilityId) endfunction -function RayConfig___AttachDummy takes player owner,integer unitTypeId,unit target,integer abilityId returns unit +function RayConfig__AttachDummy takes player owner,integer unitTypeId,unit target,integer abilityId returns unit local real face= GetUnitFacing(target) local real x= PolarProjectionX(GetUnitX(target) , 30.0 , face) local real y= PolarProjectionY(GetUnitY(target) , 30.0 , face) local real faceToTarget= AngleBetweenCoordinatesDeg(GetUnitX(target) , GetUnitY(target) , x , y) local unit dummy= CreateUnit(owner, unitTypeId, x, y, faceToTarget) - call SaveUnitHandle(RayConfig___h, GetHandleId(target), abilityId, dummy) + call SaveUnitHandle(RayConfig__h, GetHandleId(target), abilityId, dummy) call ShowUnit(dummy, false) return dummy endfunction -function RayConfig___CleanDummy takes unit target,integer abilityId returns nothing +function RayConfig__CleanDummy takes unit target,integer abilityId returns nothing local integer handleId= GetHandleId(target) - local unit dummy= LoadUnitHandle(RayConfig___h, handleId, abilityId) + local unit dummy= LoadUnitHandle(RayConfig__h, handleId, abilityId) if ( dummy != null ) then - call RemoveSavedHandle(RayConfig___h, handleId, abilityId) + call RemoveSavedHandle(RayConfig__h, handleId, abilityId) call h__RemoveUnit(dummy) set dummy=null endif endfunction -function RayConfig___TimerFunctionCleanDummy takes nothing returns nothing +function RayConfig__TimerFunctionCleanDummy takes nothing returns nothing local timer t= GetExpiredTimer() local integer handleId= GetHandleId(t) - local unit target= LoadUnitHandle(RayConfig___h, handleId, 0) - local integer abilityId= LoadInteger(RayConfig___h, handleId, 1) - call RayConfig___CleanDummy(target , abilityId) + local unit target= LoadUnitHandle(RayConfig__h, handleId, 0) + local integer abilityId= LoadInteger(RayConfig__h, handleId, 1) + call RayConfig__CleanDummy(target , abilityId) call PauseTimer(t) call DestroyTimer(t) - call FlushChildHashtable(RayConfig___h, handleId) + call FlushChildHashtable(RayConfig__h, handleId) endfunction -function RayConfig___CleanDummyDelayed takes unit target,integer abilityId,real delay returns nothing +function RayConfig__CleanDummyDelayed takes unit target,integer abilityId,real delay returns nothing local timer t= CreateTimer() local integer handleId= GetHandleId(t) - call SaveUnitHandle(RayConfig___h, handleId, 0, target) - call SaveInteger(RayConfig___h, handleId, 1, abilityId) - call TimerStart(t, delay, false, function RayConfig___TimerFunctionCleanDummy) + call SaveUnitHandle(RayConfig__h, handleId, 0, target) + call SaveInteger(RayConfig__h, handleId, 1, abilityId) + call TimerStart(t, delay, false, function RayConfig__TimerFunctionCleanDummy) endfunction -function RayConfig___RemoveUnitHook takes unit whichUnit returns nothing - call FlushChildHashtable(RayConfig___h, GetHandleId(whichUnit)) +function RayConfig__RemoveUnitHook takes unit whichUnit returns nothing + call FlushChildHashtable(RayConfig__h, GetHandleId(whichUnit)) endfunction -//processed hook: hook RemoveUnit RayConfig___RemoveUnitHook +//processed hook: hook RemoveUnit RayConfig__RemoveUnitHook function RayConfig_IsValidAbility takes integer abilityId returns boolean if ( abilityId == RayConfig_FROST_RAY ) then @@ -54349,11 +54368,11 @@ function RayConfig_CanTargetItems takes integer abilityId returns boolean return abilityId == RayConfig_LOOT_RAY or abilityId == RayConfig_LOOT_RAY_STANDARD endfunction -function RayConfig___IsNoAlly takes unit target,unit caster returns boolean +function RayConfig__IsNoAlly takes unit target,unit caster returns boolean return GetOwningPlayer(caster) != GetOwningPlayer(target) and ( not IsUnitAlly(target, GetOwningPlayer(caster)) or GetOwningPlayer(target) == Player(PLAYER_NEUTRAL_PASSIVE) ) endfunction -function RayConfig___IsNotAValidWoWReforgedTarget takes unit target returns boolean +function RayConfig__IsNotAValidWoWReforgedTarget takes unit target returns boolean local integer unitTypeId= GetUnitTypeId(target) return unitTypeId == BACKPACK or unitTypeId == EQUIPMENT_BAG endfunction @@ -54361,7 +54380,7 @@ endfunction function RayConfig_IsUnitAllowed takes unit caster,unit target,integer abilityId returns boolean if ( caster == target ) then return false - elseif ( RayConfig___IsNotAValidWoWReforgedTarget(target) ) then + elseif ( RayConfig__IsNotAValidWoWReforgedTarget(target) ) then return false // Locust is used by dummy units. elseif ( GetUnitAbilityLevel(target, 'Aloc') > 0 ) then @@ -54414,7 +54433,7 @@ function RayConfig_IsItemAllowed takes unit caster,item target,integer abilityId return GetItemLifeBJ(target) > 0.0 and DistanceBetweenCoordinates(GetUnitX(caster) , GetUnitY(caster) , GetItemX(target) , GetItemY(target)) > 100.0 endfunction -function RayConfig___IsFrostRay takes integer index returns boolean +function RayConfig__IsFrostRay takes integer index returns boolean return ModuloInteger(index, 2) == 1 endfunction @@ -54452,7 +54471,7 @@ function RayConfig_GetLightningOffsetZ takes unit caster,integer abilityId,integ return 40.0 endfunction -function RayConfig___GetDamage takes unit caster,integer abilityId,real duration returns real +function RayConfig__GetDamage takes unit caster,integer abilityId,real duration returns real local real result= ( I2R(GetUnitAbilityLevel(caster, abilityId)) * 9.0 + 7.0 ) * RayConfig_REFRESH_INTERVAL if ( abilityId == RayConfig_FROST_AND_FIRE_RAY ) then @@ -54462,49 +54481,49 @@ function RayConfig___GetDamage takes unit caster,integer abilityId,real duration return result endfunction -function RayConfig___GetSpeed takes unit caster,integer abilityId,real duration returns real +function RayConfig__GetSpeed takes unit caster,integer abilityId,real duration returns real return ( GetUnitAbilityLevel(caster, abilityId) * 10.0 + 220.0 ) * RayConfig_REFRESH_INTERVAL endfunction -function RayConfig___GetHealingLife takes unit caster,integer abilityId,real duration returns real +function RayConfig__GetHealingLife takes unit caster,integer abilityId,real duration returns real return ( I2R(GetUnitAbilityLevel(caster, abilityId)) * 9.0 + 7.0 ) * RayConfig_REFRESH_INTERVAL endfunction -function RayConfig___GetMana takes unit caster,integer abilityId,real duration returns real +function RayConfig__GetMana takes unit caster,integer abilityId,real duration returns real return ( I2R(GetUnitAbilityLevel(caster, abilityId)) * 10.0 + 10.0 ) * RayConfig_REFRESH_INTERVAL endfunction -function RayConfig___GetManaCost takes unit caster,integer abilityId,real duration returns real +function RayConfig__GetManaCost takes unit caster,integer abilityId,real duration returns real return ( I2R(GetUnitAbilityLevel(caster, abilityId)) * 7.0 + 5.0 ) * RayConfig_REFRESH_INTERVAL endfunction -function RayConfig___WaitDuration takes real duration,real expected returns boolean +function RayConfig__WaitDuration takes real duration,real expected returns boolean if ( duration >= expected ) then return true endif return false endfunction -function RayConfig___EveryDuration takes real duration,real interval returns boolean +function RayConfig__EveryDuration takes real duration,real interval returns boolean local real mod= ModuloReal(duration, interval) return ( mod >= 0.0 and mod < RayConfig_REFRESH_INTERVAL ) endfunction -function RayConfig___GetGold takes unit caster,integer abilityId,real duration returns integer - if ( RayConfig___EveryDuration(duration , RayConfig_HARVEST_INTERVAL) ) then +function RayConfig__GetGold takes unit caster,integer abilityId,real duration returns integer + if ( RayConfig__EveryDuration(duration , RayConfig_HARVEST_INTERVAL) ) then return GetUnitAbilityLevel(caster, abilityId) endif return 0 endfunction -function RayConfig___GetLumber takes unit caster,integer abilityId,real duration returns integer - if ( RayConfig___EveryDuration(duration , RayConfig_HARVEST_INTERVAL) ) then +function RayConfig__GetLumber takes unit caster,integer abilityId,real duration returns integer + if ( RayConfig__EveryDuration(duration , RayConfig_HARVEST_INTERVAL) ) then return GetUnitAbilityLevel(caster, abilityId) endif return 0 endfunction -function RayConfig___MoveUnit takes unit caster,unit target,real distance returns nothing +function RayConfig__MoveUnit takes unit caster,unit target,real distance returns nothing local real sourceX= GetUnitX(caster) local real sourceY= GetUnitY(caster) local real targetX= GetUnitX(target) @@ -54517,15 +54536,15 @@ function RayConfig___MoveUnit takes unit caster,unit target,real distance return call SetUnitPosition(target, x, y) endfunction -function RayConfig___KnockBack takes unit caster,unit target,real distance returns nothing - call RayConfig___MoveUnit(caster , target , distance) +function RayConfig__KnockBack takes unit caster,unit target,real distance returns nothing + call RayConfig__MoveUnit(caster , target , distance) endfunction -function RayConfig___PullUnit takes unit caster,unit target,real distance returns nothing - call RayConfig___MoveUnit(caster , target , - distance) +function RayConfig__PullUnit takes unit caster,unit target,real distance returns nothing + call RayConfig__MoveUnit(caster , target , - distance) endfunction -function RayConfig___PullItem takes unit caster,item target,real distance returns nothing +function RayConfig__PullItem takes unit caster,item target,real distance returns nothing local real casterX= GetUnitX(caster) local real casterY= GetUnitY(caster) local real itemX= GetItemX(target) @@ -54542,7 +54561,7 @@ function RayConfig___PullItem takes unit caster,item target,real distance return endif endfunction -function RayConfig___Drain takes unit caster,unit target,real amount,real manaAmount returns nothing +function RayConfig__Drain takes unit caster,unit target,real amount,real manaAmount returns nothing // damaging triggers the creep call UnitDamageTarget(caster, target, amount, false, true, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, WEAPON_TYPE_WHOKNOWS) call SetUnitState(target, UNIT_STATE_MANA, RMaxBJ(GetUnitState(target, UNIT_STATE_MANA) - manaAmount, 0.0)) @@ -54551,22 +54570,22 @@ function RayConfig___Drain takes unit caster,unit target,real amount,real manaAm call SetUnitState(caster, UNIT_STATE_MANA, RMinBJ(GetUnitState(caster, UNIT_STATE_MANA) + manaAmount, GetUnitState(caster, UNIT_STATE_MAX_MANA))) endfunction -function RayConfig___Restore takes unit caster,unit target,real amount,real manaAmount returns nothing +function RayConfig__Restore takes unit caster,unit target,real amount,real manaAmount returns nothing call SetUnitState(target, UNIT_STATE_LIFE, RMinBJ(GetUnitState(target, UNIT_STATE_LIFE) + amount, GetUnitState(target, UNIT_STATE_MAX_LIFE))) call SetUnitState(target, UNIT_STATE_MANA, RMinBJ(GetUnitState(target, UNIT_STATE_MANA) + manaAmount, GetUnitState(target, UNIT_STATE_MAX_MANA))) endfunction -function RayConfig___DrainMana takes unit caster,unit target,real amount returns nothing +function RayConfig__DrainMana takes unit caster,unit target,real amount returns nothing call SetUnitState(target, UNIT_STATE_MANA, RMaxBJ(GetUnitState(target, UNIT_STATE_MANA) - amount, 0.0)) call SetUnitState(caster, UNIT_STATE_MANA, RMinBJ(GetUnitState(caster, UNIT_STATE_MANA) + amount, GetUnitState(caster, UNIT_STATE_MAX_MANA))) endfunction -function RayConfig___RestoreMana takes unit caster,unit target,real amount returns nothing +function RayConfig__RestoreMana takes unit caster,unit target,real amount returns nothing call SetUnitState(target, UNIT_STATE_MANA, RMinBJ(GetUnitState(target, UNIT_STATE_MANA) + amount, GetUnitState(target, UNIT_STATE_MAX_MANA))) endfunction -function RayConfig___SummonSkeleton takes unit caster,unit target returns nothing +function RayConfig__SummonSkeleton takes unit caster,unit target returns nothing local unit s= CreateUnit(GetOwningPlayer(caster), 'nske', GetUnitX(target), GetUnitY(target), GetUnitFacing(target)) call UnitApplyTimedLife(s, 'BTLF', 60) call SetUnitAnimation(s, "Birth") @@ -54574,81 +54593,81 @@ function RayConfig___SummonSkeleton takes unit caster,unit target returns nothin set s=null endfunction -function RayConfig___ResurrectNonHeroUnit takes unit target returns nothing - local unit dummy= RayConfig___AttachDummy(GetOwningPlayer(target) , RayConfig_RESURRECT_DUMMY , target , RayConfig_RESURRECTION_RAY) +function RayConfig__ResurrectNonHeroUnit takes unit target returns nothing + local unit dummy= RayConfig__AttachDummy(GetOwningPlayer(target) , RayConfig_RESURRECT_DUMMY , target , RayConfig_RESURRECTION_RAY) call IssueImmediateOrder(dummy, "resurrection") - call RayConfig___CleanDummyDelayed(target , RayConfig_RESURRECTION_RAY , 2.0) + call RayConfig__CleanDummyDelayed(target , RayConfig_RESURRECTION_RAY , 2.0) //call BJDebugMsg("Remove dummy!") set dummy=null endfunction -function RayConfig___FrostDamage takes unit caster,unit target returns nothing - local unit dummy= RayConfig___AttachDummy(GetOwningPlayer(caster) , RayConfig_FROST_DUMMY , target , RayConfig_FROST_RAY) +function RayConfig__FrostDamage takes unit caster,unit target returns nothing + local unit dummy= RayConfig__AttachDummy(GetOwningPlayer(caster) , RayConfig_FROST_DUMMY , target , RayConfig_FROST_RAY) call SetUnitAbilityLevel(dummy, RayConfig_FROST_DUMMY_ABILITY_ID, GetUnitAbilityLevel(caster, RayConfig_FROST_RAY)) call IssueTargetOrder(dummy, "attack", target) - call RayConfig___CleanDummyDelayed(target , RayConfig_FROST_DUMMY , 2.0) + call RayConfig__CleanDummyDelayed(target , RayConfig_FROST_DUMMY , 2.0) set dummy=null endfunction -function RayConfig___FireDamage takes unit caster,unit target returns nothing - local unit dummy= RayConfig___AttachDummy(GetOwningPlayer(caster) , RayConfig_FIRE_DUMMY , target , RayConfig_FIRE_RAY) +function RayConfig__FireDamage takes unit caster,unit target returns nothing + local unit dummy= RayConfig__AttachDummy(GetOwningPlayer(caster) , RayConfig_FIRE_DUMMY , target , RayConfig_FIRE_RAY) call SetUnitAbilityLevel(dummy, RayConfig_FIRE_DUMMY_ABILITY_ID, GetUnitAbilityLevel(caster, RayConfig_FIRE_RAY)) call IssueTargetOrder(dummy, "attack", target) - call RayConfig___CleanDummyDelayed(target , RayConfig_FIRE_DUMMY , 2.0) + call RayConfig__CleanDummyDelayed(target , RayConfig_FIRE_DUMMY , 2.0) //call BJDebugMsg("Remove dummy!") set dummy=null endfunction -function RayConfig___PoisonDamage takes unit caster,unit target returns nothing - local unit dummy= RayConfig___AttachDummy(GetOwningPlayer(caster) , RayConfig_POISON_DUMMY , target , RayConfig_POISON_RAY) +function RayConfig__PoisonDamage takes unit caster,unit target returns nothing + local unit dummy= RayConfig__AttachDummy(GetOwningPlayer(caster) , RayConfig_POISON_DUMMY , target , RayConfig_POISON_RAY) call SetUnitAbilityLevel(dummy, RayConfig_POISON_DUMMY_ABILITY_ID, GetUnitAbilityLevel(caster, RayConfig_POISON_RAY)) //call BJDebugMsg("Create poison dummy " + GetUnitName(dummy)) call IssueTargetOrder(dummy, "attack", target) - call RayConfig___CleanDummyDelayed(target , RayConfig_POISON_DUMMY , 2.0) + call RayConfig__CleanDummyDelayed(target , RayConfig_POISON_DUMMY , 2.0) //call BJDebugMsg("Remove dummy!") set dummy=null endfunction -function RayConfig___Cyclone takes unit caster,unit target returns nothing - local unit dummy= RayConfig___AttachDummy(GetOwningPlayer(caster) , RayConfig_WIND_DUMMY , target , RayConfig_WIND_RAY) +function RayConfig__Cyclone takes unit caster,unit target returns nothing + local unit dummy= RayConfig__AttachDummy(GetOwningPlayer(caster) , RayConfig_WIND_DUMMY , target , RayConfig_WIND_RAY) call SetUnitAbilityLevel(dummy, RayConfig_WIND_DUMMY_ABILITY_ID, GetUnitAbilityLevel(caster, RayConfig_WIND_RAY)) call IssueTargetOrder(dummy, "cyclone", target) - call RayConfig___CleanDummyDelayed(target , RayConfig_WIND_DUMMY , 2.0) + call RayConfig__CleanDummyDelayed(target , RayConfig_WIND_DUMMY , 2.0) //call BJDebugMsg("Remove dummy cyclone!") set dummy=null endfunction -function RayConfig___GetMaxCharmLevel takes unit caster,integer abilityId returns integer +function RayConfig__GetMaxCharmLevel takes unit caster,integer abilityId returns integer return 5 + GetUnitAbilityLevel(caster, abilityId) endfunction -function RayConfig___Charm takes unit caster,unit target returns nothing - local unit dummy= RayConfig___AttachDummy(GetOwningPlayer(caster) , RayConfig_CHARM_DUMMY , target , RayConfig_CHARM_RAY) +function RayConfig__Charm takes unit caster,unit target returns nothing + local unit dummy= RayConfig__AttachDummy(GetOwningPlayer(caster) , RayConfig_CHARM_DUMMY , target , RayConfig_CHARM_RAY) call SetUnitAbilityLevel(dummy, RayConfig_CHARM_DUMMY_ABILITY_ID, GetUnitAbilityLevel(caster, RayConfig_CHARM_RAY)) call IssueTargetOrder(dummy, "charm", target) - call RayConfig___CleanDummyDelayed(target , RayConfig_CHARM_DUMMY , 2.0) + call RayConfig__CleanDummyDelayed(target , RayConfig_CHARM_DUMMY , 2.0) //call BJDebugMsg("Remove dummy cyclone!") set dummy=null endfunction -function RayConfig___Hex takes unit caster,unit target returns nothing - local unit dummy= RayConfig___AttachDummy(GetOwningPlayer(caster) , RayConfig_HEX_DUMMY , target , RayConfig_HEX_RAY) +function RayConfig__Hex takes unit caster,unit target returns nothing + local unit dummy= RayConfig__AttachDummy(GetOwningPlayer(caster) , RayConfig_HEX_DUMMY , target , RayConfig_HEX_RAY) call SetUnitAbilityLevel(dummy, RayConfig_HEX_DUMMY_ABILITY_ID, GetUnitAbilityLevel(caster, RayConfig_HEX_RAY)) call IssueTargetOrder(dummy, "hex", target) - call RayConfig___CleanDummyDelayed(target , RayConfig_HEX_DUMMY , 2.0) + call RayConfig__CleanDummyDelayed(target , RayConfig_HEX_DUMMY , 2.0) //call BJDebugMsg("Remove dummy cyclone!") set dummy=null endfunction -function RayConfig___ResurrectUnit takes unit target returns nothing +function RayConfig__ResurrectUnit takes unit target returns nothing if ( IsUnitType(target, UNIT_TYPE_HERO) ) then //call BJDebugMsg("Revive hero " + GetUnitName(target)) call ReviveHero(target, GetUnitX(target), GetUnitY(target), true) else //call BJDebugMsg("Mod " + R2S(ModuloReal(duration, 1.0))) - if ( not (HaveSavedHandle(RayConfig___h, GetHandleId((target )), ( RayConfig_RESURRECTION_RAY))) ) then // INLINED!! + if ( not (HaveSavedHandle(RayConfig__h, GetHandleId((target )), ( RayConfig_RESURRECTION_RAY))) ) then // INLINED!! //call BJDebugMsg("Resurrect unit " + GetUnitName(target)) - call RayConfig___ResurrectNonHeroUnit(target) + call RayConfig__ResurrectNonHeroUnit(target) endif endif endfunction @@ -54657,119 +54676,119 @@ function RayConfig_OnHitUnit takes unit caster,unit target,integer abilityId,rea if ( abilityId == RayConfig_HOLY_RAY ) then if ( IsUnitAlly(target, GetOwningPlayer(caster)) ) then if ( not IsUnitType(target, UNIT_TYPE_UNDEAD) ) then - call SetUnitState(target, UNIT_STATE_LIFE, RMinBJ(GetUnitState(target, UNIT_STATE_MAX_LIFE), GetUnitState(target, UNIT_STATE_LIFE) + RayConfig___GetHealingLife(caster , abilityId , duration))) + call SetUnitState(target, UNIT_STATE_LIFE, RMinBJ(GetUnitState(target, UNIT_STATE_MAX_LIFE), GetUnitState(target, UNIT_STATE_LIFE) + RayConfig__GetHealingLife(caster , abilityId , duration))) endif else if ( IsUnitType(target, UNIT_TYPE_UNDEAD) ) then - call UnitDamageTarget(caster, target, RayConfig___GetDamage(caster , abilityId , duration), false, true, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE, WEAPON_TYPE_WHOKNOWS) + call UnitDamageTarget(caster, target, RayConfig__GetDamage(caster , abilityId , duration), false, true, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE, WEAPON_TYPE_WHOKNOWS) endif endif elseif ( abilityId == RayConfig_HARVEST_RAY ) then if ( GetResourceAmount(target) > 0 ) then - call AdjustPlayerStateBJ(RayConfig___GetGold(caster , abilityId , duration), GetOwningPlayer(caster), PLAYER_STATE_RESOURCE_GOLD) - call SetResourceAmount(target, IMaxBJ(0, GetResourceAmount(target) - RayConfig___GetGold(caster , abilityId , duration))) + call AdjustPlayerStateBJ(RayConfig__GetGold(caster , abilityId , duration), GetOwningPlayer(caster), PLAYER_STATE_RESOURCE_GOLD) + call SetResourceAmount(target, IMaxBJ(0, GetResourceAmount(target) - RayConfig__GetGold(caster , abilityId , duration))) endif elseif ( abilityId == RayConfig_WATER_RAY or abilityId == RayConfig_WATER_RAY_SLOT_1 ) then - if ( RayConfig___IsNoAlly(target , caster) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) ) then - call RayConfig___MoveUnit((caster ) , ( target ) , (( RayConfig___GetSpeed(caster , abilityId , duration))*1.0)) // INLINED!! + if ( RayConfig__IsNoAlly(target , caster) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) ) then + call RayConfig__MoveUnit((caster ) , ( target ) , (( RayConfig__GetSpeed(caster , abilityId , duration))*1.0)) // INLINED!! endif elseif ( abilityId == RayConfig_LOOT_RAY or abilityId == RayConfig_LOOT_RAY_STANDARD ) then // nothing elseif ( abilityId == RayConfig_CHAIN_RAY ) then - if ( RayConfig___IsNoAlly(target , caster) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) ) then - call RayConfig___MoveUnit((caster ) , ( target ) , - (( RayConfig___GetSpeed(caster , abilityId , duration))*1.0)) // INLINED!! + if ( RayConfig__IsNoAlly(target , caster) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) ) then + call RayConfig__MoveUnit((caster ) , ( target ) , - (( RayConfig__GetSpeed(caster , abilityId , duration))*1.0)) // INLINED!! endif elseif ( abilityId == RayConfig_MANA_RAY ) then - if ( RayConfig___IsNoAlly(target , caster) ) then - call RayConfig___DrainMana(caster , target , RayConfig___GetMana(caster , abilityId , duration)) + if ( RayConfig__IsNoAlly(target , caster) ) then + call RayConfig__DrainMana(caster , target , RayConfig__GetMana(caster , abilityId , duration)) else - call RayConfig___RestoreMana(caster , target , RayConfig___GetMana(caster , abilityId , duration)) + call RayConfig__RestoreMana(caster , target , RayConfig__GetMana(caster , abilityId , duration)) endif elseif ( abilityId == RayConfig_DRAIN_RAY ) then - if ( RayConfig___IsNoAlly(target , caster) ) then - call RayConfig___Drain(caster , target , RayConfig___GetHealingLife(caster , abilityId , duration) , RayConfig___GetMana(caster , abilityId , duration)) + if ( RayConfig__IsNoAlly(target , caster) ) then + call RayConfig__Drain(caster , target , RayConfig__GetHealingLife(caster , abilityId , duration) , RayConfig__GetMana(caster , abilityId , duration)) else - call RayConfig___Restore(caster , target , RayConfig___GetHealingLife(caster , abilityId , duration) , RayConfig___GetMana(caster , abilityId , duration)) + call RayConfig__Restore(caster , target , RayConfig__GetHealingLife(caster , abilityId , duration) , RayConfig__GetMana(caster , abilityId , duration)) endif elseif ( abilityId == RayConfig_RAISE_RAY ) then - if ( RayConfig___WaitDuration(duration , 1.0) ) then + if ( RayConfig__WaitDuration(duration , 1.0) ) then if ( IsUnitDeadBJ(target) and not IsUnitType(target, UNIT_TYPE_HERO) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) ) then - call RayConfig___SummonSkeleton(caster , target) + call RayConfig__SummonSkeleton(caster , target) endif endif elseif ( abilityId == RayConfig_RESURRECTION_RAY ) then - if ( RayConfig___WaitDuration(duration , 1.0) ) then - if ( not RayConfig___IsNoAlly(target , caster) or GetOwningPlayer(target) == Player(PLAYER_NEUTRAL_PASSIVE) ) then - call RayConfig___ResurrectUnit(target) + if ( RayConfig__WaitDuration(duration , 1.0) ) then + if ( not RayConfig__IsNoAlly(target , caster) or GetOwningPlayer(target) == Player(PLAYER_NEUTRAL_PASSIVE) ) then + call RayConfig__ResurrectUnit(target) endif endif elseif ( abilityId == RayConfig_WIND_RAY ) then - if ( RayConfig___WaitDuration(duration , 2.0) ) then - if ( not UnitHasBuffBJ(target, RayConfig_BUFF_ID_WIND) and RayConfig___IsNoAlly(target , caster) and not (HaveSavedHandle(RayConfig___h, GetHandleId((target )), ( RayConfig_WIND_RAY))) ) then // INLINED!! - call RayConfig___Cyclone(caster , target) + if ( RayConfig__WaitDuration(duration , 2.0) ) then + if ( not UnitHasBuffBJ(target, RayConfig_BUFF_ID_WIND) and RayConfig__IsNoAlly(target , caster) and not (HaveSavedHandle(RayConfig__h, GetHandleId((target )), ( RayConfig_WIND_RAY))) ) then // INLINED!! + call RayConfig__Cyclone(caster , target) endif endif elseif ( abilityId == RayConfig_CHARM_RAY ) then - if ( RayConfig___WaitDuration(duration , 6.0) ) then - if ( GetUnitLevel(target) <= (5 + GetUnitAbilityLevel((caster ), ( abilityId))) and not IsUnitType(target, UNIT_TYPE_HERO) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) and RayConfig___IsNoAlly(target , caster) and not (HaveSavedHandle(RayConfig___h, GetHandleId((target )), ( RayConfig_CHARM_RAY))) ) then // INLINED!! - call RayConfig___Charm(caster , target) + if ( RayConfig__WaitDuration(duration , 6.0) ) then + if ( GetUnitLevel(target) <= (5 + GetUnitAbilityLevel((caster ), ( abilityId))) and not IsUnitType(target, UNIT_TYPE_HERO) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) and RayConfig__IsNoAlly(target , caster) and not (HaveSavedHandle(RayConfig__h, GetHandleId((target )), ( RayConfig_CHARM_RAY))) ) then // INLINED!! + call RayConfig__Charm(caster , target) endif endif elseif ( abilityId == RayConfig_HEX_RAY ) then - if ( RayConfig___WaitDuration(duration , 1.0) ) then - if ( not IsUnitType(target, UNIT_TYPE_HERO) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) and RayConfig___IsNoAlly(target , caster) and not (HaveSavedHandle(RayConfig___h, GetHandleId((target )), ( RayConfig_HEX_RAY))) ) then // INLINED!! - call RayConfig___Hex(caster , target) + if ( RayConfig__WaitDuration(duration , 1.0) ) then + if ( not IsUnitType(target, UNIT_TYPE_HERO) and not IsUnitType(target, UNIT_TYPE_STRUCTURE) and RayConfig__IsNoAlly(target , caster) and not (HaveSavedHandle(RayConfig__h, GetHandleId((target )), ( RayConfig_HEX_RAY))) ) then // INLINED!! + call RayConfig__Hex(caster , target) endif endif elseif ( abilityId == RayConfig_NEUTRALIZATION_RAY ) then - if ( RayConfig___WaitDuration(duration , 1.0) ) then - if ( IsUnitType(target, UNIT_TYPE_SUMMONED) and RayConfig___IsNoAlly(target , caster) ) then - call UnitDamageTarget(caster, target, RayConfig___GetDamage(caster , abilityId , duration) * 2.0, false, true, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE, WEAPON_TYPE_WHOKNOWS) + if ( RayConfig__WaitDuration(duration , 1.0) ) then + if ( IsUnitType(target, UNIT_TYPE_SUMMONED) and RayConfig__IsNoAlly(target , caster) ) then + call UnitDamageTarget(caster, target, RayConfig__GetDamage(caster , abilityId , duration) * 2.0, false, true, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE, WEAPON_TYPE_WHOKNOWS) else - if ( RayConfig___IsNoAlly(target , caster) ) then + if ( RayConfig__IsNoAlly(target , caster) ) then call UnitRemoveBuffs(target, true, false) else call UnitRemoveBuffs(target, false, true) endif endif endif - elseif ( RayConfig___IsNoAlly(target , caster) ) then - if ( ( abilityId == RayConfig_FROST_RAY or abilityId == RayConfig_FROST_AND_FIRE_RAY ) and not (HaveSavedHandle(RayConfig___h, GetHandleId((target )), ( RayConfig_FROST_RAY))) and not UnitHasBuffBJ(target, RayConfig_BUFF_ID_FROST) ) then // INLINED!! - call RayConfig___FrostDamage(caster , target) + elseif ( RayConfig__IsNoAlly(target , caster) ) then + if ( ( abilityId == RayConfig_FROST_RAY or abilityId == RayConfig_FROST_AND_FIRE_RAY ) and not (HaveSavedHandle(RayConfig__h, GetHandleId((target )), ( RayConfig_FROST_RAY))) and not UnitHasBuffBJ(target, RayConfig_BUFF_ID_FROST) ) then // INLINED!! + call RayConfig__FrostDamage(caster , target) endif - if ( ( abilityId == RayConfig_FIRE_RAY or abilityId == RayConfig_FROST_AND_FIRE_RAY ) and not (HaveSavedHandle(RayConfig___h, GetHandleId((target )), ( RayConfig_FIRE_RAY))) and not UnitHasBuffBJ(target, RayConfig_BUFF_ID_FIRE) ) then // INLINED!! - call RayConfig___FireDamage(caster , target) + if ( ( abilityId == RayConfig_FIRE_RAY or abilityId == RayConfig_FROST_AND_FIRE_RAY ) and not (HaveSavedHandle(RayConfig__h, GetHandleId((target )), ( RayConfig_FIRE_RAY))) and not UnitHasBuffBJ(target, RayConfig_BUFF_ID_FIRE) ) then // INLINED!! + call RayConfig__FireDamage(caster , target) endif - if ( abilityId == RayConfig_POISON_RAY and not (HaveSavedHandle(RayConfig___h, GetHandleId((target )), ( RayConfig_POISON_RAY))) and not UnitHasBuffBJ(target, RayConfig_BUFF_ID_POISON) ) then // INLINED!! - call RayConfig___PoisonDamage(caster , target) + if ( abilityId == RayConfig_POISON_RAY and not (HaveSavedHandle(RayConfig__h, GetHandleId((target )), ( RayConfig_POISON_RAY))) and not UnitHasBuffBJ(target, RayConfig_BUFF_ID_POISON) ) then // INLINED!! + call RayConfig__PoisonDamage(caster , target) endif - call UnitDamageTarget(caster, target, RayConfig___GetDamage(caster , abilityId , duration), false, true, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE, WEAPON_TYPE_WHOKNOWS) + call UnitDamageTarget(caster, target, RayConfig__GetDamage(caster , abilityId , duration), false, true, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE, WEAPON_TYPE_WHOKNOWS) endif endfunction function RayConfig_OnHitDestructable takes unit caster,destructable target,integer abilityId,real duration returns nothing if ( abilityId == RayConfig_HARVEST_RAY ) then if ( IsTree(GetDestructableTypeId(target)) ) then - call AdjustPlayerStateBJ(RayConfig___GetLumber(caster , abilityId , duration), GetOwningPlayer(caster), PLAYER_STATE_RESOURCE_LUMBER) - call SetDestructableLife(target, RMaxBJ(0.0, GetDestructableLife(target) - RayConfig___GetLumber(caster , abilityId , duration))) + call AdjustPlayerStateBJ(RayConfig__GetLumber(caster , abilityId , duration), GetOwningPlayer(caster), PLAYER_STATE_RESOURCE_LUMBER) + call SetDestructableLife(target, RMaxBJ(0.0, GetDestructableLife(target) - RayConfig__GetLumber(caster , abilityId , duration))) endif elseif ( abilityId == RayConfig_RESURRECTION_RAY ) then - if ( RayConfig___WaitDuration(duration , 2.0) ) then + if ( RayConfig__WaitDuration(duration , 2.0) ) then if ( IsDestructableDeadBJ(target) ) then call DestructableRestoreLife(target, GetDestructableMaxLife(target), true) endif endif else - call SetDestructableLife(target, RMaxBJ(0.0, GetDestructableLife(target) - RayConfig___GetDamage(caster , abilityId , duration))) + call SetDestructableLife(target, RMaxBJ(0.0, GetDestructableLife(target) - RayConfig__GetDamage(caster , abilityId , duration))) endif endfunction function RayConfig_OnHitItem takes unit caster,item target,integer abilityId,real duration returns nothing - call RayConfig___PullItem(caster , target , RayConfig___GetSpeed(caster , abilityId , duration)) + call RayConfig__PullItem(caster , target , RayConfig__GetSpeed(caster , abilityId , duration)) endfunction function RayConfig_OnCastLoop takes unit caster,integer abilityId,real duration returns boolean - call SetUnitManaBJ(caster, RMaxBJ(0.0, GetUnitState(caster, UNIT_STATE_MANA) - RayConfig___GetManaCost(caster , abilityId , duration))) + call SetUnitManaBJ(caster, RMaxBJ(0.0, GetUnitState(caster, UNIT_STATE_MANA) - RayConfig__GetManaCost(caster , abilityId , duration))) return GetUnitState(caster, UNIT_STATE_MANA) > 0.0 endfunction @@ -57769,7 +57788,7 @@ function RecreatOilPatchFromPlatform takes unit platform returns nothing endfunction // death event before resources are lost -function WoWReforgedOldHorde___TriggerConditionDeathResource takes nothing returns boolean +function WoWReforgedOldHorde__TriggerConditionDeathResource takes nothing returns boolean if ( GetUnitTypeId((Resources___triggerDyingResourceUnit)) == 'o07X' and (LoadInteger(Resources___h, GetHandleId(((Resources___triggerDyingResourceUnit) )), Resources___Index2D(( udg_ResourceOil) , Resources___KEY_RESOURCE , Resources___KEY_MAX))) > 0 ) then // INLINED!! call RecreatOilPatchFromPlatform((Resources___triggerDyingResourceUnit)) // INLINED!! endif @@ -57789,8 +57808,8 @@ function InitResourcesOldHorde takes nothing returns nothing call SetResearchCostsForLevel('R0FB' , 1 , udg_ResourceOil , 3000) // Upgrade Cannons // callbacks - call TriggerRegisterDeathResourceEvent(WoWReforgedOldHorde___deathResourceTrigger) - call TriggerAddCondition(WoWReforgedOldHorde___deathResourceTrigger, Condition(function WoWReforgedOldHorde___TriggerConditionDeathResource)) + call TriggerRegisterDeathResourceEvent(WoWReforgedOldHorde__deathResourceTrigger) + call TriggerAddCondition(WoWReforgedOldHorde__deathResourceTrigger, Condition(function WoWReforgedOldHorde__TriggerConditionDeathResource)) endfunction function ForceUIBuildings takes unit worker returns nothing @@ -57862,26 +57881,26 @@ endfunction function IsDeathCoilDummy takes unit dummy returns boolean - return IsUnitInGroup(dummy, WoWReforgedOldHorde___deathCoilDummies) + return IsUnitInGroup(dummy, WoWReforgedOldHorde__deathCoilDummies) endfunction function GetDeathCoilCaster takes unit dummy returns unit - return LoadUnitHandle(WoWReforgedOldHorde___h, GetHandleId(dummy), 0) + return LoadUnitHandle(WoWReforgedOldHorde__h, GetHandleId(dummy), 0) endfunction function SaveDeathCoilCaster takes unit dummy,unit caster returns nothing - call SaveUnitHandle(WoWReforgedOldHorde___h, GetHandleId(dummy), 0, caster) - call GroupAddUnit(WoWReforgedOldHorde___deathCoilDummies, dummy) + call SaveUnitHandle(WoWReforgedOldHorde__h, GetHandleId(dummy), 0, caster) + call GroupAddUnit(WoWReforgedOldHorde__deathCoilDummies, dummy) endfunction function RemoveDeathCoilDummy takes unit dummy returns nothing - call FlushChildHashtable(WoWReforgedOldHorde___h, GetHandleId(dummy)) - call GroupRemoveUnit(WoWReforgedOldHorde___deathCoilDummies, dummy) + call FlushChildHashtable(WoWReforgedOldHorde__h, GetHandleId(dummy)) + call GroupRemoveUnit(WoWReforgedOldHorde__deathCoilDummies, dummy) endfunction // restart existing timers -function WoWReforgedOldHorde___GetNewUnholyArmorTimer takes unit target returns timer - local timer t= LoadTimerHandle(WoWReforgedOldHorde___h, GetHandleId(target), 0) +function WoWReforgedOldHorde__GetNewUnholyArmorTimer takes unit target returns timer + local timer t= LoadTimerHandle(WoWReforgedOldHorde__h, GetHandleId(target), 0) if ( t != null ) then call PauseTimer(t) @@ -57891,33 +57910,33 @@ function WoWReforgedOldHorde___GetNewUnholyArmorTimer takes unit target returns return CreateTimer() endfunction -function WoWReforgedOldHorde___TimerFunctionUnholyArmorEnd takes nothing returns nothing +function WoWReforgedOldHorde__TimerFunctionUnholyArmorEnd takes nothing returns nothing local timer t= GetExpiredTimer() local integer handleId= GetHandleId(t) - local unit target= LoadUnitHandle(WoWReforgedOldHorde___h, handleId, 0) + local unit target= LoadUnitHandle(WoWReforgedOldHorde__h, handleId, 0) call UnitRemoveAbility(target, 'A1TS') set target=null - call RemoveSavedHandle(WoWReforgedOldHorde___h, GetHandleId(target), 1) - call FlushChildHashtable(WoWReforgedOldHorde___h, handleId) + call RemoveSavedHandle(WoWReforgedOldHorde__h, GetHandleId(target), 1) + call FlushChildHashtable(WoWReforgedOldHorde__h, handleId) call PauseTimer(t) call DestroyTimer(t) set t=null endfunction function UnholyArmor takes unit target returns nothing - local timer t= WoWReforgedOldHorde___GetNewUnholyArmorTimer(target) + local timer t= WoWReforgedOldHorde__GetNewUnholyArmorTimer(target) call UnitAddAbility(target, 'A1TS') - call SaveUnitHandle(WoWReforgedOldHorde___h, GetHandleId(t), 0, target) - call SaveTimerHandle(WoWReforgedOldHorde___h, GetHandleId(target), 1, t) - call TimerStart(t, 10.0, false, function WoWReforgedOldHorde___TimerFunctionUnholyArmorEnd) + call SaveUnitHandle(WoWReforgedOldHorde__h, GetHandleId(t), 0, target) + call SaveTimerHandle(WoWReforgedOldHorde__h, GetHandleId(target), 1, t) + call TimerStart(t, 10.0, false, function WoWReforgedOldHorde__TimerFunctionUnholyArmorEnd) call sc__NewBonusUtils_linkBuff((target ) , ( BONUS_ARMOR ) , (( 30.0 )*1.0) , ( 'B03K') , false) // INLINED!! call sc__NewBonusUtils_linkTimed((target ) , ( BONUS_ARMOR ) , (( 30.0 )*1.0) , (( 12.0)*1.0) , true) // INLINED!! endfunction -function WoWReforgedOldHorde___AddSummonedUnitToDeathKnight takes unit caster,unit summoned returns nothing +function WoWReforgedOldHorde__AddSummonedUnitToDeathKnight takes unit caster,unit summoned returns nothing local integer handleId= GetHandleId(caster) - local group g= LoadGroupHandle(WoWReforgedOldHorde___h, handleId, 2) + local group g= LoadGroupHandle(WoWReforgedOldHorde__h, handleId, 2) local unit first= null if ( g == null ) then set g=CreateGroup() @@ -57929,86 +57948,86 @@ function WoWReforgedOldHorde___AddSummonedUnitToDeathKnight takes unit caster,un set first=null endif call GroupAddUnit(g, summoned) - call SaveGroupHandle(WoWReforgedOldHorde___h, handleId, 2, g) - call SaveUnitHandle(WoWReforgedOldHorde___h, GetHandleId(summoned), 0, caster) + call SaveGroupHandle(WoWReforgedOldHorde__h, handleId, 2, g) + call SaveUnitHandle(WoWReforgedOldHorde__h, GetHandleId(summoned), 0, caster) endfunction -function WoWReforgedOldHorde___GetSummonedUnitDeathKnight takes unit summoned returns unit - return LoadUnitHandle(WoWReforgedOldHorde___h, GetHandleId(summoned), 0) +function WoWReforgedOldHorde__GetSummonedUnitDeathKnight takes unit summoned returns unit + return LoadUnitHandle(WoWReforgedOldHorde__h, GetHandleId(summoned), 0) endfunction -function WoWReforgedOldHorde___RemoveSummonedUnitFromDeathKnight takes unit caster,unit summoned returns nothing +function WoWReforgedOldHorde__RemoveSummonedUnitFromDeathKnight takes unit caster,unit summoned returns nothing local integer handleId= GetHandleId(caster) - local group g= LoadGroupHandle(WoWReforgedOldHorde___h, handleId, 2) + local group g= LoadGroupHandle(WoWReforgedOldHorde__h, handleId, 2) if ( g != null ) then call GroupRemoveUnit(g, summoned) endif - call FlushChildHashtable(WoWReforgedOldHorde___h, GetHandleId(summoned)) + call FlushChildHashtable(WoWReforgedOldHorde__h, GetHandleId(summoned)) endfunction -function WoWReforgedOldHorde___RemoveDeathKnight takes unit caster returns nothing +function WoWReforgedOldHorde__RemoveDeathKnight takes unit caster returns nothing local integer handleId= GetHandleId(caster) - local group g= LoadGroupHandle(WoWReforgedOldHorde___h, handleId, 2) + local group g= LoadGroupHandle(WoWReforgedOldHorde__h, handleId, 2) if ( g != null ) then call GroupClear(g) call DestroyGroup(g) endif - call FlushChildHashtable(WoWReforgedOldHorde___h, handleId) + call FlushChildHashtable(WoWReforgedOldHorde__h, handleId) endfunction -function WoWReforgedOldHorde___Heal takes unit target,real life returns nothing +function WoWReforgedOldHorde__Heal takes unit target,real life returns nothing call SetUnitState(target, UNIT_STATE_LIFE, RMinBJ(GetUnitState(target, UNIT_STATE_MAX_LIFE), GetUnitState(target, UNIT_STATE_LIFE) + life)) endfunction -function WoWReforgedOldHorde___TriggerConditionDamage takes nothing returns boolean - if ( (IsUnitInGroup((GetEventDamageSource()), WoWReforgedOldHorde___deathCoilDummies)) ) then // INLINED!! - call WoWReforgedOldHorde___Heal((LoadUnitHandle(WoWReforgedOldHorde___h, GetHandleId((GetEventDamageSource())), 0)) , GetEventDamage()) // INLINED!! +function WoWReforgedOldHorde__TriggerConditionDamage takes nothing returns boolean + if ( (IsUnitInGroup((GetEventDamageSource()), WoWReforgedOldHorde__deathCoilDummies)) ) then // INLINED!! + call WoWReforgedOldHorde__Heal((LoadUnitHandle(WoWReforgedOldHorde__h, GetHandleId((GetEventDamageSource())), 0)) , GetEventDamage()) // INLINED!! endif if ( GetUnitAbilityLevel(GetTriggerUnit(), 'A1TS') > 0 ) then - call WoWReforgedOldHorde___Heal(GetTriggerUnit() , GetEventDamage()) + call WoWReforgedOldHorde__Heal(GetTriggerUnit() , GetEventDamage()) endif return false endfunction -function WoWReforgedOldHorde___TriggerConditionSummon takes nothing returns boolean +function WoWReforgedOldHorde__TriggerConditionSummon takes nothing returns boolean if ( GetUnitTypeId(GetTriggerUnit()) == 'o07L' and GetUnitTypeId(GetSummonedUnit()) == 'uske' ) then - call WoWReforgedOldHorde___AddSummonedUnitToDeathKnight(GetTriggerUnit() , GetSummonedUnit()) + call WoWReforgedOldHorde__AddSummonedUnitToDeathKnight(GetTriggerUnit() , GetSummonedUnit()) endif return false endfunction -function WoWReforgedOldHorde___TriggerConditionDeath takes nothing returns boolean - local unit deathKnight= (LoadUnitHandle(WoWReforgedOldHorde___h, GetHandleId((GetTriggerUnit())), 0)) // INLINED!! +function WoWReforgedOldHorde__TriggerConditionDeath takes nothing returns boolean + local unit deathKnight= (LoadUnitHandle(WoWReforgedOldHorde__h, GetHandleId((GetTriggerUnit())), 0)) // INLINED!! if ( deathKnight != null ) then - call WoWReforgedOldHorde___RemoveSummonedUnitFromDeathKnight(deathKnight , GetTriggerUnit()) + call WoWReforgedOldHorde__RemoveSummonedUnitFromDeathKnight(deathKnight , GetTriggerUnit()) elseif ( GetUnitTypeId(GetTriggerUnit()) == 'o07L' ) then - call WoWReforgedOldHorde___RemoveDeathKnight(GetTriggerUnit()) + call WoWReforgedOldHorde__RemoveDeathKnight(GetTriggerUnit()) endif return false endfunction -function WoWReforgedOldHorde___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedOldHorde___damageTrigger, EVENT_PLAYER_UNIT_DAMAGED) - call TriggerAddCondition(WoWReforgedOldHorde___damageTrigger, Condition(function WoWReforgedOldHorde___TriggerConditionDamage)) +function WoWReforgedOldHorde__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedOldHorde__damageTrigger, EVENT_PLAYER_UNIT_DAMAGED) + call TriggerAddCondition(WoWReforgedOldHorde__damageTrigger, Condition(function WoWReforgedOldHorde__TriggerConditionDamage)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedOldHorde___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(WoWReforgedOldHorde___summonTrigger, Condition(function WoWReforgedOldHorde___TriggerConditionSummon)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedOldHorde__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(WoWReforgedOldHorde__summonTrigger, Condition(function WoWReforgedOldHorde__TriggerConditionSummon)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedOldHorde___deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedOldHorde___deathTrigger, Condition(function WoWReforgedOldHorde___TriggerConditionDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedOldHorde__deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedOldHorde__deathTrigger, Condition(function WoWReforgedOldHorde__TriggerConditionDeath)) endfunction -function WoWReforgedOldHorde___RemoveDeathKnightHook takes unit whichUnit returns nothing +function WoWReforgedOldHorde__RemoveDeathKnightHook takes unit whichUnit returns nothing if ( GetUnitTypeId(whichUnit) == 'o07L' ) then - call WoWReforgedOldHorde___RemoveDeathKnight(whichUnit) + call WoWReforgedOldHorde__RemoveDeathKnight(whichUnit) endif endfunction -//processed hook: hook RemoveUnit WoWReforgedOldHorde___RemoveDeathKnightHook +//processed hook: hook RemoveUnit WoWReforgedOldHorde__RemoveDeathKnightHook //library WoWReforgedOldHorde ends @@ -62026,8 +62045,8 @@ function RespawnAllItemsInRange takes real x,real y,real range returns integer local integer result= 0 local integer i= 0 loop - exitwhen ( i == (ItemRespawnSystem___respawnItemCounter) ) // INLINED!! - if ( IsRespawnItemValid(i) and (ItemRespawnSystem___respawnItemItem[(i)]) == null and DistanceBetweenCoordinates(x , y , (ItemRespawnSystem___respawnItemX[(i)]) , (ItemRespawnSystem___respawnItemY[(i)])) <= range ) then // INLINED!! + exitwhen ( i == (ItemRespawnSystem__respawnItemCounter) ) // INLINED!! + if ( IsRespawnItemValid(i) and (ItemRespawnSystem__respawnItemItem[(i)]) == null and DistanceBetweenCoordinates(x , y , (ItemRespawnSystem__respawnItemX[(i)]) , (ItemRespawnSystem__respawnItemY[(i)])) <= range ) then // INLINED!! call RespawnItem(i) set result=result + 1 endif @@ -64797,19 +64816,7 @@ function GetRaceObjectType takes integer whichRace,integer objectTypeId returns endfunction function GetRaceObjectTypeIncludingDependencyEquivalents takes integer whichRace,integer objectTypeId returns integer - local integer result= GetRaceObjectType(whichRace , objectTypeId) - local integer d= (LoadInteger(WoWReforgedDependencyEquivalents___h, (objectTypeId), 0)) // INLINED!! - local integer i= 0 - local integer max= 0 - if ( result == 0 and d != 0 ) then - set max=s__DependencyEquivalents_count[d] - loop - exitwhen ( i >= max or result != 0 ) - set result=GetRaceObjectType(whichRace , s___DependencyEquivalents_ids[s__DependencyEquivalents_ids[d]+i]) - set i=i + 1 - endloop - endif - return result + return GetRaceObjectType(whichRace , GetPrimaryDependencyEquivalent(objectTypeId)) endfunction function GetRaceObjectTypeId takes integer whichRace,integer objectType returns integer @@ -64817,10 +64824,11 @@ function GetRaceObjectTypeId takes integer whichRace,integer objectType returns endfunction function GetObjectRace takes integer objectTypeId returns integer + local integer id= GetPrimaryDependencyEquivalent(objectTypeId) local integer i= 0 loop exitwhen ( i == udg_MaxRaces ) - if ( GetRaceObjectType(i , objectTypeId) != RACE_OBJECT_TYPE_NONE ) then + if ( GetRaceObjectType(i , id) != RACE_OBJECT_TYPE_NONE ) then return i endif set i=i + 1 @@ -64853,7 +64861,7 @@ function GetObjectRaceType takes integer objectTypeId returns integer local integer result= RACE_OBJECT_TYPE_NONE loop exitwhen ( i >= udg_MaxRaces or result != RACE_OBJECT_TYPE_NONE ) - set tmpType=GetRaceObjectTypeIncludingDependencyEquivalents(i , objectTypeId) + set tmpType=(GetRaceObjectType((i ) , GetPrimaryDependencyEquivalent(( objectTypeId)))) // INLINED!! if ( tmpType != RACE_OBJECT_TYPE_NONE ) then set result=tmpType endif @@ -64868,7 +64876,7 @@ function MapRaceObjectType takes integer objectTypeId,integer targetRace returns local integer tmpType= 0 loop exitwhen ( i == udg_MaxRaces ) - set tmpType=GetRaceObjectTypeIncludingDependencyEquivalents(i , objectTypeId) + set tmpType=(GetRaceObjectType((i ) , GetPrimaryDependencyEquivalent(( objectTypeId)))) // INLINED!! if ( tmpType != RACE_OBJECT_TYPE_NONE ) then return GetRaceObjectTypeId(targetRace , tmpType) endif @@ -66296,7 +66304,7 @@ endfunction //library CinematicsRaces: -function CinematicsRaces___CreateRaceUnit takes integer whichRace,player whichPlayer,group g,integer t,rect whichRect returns nothing +function CinematicsRaces__CreateRaceUnit takes integer whichRace,player whichPlayer,group g,integer t,rect whichRect returns nothing local integer id= GetRaceObjectTypeId(whichRace , t) local unit u= null if ( t != 0 and GenerateId(id) ) then @@ -66331,95 +66339,95 @@ function PlayRaceMusic takes integer whichRace returns nothing endfunction function CreateRacesCinematicGroup takes integer whichRace,player whichPlayer returns nothing - set GenerateIds___generatedIdsCounter=0 // INLINED!! + set GenerateIds__generatedIdsCounter=0 // INLINED!! if ( whichRace > udg_RaceNone and whichRace < (udg_MaxRaces) ) then // INLINED!! - set CinematicsRaces___currentRace=whichRace - set CinematicsRaces___owner=whichPlayer - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_FARM , gg_rct_race_farm) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SCOUT_TOWER , gg_rct_race_scout_tower) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_GUARD_TOWER , gg_rct_race_guard_tower) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_CANNON_TOWER , gg_rct_race_cannon_tower) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_ARCANE_TOWER , gg_rct_race_arcane_tower) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_TIER_1 , gg_rct_race_tier_1) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_TIER_2 , gg_rct_race_tier_2) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_TIER_3 , gg_rct_race_tier_3) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_ALTAR , gg_rct_race_altar) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_BARRACKS , gg_rct_race_barracks) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_BLACK_SMITH , gg_rct_race_black_smith) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_MILL , gg_rct_race_mill) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_WORKSHOP , gg_rct_race_workshop) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_ARCANE_SANCTUM , gg_rct_race_arcane_sanctum) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_GRYPHON_AVIARY , gg_rct_race_gryphon_aviary) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SACRIFICAL_PIT , gg_rct_race_sacrificial_pit) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SHOP , gg_rct_race_shop) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_HOUSING , gg_rct_race_housing) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SHIPYARD , gg_rct_race_shipyard) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SPECIAL_BUILDING , gg_rct_race_special_1) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SPECIAL_BUILDING_2 , gg_rct_race_special_2) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_MALE_CITIZEN , gg_rct_race_citizen_male) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_FEMALE_CITIZEN , gg_rct_race_citizen_female) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_CHILD , gg_rct_race_child) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_PET , gg_rct_race_pet) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_WORKER , gg_rct_race_worker) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_TOWN_HALL_3 , gg_rct_race_town_hall_3) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_TOWN_HALL_4 , gg_rct_race_town_hall_4) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_FOOTMAN , gg_rct_race_footman) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_RIFLEMAN , gg_rct_race_rifleman) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_KNIGHT , gg_rct_race_knight) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_BARRACKS_4 , gg_rct_race_barracks_4) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_PRIEST , gg_rct_race_priest) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SORCERESS , gg_rct_race_sorceress) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SPELLBREAKER , gg_rct_race_spell_breaker) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_ARCANE_SANCTUM_4 , gg_rct_race_arcane_sanctum_4) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_FLYING_MACHINE , gg_rct_race_flying_machine) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SIEGE_ENGINE , gg_rct_race_siege_engine) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_MORTAR , gg_rct_race_mortar) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_WORKSHOP_4 , gg_rct_race_workshop_4) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_GRYPHON , gg_rct_race_gryphon) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_DRAGONHAWK , gg_rct_race_dragonhawk) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_AVIARY_3 , gg_rct_race_aviary_3) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_AVIARY_4 , gg_rct_race_aviary_4) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_TAUREN , gg_rct_race_tauren) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_TRANSPORT_SHIP , gg_rct_race_transport_ship) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_FRIGATE , gg_rct_race_frigate) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_BATTLESHIP , gg_rct_race_battleship) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SHIP_SPECIAL_1 , gg_rct_race_ship_special_1) - call CinematicsRaces___CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces___whichGroup , RACE_OBJECT_TYPE_SHIP_SPECIAL_2 , gg_rct_race_ship_special_2) - endif -endfunction - -function CinematicsRaces___ForGroupRemoveUnit takes nothing returns nothing + set CinematicsRaces__currentRace=whichRace + set CinematicsRaces__owner=whichPlayer + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_FARM , gg_rct_race_farm) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SCOUT_TOWER , gg_rct_race_scout_tower) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_GUARD_TOWER , gg_rct_race_guard_tower) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_CANNON_TOWER , gg_rct_race_cannon_tower) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_ARCANE_TOWER , gg_rct_race_arcane_tower) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_TIER_1 , gg_rct_race_tier_1) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_TIER_2 , gg_rct_race_tier_2) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_TIER_3 , gg_rct_race_tier_3) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_ALTAR , gg_rct_race_altar) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_BARRACKS , gg_rct_race_barracks) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_BLACK_SMITH , gg_rct_race_black_smith) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_MILL , gg_rct_race_mill) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_WORKSHOP , gg_rct_race_workshop) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_ARCANE_SANCTUM , gg_rct_race_arcane_sanctum) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_GRYPHON_AVIARY , gg_rct_race_gryphon_aviary) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SACRIFICAL_PIT , gg_rct_race_sacrificial_pit) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SHOP , gg_rct_race_shop) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_HOUSING , gg_rct_race_housing) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SHIPYARD , gg_rct_race_shipyard) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SPECIAL_BUILDING , gg_rct_race_special_1) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SPECIAL_BUILDING_2 , gg_rct_race_special_2) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_MALE_CITIZEN , gg_rct_race_citizen_male) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_FEMALE_CITIZEN , gg_rct_race_citizen_female) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_CHILD , gg_rct_race_child) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_PET , gg_rct_race_pet) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_WORKER , gg_rct_race_worker) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_TOWN_HALL_3 , gg_rct_race_town_hall_3) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_TOWN_HALL_4 , gg_rct_race_town_hall_4) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_FOOTMAN , gg_rct_race_footman) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_RIFLEMAN , gg_rct_race_rifleman) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_KNIGHT , gg_rct_race_knight) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_BARRACKS_4 , gg_rct_race_barracks_4) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_PRIEST , gg_rct_race_priest) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SORCERESS , gg_rct_race_sorceress) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SPELLBREAKER , gg_rct_race_spell_breaker) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_ARCANE_SANCTUM_4 , gg_rct_race_arcane_sanctum_4) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_FLYING_MACHINE , gg_rct_race_flying_machine) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SIEGE_ENGINE , gg_rct_race_siege_engine) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_MORTAR , gg_rct_race_mortar) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_WORKSHOP_4 , gg_rct_race_workshop_4) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_GRYPHON , gg_rct_race_gryphon) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_DRAGONHAWK , gg_rct_race_dragonhawk) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_AVIARY_3 , gg_rct_race_aviary_3) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_AVIARY_4 , gg_rct_race_aviary_4) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_TAUREN , gg_rct_race_tauren) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_TRANSPORT_SHIP , gg_rct_race_transport_ship) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_FRIGATE , gg_rct_race_frigate) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_BATTLESHIP , gg_rct_race_battleship) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SHIP_SPECIAL_1 , gg_rct_race_ship_special_1) + call CinematicsRaces__CreateRaceUnit(whichRace , whichPlayer , CinematicsRaces__whichGroup , RACE_OBJECT_TYPE_SHIP_SPECIAL_2 , gg_rct_race_ship_special_2) + endif +endfunction + +function CinematicsRaces__ForGroupRemoveUnit takes nothing returns nothing call h__RemoveUnit(GetEnumUnit()) endfunction function CleanupCinematicRace takes nothing returns nothing - call ForGroup(CinematicsRaces___whichGroup, function CinematicsRaces___ForGroupRemoveUnit) - call GroupClear(CinematicsRaces___whichGroup) + call ForGroup(CinematicsRaces__whichGroup, function CinematicsRaces__ForGroupRemoveUnit) + call GroupClear(CinematicsRaces__whichGroup) endfunction function NextCinematicRace takes nothing returns nothing call CleanupCinematicRace() - if ( CinematicsRaces___currentRace >= (udg_MaxRaces) - 1 ) then // INLINED!! - set CinematicsRaces___currentRace=udg_RaceFreelancer + if ( CinematicsRaces__currentRace >= (udg_MaxRaces) - 1 ) then // INLINED!! + set CinematicsRaces__currentRace=udg_RaceFreelancer else - set CinematicsRaces___currentRace=CinematicsRaces___currentRace + 1 + set CinematicsRaces__currentRace=CinematicsRaces__currentRace + 1 endif - call PlayRaceMusic(CinematicsRaces___currentRace) - call CreateRacesCinematicGroup(CinematicsRaces___currentRace , CinematicsRaces___owner) + call PlayRaceMusic(CinematicsRaces__currentRace) + call CreateRacesCinematicGroup(CinematicsRaces__currentRace , CinematicsRaces__owner) endfunction function GetCinematicRaceText takes nothing returns string - return (GetObjectName(udg_RaceTavernItemType[(CinematicsRaces___currentRace)])) + " (" + I2S(CinematicsRaces___currentRace) + "/" + I2S((udg_MaxRaces)) + ")\nUse the left and right arrow keys to change the previewed race. Use the escape key to skip." // INLINED!! + return (GetObjectName(udg_RaceTavernItemType[(CinematicsRaces__currentRace)])) + " (" + I2S(CinematicsRaces__currentRace) + "/" + I2S((udg_MaxRaces)) + ")\nUse the left and right arrow keys to change the previewed race. Use the escape key to skip." // INLINED!! endfunction function PreviousCinematicRace takes nothing returns nothing call CleanupCinematicRace() - if ( CinematicsRaces___currentRace == 0 ) then - set CinematicsRaces___currentRace=(udg_MaxRaces) - 1 // INLINED!! + if ( CinematicsRaces__currentRace == 0 ) then + set CinematicsRaces__currentRace=(udg_MaxRaces) - 1 // INLINED!! else - set CinematicsRaces___currentRace=CinematicsRaces___currentRace - 1 + set CinematicsRaces__currentRace=CinematicsRaces__currentRace - 1 endif - call CreateRacesCinematicGroup(CinematicsRaces___currentRace , CinematicsRaces___owner) + call CreateRacesCinematicGroup(CinematicsRaces__currentRace , CinematicsRaces__owner) endfunction @@ -67085,12 +67093,14 @@ function GetAchievements takes player whichPlayer returns string return msg endfunction -function AddAchievementsToQuest takes quest whichQuest returns nothing +// quest whichQuest +function AddAchievementsToQuest takes nothing returns nothing local integer i= 0 local integer max= (WoWReforgedAchievements__achievementsCounter) // INLINED!! loop exitwhen ( i == max ) - call CreateQuestItemBJ(whichQuest, (s__Achievement_name[WoWReforgedAchievements__achievements[(i)]]) + ": " + (s__Achievement_description[WoWReforgedAchievements__achievements[(i)]])) // INLINED!! +call CreateQuestItem(bj_lastCreatedQuest , ((s__Achievement_name[WoWReforgedAchievements__achievements[(i)]]) + ": " + (s__Achievement_description[WoWReforgedAchievements__achievements[(i)]]))) // INLINED!! + //call CreateQuestItemBJ(whichQuest, GetAchievementName(i) + ": " + GetAchievementDescription(i)) set i=i + 1 endloop endfunction @@ -69751,7 +69761,7 @@ function WoWReforgedRacing__Init takes nothing returns nothing call TriggerAddCondition(WoWReforgedRacing__enterCheckpointTrigger, Condition(function WoWReforgedRacing__TriggerConditionEnterCheckpoint)) - call TriggerAddAction(OnStartGame___startGameTrigger, (function WoWReforgedRacing__HideCheckPointsVisible)) // INLINED!! + call TriggerAddAction(OnStartGame__startGameTrigger, (function WoWReforgedRacing__HideCheckPointsVisible)) // INLINED!! endfunction @@ -69978,7 +69988,7 @@ function AddZone takes nothing returns integer return AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) endfunction -function AddZoneWorldEx takes string name,string icon,string description returns integer +function AddZoneWorldEx takes string name,string icon,string description,string id returns integer local integer z= s__AbstractZone__allocate() set s__AbstractZone_name[z]=name set s__AbstractZone_icon[z]=icon @@ -69994,10 +70004,10 @@ function AddZoneWorldEx takes string name,string icon,string description returns endfunction function AddZoneWorld takes nothing returns integer - return AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) + return AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) endfunction -function AddZoneContinentEx takes string name,string icon,string description returns integer +function AddZoneContinentEx takes string name,string icon,string description,string id returns integer local integer z= s__AbstractZone__allocate() set s__AbstractZone_name[z]=name set s__AbstractZone_icon[z]=icon @@ -70013,7 +70023,7 @@ function AddZoneContinentEx takes string name,string icon,string description ret endfunction function AddZoneContinent takes nothing returns integer - return AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) + return AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) endfunction function ResetZoneCurrentWorld takes nothing returns nothing @@ -71193,6 +71203,7 @@ function WoWReforgedCalendar__Init takes nothing returns nothing set newyear=AddCalendarEvent("New Year" , "-newyear" , ((30 ) + ( ( DECEMBER) - 1 ) * DAYS_PER_MONTH) , 22.0 , ((1 ) + ( ( JANUARY) - 1 ) * DAYS_PER_MONTH) , 3.0 , (5) , (6) , "ReplaceableTextures\\CommandButtons\\BTNFirework.blp") // INLINED!! set thanksgiving=AddCalendarEvent("Thanksgiving" , "-thanksgiving" , ((6 ) + ( ( OCTOBER) - 1 ) * DAYS_PER_MONTH) , 0.0 , ((8 ) + ( ( OCTOBER) - 1 ) * DAYS_PER_MONTH) , 24.0 , 0 , 0 , "ReplaceableTextures\\CommandButtons\\BTNWheat.blp") // INLINED!! set halloween=AddCalendarEvent("Halloween " , "-halloween" , ((30 ) + ( ( OCTOBER) - 1 ) * DAYS_PER_MONTH) , 22.0 , ((1 ) + ( ( NOVEMBER) - 1 ) * DAYS_PER_MONTH) , 3.0 , 0 , 0 , "ReplaceableTextures\\CommandButtons\\BTNPumpkinMonster.blp") // INLINED!! + set carnival=AddCalendarEvent("Carnival" , "-carnival" , ((14 ) + ( ( FEBRUARY) - 1 ) * DAYS_PER_MONTH) , 0.0 , ((4 ) + ( ( MARCH) - 1 ) * DAYS_PER_MONTH) , 24.0 , 0 , 0 , "ReplaceableTextures\\CommandButtons\\BTNMasks.blp.blp") // INLINED!! endfunction @@ -71949,7 +71960,7 @@ function WoWReforgedProperties__PurchaseProperty takes integer index,unit whichU call EnablePagedButtons(whichUnit) call SetPagedButtonsSlotsPerPage(whichUnit , 7) - set GenerateIds___generatedIdsCounter=0 // INLINED!! + set GenerateIds__generatedIdsCounter=0 // INLINED!! call NextPagedButtonsPage(whichUnit , "(Units)") call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_TOWN_HALL_3) call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_TOWN_HALL_4) @@ -72613,7 +72624,7 @@ function AddItemToBackpackForPlayer takes player whichPlayer,item whichItem retu call h__DisplayTimedTextToPlayer(whichPlayer, 0.00, 0.00, 4.00, ( "Added " + GetItemName(whichItem) + " to backpack bag " + I2S(i + 1) + " to empty slot " + I2S(j + 1) + "." )) endif call SetBackpackItemFromItem(whichItem , index) - set itemRespawn=(ItemRespawnSystem___GetItemRespawnIndexByHandleID(GetHandleId((whichItem)))) // INLINED!! + set itemRespawn=(ItemRespawnSystem__GetItemRespawnIndexByHandleID(GetHandleId((whichItem)))) // INLINED!! call h__RemoveItem(whichItem) set whichItem=null if ( itemRespawn != - 1 ) then @@ -72627,7 +72638,7 @@ function AddItemToBackpackForPlayer takes player whichPlayer,item whichItem retu call h__DisplayTimedTextToPlayer(whichPlayer, 0.00, 0.00, 4.00, ( "Added " + GetItemName(whichItem) + " to backpack bag " + I2S(i + 1) + " by stacking it to slot " + I2S(j + 1) + "." )) endif set WoWReforgedBackpacks___BackpackItemCharges[index]=WoWReforgedBackpacks___BackpackItemCharges[index] + GetItemCharges(whichItem) - set itemRespawn=(ItemRespawnSystem___GetItemRespawnIndexByHandleID(GetHandleId((whichItem)))) // INLINED!! + set itemRespawn=(ItemRespawnSystem__GetItemRespawnIndexByHandleID(GetHandleId((whichItem)))) // INLINED!! call h__RemoveItem(whichItem) set whichItem=null if ( itemRespawn != - 1 ) then @@ -73493,7 +73504,6 @@ function InitRaceHuman takes nothing returns nothing // researches call AddResearch(UPG_HUMAN_BACKPACK , r) - call AddResearch(UPG_GOLD , r) call AddResearch(UPG_MASONRY , r) call AddResearch(UPG_SIGHT , r) call AddResearch(UPG_DEFEND , r) @@ -73505,11 +73515,9 @@ function InitRaceHuman takes nothing returns nothing call AddResearch(UPG_MELEE , r) call AddResearch(UPG_RANGED , r) call AddResearch(UPG_BANDIT_WOOD , r) - call AddResearch(UPG_ARTILLERY , r) call AddResearch(UPG_GUN_RANGE , r) call AddResearch(UPG_WOOD , r) call AddResearch(UPG_SENTINEL , r) - call AddResearch(UPG_SCATTER , r) call AddResearch(UPG_BOMBS , r) call AddResearch(UPG_HAMMERS , r) call AddResearch(UPG_CONT_MAGIC , r) @@ -79376,7 +79384,7 @@ function WoWReforgedSkillUI__Init takes nothing returns nothing call TriggerAddAction(WoWReforgedSkillUI__tmpTrigger, function WoWReforgedSkillUI__TriggerActionUpdateSkillPointsUI) // Makes sure no events are triggered before the UI is restored after loading the game. - call TriggerAddAction(FrameLoader___actionTrigger, (function CreateAndEnableSkillUI)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function CreateAndEnableSkillUI)) // INLINED!! //call FrameSaverAddEx(function AboutToSave, function AfterSaving) endfunction @@ -79658,12 +79666,12 @@ function GenerateSaveCode takes player whichPlayer,string playerName,boolean sin endfunction function GenerateSaveCodeNewOpLimit takes nothing returns nothing - call GenerateSaveCode(WoWReforgedCheatsSaveCodes___generateSaveCodePlayer , WoWReforgedCheatsSaveCodes___generateSaveCodePlayerName , WoWReforgedCheatsSaveCodes___generateSaveCodeSinglePlayer , WoWReforgedCheatsSaveCodes___generateSaveCodeWarlord , WoWReforgedCheatsSaveCodes___generateSaveCodeXpRate) + call GenerateSaveCode(WoWReforgedCheatsSaveCodes__generateSaveCodePlayer , WoWReforgedCheatsSaveCodes__generateSaveCodePlayerName , WoWReforgedCheatsSaveCodes__generateSaveCodeSinglePlayer , WoWReforgedCheatsSaveCodes__generateSaveCodeWarlord , WoWReforgedCheatsSaveCodes__generateSaveCodeXpRate) endfunction function GetSaveCodeTheElvenClanNewOpLimit takes nothing returns nothing call h__BJDebugMsg("Generating savecodes for TheElvenClan") - call GetSaveCodeTheElvenClan(WoWReforgedCheatsSaveCodes___generateSaveCodeClanSinglePlayer , WoWReforgedCheatsSaveCodes___generateSaveCodeClanPlayerName) + call GetSaveCodeTheElvenClan(WoWReforgedCheatsSaveCodes__generateSaveCodeClanSinglePlayer , WoWReforgedCheatsSaveCodes__generateSaveCodeClanPlayerName) call h__BJDebugMsg("Done generating savecodes for TheElvenClan") endfunction @@ -79710,17 +79718,17 @@ function GenerateSaveCodes takes player whichPlayer returns nothing call h__BJDebugMsg("Freelancer") endif - set WoWReforgedCheatsSaveCodes___generateSaveCodePlayer=whichPlayer - set WoWReforgedCheatsSaveCodes___generateSaveCodePlayerName=playerName[i] - set WoWReforgedCheatsSaveCodes___generateSaveCodeSinglePlayer=singlePlayer[j] - set WoWReforgedCheatsSaveCodes___generateSaveCodeWarlord=warlord[k] - set WoWReforgedCheatsSaveCodes___generateSaveCodeXpRate=xpRate + set WoWReforgedCheatsSaveCodes__generateSaveCodePlayer=whichPlayer + set WoWReforgedCheatsSaveCodes__generateSaveCodePlayerName=playerName[i] + set WoWReforgedCheatsSaveCodes__generateSaveCodeSinglePlayer=singlePlayer[j] + set WoWReforgedCheatsSaveCodes__generateSaveCodeWarlord=warlord[k] + set WoWReforgedCheatsSaveCodes__generateSaveCodeXpRate=xpRate call ForForce(bj_FORCE_PLAYER[0], (function GenerateSaveCodeNewOpLimit)) // INLINED!! set k=k + 1 endloop call h__BJDebugMsg("Clan Save Code") - set WoWReforgedCheatsSaveCodes___generateSaveCodeClanSinglePlayer=singlePlayer[j] - set WoWReforgedCheatsSaveCodes___generateSaveCodeClanPlayerName=playerName[i] + set WoWReforgedCheatsSaveCodes__generateSaveCodeClanSinglePlayer=singlePlayer[j] + set WoWReforgedCheatsSaveCodes__generateSaveCodeClanPlayerName=playerName[i] call ForForce(bj_FORCE_PLAYER[0], (function GetSaveCodeTheElvenClanNewOpLimit)) // INLINED!! call h__BJDebugMsg("After Generating Clan Save Code") set j=j + 1 @@ -82195,7 +82203,7 @@ function WoWReforgedWebsite__GenerateHeroes takes nothing returns nothing local integer i= 0 local integer max= (udg_HeroUnitTypeIndex) // INLINED!! - set GenerateIds___generatedIdsCounter=0 // INLINED!! + set GenerateIds__generatedIdsCounter=0 // INLINED!! call FileStart() @@ -82546,7 +82554,7 @@ endfunction function WoWReforgedWebsite__GenerateUnit takes integer objectTypeId,integer index returns nothing set WoWReforgedWebsite__tmpInteger=objectTypeId - set WoWReforgedWebsite__tmpInteger2=GetObjectRace(WoWReforgedWebsite__tmpInteger) + set WoWReforgedWebsite__tmpInteger2=GetObjectRace(objectTypeId) set WoWReforgedWebsite__tmpInteger3=index call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedWebsite__OpLimitGenerateUnit)) // INLINED!! endfunction @@ -82624,7 +82632,7 @@ function WoWReforgedWebsite__GenerateUnits takes nothing returns nothing call FileStart() call Preload(("")) // INLINED!! - set GenerateIds___generatedIdsCounter=0 // INLINED!! + set GenerateIds__generatedIdsCounter=0 // INLINED!! set index=WoWReforgedWebsite__GenerateNonCreepUnits() call WoWReforgedWebsite__GenerateCreepUnits(index) @@ -82781,7 +82789,7 @@ function WoWReforgedWebsite__GenerateBuildings takes nothing returns nothing call FileStart() call Preload(("")) // INLINED!! - set GenerateIds___generatedIdsCounter=0 // INLINED!! + set GenerateIds__generatedIdsCounter=0 // INLINED!! call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedWebsite__GenerateNeutralBuildings)) // INLINED!! @@ -82919,7 +82927,7 @@ function WoWReforgedWebsite__GenerateItems takes nothing returns nothing call FileStart() call Preload(("")) // INLINED!! - set GenerateIds___generatedIdsCounter=0 // INLINED!! + set GenerateIds__generatedIdsCounter=0 // INLINED!! // contain race and profession items // split because of huge number @@ -82949,7 +82957,7 @@ function WoWReforgedWebsite__GenerateAllRaceIconsEx takes integer whichRace retu local integer j= 0 local integer max2= 0 - set GenerateIds___generatedIdsCounter=0 // INLINED!! + set GenerateIds__generatedIdsCounter=0 // INLINED!! // heroes set i=0 loop @@ -83126,7 +83134,7 @@ function WoWReforgedWebsite__GenerateRaceTechnologyTreeEx takes integer whichRac local integer i= 0 local integer max= 0 - set GenerateIds___generatedIdsCounter=0 // INLINED!! + set GenerateIds__generatedIdsCounter=0 // INLINED!! // tier 1 call Preload(("")) // INLINED!! @@ -83473,7 +83481,7 @@ function WoWReforgedWebsite__GenerateClans takes nothing returns nothing local integer max2= 0 local integer index= 0 - set GenerateIds___generatedIdsStringsCounter=0 // INLINED!! + set GenerateIds__generatedIdsStringsCounter=0 // INLINED!! call FileStart() call Preload(("")) // INLINED!! @@ -84137,6 +84145,19 @@ function WoWReforgedWebsite__GenerateZoneEx takes integer i returns nothing call Preload(("")) // INLINED!! call Preload(((s__AbstractZone_name[(zone)]))) // INLINED!! call Preload(("")) // INLINED!! + + // type + call Preload(("")) // INLINED!! + if ( s__AbstractZone_zoneType[zone] == ZONE_TYPE_ZONE ) then + call Preload(("Zone")) // INLINED!! + elseif ( s__AbstractZone_zoneType[zone] == ZONE_TYPE_CONTINENT ) then + call Preload(("Continent")) // INLINED!! + elseif ( s__AbstractZone_zoneType[zone] == ZONE_TYPE_WORLD ) then + call Preload(("World")) // INLINED!! + else + call Preload(("???")) // INLINED!! + endif + call Preload(("")) // INLINED!! // size call Preload(("")) // INLINED!! @@ -84974,6 +84995,8 @@ function WoWReforgedWebsite__Init takes nothing returns nothing call WoWReforgedWebsite__AddIgnoredAbility('A0BD') call WoWReforgedWebsite__AddIgnoredAbility('S01F') call WoWReforgedWebsite__AddIgnoredAbility('Bmil') + call WoWReforgedWebsite__AddIgnoredAbility('S01G') + call WoWReforgedWebsite__AddIgnoredAbility('S00P') endfunction @@ -85238,18 +85261,18 @@ endfunction function SetTooltip takes player whichPlayer,string tooltip returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, tooltip) + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, tooltip) endif endfunction function SetHeroesText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxHeroes, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxHeroes, txt) endif endfunction function GetHeroesText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxHeroes) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxHeroes) endfunction function UpdateHeroesText takes player whichPlayer returns nothing @@ -85281,12 +85304,12 @@ endfunction function SetItemsText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxItems, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxItems, txt) endif endfunction function GetItemsText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxItems) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxItems) endfunction function UpdateItemsText takes player whichPlayer returns nothing @@ -85313,12 +85336,12 @@ endfunction function SetUnitsText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxUnits, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxUnits, txt) endif endfunction function GetUnitsText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxUnits) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxUnits) endfunction function UpdateUnitsText takes player whichPlayer returns nothing @@ -85345,12 +85368,12 @@ endfunction function SetResearchesText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxResearches, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxResearches, txt) endif endfunction function GetResearchesText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxResearches) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxResearches) endfunction function UpdateResearchesText takes player whichPlayer returns nothing @@ -85376,12 +85399,12 @@ endfunction function SetBuildingsText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxBuildings, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxBuildings, txt) endif endfunction function GetBuildingsText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxBuildings) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxBuildings) endfunction function UpdateBuildingsText takes player whichPlayer returns nothing @@ -85407,12 +85430,12 @@ endfunction function SetResourcesText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxResources, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxResources, txt) endif endfunction function GetResourcesText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxResources) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxResources) endfunction function UpdateResourcesText takes player whichPlayer returns nothing @@ -85442,12 +85465,12 @@ endfunction function SetClanText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxClan, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxClan, txt) endif endfunction function GetClanText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxClan) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxClan) endfunction function UpdateClanText takes player whichPlayer returns nothing @@ -85472,21 +85495,21 @@ function UpdateAll takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) call UpdateHeroesText(whichPlayer) call UpdateItemsText(whichPlayer) - set WoWReforgedSaveCodeUI___itemsIndex=0 + set WoWReforgedSaveCodeUI__itemsIndex=0 call UpdateUnitsText(whichPlayer) - set WoWReforgedSaveCodeUI___unitsIndex=0 + set WoWReforgedSaveCodeUI__unitsIndex=0 call UpdateResearchesText(whichPlayer) - set WoWReforgedSaveCodeUI___researchesIndex=0 + set WoWReforgedSaveCodeUI__researchesIndex=0 call UpdateBuildingsText(whichPlayer) - set WoWReforgedSaveCodeUI___buildingsIndex=0 + set WoWReforgedSaveCodeUI__buildingsIndex=0 call UpdateResourcesText(whichPlayer) call UpdateClanText(whichPlayer) if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ItemsEditIndex, I2S(WoWReforgedSaveCodeUI___itemsIndex)) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UnitsEditIndex, I2S(WoWReforgedSaveCodeUI___unitsIndex)) - call BlzFrameSetText(WoWReforgedSaveCodeUI___ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI___researchesIndex)) - call BlzFrameSetText(WoWReforgedSaveCodeUI___BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI___buildingsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ItemsEditIndex, I2S(WoWReforgedSaveCodeUI__itemsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UnitsEditIndex, I2S(WoWReforgedSaveCodeUI__unitsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI__researchesIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI__buildingsIndex)) endif endfunction @@ -85685,78 +85708,78 @@ function SyncLoadClan takes player whichPlayer returns nothing endfunction function SetSaveCodeUIVisibleAll takes boolean visible returns nothing - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BackgroundFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___TitleFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___TooltipBackgroundFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___TooltipLabelFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BackgroundFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__TitleFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__TooltipBackgroundFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__TooltipLabelFrame, visible) // heroes - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameHeroes, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxHeroes, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameHeroes, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxHeroes, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, visible) // items - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameItems, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditIndex, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditArrowUp, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditArrowDown, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxItems, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameItems, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameItems, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameItems, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditIndex, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditArrowUp, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditArrowDown, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxItems, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameItems, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameItems, visible) // units - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameUnits, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditIndex, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditArrowUp, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditArrowDown, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxUnits, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameUnits, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameUnits, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditIndex, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditArrowUp, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditArrowDown, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxUnits, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameUnits, visible) // researches - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameResearches, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditIndex, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditArrowUp, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditArrowDown, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxResearches, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameResearches, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameResearches, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditIndex, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditArrowUp, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditArrowDown, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxResearches, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameResearches, visible) // buildings - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameBuildings, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditIndex, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditArrowUp, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditArrowDown, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxBuildings, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameBuildings, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditIndex, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditArrowUp, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditArrowDown, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxBuildings, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, visible) // resources - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameResources, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxResources, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameResources, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameResources, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameResources, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxResources, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameResources, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameResources, visible) // clan - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameClan, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxClan, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameClan, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameClan, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameClan, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxClan, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameClan, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameClan, visible) // directory - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameDirectory, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxDirectory, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameDirectory, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxDirectory, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, visible) // all - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameAll, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameAll, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameAll, visible) // close - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___CloseButton, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__CloseButton, visible) endfunction function SetSaveCodeUIVisible takes player whichPlayer,boolean visible returns nothing @@ -85793,7 +85816,7 @@ function UpdateFunctionHeroes takes nothing returns nothing //call BJDebugMsg("Click update heroes") call UpdateHeroesText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for heroes.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for heroes.") endif endfunction @@ -85805,9 +85828,9 @@ function SaveCodeEnterFunctionItemsIndex takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSaveCodeUI___itemsIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI___ItemsEditIndex)))) + set WoWReforgedSaveCodeUI__itemsIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI__ItemsEditIndex)))) - call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___itemsIndex) + call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__itemsIndex) endfunction function ItemsUpFunction takes nothing returns nothing @@ -85815,17 +85838,17 @@ function ItemsUpFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___itemsIndex == 0 ) then - set WoWReforgedSaveCodeUI___itemsIndex=(3 + BACKPACK_MAX_PAGES + 3) // INLINED!! + if ( WoWReforgedSaveCodeUI__itemsIndex == 0 ) then + set WoWReforgedSaveCodeUI__itemsIndex=(3 + BACKPACK_MAX_PAGES + 3) // INLINED!! else - set WoWReforgedSaveCodeUI___itemsIndex=WoWReforgedSaveCodeUI___itemsIndex - 1 + set WoWReforgedSaveCodeUI__itemsIndex=WoWReforgedSaveCodeUI__itemsIndex - 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ItemsEditIndex, I2S(WoWReforgedSaveCodeUI___itemsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ItemsEditIndex, I2S(WoWReforgedSaveCodeUI__itemsIndex)) endif - call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___itemsIndex) + call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__itemsIndex) endfunction function ItemsDownFunction takes nothing returns nothing @@ -85833,17 +85856,17 @@ function ItemsDownFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___itemsIndex == (3 + BACKPACK_MAX_PAGES + 3) ) then // INLINED!! - set WoWReforgedSaveCodeUI___itemsIndex=0 + if ( WoWReforgedSaveCodeUI__itemsIndex == (3 + BACKPACK_MAX_PAGES + 3) ) then // INLINED!! + set WoWReforgedSaveCodeUI__itemsIndex=0 else - set WoWReforgedSaveCodeUI___itemsIndex=WoWReforgedSaveCodeUI___itemsIndex + 1 + set WoWReforgedSaveCodeUI__itemsIndex=WoWReforgedSaveCodeUI__itemsIndex + 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ItemsEditIndex, I2S(WoWReforgedSaveCodeUI___itemsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ItemsEditIndex, I2S(WoWReforgedSaveCodeUI__itemsIndex)) endif - call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___itemsIndex) + call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__itemsIndex) endfunction function EditBoxEnterItems takes player whichPlayer returns nothing @@ -85868,9 +85891,9 @@ function SaveCodeEnterFunctionUnitsIndex takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSaveCodeUI___unitsIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI___UnitsEditIndex)))) + set WoWReforgedSaveCodeUI__unitsIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI__UnitsEditIndex)))) - call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___unitsIndex) + call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__unitsIndex) endfunction function UnitsUpFunction takes nothing returns nothing @@ -85878,17 +85901,17 @@ function UnitsUpFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___unitsIndex == 0 ) then - set WoWReforgedSaveCodeUI___unitsIndex=(8) // INLINED!! + if ( WoWReforgedSaveCodeUI__unitsIndex == 0 ) then + set WoWReforgedSaveCodeUI__unitsIndex=(8) // INLINED!! else - set WoWReforgedSaveCodeUI___unitsIndex=WoWReforgedSaveCodeUI___unitsIndex - 1 + set WoWReforgedSaveCodeUI__unitsIndex=WoWReforgedSaveCodeUI__unitsIndex - 1 endif if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___UnitsEditIndex, I2S(WoWReforgedSaveCodeUI___unitsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UnitsEditIndex, I2S(WoWReforgedSaveCodeUI__unitsIndex)) endif - call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___unitsIndex) + call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__unitsIndex) endfunction function UnitsDownFunction takes nothing returns nothing @@ -85896,17 +85919,17 @@ function UnitsDownFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___unitsIndex == (8) ) then // INLINED!! - set WoWReforgedSaveCodeUI___unitsIndex=0 + if ( WoWReforgedSaveCodeUI__unitsIndex == (8) ) then // INLINED!! + set WoWReforgedSaveCodeUI__unitsIndex=0 else - set WoWReforgedSaveCodeUI___unitsIndex=WoWReforgedSaveCodeUI___unitsIndex + 1 + set WoWReforgedSaveCodeUI__unitsIndex=WoWReforgedSaveCodeUI__unitsIndex + 1 endif if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___UnitsEditIndex, I2S(WoWReforgedSaveCodeUI___unitsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UnitsEditIndex, I2S(WoWReforgedSaveCodeUI__unitsIndex)) endif - call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___unitsIndex) + call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__unitsIndex) endfunction function EditBoxEnterUnits takes player whichPlayer returns nothing @@ -85921,7 +85944,7 @@ function UpdateFunctionUnits takes nothing returns nothing //call BJDebugMsg("Click update units") call UpdateUnitsText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for units.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for units.") endif endfunction @@ -85933,9 +85956,9 @@ function SaveCodeEnterFunctionResearchesIndex takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSaveCodeUI___researchesIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI___ResearchesEditIndex)))) + set WoWReforgedSaveCodeUI__researchesIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI__ResearchesEditIndex)))) - call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___researchesIndex) + call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__researchesIndex) endfunction function ResearchesUpFunction takes nothing returns nothing @@ -85943,17 +85966,17 @@ function ResearchesUpFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___researchesIndex == 0 ) then - set WoWReforgedSaveCodeUI___researchesIndex=(8) // INLINED!! + if ( WoWReforgedSaveCodeUI__researchesIndex == 0 ) then + set WoWReforgedSaveCodeUI__researchesIndex=(8) // INLINED!! else - set WoWReforgedSaveCodeUI___researchesIndex=WoWReforgedSaveCodeUI___researchesIndex - 1 + set WoWReforgedSaveCodeUI__researchesIndex=WoWReforgedSaveCodeUI__researchesIndex - 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI___researchesIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI__researchesIndex)) endif - call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___researchesIndex) + call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__researchesIndex) endfunction function ResearchesDownFunction takes nothing returns nothing @@ -85961,17 +85984,17 @@ function ResearchesDownFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___researchesIndex == (8) ) then // INLINED!! - set WoWReforgedSaveCodeUI___researchesIndex=0 + if ( WoWReforgedSaveCodeUI__researchesIndex == (8) ) then // INLINED!! + set WoWReforgedSaveCodeUI__researchesIndex=0 else - set WoWReforgedSaveCodeUI___researchesIndex=WoWReforgedSaveCodeUI___researchesIndex + 1 + set WoWReforgedSaveCodeUI__researchesIndex=WoWReforgedSaveCodeUI__researchesIndex + 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI___researchesIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI__researchesIndex)) endif - call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___researchesIndex) + call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__researchesIndex) endfunction function EditBoxEnterResearches takes player whichPlayer returns nothing @@ -85987,7 +86010,7 @@ function UpdateFunctionResearches takes nothing returns nothing call UpdateResearchesText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for researches.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for researches.") endif endfunction @@ -85999,9 +86022,9 @@ function SaveCodeEnterFunctionBuildingsIndex takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSaveCodeUI___researchesIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI___BuildingsEditIndex)))) + set WoWReforgedSaveCodeUI__researchesIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI__BuildingsEditIndex)))) - call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___researchesIndex) + call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__researchesIndex) endfunction function BuildingsUpFunction takes nothing returns nothing @@ -86009,17 +86032,17 @@ function BuildingsUpFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___buildingsIndex == 0 ) then - set WoWReforgedSaveCodeUI___buildingsIndex=(8) // INLINED!! + if ( WoWReforgedSaveCodeUI__buildingsIndex == 0 ) then + set WoWReforgedSaveCodeUI__buildingsIndex=(8) // INLINED!! else - set WoWReforgedSaveCodeUI___buildingsIndex=WoWReforgedSaveCodeUI___buildingsIndex - 1 + set WoWReforgedSaveCodeUI__buildingsIndex=WoWReforgedSaveCodeUI__buildingsIndex - 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI___buildingsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI__buildingsIndex)) endif - call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___buildingsIndex) + call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__buildingsIndex) endfunction function BuildingsDownFunction takes nothing returns nothing @@ -86027,17 +86050,17 @@ function BuildingsDownFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___buildingsIndex == (8) ) then // INLINED!! - set WoWReforgedSaveCodeUI___buildingsIndex=0 + if ( WoWReforgedSaveCodeUI__buildingsIndex == (8) ) then // INLINED!! + set WoWReforgedSaveCodeUI__buildingsIndex=0 else - set WoWReforgedSaveCodeUI___buildingsIndex=WoWReforgedSaveCodeUI___buildingsIndex + 1 + set WoWReforgedSaveCodeUI__buildingsIndex=WoWReforgedSaveCodeUI__buildingsIndex + 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI___buildingsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI__buildingsIndex)) endif - call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___buildingsIndex) + call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__buildingsIndex) endfunction function EditBoxEnterBuildings takes player whichPlayer returns nothing @@ -86053,7 +86076,7 @@ function UpdateFunctionBuildings takes nothing returns nothing call UpdateBuildingsText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for buildings.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for buildings.") endif endfunction @@ -86075,7 +86098,7 @@ function UpdateFunctionResources takes nothing returns nothing call UpdateResourcesText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for resources.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for resources.") endif endfunction @@ -86096,7 +86119,7 @@ function UpdateFunctionClan takes nothing returns nothing call UpdateClanText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for clan.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for clan.") endif endfunction @@ -86116,7 +86139,7 @@ function LoadAllFunctionAll takes nothing returns nothing local string fileName= GetSaveCodeAllFileNameForPlayer(GetTriggerPlayer()) //call BJDebugMsg("Click load auto") if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Trying to load all savecodes from \"" + fileName + "\".") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Trying to load all savecodes from \"" + fileName + "\".") endif call GetSaveCodeAllTextFile(GetTriggerPlayer()) endfunction @@ -86125,21 +86148,21 @@ function WriteAllFunctionAll takes nothing returns nothing local string fileName= GetSaveCodeAllFileNameForPlayer(GetTriggerPlayer()) //call BJDebugMsg("Click write auto") if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Saved all save codes into \"" + fileName + "\".") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Saved all save codes into \"" + fileName + "\".") endif call CreateSaveCodeAllTextFile(GetTriggerPlayer()) endfunction -function WoWReforgedSaveCodeUI___UpdateFunctionAll takes nothing returns nothing +function WoWReforgedSaveCodeUI__UpdateFunctionAll takes nothing returns nothing //call BJDebugMsg("Click update all") call UpdateAll(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated all savecodes.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated all savecodes.") endif endfunction -function WoWReforgedSaveCodeUI___LoadFunctionAll takes nothing returns nothing +function WoWReforgedSaveCodeUI__LoadFunctionAll takes nothing returns nothing //call BJDebugMsg("Click load all") call SyncLoadHeroes(GetTriggerPlayer()) call SyncLoadItems(GetTriggerPlayer()) @@ -86149,11 +86172,11 @@ function WoWReforgedSaveCodeUI___LoadFunctionAll takes nothing returns nothing call SyncLoadClan(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Tried to load all savecodes.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Tried to load all savecodes.") endif endfunction -function WoWReforgedSaveCodeUI___CloseFunction takes nothing returns nothing +function WoWReforgedSaveCodeUI__CloseFunction takes nothing returns nothing call SetSaveCodeUIVisible((GetTriggerPlayer()) , false) // INLINED!! endfunction @@ -86161,530 +86184,530 @@ function CreateSaveCodeUI takes nothing returns nothing local real x= 0.0 local real y= 0.0 - set WoWReforgedSaveCodeUI___BackgroundFrame=CreateFullScreenFrame() + set WoWReforgedSaveCodeUI__BackgroundFrame=CreateFullScreenFrame() - set WoWReforgedSaveCodeUI___TitleFrame=CreateFullScreenTitle("SaveGuiTitle" , "Save Codes") + set WoWReforgedSaveCodeUI__TitleFrame=CreateFullScreenTitle("SaveGuiTitle" , "Save Codes") - set WoWReforgedSaveCodeUI___TooltipBackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___TooltipBackgroundFrame, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___TOOLTIP_X, WoWReforgedSaveCodeUI___LINE_START_Y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___TooltipBackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___TOOLTIP_X + WoWReforgedSaveCodeUI___TOOLTIP_WIDTH, WoWReforgedSaveCodeUI___LINE_START_Y - WoWReforgedSaveCodeUI___TOOLTIP_HEIGHT) + set WoWReforgedSaveCodeUI__TooltipBackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__TooltipBackgroundFrame, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__TOOLTIP_X, WoWReforgedSaveCodeUI__LINE_START_Y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__TooltipBackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__TOOLTIP_X + WoWReforgedSaveCodeUI__TOOLTIP_WIDTH, WoWReforgedSaveCodeUI__LINE_START_Y - WoWReforgedSaveCodeUI__TOOLTIP_HEIGHT) - set WoWReforgedSaveCodeUI___TooltipLabelFrame=BlzCreateFrameByType("TEXT", "SaveGuiTooltipLabel", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___TooltipLabelFrame, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___TOOLTIP_LABEL_X, WoWReforgedSaveCodeUI___TOOLTIP_LABEL_Y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___TooltipLabelFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___TOOLTIP_LABEL_X + WoWReforgedSaveCodeUI___TOOLTIP_LABEL_WIDTH, WoWReforgedSaveCodeUI___TOOLTIP_LABEL_Y - WoWReforgedSaveCodeUI___TOOLTIP_LABEL_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Save Code Info") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___TooltipLabelFrame, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__TooltipLabelFrame=BlzCreateFrameByType("TEXT", "SaveGuiTooltipLabel", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__TooltipLabelFrame, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__TOOLTIP_LABEL_X, WoWReforgedSaveCodeUI__TOOLTIP_LABEL_Y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__TooltipLabelFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__TOOLTIP_LABEL_X + WoWReforgedSaveCodeUI__TOOLTIP_LABEL_WIDTH, WoWReforgedSaveCodeUI__TOOLTIP_LABEL_Y - WoWReforgedSaveCodeUI__TOOLTIP_LABEL_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Save Code Info") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__TooltipLabelFrame, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) // line 1: heroes - set y=WoWReforgedSaveCodeUI___LINE_START_Y + set y=WoWReforgedSaveCodeUI__LINE_START_Y - set WoWReforgedSaveCodeUI___LabelFrameHeroes=BlzCreateFrameByType("TEXT", "SaveGuiLabelHeroes", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameHeroes, "|cffFFCC00Heroes:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameHeroes, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__LabelFrameHeroes=BlzCreateFrameByType("TEXT", "SaveGuiLabelHeroes", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameHeroes, "|cffFFCC00Heroes:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameHeroes, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - set WoWReforgedSaveCodeUI___EditBoxHeroes=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxHeroes, "-load xxx") + set WoWReforgedSaveCodeUI__EditBoxHeroes=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxHeroes, "-load xxx") - set WoWReforgedSaveCodeUI___TriggerEditBoxHeroes=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxHeroes, function SaveCodeEnterFunctionHeroes) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxHeroes, WoWReforgedSaveCodeUI___EditBoxHeroes, FRAMEEVENT_EDITBOX_ENTER) + set WoWReforgedSaveCodeUI__TriggerEditBoxHeroes=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxHeroes, function SaveCodeEnterFunctionHeroes) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxHeroes, WoWReforgedSaveCodeUI__EditBoxHeroes, FRAMEEVENT_EDITBOX_ENTER) - set WoWReforgedSaveCodeUI___EnterTriggerHeroes=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerHeroes, WoWReforgedSaveCodeUI___EditBoxHeroes, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerHeroes, function SaveCodeEnterFunctionHeroes) + set WoWReforgedSaveCodeUI__EnterTriggerHeroes=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerHeroes, WoWReforgedSaveCodeUI__EditBoxHeroes, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerHeroes, function SaveCodeEnterFunctionHeroes) - set WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, "|cffFCD20DUpdate|r") + set WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, "|cffFCD20DUpdate|r") - set WoWReforgedSaveCodeUI___UpdateTriggerHeroes=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerHeroes, WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerHeroes, function UpdateFunctionHeroes) + set WoWReforgedSaveCodeUI__UpdateTriggerHeroes=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerHeroes, WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerHeroes, function UpdateFunctionHeroes) - set WoWReforgedSaveCodeUI___LoadButtonFrameHeroes=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, "|cffFCD20DLoad|r") + set WoWReforgedSaveCodeUI__LoadButtonFrameHeroes=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, "|cffFCD20DLoad|r") - set WoWReforgedSaveCodeUI___LoadTriggerHeroes=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerHeroes, WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerHeroes, function LoadFunctionHeroes) + set WoWReforgedSaveCodeUI__LoadTriggerHeroes=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerHeroes, WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerHeroes, function LoadFunctionHeroes) // line 2: items - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameItems=BlzCreateFrameByType("TEXT", "SaveGuiLabelItems", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameItems, "|cffFFCC00Items:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameItems, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___EditBoxItems=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxItems, "-load xxx") - - set WoWReforgedSaveCodeUI___TriggerEditBoxItems=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxItems, function SaveCodeEnterFunctionItems) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxItems, WoWReforgedSaveCodeUI___EditBoxItems, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___EnterTriggerItems=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerItems, WoWReforgedSaveCodeUI___EditBoxItems, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerItems, function SaveCodeEnterFunctionItems) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameItems=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameItems, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerItems=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerItems, WoWReforgedSaveCodeUI___UpdateButtonFrameItems, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerItems, function UpdateFunctionItems) - - set WoWReforgedSaveCodeUI___LoadButtonFrameItems=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameItems, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerItems=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerItems, WoWReforgedSaveCodeUI___LoadButtonFrameItems, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerItems, function LoadFunctionItems) - - set WoWReforgedSaveCodeUI___ItemsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___INDEX_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___ItemsEditIndex, "0") - - set WoWReforgedSaveCodeUI___TriggerEditBoxItemsIndex=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxItemsIndex, function SaveCodeEnterFunctionItemsIndex) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxItemsIndex, WoWReforgedSaveCodeUI___ItemsEditIndex, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___ItemsEditArrowUp=BlzCreateFrameByType("BUTTON", "ItemsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_UP_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - - set WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "ItemsUpFrame", WoWReforgedSaveCodeUI___ItemsEditArrowUp, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame, WoWReforgedSaveCodeUI___ItemsEditArrowUp) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - - set WoWReforgedSaveCodeUI___ItemsUpTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___ItemsUpTrigger, WoWReforgedSaveCodeUI___ItemsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___ItemsUpTrigger, function ItemsUpFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameItems=BlzCreateFrameByType("TEXT", "SaveGuiLabelItems", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameItems, "|cffFFCC00Items:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameItems, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__EditBoxItems=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxItems, "-load xxx") + + set WoWReforgedSaveCodeUI__TriggerEditBoxItems=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxItems, function SaveCodeEnterFunctionItems) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxItems, WoWReforgedSaveCodeUI__EditBoxItems, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__EnterTriggerItems=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerItems, WoWReforgedSaveCodeUI__EditBoxItems, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerItems, function SaveCodeEnterFunctionItems) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameItems=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameItems, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerItems=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerItems, WoWReforgedSaveCodeUI__UpdateButtonFrameItems, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerItems, function UpdateFunctionItems) + + set WoWReforgedSaveCodeUI__LoadButtonFrameItems=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameItems, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerItems=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerItems, WoWReforgedSaveCodeUI__LoadButtonFrameItems, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerItems, function LoadFunctionItems) + + set WoWReforgedSaveCodeUI__ItemsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__INDEX_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ItemsEditIndex, "0") + + set WoWReforgedSaveCodeUI__TriggerEditBoxItemsIndex=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxItemsIndex, function SaveCodeEnterFunctionItemsIndex) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxItemsIndex, WoWReforgedSaveCodeUI__ItemsEditIndex, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__ItemsEditArrowUp=BlzCreateFrameByType("BUTTON", "ItemsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_UP_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + + set WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "ItemsUpFrame", WoWReforgedSaveCodeUI__ItemsEditArrowUp, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame, WoWReforgedSaveCodeUI__ItemsEditArrowUp) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + + set WoWReforgedSaveCodeUI__ItemsUpTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__ItemsUpTrigger, WoWReforgedSaveCodeUI__ItemsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__ItemsUpTrigger, function ItemsUpFunction) - set WoWReforgedSaveCodeUI___ItemsEditArrowDown=BlzCreateFrameByType("BUTTON", "ItemsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) + set WoWReforgedSaveCodeUI__ItemsEditArrowDown=BlzCreateFrameByType("BUTTON", "ItemsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) - set WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "ItemsDownFrame", WoWReforgedSaveCodeUI___ItemsEditArrowDown, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame, WoWReforgedSaveCodeUI___ItemsEditArrowDown) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + set WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "ItemsDownFrame", WoWReforgedSaveCodeUI__ItemsEditArrowDown, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame, WoWReforgedSaveCodeUI__ItemsEditArrowDown) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - set WoWReforgedSaveCodeUI___ItemsDownTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___ItemsDownTrigger, WoWReforgedSaveCodeUI___ItemsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___ItemsDownTrigger, function ItemsDownFunction) + set WoWReforgedSaveCodeUI__ItemsDownTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__ItemsDownTrigger, WoWReforgedSaveCodeUI__ItemsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__ItemsDownTrigger, function ItemsDownFunction) // line 3: units - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameUnits=BlzCreateFrameByType("TEXT", "SaveGuiLabelUnits", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameUnits, "|cffFFCC00Units:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameUnits, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___EditBoxUnits=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxUnits, "-load xxx") - - set WoWReforgedSaveCodeUI___TriggerEditBoxUnits=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxUnits, function SaveCodeEnterFunctionUnits) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxUnits, WoWReforgedSaveCodeUI___EditBoxUnits, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___EnterTriggerUnits=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerUnits, WoWReforgedSaveCodeUI___EditBoxUnits, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerUnits, function SaveCodeEnterFunctionUnits) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameUnits=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerUnits=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerUnits, WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerUnits, function UpdateFunctionUnits) - - set WoWReforgedSaveCodeUI___LoadButtonFrameUnits=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameUnits, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerUnits=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerUnits, WoWReforgedSaveCodeUI___LoadButtonFrameUnits, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerUnits, function LoadFunctionUnits) - - set WoWReforgedSaveCodeUI___UnitsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___INDEX_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UnitsEditIndex, "0") - - set WoWReforgedSaveCodeUI___TriggerEditBoxUnitsIndex=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxUnitsIndex, function SaveCodeEnterFunctionUnitsIndex) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxUnitsIndex, WoWReforgedSaveCodeUI___UnitsEditIndex, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___UnitsEditArrowUp=BlzCreateFrameByType("BUTTON", "UnitsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_UP_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - - set WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "UnitsUpFrame", WoWReforgedSaveCodeUI___UnitsEditArrowUp, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame, WoWReforgedSaveCodeUI___UnitsEditArrowUp) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - - set WoWReforgedSaveCodeUI___UnitsUpTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UnitsUpTrigger, WoWReforgedSaveCodeUI___UnitsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UnitsUpTrigger, function UnitsUpFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameUnits=BlzCreateFrameByType("TEXT", "SaveGuiLabelUnits", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameUnits, "|cffFFCC00Units:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameUnits, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__EditBoxUnits=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxUnits, "-load xxx") + + set WoWReforgedSaveCodeUI__TriggerEditBoxUnits=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxUnits, function SaveCodeEnterFunctionUnits) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxUnits, WoWReforgedSaveCodeUI__EditBoxUnits, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__EnterTriggerUnits=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerUnits, WoWReforgedSaveCodeUI__EditBoxUnits, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerUnits, function SaveCodeEnterFunctionUnits) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameUnits=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerUnits=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerUnits, WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerUnits, function UpdateFunctionUnits) + + set WoWReforgedSaveCodeUI__LoadButtonFrameUnits=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameUnits, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerUnits=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerUnits, WoWReforgedSaveCodeUI__LoadButtonFrameUnits, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerUnits, function LoadFunctionUnits) + + set WoWReforgedSaveCodeUI__UnitsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__INDEX_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UnitsEditIndex, "0") + + set WoWReforgedSaveCodeUI__TriggerEditBoxUnitsIndex=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxUnitsIndex, function SaveCodeEnterFunctionUnitsIndex) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxUnitsIndex, WoWReforgedSaveCodeUI__UnitsEditIndex, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__UnitsEditArrowUp=BlzCreateFrameByType("BUTTON", "UnitsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_UP_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + + set WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "UnitsUpFrame", WoWReforgedSaveCodeUI__UnitsEditArrowUp, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame, WoWReforgedSaveCodeUI__UnitsEditArrowUp) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + + set WoWReforgedSaveCodeUI__UnitsUpTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UnitsUpTrigger, WoWReforgedSaveCodeUI__UnitsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UnitsUpTrigger, function UnitsUpFunction) - set WoWReforgedSaveCodeUI___UnitsEditArrowDown=BlzCreateFrameByType("BUTTON", "UnitsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) + set WoWReforgedSaveCodeUI__UnitsEditArrowDown=BlzCreateFrameByType("BUTTON", "UnitsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) - set WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "UnitsDownFrame", WoWReforgedSaveCodeUI___UnitsEditArrowDown, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame, WoWReforgedSaveCodeUI___UnitsEditArrowDown) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + set WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "UnitsDownFrame", WoWReforgedSaveCodeUI__UnitsEditArrowDown, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame, WoWReforgedSaveCodeUI__UnitsEditArrowDown) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - set WoWReforgedSaveCodeUI___UnitsDownTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UnitsDownTrigger, WoWReforgedSaveCodeUI___UnitsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UnitsDownTrigger, function UnitsDownFunction) + set WoWReforgedSaveCodeUI__UnitsDownTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UnitsDownTrigger, WoWReforgedSaveCodeUI__UnitsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UnitsDownTrigger, function UnitsDownFunction) // line 4: researches - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameResearches=BlzCreateFrameByType("TEXT", "SaveGuiLabelResearches", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameResearches, "|cffFFCC00Researches:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameResearches, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___EditBoxResearches=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxResearches, "-load xxx") - - set WoWReforgedSaveCodeUI___TriggerEditBoxResearches=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxResearches, function EnterFunctionResearches) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxResearches, WoWReforgedSaveCodeUI___EditBoxResearches, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___EnterTriggerResearches=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerResearches, WoWReforgedSaveCodeUI___EditBoxResearches, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerResearches, function EnterFunctionResearches) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameResearches=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerResearches=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerResearches, WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerResearches, function UpdateFunctionResearches) - - set WoWReforgedSaveCodeUI___LoadButtonFrameResearches=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameResearches, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerResearches=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerResearches, WoWReforgedSaveCodeUI___LoadButtonFrameResearches, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerResearches, function LoadFunctionResearches) - - set WoWReforgedSaveCodeUI___ResearchesEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___INDEX_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___ResearchesEditIndex, "0") - - set WoWReforgedSaveCodeUI___TriggerEditBoxResearchesIndex=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxResearchesIndex, function SaveCodeEnterFunctionResearchesIndex) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxResearchesIndex, WoWReforgedSaveCodeUI___ResearchesEditIndex, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___ResearchesEditArrowUp=BlzCreateFrameByType("BUTTON", "ResearchesUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_UP_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - - set WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "ResearchesUpFrame", WoWReforgedSaveCodeUI___ResearchesEditArrowUp, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame, WoWReforgedSaveCodeUI___ResearchesEditArrowUp) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - - set WoWReforgedSaveCodeUI___ResearchesUpTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___ResearchesUpTrigger, WoWReforgedSaveCodeUI___ResearchesEditArrowUp, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___ResearchesUpTrigger, function ResearchesUpFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameResearches=BlzCreateFrameByType("TEXT", "SaveGuiLabelResearches", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameResearches, "|cffFFCC00Researches:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameResearches, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__EditBoxResearches=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxResearches, "-load xxx") + + set WoWReforgedSaveCodeUI__TriggerEditBoxResearches=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxResearches, function EnterFunctionResearches) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxResearches, WoWReforgedSaveCodeUI__EditBoxResearches, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__EnterTriggerResearches=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerResearches, WoWReforgedSaveCodeUI__EditBoxResearches, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerResearches, function EnterFunctionResearches) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameResearches=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerResearches=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerResearches, WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerResearches, function UpdateFunctionResearches) + + set WoWReforgedSaveCodeUI__LoadButtonFrameResearches=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameResearches, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerResearches=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerResearches, WoWReforgedSaveCodeUI__LoadButtonFrameResearches, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerResearches, function LoadFunctionResearches) + + set WoWReforgedSaveCodeUI__ResearchesEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__INDEX_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ResearchesEditIndex, "0") + + set WoWReforgedSaveCodeUI__TriggerEditBoxResearchesIndex=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxResearchesIndex, function SaveCodeEnterFunctionResearchesIndex) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxResearchesIndex, WoWReforgedSaveCodeUI__ResearchesEditIndex, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__ResearchesEditArrowUp=BlzCreateFrameByType("BUTTON", "ResearchesUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_UP_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + + set WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "ResearchesUpFrame", WoWReforgedSaveCodeUI__ResearchesEditArrowUp, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame, WoWReforgedSaveCodeUI__ResearchesEditArrowUp) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + + set WoWReforgedSaveCodeUI__ResearchesUpTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__ResearchesUpTrigger, WoWReforgedSaveCodeUI__ResearchesEditArrowUp, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__ResearchesUpTrigger, function ResearchesUpFunction) - set WoWReforgedSaveCodeUI___ResearchesEditArrowDown=BlzCreateFrameByType("BUTTON", "ResearchesDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) + set WoWReforgedSaveCodeUI__ResearchesEditArrowDown=BlzCreateFrameByType("BUTTON", "ResearchesDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) - set WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "ResearchesDownFrame", WoWReforgedSaveCodeUI___ResearchesEditArrowDown, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame, WoWReforgedSaveCodeUI___ResearchesEditArrowDown) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + set WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "ResearchesDownFrame", WoWReforgedSaveCodeUI__ResearchesEditArrowDown, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame, WoWReforgedSaveCodeUI__ResearchesEditArrowDown) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - set WoWReforgedSaveCodeUI___ResearchesDownTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___ResearchesDownTrigger, WoWReforgedSaveCodeUI___ResearchesEditArrowDown, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___ResearchesDownTrigger, function ResearchesDownFunction) + set WoWReforgedSaveCodeUI__ResearchesDownTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__ResearchesDownTrigger, WoWReforgedSaveCodeUI__ResearchesEditArrowDown, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__ResearchesDownTrigger, function ResearchesDownFunction) // line 4: buildings - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameBuildings=BlzCreateFrameByType("TEXT", "SaveGuiLabelBuildings", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameBuildings, "|cffFFCC00Buildings:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameBuildings, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___EditBoxBuildings=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxBuildings, "-load xxx") - - set WoWReforgedSaveCodeUI___TriggerEditBoxBuildings=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxBuildings, function SaveCodeEnterFunctionBuildings) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxBuildings, WoWReforgedSaveCodeUI___EditBoxBuildings, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___EnterTriggerBuildings=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerBuildings, WoWReforgedSaveCodeUI___EditBoxBuildings, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerBuildings, function SaveCodeEnterFunctionBuildings) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerBuildings=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerBuildings, WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerBuildings, function UpdateFunctionBuildings) - - set WoWReforgedSaveCodeUI___LoadButtonFrameBuildings=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerBuildings=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerBuildings, WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerBuildings, function LoadFunctionBuildings) - - set WoWReforgedSaveCodeUI___BuildingsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___INDEX_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___BuildingsEditIndex, "0") - - set WoWReforgedSaveCodeUI___TriggerEditBoxBuildingsIndex=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxBuildingsIndex, function SaveCodeEnterFunctionBuildingsIndex) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxBuildingsIndex, WoWReforgedSaveCodeUI___BuildingsEditIndex, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___BuildingsEditArrowUp=BlzCreateFrameByType("BUTTON", "BuildingsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_UP_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - - set WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "BuildingsUpFrame", WoWReforgedSaveCodeUI___BuildingsEditArrowUp, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame, WoWReforgedSaveCodeUI___BuildingsEditArrowUp) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - - set WoWReforgedSaveCodeUI___BuildingsUpTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___BuildingsUpTrigger, WoWReforgedSaveCodeUI___BuildingsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___BuildingsUpTrigger, function BuildingsUpFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameBuildings=BlzCreateFrameByType("TEXT", "SaveGuiLabelBuildings", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameBuildings, "|cffFFCC00Buildings:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameBuildings, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__EditBoxBuildings=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxBuildings, "-load xxx") + + set WoWReforgedSaveCodeUI__TriggerEditBoxBuildings=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxBuildings, function SaveCodeEnterFunctionBuildings) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxBuildings, WoWReforgedSaveCodeUI__EditBoxBuildings, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__EnterTriggerBuildings=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerBuildings, WoWReforgedSaveCodeUI__EditBoxBuildings, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerBuildings, function SaveCodeEnterFunctionBuildings) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerBuildings=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerBuildings, WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerBuildings, function UpdateFunctionBuildings) + + set WoWReforgedSaveCodeUI__LoadButtonFrameBuildings=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerBuildings=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerBuildings, WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerBuildings, function LoadFunctionBuildings) + + set WoWReforgedSaveCodeUI__BuildingsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__INDEX_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__BuildingsEditIndex, "0") + + set WoWReforgedSaveCodeUI__TriggerEditBoxBuildingsIndex=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxBuildingsIndex, function SaveCodeEnterFunctionBuildingsIndex) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxBuildingsIndex, WoWReforgedSaveCodeUI__BuildingsEditIndex, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__BuildingsEditArrowUp=BlzCreateFrameByType("BUTTON", "BuildingsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_UP_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + + set WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "BuildingsUpFrame", WoWReforgedSaveCodeUI__BuildingsEditArrowUp, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame, WoWReforgedSaveCodeUI__BuildingsEditArrowUp) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + + set WoWReforgedSaveCodeUI__BuildingsUpTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__BuildingsUpTrigger, WoWReforgedSaveCodeUI__BuildingsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__BuildingsUpTrigger, function BuildingsUpFunction) - set WoWReforgedSaveCodeUI___BuildingsEditArrowDown=BlzCreateFrameByType("BUTTON", "BuildingsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) + set WoWReforgedSaveCodeUI__BuildingsEditArrowDown=BlzCreateFrameByType("BUTTON", "BuildingsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) - set WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "BuildingsDownFrame", WoWReforgedSaveCodeUI___BuildingsEditArrowDown, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame, WoWReforgedSaveCodeUI___BuildingsEditArrowDown) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + set WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "BuildingsDownFrame", WoWReforgedSaveCodeUI__BuildingsEditArrowDown, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame, WoWReforgedSaveCodeUI__BuildingsEditArrowDown) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - set WoWReforgedSaveCodeUI___BuildingsDownTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___BuildingsDownTrigger, WoWReforgedSaveCodeUI___BuildingsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___BuildingsDownTrigger, function BuildingsDownFunction) + set WoWReforgedSaveCodeUI__BuildingsDownTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__BuildingsDownTrigger, WoWReforgedSaveCodeUI__BuildingsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__BuildingsDownTrigger, function BuildingsDownFunction) // line 5: resources - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING - set WoWReforgedSaveCodeUI___LabelFrameResources=BlzCreateFrameByType("TEXT", "SaveGuiLabelResources", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameResources, "|cffFFCC00Resources:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameResources, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__LabelFrameResources=BlzCreateFrameByType("TEXT", "SaveGuiLabelResources", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameResources, "|cffFFCC00Resources:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameResources, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - set WoWReforgedSaveCodeUI___EditBoxResources=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxResources, "-loadres xxx") + set WoWReforgedSaveCodeUI__EditBoxResources=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxResources, "-loadres xxx") - set WoWReforgedSaveCodeUI___TriggerEditBoxResources=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxResources, function SaveCodeEnterFunctionResources) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxResources, WoWReforgedSaveCodeUI___EditBoxResources, FRAMEEVENT_EDITBOX_ENTER) + set WoWReforgedSaveCodeUI__TriggerEditBoxResources=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxResources, function SaveCodeEnterFunctionResources) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxResources, WoWReforgedSaveCodeUI__EditBoxResources, FRAMEEVENT_EDITBOX_ENTER) - set WoWReforgedSaveCodeUI___EnterTriggerResources=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerResources, WoWReforgedSaveCodeUI___EditBoxResources, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerResources, function SaveCodeEnterFunctionResources) + set WoWReforgedSaveCodeUI__EnterTriggerResources=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerResources, WoWReforgedSaveCodeUI__EditBoxResources, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerResources, function SaveCodeEnterFunctionResources) - set WoWReforgedSaveCodeUI___UpdateButtonFrameResources=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameResources, "|cffFCD20DUpdate|r") + set WoWReforgedSaveCodeUI__UpdateButtonFrameResources=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameResources, "|cffFCD20DUpdate|r") - set WoWReforgedSaveCodeUI___UpdateTriggerResources=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerResources, WoWReforgedSaveCodeUI___UpdateButtonFrameResources, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerResources, function UpdateFunctionResources) + set WoWReforgedSaveCodeUI__UpdateTriggerResources=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerResources, WoWReforgedSaveCodeUI__UpdateButtonFrameResources, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerResources, function UpdateFunctionResources) - set WoWReforgedSaveCodeUI___LoadButtonFrameResources=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameResources, "|cffFCD20DLoad|r") + set WoWReforgedSaveCodeUI__LoadButtonFrameResources=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameResources, "|cffFCD20DLoad|r") - set WoWReforgedSaveCodeUI___LoadTriggerResources=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerResources, WoWReforgedSaveCodeUI___LoadButtonFrameResources, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerResources, function LoadFunctionResources) + set WoWReforgedSaveCodeUI__LoadTriggerResources=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerResources, WoWReforgedSaveCodeUI__LoadButtonFrameResources, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerResources, function LoadFunctionResources) // line 6: clan - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING - set WoWReforgedSaveCodeUI___LabelFrameClan=BlzCreateFrameByType("TEXT", "SaveGuiLabelClan", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameClan, "|cffFFCC00Clan:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameClan, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__LabelFrameClan=BlzCreateFrameByType("TEXT", "SaveGuiLabelClan", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameClan, "|cffFFCC00Clan:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameClan, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - set WoWReforgedSaveCodeUI___EditBoxClan=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxClan, "-loadc xxx") + set WoWReforgedSaveCodeUI__EditBoxClan=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxClan, "-loadc xxx") - set WoWReforgedSaveCodeUI___TriggerEditBoxClan=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxClan, function SaveCodeEnterFunctionClan) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxClan, WoWReforgedSaveCodeUI___EditBoxClan, FRAMEEVENT_EDITBOX_ENTER) + set WoWReforgedSaveCodeUI__TriggerEditBoxClan=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxClan, function SaveCodeEnterFunctionClan) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxClan, WoWReforgedSaveCodeUI__EditBoxClan, FRAMEEVENT_EDITBOX_ENTER) - set WoWReforgedSaveCodeUI___EnterTriggerClan=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerClan, WoWReforgedSaveCodeUI___EditBoxClan, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerClan, function SaveCodeEnterFunctionClan) + set WoWReforgedSaveCodeUI__EnterTriggerClan=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerClan, WoWReforgedSaveCodeUI__EditBoxClan, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerClan, function SaveCodeEnterFunctionClan) - set WoWReforgedSaveCodeUI___UpdateButtonFrameClan=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameClan, "|cffFCD20DUpdate|r") + set WoWReforgedSaveCodeUI__UpdateButtonFrameClan=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameClan, "|cffFCD20DUpdate|r") - set WoWReforgedSaveCodeUI___UpdateTriggerClan=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerClan, WoWReforgedSaveCodeUI___UpdateButtonFrameClan, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerClan, function UpdateFunctionClan) + set WoWReforgedSaveCodeUI__UpdateTriggerClan=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerClan, WoWReforgedSaveCodeUI__UpdateButtonFrameClan, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerClan, function UpdateFunctionClan) - set WoWReforgedSaveCodeUI___LoadButtonFrameClan=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameClan, "|cffFCD20DLoad|r") + set WoWReforgedSaveCodeUI__LoadButtonFrameClan=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameClan, "|cffFCD20DLoad|r") - set WoWReforgedSaveCodeUI___LoadTriggerClan=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerClan, WoWReforgedSaveCodeUI___LoadButtonFrameClan, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerClan, function LoadFunctionClan) + set WoWReforgedSaveCodeUI__LoadTriggerClan=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerClan, WoWReforgedSaveCodeUI__LoadButtonFrameClan, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerClan, function LoadFunctionClan) // line 7: directory - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING - set WoWReforgedSaveCodeUI___LabelFrameDirectory=BlzCreateFrameByType("TEXT", "SaveGuiLabelDirectory", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameDirectory, "|cffFFCC00Directory:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameDirectory, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__LabelFrameDirectory=BlzCreateFrameByType("TEXT", "SaveGuiLabelDirectory", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameDirectory, "|cffFFCC00Directory:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameDirectory, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - set WoWReforgedSaveCodeUI___EditBoxDirectory=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxDirectory, "%userprofile%\\Documents\\Warcraft III\\CustomMapData") + set WoWReforgedSaveCodeUI__EditBoxDirectory=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxDirectory, "%userprofile%\\Documents\\Warcraft III\\CustomMapData") - set WoWReforgedSaveCodeUI___TriggerEditBoxDirectory=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxDirectory, function SaveCodeEnterFunctionDirectory) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxDirectory, WoWReforgedSaveCodeUI___EditBoxDirectory, FRAMEEVENT_EDITBOX_ENTER) + set WoWReforgedSaveCodeUI__TriggerEditBoxDirectory=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxDirectory, function SaveCodeEnterFunctionDirectory) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxDirectory, WoWReforgedSaveCodeUI__EditBoxDirectory, FRAMEEVENT_EDITBOX_ENTER) - set WoWReforgedSaveCodeUI___EnterTriggerDirectory=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerDirectory, WoWReforgedSaveCodeUI___EditBoxDirectory, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerDirectory, function SaveCodeEnterFunctionDirectory) + set WoWReforgedSaveCodeUI__EnterTriggerDirectory=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerDirectory, WoWReforgedSaveCodeUI__EditBoxDirectory, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerDirectory, function SaveCodeEnterFunctionDirectory) - set WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, "|cffFCD20DUpdate|r") + set WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, "|cffFCD20DUpdate|r") - set WoWReforgedSaveCodeUI___UpdateTriggerDirectory=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerDirectory, WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerDirectory, function WoWReforgedSaveCodeUI___UpdateFunctionAll) + set WoWReforgedSaveCodeUI__UpdateTriggerDirectory=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerDirectory, WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerDirectory, function WoWReforgedSaveCodeUI__UpdateFunctionAll) - set WoWReforgedSaveCodeUI___LoadButtonFrameDirectory=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, "|cffFCD20DLoad|r") + set WoWReforgedSaveCodeUI__LoadButtonFrameDirectory=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, "|cffFCD20DLoad|r") - set WoWReforgedSaveCodeUI___LoadTriggerDirectory=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerDirectory, WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerDirectory, function WoWReforgedSaveCodeUI___LoadFunctionAll) + set WoWReforgedSaveCodeUI__LoadTriggerDirectory=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerDirectory, WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerDirectory, function WoWReforgedSaveCodeUI__LoadFunctionAll) // final line: all - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameAll=BlzCreateFrameByType("TEXT", "SaveGuiLabelAll", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameAll, "|cffFFCC00All:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameAll, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___LoadAllButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_AUTO_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_AUTO_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_AUTO_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, "|cffFCD20DLoad All|r") - - set WoWReforgedSaveCodeUI___LoadAllTriggerAll=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadAllTriggerAll, WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadAllTriggerAll, function LoadAllFunctionAll) - - set WoWReforgedSaveCodeUI___WriteAllButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___WRITE_AUTO_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___WRITE_AUTO_BUTTON_X + WoWReforgedSaveCodeUI___WRITE_AUTO_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, "|cffFCD20DWrite All|r") - - set WoWReforgedSaveCodeUI___WriteAllTriggerAll=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___WriteAllTriggerAll, WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___WriteAllTriggerAll, function WriteAllFunctionAll) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameAll, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerAll=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerAll, WoWReforgedSaveCodeUI___UpdateButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerAll, function WoWReforgedSaveCodeUI___UpdateFunctionAll) - - set WoWReforgedSaveCodeUI___LoadButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameAll, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerAll=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerAll, WoWReforgedSaveCodeUI___LoadButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerAll, function WoWReforgedSaveCodeUI___LoadFunctionAll) - - set WoWReforgedSaveCodeUI___CloseButton=CreateFullScreenCloseButton() - set WoWReforgedSaveCodeUI___CloseTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___CloseTrigger, WoWReforgedSaveCodeUI___CloseButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___CloseTrigger, function WoWReforgedSaveCodeUI___CloseFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameAll=BlzCreateFrameByType("TEXT", "SaveGuiLabelAll", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameAll, "|cffFFCC00All:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameAll, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__LoadAllButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_AUTO_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_AUTO_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_AUTO_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, "|cffFCD20DLoad All|r") + + set WoWReforgedSaveCodeUI__LoadAllTriggerAll=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadAllTriggerAll, WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadAllTriggerAll, function LoadAllFunctionAll) + + set WoWReforgedSaveCodeUI__WriteAllButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__WRITE_AUTO_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__WRITE_AUTO_BUTTON_X + WoWReforgedSaveCodeUI__WRITE_AUTO_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, "|cffFCD20DWrite All|r") + + set WoWReforgedSaveCodeUI__WriteAllTriggerAll=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__WriteAllTriggerAll, WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__WriteAllTriggerAll, function WriteAllFunctionAll) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameAll, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerAll=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerAll, WoWReforgedSaveCodeUI__UpdateButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerAll, function WoWReforgedSaveCodeUI__UpdateFunctionAll) + + set WoWReforgedSaveCodeUI__LoadButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameAll, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerAll=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerAll, WoWReforgedSaveCodeUI__LoadButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerAll, function WoWReforgedSaveCodeUI__LoadFunctionAll) + + set WoWReforgedSaveCodeUI__CloseButton=CreateFullScreenCloseButton() + set WoWReforgedSaveCodeUI__CloseTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__CloseTrigger, WoWReforgedSaveCodeUI__CloseButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__CloseTrigger, function WoWReforgedSaveCodeUI__CloseFunction) // hide for all players call SetSaveCodeUIVisibleAll(false) // INLINED!! endfunction -function WoWReforgedSaveCodeUI___Init takes nothing returns nothing - set WoWReforgedSaveCodeUI___SyncTrigger=CreateTrigger() - call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedSaveCodeUI___SyncTrigger , "" , false) - call TriggerAddAction(WoWReforgedSaveCodeUI___SyncTrigger, function TriggerActionSyncData) +function WoWReforgedSaveCodeUI__Init takes nothing returns nothing + set WoWReforgedSaveCodeUI__SyncTrigger=CreateTrigger() + call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedSaveCodeUI__SyncTrigger , "" , false) + call TriggerAddAction(WoWReforgedSaveCodeUI__SyncTrigger, function TriggerActionSyncData) //call FrameSaverAdd(function HideSaveCodeUIAll) @@ -86776,13 +86799,13 @@ endfunction function SetActionsBarUIRaceTextures takes string mountsTexture,string summonedUnitsTexture,string townHallsTexture,string altarsTexture returns nothing - call BlzFrameSetTexture(WoWReforgedActionsBarUI___MountsFrame, WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH + mountsTexture, 0, true) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___SummonedUnitsFrame, WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH + summonedUnitsTexture, 0, true) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___TownHallsFrame, WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH + townHallsTexture, 0, true) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___AltarsFrame, WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH + altarsTexture, 0, true) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__MountsFrame, WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH + mountsTexture, 0, true) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__SummonedUnitsFrame, WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH + summonedUnitsTexture, 0, true) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__TownHallsFrame, WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH + townHallsTexture, 0, true) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__AltarsFrame, WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH + altarsTexture, 0, true) endfunction -function WoWReforgedActionsBarUI___GetMax takes nothing returns integer +function WoWReforgedActionsBarUI__GetMax takes nothing returns integer local integer max= 3 @@ -86796,8 +86819,8 @@ function WoWReforgedActionsBarUI___GetMax takes nothing returns integer return max endfunction -function WoWReforgedActionsBarUI___GetIndex2 takes nothing returns integer - local integer index2= WoWReforgedActionsBarUI___GetMax() +function WoWReforgedActionsBarUI__GetIndex2 takes nothing returns integer + local integer index2= WoWReforgedActionsBarUI__GetMax() @@ -86806,8 +86829,8 @@ function WoWReforgedActionsBarUI___GetIndex2 takes nothing returns integer return index2 endfunction -function WoWReforgedActionsBarUI___GetIndex3 takes nothing returns integer - local integer index3= WoWReforgedActionsBarUI___GetMax() +function WoWReforgedActionsBarUI__GetIndex3 takes nothing returns integer + local integer index3= WoWReforgedActionsBarUI__GetMax() @@ -86828,38 +86851,38 @@ endfunction function SetActionsBarUIVisible takes boolean visible,boolean includeChecbox returns nothing if ( includeChecbox ) then - call BlzFrameSetVisible(WoWReforgedActionsBarUI___CheckboxButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__CheckboxButton, visible) endif if ( visible ) then - set visible=WoWReforgedActionsBarUI___checked[GetPlayerId(GetLocalPlayer())] - endif - call BlzFrameSetVisible(WoWReforgedActionsBarUI___ClearButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___ClearFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___PickupItemsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___DropItemsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___PickupItemsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___BackpackButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___BackpackFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___MountsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___MountsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___SummonedUnitsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___SummonedUnitsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___TownHallsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___TownHallsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___AltarsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___AltarsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___SaveCodesButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___SaveCodesFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___LockCameraButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___LockCameraFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___RpgCameraButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___RpgCameraFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___AutoSkillButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___AutoSkillFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___LogButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___LogFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___MultiboardButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___MultiboardFrame, visible) + set visible=WoWReforgedActionsBarUI__checked[GetPlayerId(GetLocalPlayer())] + endif + call BlzFrameSetVisible(WoWReforgedActionsBarUI__ClearButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__ClearFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__PickupItemsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__DropItemsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__PickupItemsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__BackpackButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__BackpackFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__MountsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__MountsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__SummonedUnitsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__SummonedUnitsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__TownHallsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__TownHallsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__AltarsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__AltarsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__SaveCodesButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__SaveCodesFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__LockCameraButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__LockCameraFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__RpgCameraButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__RpgCameraFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__AutoSkillButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__AutoSkillFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__LogButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__LogFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__MultiboardButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__MultiboardFrame, visible) endfunction function SetActionsBarUIVisibleForPlayer takes player whichPlayer,boolean visible returns nothing @@ -86876,152 +86899,152 @@ function HideActionsBarUI takes player whichPlayer returns nothing call SetActionsBarUIVisibleForPlayer(whichPlayer , false) endfunction -function WoWReforgedActionsBarUI___CheckedFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__CheckedFunction takes nothing returns nothing if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Checked") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Checked") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___UncheckedFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__UncheckedFunction takes nothing returns nothing if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Unchecked") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Unchecked") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___EnumPlayersUpdateActionBar takes nothing returns nothing - set WoWReforgedActionsBarUI___checked[GetPlayerId(GetEnumPlayer())]=false +function WoWReforgedActionsBarUI__EnumPlayersUpdateActionBar takes nothing returns nothing + set WoWReforgedActionsBarUI__checked[GetPlayerId(GetEnumPlayer())]=false call SetActionsBarUIVisibleForPlayer((GetEnumPlayer()) , true) // INLINED!! endfunction -function WoWReforgedActionsBarUI___UpdateAllActionBars takes nothing returns nothing - call ForForce(GetPlayersAll(), function WoWReforgedActionsBarUI___EnumPlayersUpdateActionBar) +function WoWReforgedActionsBarUI__UpdateAllActionBars takes nothing returns nothing + call ForForce(GetPlayersAll(), function WoWReforgedActionsBarUI__EnumPlayersUpdateActionBar) endfunction -function WoWReforgedActionsBarUI___ClearClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__ClearClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then call ClearTextMessages() endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___ClearFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__ClearFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___PickupItemsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__PickupItemsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "PickupItems") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "PickupItems") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___PickupItemsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__PickupItemsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___DropItemsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__DropItemsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "DropBackpack") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "DropBackpack") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___DropItemsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__DropItemsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___BackpackClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__BackpackClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Backpack") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Backpack") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___BackpackFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__BackpackFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___MountsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__MountsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Mount") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Mount") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___MountsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__MountsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___SummonedUnitsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__SummonedUnitsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "SummonedUnit") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "SummonedUnit") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___SummonedUnitsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__SummonedUnitsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___TownHallsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__TownHallsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "TownHall") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "TownHall") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___TownHallsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__TownHallsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___AltarsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__AltarsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Altar") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Altar") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___AltarsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__AltarsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___SaveCodesClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__SaveCodesClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "SaveCodes") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "SaveCodes") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___SaveCodesFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__SaveCodesFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___LockCameraClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__LockCameraClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "LockCamera") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "LockCamera") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___LockCameraFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__LockCameraFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___RpgCameraClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__RpgCameraClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "RpgCamera") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "RpgCamera") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___RpgCameraFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__RpgCameraFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___AutoSkillClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__AutoSkillClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "AutoSkill") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "AutoSkill") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___AutoSkillFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__AutoSkillFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___LogClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__LogClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Log") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Log") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___LogFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__LogFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer returns nothing +function WoWReforgedActionsBarUI__UpdateMultiboard takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - if ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == 0 ) then + if ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == 0 ) then // stats call HideCalendarMultiboardForPlayer(whichPlayer) if ( whichPlayer == GetLocalPlayer() ) then @@ -87034,7 +87057,7 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret call SetStatsMultiboardVisible((whichPlayer) , true) // INLINED!! - elseif ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == 1 ) then + elseif ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == 1 ) then // resources UI call SetStatsMultiboardVisible((whichPlayer) , false) // INLINED!! call HideCalendarMultiboardForPlayer(whichPlayer) @@ -87047,7 +87070,7 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret if ( whichPlayer == GetLocalPlayer() ) then call MultiboardDisplay((ResourcesMultiboardGui___playerMultiboards[GetPlayerId(((whichPlayer)))]), true) // INLINED!! endif - elseif ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == 2 ) then + elseif ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == 2 ) then // calendar UI if ( whichPlayer == GetLocalPlayer() ) then call MultiboardDisplay((ResourcesMultiboardGui___playerMultiboards[GetPlayerId(((whichPlayer)))]), false) // INLINED!! @@ -87060,7 +87083,7 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret call ShowCalendarMultiboardForPlayer(whichPlayer) - elseif ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == WoWReforgedActionsBarUI___GetIndex2() ) then + elseif ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == WoWReforgedActionsBarUI__GetIndex2() ) then // handles UI if ( whichPlayer == GetLocalPlayer() ) then call MultiboardDisplay((ResourcesMultiboardGui___playerMultiboards[GetPlayerId(((whichPlayer)))]), false) // INLINED!! @@ -87073,7 +87096,7 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret - elseif ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == WoWReforgedActionsBarUI___GetIndex3() ) then + elseif ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == WoWReforgedActionsBarUI__GetIndex3() ) then // timers UI if ( whichPlayer == GetLocalPlayer() ) then call MultiboardDisplay((ResourcesMultiboardGui___playerMultiboards[GetPlayerId(((whichPlayer)))]), false) // INLINED!! @@ -87089,374 +87112,374 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret endif endfunction -function WoWReforgedActionsBarUI___EnumPlayersUpdateMultiboard takes nothing returns nothing - call WoWReforgedActionsBarUI___UpdateMultiboard(GetEnumPlayer()) +function WoWReforgedActionsBarUI__EnumPlayersUpdateMultiboard takes nothing returns nothing + call WoWReforgedActionsBarUI__UpdateMultiboard(GetEnumPlayer()) endfunction -function WoWReforgedActionsBarUI___UpdateAllMultiboards takes nothing returns nothing - call ForForce(GetPlayersAll(), function WoWReforgedActionsBarUI___EnumPlayersUpdateMultiboard) +function WoWReforgedActionsBarUI__UpdateAllMultiboards takes nothing returns nothing + call ForForce(GetPlayersAll(), function WoWReforgedActionsBarUI__EnumPlayersUpdateMultiboard) endfunction -function WoWReforgedActionsBarUI___Multiboard takes player whichPlayer returns nothing +function WoWReforgedActionsBarUI__Multiboard takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - set WoWReforgedActionsBarUI___currentMultiboard[playerId]=ModuloInteger(WoWReforgedActionsBarUI___currentMultiboard[playerId] + 1, WoWReforgedActionsBarUI___GetMax()) + set WoWReforgedActionsBarUI__currentMultiboard[playerId]=ModuloInteger(WoWReforgedActionsBarUI__currentMultiboard[playerId] + 1, WoWReforgedActionsBarUI__GetMax()) - call WoWReforgedActionsBarUI___UpdateMultiboard(whichPlayer) + call WoWReforgedActionsBarUI__UpdateMultiboard(whichPlayer) endfunction -function WoWReforgedActionsBarUI___MultiboardClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__MultiboardClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Multiboard") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Multiboard") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___MultiboardFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__MultiboardFrame , GetTriggerPlayer()) endfunction function CreateActionsBarUI takes nothing returns nothing // checkbox - set WoWReforgedActionsBarUI___CheckboxButton=BlzCreateFrame("QuestCheckBox2", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___CheckboxButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_CHECKBOX_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___CheckboxButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_CHECKBOX_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___CheckboxButton, true) - call BlzFrameSetValue(WoWReforgedActionsBarUI___CheckboxButton, 1.0) - - set WoWReforgedActionsBarUI___CheckboxTooltip=BlzCreateFrameByType("TEXT", "CheckboxTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___CheckboxButton, WoWReforgedActionsBarUI___CheckboxTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___CheckboxTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___CheckboxButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___CheckboxTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___CheckboxTooltip, "Toggle action bar.") - - set WoWReforgedActionsBarUI___CheckboxCheckTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___CheckboxCheckTrigger, WoWReforgedActionsBarUI___CheckboxButton, FRAMEEVENT_CHECKBOX_CHECKED) - call TriggerAddAction(WoWReforgedActionsBarUI___CheckboxCheckTrigger, function WoWReforgedActionsBarUI___CheckedFunction) - - set WoWReforgedActionsBarUI___CheckboxUncheckTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___CheckboxUncheckTrigger, WoWReforgedActionsBarUI___CheckboxButton, FRAMEEVENT_CHECKBOX_UNCHECKED) - call TriggerAddAction(WoWReforgedActionsBarUI___CheckboxUncheckTrigger, function WoWReforgedActionsBarUI___UncheckedFunction) + set WoWReforgedActionsBarUI__CheckboxButton=BlzCreateFrame("QuestCheckBox2", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__CheckboxButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_CHECKBOX_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__CheckboxButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_CHECKBOX_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__CheckboxButton, true) + call BlzFrameSetValue(WoWReforgedActionsBarUI__CheckboxButton, 1.0) + + set WoWReforgedActionsBarUI__CheckboxTooltip=BlzCreateFrameByType("TEXT", "CheckboxTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__CheckboxButton, WoWReforgedActionsBarUI__CheckboxTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__CheckboxTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__CheckboxButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__CheckboxTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__CheckboxTooltip, "Toggle action bar.") + + set WoWReforgedActionsBarUI__CheckboxCheckTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__CheckboxCheckTrigger, WoWReforgedActionsBarUI__CheckboxButton, FRAMEEVENT_CHECKBOX_CHECKED) + call TriggerAddAction(WoWReforgedActionsBarUI__CheckboxCheckTrigger, function WoWReforgedActionsBarUI__CheckedFunction) + + set WoWReforgedActionsBarUI__CheckboxUncheckTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__CheckboxUncheckTrigger, WoWReforgedActionsBarUI__CheckboxButton, FRAMEEVENT_CHECKBOX_UNCHECKED) + call TriggerAddAction(WoWReforgedActionsBarUI__CheckboxUncheckTrigger, function WoWReforgedActionsBarUI__UncheckedFunction) // clear - set WoWReforgedActionsBarUI___ClearButton=BlzCreateFrameByType("BUTTON", "ClearButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___ClearButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_CLEAR_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___ClearButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_CLEAR_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___ClearButton, true) - - set WoWReforgedActionsBarUI___ClearFrame=BlzCreateFrameByType("BACKDROP", "ClearFrame", WoWReforgedActionsBarUI___ClearButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___ClearFrame, WoWReforgedActionsBarUI___ClearButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___ClearFrame, "ReplaceableTextures\\CommandButtons\\BTNCancel.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___ClearFrame, true) - - set WoWReforgedActionsBarUI___ClearTooltip=BlzCreateFrameByType("TEXT", "ClearTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___ClearButton, WoWReforgedActionsBarUI___ClearTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___ClearTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___ClearButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___ClearTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___ClearTooltip, "Clear screen text.") - - set WoWReforgedActionsBarUI___ClearTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___ClearTrigger, WoWReforgedActionsBarUI___ClearButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___ClearTrigger, function WoWReforgedActionsBarUI___ClearClickFunction) + set WoWReforgedActionsBarUI__ClearButton=BlzCreateFrameByType("BUTTON", "ClearButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__ClearButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_CLEAR_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__ClearButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_CLEAR_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__ClearButton, true) + + set WoWReforgedActionsBarUI__ClearFrame=BlzCreateFrameByType("BACKDROP", "ClearFrame", WoWReforgedActionsBarUI__ClearButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__ClearFrame, WoWReforgedActionsBarUI__ClearButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__ClearFrame, "ReplaceableTextures\\CommandButtons\\BTNCancel.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__ClearFrame, true) + + set WoWReforgedActionsBarUI__ClearTooltip=BlzCreateFrameByType("TEXT", "ClearTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__ClearButton, WoWReforgedActionsBarUI__ClearTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__ClearTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__ClearButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__ClearTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__ClearTooltip, "Clear screen text.") + + set WoWReforgedActionsBarUI__ClearTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__ClearTrigger, WoWReforgedActionsBarUI__ClearButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__ClearTrigger, function WoWReforgedActionsBarUI__ClearClickFunction) // pickup items - set WoWReforgedActionsBarUI___PickupItemsButton=BlzCreateFrameByType("BUTTON", "PickupItemsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___PickupItemsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_PICKUP_ITEMS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___PickupItemsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_PICKUP_ITEMS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___PickupItemsButton, true) - - set WoWReforgedActionsBarUI___PickupItemsFrame=BlzCreateFrameByType("BACKDROP", "PickupItemsFrame", WoWReforgedActionsBarUI___PickupItemsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___PickupItemsFrame, WoWReforgedActionsBarUI___PickupItemsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___PickupItemsFrame, "ReplaceableTextures\\CommandButtons\\BTNPickUpItem.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___PickupItemsFrame, true) - - set WoWReforgedActionsBarUI___PickupItemsTooltip=BlzCreateFrameByType("TEXT", "PickupItemsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___PickupItemsButton, WoWReforgedActionsBarUI___PickupItemsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___PickupItemsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___PickupItemsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___PickupItemsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___PickupItemsTooltip, "Pick up all items nearby.") - - set WoWReforgedActionsBarUI___PickupItemsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___PickupItemsTrigger, WoWReforgedActionsBarUI___PickupItemsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___PickupItemsTrigger, function WoWReforgedActionsBarUI___PickupItemsClickFunction) + set WoWReforgedActionsBarUI__PickupItemsButton=BlzCreateFrameByType("BUTTON", "PickupItemsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__PickupItemsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_PICKUP_ITEMS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__PickupItemsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_PICKUP_ITEMS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__PickupItemsButton, true) + + set WoWReforgedActionsBarUI__PickupItemsFrame=BlzCreateFrameByType("BACKDROP", "PickupItemsFrame", WoWReforgedActionsBarUI__PickupItemsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__PickupItemsFrame, WoWReforgedActionsBarUI__PickupItemsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__PickupItemsFrame, "ReplaceableTextures\\CommandButtons\\BTNPickUpItem.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__PickupItemsFrame, true) + + set WoWReforgedActionsBarUI__PickupItemsTooltip=BlzCreateFrameByType("TEXT", "PickupItemsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__PickupItemsButton, WoWReforgedActionsBarUI__PickupItemsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__PickupItemsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__PickupItemsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__PickupItemsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__PickupItemsTooltip, "Pick up all items nearby.") + + set WoWReforgedActionsBarUI__PickupItemsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__PickupItemsTrigger, WoWReforgedActionsBarUI__PickupItemsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__PickupItemsTrigger, function WoWReforgedActionsBarUI__PickupItemsClickFunction) // drop items - set WoWReforgedActionsBarUI___DropItemsButton=BlzCreateFrameByType("BUTTON", "PickupItemsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___DropItemsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_DROP_ITEMS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___DropItemsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_DROP_ITEMS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___DropItemsButton, true) - - set WoWReforgedActionsBarUI___DropItemsFrame=BlzCreateFrameByType("BACKDROP", "DropItemsFrame", WoWReforgedActionsBarUI___DropItemsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___DropItemsFrame, WoWReforgedActionsBarUI___DropItemsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___DropItemsFrame, "ReplaceableTextures\\CommandButtons\\BTNUndeadUnLoad.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___DropItemsFrame, true) - - set WoWReforgedActionsBarUI___DropItemsTooltip=BlzCreateFrameByType("TEXT", "DropItemsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___DropItemsButton, WoWReforgedActionsBarUI___DropItemsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___DropItemsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___DropItemsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___DropItemsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___DropItemsTooltip, "Drop all items from backpack.") - - set WoWReforgedActionsBarUI___DropItemsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___DropItemsTrigger, WoWReforgedActionsBarUI___DropItemsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___DropItemsTrigger, function WoWReforgedActionsBarUI___DropItemsClickFunction) + set WoWReforgedActionsBarUI__DropItemsButton=BlzCreateFrameByType("BUTTON", "PickupItemsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__DropItemsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_DROP_ITEMS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__DropItemsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_DROP_ITEMS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__DropItemsButton, true) + + set WoWReforgedActionsBarUI__DropItemsFrame=BlzCreateFrameByType("BACKDROP", "DropItemsFrame", WoWReforgedActionsBarUI__DropItemsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__DropItemsFrame, WoWReforgedActionsBarUI__DropItemsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__DropItemsFrame, "ReplaceableTextures\\CommandButtons\\BTNUndeadUnLoad.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__DropItemsFrame, true) + + set WoWReforgedActionsBarUI__DropItemsTooltip=BlzCreateFrameByType("TEXT", "DropItemsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__DropItemsButton, WoWReforgedActionsBarUI__DropItemsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__DropItemsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__DropItemsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__DropItemsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__DropItemsTooltip, "Drop all items from backpack.") + + set WoWReforgedActionsBarUI__DropItemsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__DropItemsTrigger, WoWReforgedActionsBarUI__DropItemsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__DropItemsTrigger, function WoWReforgedActionsBarUI__DropItemsClickFunction) // backpack - set WoWReforgedActionsBarUI___BackpackButton=BlzCreateFrameByType("BUTTON", "BackpackButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___BackpackButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_BACKPACK_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___BackpackButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_BACKPACK_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___BackpackButton, true) - - set WoWReforgedActionsBarUI___BackpackFrame=BlzCreateFrameByType("BACKDROP", "BackpackFrame", WoWReforgedActionsBarUI___BackpackButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___BackpackFrame, WoWReforgedActionsBarUI___BackpackButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___BackpackFrame, "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bag_09.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___BackpackFrame, true) - - set WoWReforgedActionsBarUI___BackpackTooltip=BlzCreateFrameByType("TEXT", "BackpackTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___BackpackButton, WoWReforgedActionsBarUI___BackpackTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___BackpackTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___BackpackButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___BackpackTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___BackpackTooltip, "Backpack items.") - - set WoWReforgedActionsBarUI___BackpackTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___BackpackTrigger, WoWReforgedActionsBarUI___BackpackButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___BackpackTrigger, function WoWReforgedActionsBarUI___BackpackClickFunction) + set WoWReforgedActionsBarUI__BackpackButton=BlzCreateFrameByType("BUTTON", "BackpackButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__BackpackButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_BACKPACK_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__BackpackButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_BACKPACK_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__BackpackButton, true) + + set WoWReforgedActionsBarUI__BackpackFrame=BlzCreateFrameByType("BACKDROP", "BackpackFrame", WoWReforgedActionsBarUI__BackpackButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__BackpackFrame, WoWReforgedActionsBarUI__BackpackButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__BackpackFrame, "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bag_09.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__BackpackFrame, true) + + set WoWReforgedActionsBarUI__BackpackTooltip=BlzCreateFrameByType("TEXT", "BackpackTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__BackpackButton, WoWReforgedActionsBarUI__BackpackTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__BackpackTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__BackpackButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__BackpackTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__BackpackTooltip, "Backpack items.") + + set WoWReforgedActionsBarUI__BackpackTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__BackpackTrigger, WoWReforgedActionsBarUI__BackpackButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__BackpackTrigger, function WoWReforgedActionsBarUI__BackpackClickFunction) // mounts - set WoWReforgedActionsBarUI___MountsButton=BlzCreateFrameByType("BUTTON", "MountsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___MountsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_MOUNTS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___MountsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_MOUNTS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MountsButton, true) - - set WoWReforgedActionsBarUI___MountsFrame=BlzCreateFrameByType("BACKDROP", "MountsFrame", WoWReforgedActionsBarUI___MountsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___MountsFrame, WoWReforgedActionsBarUI___MountsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___MountsFrame, "ReplaceableTextures\\CommandButtons\\BTNGryphonRider.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MountsFrame, true) - - set WoWReforgedActionsBarUI___MountsTooltip=BlzCreateFrameByType("TEXT", "MountsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___MountsButton, WoWReforgedActionsBarUI___MountsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___MountsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___MountsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MountsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___MountsTooltip, "Mounts.") - - set WoWReforgedActionsBarUI___MountsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___MountsTrigger, WoWReforgedActionsBarUI___MountsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___MountsTrigger, function WoWReforgedActionsBarUI___MountsClickFunction) + set WoWReforgedActionsBarUI__MountsButton=BlzCreateFrameByType("BUTTON", "MountsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__MountsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_MOUNTS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__MountsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_MOUNTS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MountsButton, true) + + set WoWReforgedActionsBarUI__MountsFrame=BlzCreateFrameByType("BACKDROP", "MountsFrame", WoWReforgedActionsBarUI__MountsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__MountsFrame, WoWReforgedActionsBarUI__MountsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__MountsFrame, "ReplaceableTextures\\CommandButtons\\BTNGryphonRider.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MountsFrame, true) + + set WoWReforgedActionsBarUI__MountsTooltip=BlzCreateFrameByType("TEXT", "MountsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__MountsButton, WoWReforgedActionsBarUI__MountsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__MountsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__MountsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MountsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__MountsTooltip, "Mounts.") + + set WoWReforgedActionsBarUI__MountsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__MountsTrigger, WoWReforgedActionsBarUI__MountsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__MountsTrigger, function WoWReforgedActionsBarUI__MountsClickFunction) // summoned units - set WoWReforgedActionsBarUI___SummonedUnitsButton=BlzCreateFrameByType("BUTTON", "SummonedUnitsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___SummonedUnitsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_SUMMONED_UNITS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___SummonedUnitsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_SUMMONED_UNITS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SummonedUnitsButton, true) - - set WoWReforgedActionsBarUI___SummonedUnitsFrame=BlzCreateFrameByType("BACKDROP", "SummonedUnitsFrame", WoWReforgedActionsBarUI___SummonedUnitsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___SummonedUnitsFrame, WoWReforgedActionsBarUI___SummonedUnitsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___SummonedUnitsFrame, "ReplaceableTextures\\CommandButtons\\BTNSummonWaterElemental.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SummonedUnitsFrame, true) - - set WoWReforgedActionsBarUI___SummonedUnitsTooltip=BlzCreateFrameByType("TEXT", "SummonedUnitsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___SummonedUnitsButton, WoWReforgedActionsBarUI___SummonedUnitsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___SummonedUnitsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___SummonedUnitsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SummonedUnitsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___SummonedUnitsTooltip, "Summoned units.") - - set WoWReforgedActionsBarUI___SummonedUnitsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___SummonedUnitsTrigger, WoWReforgedActionsBarUI___SummonedUnitsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___SummonedUnitsTrigger, function WoWReforgedActionsBarUI___SummonedUnitsClickFunction) + set WoWReforgedActionsBarUI__SummonedUnitsButton=BlzCreateFrameByType("BUTTON", "SummonedUnitsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__SummonedUnitsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_SUMMONED_UNITS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__SummonedUnitsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_SUMMONED_UNITS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SummonedUnitsButton, true) + + set WoWReforgedActionsBarUI__SummonedUnitsFrame=BlzCreateFrameByType("BACKDROP", "SummonedUnitsFrame", WoWReforgedActionsBarUI__SummonedUnitsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__SummonedUnitsFrame, WoWReforgedActionsBarUI__SummonedUnitsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__SummonedUnitsFrame, "ReplaceableTextures\\CommandButtons\\BTNSummonWaterElemental.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SummonedUnitsFrame, true) + + set WoWReforgedActionsBarUI__SummonedUnitsTooltip=BlzCreateFrameByType("TEXT", "SummonedUnitsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__SummonedUnitsButton, WoWReforgedActionsBarUI__SummonedUnitsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__SummonedUnitsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__SummonedUnitsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SummonedUnitsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__SummonedUnitsTooltip, "Summoned units.") + + set WoWReforgedActionsBarUI__SummonedUnitsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__SummonedUnitsTrigger, WoWReforgedActionsBarUI__SummonedUnitsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__SummonedUnitsTrigger, function WoWReforgedActionsBarUI__SummonedUnitsClickFunction) // town halls - set WoWReforgedActionsBarUI___TownHallsButton=BlzCreateFrameByType("BUTTON", "TownHallsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___TownHallsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_TOWN_HALLS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___TownHallsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_TOWN_HALLS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___TownHallsButton, true) - - set WoWReforgedActionsBarUI___TownHallsFrame=BlzCreateFrameByType("BACKDROP", "TownHallsFrame", WoWReforgedActionsBarUI___TownHallsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___TownHallsFrame, WoWReforgedActionsBarUI___TownHallsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___TownHallsFrame, "ReplaceableTextures\\CommandButtons\\BTNCastle.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___TownHallsFrame, true) - - set WoWReforgedActionsBarUI___TownHallsTooltip=BlzCreateFrameByType("TEXT", "TownHallsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___TownHallsButton, WoWReforgedActionsBarUI___TownHallsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___TownHallsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___TownHallsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___TownHallsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___TownHallsTooltip, "Town Halls.") - - set WoWReforgedActionsBarUI___TownHallsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___TownHallsTrigger, WoWReforgedActionsBarUI___TownHallsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___TownHallsTrigger, function WoWReforgedActionsBarUI___TownHallsClickFunction) + set WoWReforgedActionsBarUI__TownHallsButton=BlzCreateFrameByType("BUTTON", "TownHallsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__TownHallsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_TOWN_HALLS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__TownHallsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_TOWN_HALLS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__TownHallsButton, true) + + set WoWReforgedActionsBarUI__TownHallsFrame=BlzCreateFrameByType("BACKDROP", "TownHallsFrame", WoWReforgedActionsBarUI__TownHallsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__TownHallsFrame, WoWReforgedActionsBarUI__TownHallsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__TownHallsFrame, "ReplaceableTextures\\CommandButtons\\BTNCastle.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__TownHallsFrame, true) + + set WoWReforgedActionsBarUI__TownHallsTooltip=BlzCreateFrameByType("TEXT", "TownHallsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__TownHallsButton, WoWReforgedActionsBarUI__TownHallsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__TownHallsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__TownHallsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__TownHallsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__TownHallsTooltip, "Town Halls.") + + set WoWReforgedActionsBarUI__TownHallsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__TownHallsTrigger, WoWReforgedActionsBarUI__TownHallsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__TownHallsTrigger, function WoWReforgedActionsBarUI__TownHallsClickFunction) // altars - set WoWReforgedActionsBarUI___AltarsButton=BlzCreateFrameByType("BUTTON", "AltarsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___AltarsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_ALTARS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___AltarsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_ALTARS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AltarsButton, true) - - set WoWReforgedActionsBarUI___AltarsFrame=BlzCreateFrameByType("BACKDROP", "AltarsFrame", WoWReforgedActionsBarUI___AltarsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___AltarsFrame, WoWReforgedActionsBarUI___AltarsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___AltarsFrame, "ReplaceableTextures\\CommandButtons\\BTNAltarOfKings.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AltarsFrame, true) - - set WoWReforgedActionsBarUI___AltarsTooltip=BlzCreateFrameByType("TEXT", "TownHallsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___AltarsButton, WoWReforgedActionsBarUI___AltarsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___AltarsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___AltarsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AltarsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___AltarsTooltip, "Altars.") - - set WoWReforgedActionsBarUI___AltarsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___AltarsTrigger, WoWReforgedActionsBarUI___AltarsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___AltarsTrigger, function WoWReforgedActionsBarUI___AltarsClickFunction) + set WoWReforgedActionsBarUI__AltarsButton=BlzCreateFrameByType("BUTTON", "AltarsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__AltarsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_ALTARS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__AltarsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_ALTARS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AltarsButton, true) + + set WoWReforgedActionsBarUI__AltarsFrame=BlzCreateFrameByType("BACKDROP", "AltarsFrame", WoWReforgedActionsBarUI__AltarsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__AltarsFrame, WoWReforgedActionsBarUI__AltarsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__AltarsFrame, "ReplaceableTextures\\CommandButtons\\BTNAltarOfKings.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AltarsFrame, true) + + set WoWReforgedActionsBarUI__AltarsTooltip=BlzCreateFrameByType("TEXT", "TownHallsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__AltarsButton, WoWReforgedActionsBarUI__AltarsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__AltarsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__AltarsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AltarsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__AltarsTooltip, "Altars.") + + set WoWReforgedActionsBarUI__AltarsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__AltarsTrigger, WoWReforgedActionsBarUI__AltarsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__AltarsTrigger, function WoWReforgedActionsBarUI__AltarsClickFunction) // save codes - set WoWReforgedActionsBarUI___SaveCodesButton=BlzCreateFrameByType("BUTTON", "SaveCodesButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___SaveCodesButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_SAVECODES_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___SaveCodesButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_SAVECODES_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SaveCodesButton, true) - - set WoWReforgedActionsBarUI___SaveCodesFrame=BlzCreateFrameByType("BACKDROP", "SaveCodesFrame", WoWReforgedActionsBarUI___SaveCodesButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___SaveCodesFrame, WoWReforgedActionsBarUI___SaveCodesButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___SaveCodesFrame, "ReplaceableTextures\\CommandButtons\\BTNIconSave.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SaveCodesFrame, true) - - set WoWReforgedActionsBarUI___SaveCodesTooltip=BlzCreateFrameByType("TEXT", "SaveCodesTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___SaveCodesButton, WoWReforgedActionsBarUI___SaveCodesTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___SaveCodesTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___SaveCodesButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SaveCodesTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___SaveCodesTooltip, "Save Codes.") - - set WoWReforgedActionsBarUI___SaveCodesTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___SaveCodesTrigger, WoWReforgedActionsBarUI___SaveCodesButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___SaveCodesTrigger, function WoWReforgedActionsBarUI___SaveCodesClickFunction) + set WoWReforgedActionsBarUI__SaveCodesButton=BlzCreateFrameByType("BUTTON", "SaveCodesButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__SaveCodesButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_SAVECODES_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__SaveCodesButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_SAVECODES_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SaveCodesButton, true) + + set WoWReforgedActionsBarUI__SaveCodesFrame=BlzCreateFrameByType("BACKDROP", "SaveCodesFrame", WoWReforgedActionsBarUI__SaveCodesButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__SaveCodesFrame, WoWReforgedActionsBarUI__SaveCodesButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__SaveCodesFrame, "ReplaceableTextures\\CommandButtons\\BTNIconSave.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SaveCodesFrame, true) + + set WoWReforgedActionsBarUI__SaveCodesTooltip=BlzCreateFrameByType("TEXT", "SaveCodesTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__SaveCodesButton, WoWReforgedActionsBarUI__SaveCodesTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__SaveCodesTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__SaveCodesButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SaveCodesTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__SaveCodesTooltip, "Save Codes.") + + set WoWReforgedActionsBarUI__SaveCodesTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__SaveCodesTrigger, WoWReforgedActionsBarUI__SaveCodesButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__SaveCodesTrigger, function WoWReforgedActionsBarUI__SaveCodesClickFunction) // lock camera - set WoWReforgedActionsBarUI___LockCameraButton=BlzCreateFrameByType("BUTTON", "LockCameraButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___LockCameraButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_LOCK_CAMERA_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___LockCameraButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_LOCK_CAMERA_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LockCameraButton, true) - - set WoWReforgedActionsBarUI___LockCameraFrame=BlzCreateFrameByType("BACKDROP", "LockCameraFrame", WoWReforgedActionsBarUI___LockCameraButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___LockCameraFrame, WoWReforgedActionsBarUI___LockCameraButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___LockCameraFrame, "ReplaceableTextures\\CommandButtons\\BTNCameraReset.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LockCameraFrame, true) - - set WoWReforgedActionsBarUI___LockCameraTooltip=BlzCreateFrameByType("TEXT", "LockCameraTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___LockCameraButton, WoWReforgedActionsBarUI___LockCameraTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___LockCameraTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___LockCameraButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LockCameraTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___LockCameraTooltip, "Lock/unlock camera.") - - set WoWReforgedActionsBarUI___LockCameraTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___LockCameraTrigger, WoWReforgedActionsBarUI___LockCameraButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___LockCameraTrigger, function WoWReforgedActionsBarUI___LockCameraClickFunction) + set WoWReforgedActionsBarUI__LockCameraButton=BlzCreateFrameByType("BUTTON", "LockCameraButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__LockCameraButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_LOCK_CAMERA_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__LockCameraButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_LOCK_CAMERA_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LockCameraButton, true) + + set WoWReforgedActionsBarUI__LockCameraFrame=BlzCreateFrameByType("BACKDROP", "LockCameraFrame", WoWReforgedActionsBarUI__LockCameraButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__LockCameraFrame, WoWReforgedActionsBarUI__LockCameraButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__LockCameraFrame, "ReplaceableTextures\\CommandButtons\\BTNCameraReset.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LockCameraFrame, true) + + set WoWReforgedActionsBarUI__LockCameraTooltip=BlzCreateFrameByType("TEXT", "LockCameraTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__LockCameraButton, WoWReforgedActionsBarUI__LockCameraTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__LockCameraTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__LockCameraButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LockCameraTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__LockCameraTooltip, "Lock/unlock camera.") + + set WoWReforgedActionsBarUI__LockCameraTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__LockCameraTrigger, WoWReforgedActionsBarUI__LockCameraButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__LockCameraTrigger, function WoWReforgedActionsBarUI__LockCameraClickFunction) // rpg camera - set WoWReforgedActionsBarUI___RpgCameraButton=BlzCreateFrameByType("BUTTON", "RpgCameraButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___RpgCameraButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_RPG_CAMERA_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___RpgCameraButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_RPG_CAMERA_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___RpgCameraButton, true) - - set WoWReforgedActionsBarUI___RpgCameraFrame=BlzCreateFrameByType("BACKDROP", "RpgCameraFrame", WoWReforgedActionsBarUI___RpgCameraButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___RpgCameraFrame, WoWReforgedActionsBarUI___RpgCameraButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___RpgCameraFrame, "ReplaceableTextures\\CommandButtons\\BTNCameraReset.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___RpgCameraFrame, true) - - set WoWReforgedActionsBarUI___RpgCameraTooltip=BlzCreateFrameByType("TEXT", "RpgCameraTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___RpgCameraButton, WoWReforgedActionsBarUI___RpgCameraTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___RpgCameraTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___RpgCameraButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___RpgCameraTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___RpgCameraTooltip, "Enable/disable RPG camera.") - - set WoWReforgedActionsBarUI___RpgCameraTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___RpgCameraTrigger, WoWReforgedActionsBarUI___RpgCameraButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___RpgCameraTrigger, function WoWReforgedActionsBarUI___RpgCameraClickFunction) + set WoWReforgedActionsBarUI__RpgCameraButton=BlzCreateFrameByType("BUTTON", "RpgCameraButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__RpgCameraButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_RPG_CAMERA_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__RpgCameraButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_RPG_CAMERA_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__RpgCameraButton, true) + + set WoWReforgedActionsBarUI__RpgCameraFrame=BlzCreateFrameByType("BACKDROP", "RpgCameraFrame", WoWReforgedActionsBarUI__RpgCameraButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__RpgCameraFrame, WoWReforgedActionsBarUI__RpgCameraButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__RpgCameraFrame, "ReplaceableTextures\\CommandButtons\\BTNCameraReset.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__RpgCameraFrame, true) + + set WoWReforgedActionsBarUI__RpgCameraTooltip=BlzCreateFrameByType("TEXT", "RpgCameraTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__RpgCameraButton, WoWReforgedActionsBarUI__RpgCameraTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__RpgCameraTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__RpgCameraButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__RpgCameraTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__RpgCameraTooltip, "Enable/disable RPG camera.") + + set WoWReforgedActionsBarUI__RpgCameraTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__RpgCameraTrigger, WoWReforgedActionsBarUI__RpgCameraButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__RpgCameraTrigger, function WoWReforgedActionsBarUI__RpgCameraClickFunction) // auto skill - set WoWReforgedActionsBarUI___AutoSkillButton=BlzCreateFrameByType("BUTTON", "AutoSkillButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___AutoSkillButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_AUTO_SKILL_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___AutoSkillButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_AUTO_SKILL_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AutoSkillButton, true) - - set WoWReforgedActionsBarUI___AutoSkillFrame=BlzCreateFrameByType("BACKDROP", "AutoSkillFrame", WoWReforgedActionsBarUI___AutoSkillButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___AutoSkillFrame, WoWReforgedActionsBarUI___AutoSkillButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___AutoSkillFrame, "ReplaceableTextures\\CommandButtons\\BTNSkillz.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AutoSkillFrame, true) - - set WoWReforgedActionsBarUI___AutoSkillTooltip=BlzCreateFrameByType("TEXT", "AutoSkillTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___AutoSkillButton, WoWReforgedActionsBarUI___AutoSkillTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___AutoSkillTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___AutoSkillButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AutoSkillTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___AutoSkillTooltip, "Auto skill.") - - set WoWReforgedActionsBarUI___AutoSkillTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___AutoSkillTrigger, WoWReforgedActionsBarUI___AutoSkillButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___AutoSkillTrigger, function WoWReforgedActionsBarUI___AutoSkillClickFunction) + set WoWReforgedActionsBarUI__AutoSkillButton=BlzCreateFrameByType("BUTTON", "AutoSkillButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__AutoSkillButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_AUTO_SKILL_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__AutoSkillButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_AUTO_SKILL_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AutoSkillButton, true) + + set WoWReforgedActionsBarUI__AutoSkillFrame=BlzCreateFrameByType("BACKDROP", "AutoSkillFrame", WoWReforgedActionsBarUI__AutoSkillButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__AutoSkillFrame, WoWReforgedActionsBarUI__AutoSkillButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__AutoSkillFrame, "ReplaceableTextures\\CommandButtons\\BTNSkillz.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AutoSkillFrame, true) + + set WoWReforgedActionsBarUI__AutoSkillTooltip=BlzCreateFrameByType("TEXT", "AutoSkillTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__AutoSkillButton, WoWReforgedActionsBarUI__AutoSkillTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__AutoSkillTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__AutoSkillButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AutoSkillTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__AutoSkillTooltip, "Auto skill.") + + set WoWReforgedActionsBarUI__AutoSkillTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__AutoSkillTrigger, WoWReforgedActionsBarUI__AutoSkillButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__AutoSkillTrigger, function WoWReforgedActionsBarUI__AutoSkillClickFunction) // log - set WoWReforgedActionsBarUI___LogButton=BlzCreateFrameByType("BUTTON", "LogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___LogButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_LOG_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___LogButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_LOG_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LogButton, true) - - set WoWReforgedActionsBarUI___LogFrame=BlzCreateFrameByType("BACKDROP", "LogFrame", WoWReforgedActionsBarUI___LogButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___LogFrame, WoWReforgedActionsBarUI___LogButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___LogFrame, "ReplaceableTextures\\CommandButtons\\BTNSpy.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LogFrame, true) - - set WoWReforgedActionsBarUI___LogTooltip=BlzCreateFrameByType("TEXT", "LogTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___LogButton, WoWReforgedActionsBarUI___LogTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___LogTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___LogButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LogTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___LogTooltip, "Multiplayer Log.") - - set WoWReforgedActionsBarUI___LogTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___LogTrigger, WoWReforgedActionsBarUI___LogButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___LogTrigger, function WoWReforgedActionsBarUI___LogClickFunction) + set WoWReforgedActionsBarUI__LogButton=BlzCreateFrameByType("BUTTON", "LogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__LogButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_LOG_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__LogButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_LOG_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LogButton, true) + + set WoWReforgedActionsBarUI__LogFrame=BlzCreateFrameByType("BACKDROP", "LogFrame", WoWReforgedActionsBarUI__LogButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__LogFrame, WoWReforgedActionsBarUI__LogButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__LogFrame, "ReplaceableTextures\\CommandButtons\\BTNSpy.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LogFrame, true) + + set WoWReforgedActionsBarUI__LogTooltip=BlzCreateFrameByType("TEXT", "LogTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__LogButton, WoWReforgedActionsBarUI__LogTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__LogTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__LogButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LogTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__LogTooltip, "Multiplayer Log.") + + set WoWReforgedActionsBarUI__LogTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__LogTrigger, WoWReforgedActionsBarUI__LogButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__LogTrigger, function WoWReforgedActionsBarUI__LogClickFunction) // calendar - set WoWReforgedActionsBarUI___MultiboardButton=BlzCreateFrameByType("BUTTON", "MultiboardButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___MultiboardButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_MULTIBOARD_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___MultiboardButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_MULTIBOARD_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MultiboardButton, true) - - set WoWReforgedActionsBarUI___MultiboardFrame=BlzCreateFrameByType("BACKDROP", "MultiboardFrame", WoWReforgedActionsBarUI___MultiboardButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___MultiboardFrame, WoWReforgedActionsBarUI___MultiboardButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___MultiboardFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-Play.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MultiboardFrame, true) - - set WoWReforgedActionsBarUI___MultiboardTooltip=BlzCreateFrameByType("TEXT", "BlzFrameSetTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___MultiboardButton, WoWReforgedActionsBarUI___MultiboardTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___MultiboardTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___MultiboardButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MultiboardTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___MultiboardTooltip, "Toggle multiboards.") - - set WoWReforgedActionsBarUI___MultiboardTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___MultiboardTrigger, WoWReforgedActionsBarUI___MultiboardButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___MultiboardTrigger, function WoWReforgedActionsBarUI___MultiboardClickFunction) + set WoWReforgedActionsBarUI__MultiboardButton=BlzCreateFrameByType("BUTTON", "MultiboardButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__MultiboardButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_MULTIBOARD_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__MultiboardButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_MULTIBOARD_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MultiboardButton, true) + + set WoWReforgedActionsBarUI__MultiboardFrame=BlzCreateFrameByType("BACKDROP", "MultiboardFrame", WoWReforgedActionsBarUI__MultiboardButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__MultiboardFrame, WoWReforgedActionsBarUI__MultiboardButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__MultiboardFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-Play.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MultiboardFrame, true) + + set WoWReforgedActionsBarUI__MultiboardTooltip=BlzCreateFrameByType("TEXT", "BlzFrameSetTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__MultiboardButton, WoWReforgedActionsBarUI__MultiboardTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__MultiboardTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__MultiboardButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MultiboardTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__MultiboardTooltip, "Toggle multiboards.") + + set WoWReforgedActionsBarUI__MultiboardTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__MultiboardTrigger, WoWReforgedActionsBarUI__MultiboardButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__MultiboardTrigger, function WoWReforgedActionsBarUI__MultiboardClickFunction) call SetActionsBarUIVisible(false , false) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___CheckboxButton, true) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__CheckboxButton, true) endfunction -function WoWReforgedActionsBarUI___DropAllBackpackItems takes player whichPlayer returns nothing +function WoWReforgedActionsBarUI__DropAllBackpackItems takes player whichPlayer returns nothing local integer count= DropBackpack(whichPlayer) call h__DisplayTextToPlayer(whichPlayer, 0.0, 0.0, "Dropped all items (" + I2S(count) + ") from backpack.") endfunction -function WoWReforgedActionsBarUI___TriggerConditionSync takes nothing returns boolean +function WoWReforgedActionsBarUI__TriggerConditionSync takes nothing returns boolean local integer playerId= GetPlayerId(GetTriggerPlayer()) local string data= BlzGetTriggerSyncData() if ( data == "Checked" ) then - set WoWReforgedActionsBarUI___checked[playerId]=true + set WoWReforgedActionsBarUI__checked[playerId]=true if ( GetTriggerPlayer() == GetLocalPlayer() ) then call SetActionsBarUIVisible(true , true) endif elseif ( data == "Unchecked" ) then - set WoWReforgedActionsBarUI___checked[playerId]=false + set WoWReforgedActionsBarUI__checked[playerId]=false if ( GetTriggerPlayer() == GetLocalPlayer() ) then call SetActionsBarUIVisible(false , false) endif elseif ( data == "PickupItems" ) then call PickupAllItemsAroundByPlayer(GetTriggerPlayer()) elseif ( data == "DropBackpack" ) then - call WoWReforgedActionsBarUI___DropAllBackpackItems(GetTriggerPlayer()) + call WoWReforgedActionsBarUI__DropAllBackpackItems(GetTriggerPlayer()) elseif ( data == "Backpack" ) then if ( (WoWReforgedBackpacks___Backpack[GetPlayerId((GetTriggerPlayer()))]) != null ) then // INLINED!! call SelectUnitForPlayerSingle((WoWReforgedBackpacks___Backpack[GetPlayerId((GetTriggerPlayer()))]), GetTriggerPlayer()) // INLINED!! @@ -87487,19 +87510,19 @@ function WoWReforgedActionsBarUI___TriggerConditionSync takes nothing returns bo elseif ( data == "Log" ) then call ShowLogUIForPlayer(GetTriggerPlayer()) elseif ( data == "Multiboard" ) then - call WoWReforgedActionsBarUI___Multiboard(GetTriggerPlayer()) + call WoWReforgedActionsBarUI__Multiboard(GetTriggerPlayer()) endif return false endfunction -function WoWReforgedActionsBarUI___Init takes nothing returns nothing - call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedActionsBarUI___SyncTrigger , WoWReforgedActionsBarUI___PREFIX , false) - call TriggerAddCondition(WoWReforgedActionsBarUI___SyncTrigger, Condition(function WoWReforgedActionsBarUI___TriggerConditionSync)) +function WoWReforgedActionsBarUI__Init takes nothing returns nothing + call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedActionsBarUI__SyncTrigger , WoWReforgedActionsBarUI__PREFIX , false) + call TriggerAddCondition(WoWReforgedActionsBarUI__SyncTrigger, Condition(function WoWReforgedActionsBarUI__TriggerConditionSync)) - call TriggerAddAction(FrameLoader___actionTrigger, (function CreateActionsBarUI)) // INLINED!! - call TriggerAddAction(FrameLoader___actionTrigger, (function WoWReforgedActionsBarUI___UpdateAllMultiboards)) // INLINED!! - call TriggerAddAction(FrameLoader___actionTrigger, (function WoWReforgedActionsBarUI___UpdateAllActionBars)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function CreateActionsBarUI)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedActionsBarUI__UpdateAllMultiboards)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedActionsBarUI__UpdateAllActionBars)) // INLINED!! endfunction @@ -87644,18 +87667,18 @@ function SetActionsBarRaceTexturesFromRace takes integer whichRace returns nothi endif endfunction -function WoWReforgedRacesUI___ForForceUpdateIdleWorkerIcons takes nothing returns nothing +function WoWReforgedRacesUI__ForForceUpdateIdleWorkerIcons takes nothing returns nothing local player slotPlayer= GetEnumPlayer() local integer size= (BlzGroupGetSize(IdleWorkersSystem__idleWorkers[GetPlayerId((slotPlayer))])) // INLINED!! call RefreshIdleWorkers(slotPlayer) if ( GetLocalPlayer() == slotPlayer ) then - call BlzFrameSetVisible((CustomConsoleUI___idleWorkerButtonOverlayParent), size > 0) // INLINED!! + call BlzFrameSetVisible((CustomConsoleUI__idleWorkerButtonOverlayParent), size > 0) // INLINED!! endif set slotPlayer=null endfunction -function WoWReforgedRacesUI___TimerFunctionUpdateIdleWorkerIcons takes nothing returns nothing - call ForForce((ForceUtils___allPlayingUsers), function WoWReforgedRacesUI___ForForceUpdateIdleWorkerIcons) // INLINED!! +function WoWReforgedRacesUI__TimerFunctionUpdateIdleWorkerIcons takes nothing returns nothing + call ForForce((ForceUtils___allPlayingUsers), function WoWReforgedRacesUI__ForForceUpdateIdleWorkerIcons) // INLINED!! endfunction function UseCustomConsoleUIForCustomRace takes player whichPlayer,integer whichRace returns nothing @@ -87666,7 +87689,7 @@ function UseCustomConsoleUIForCustomRace takes player whichPlayer,integer whichR if ( GetLocalPlayer() == whichPlayer ) then call SetActionsBarRaceTexturesFromRace(whichRace) endif - call ForForce((ForceUtils___allPlayingUsers), function WoWReforgedRacesUI___ForForceUpdateIdleWorkerIcons) // INLINED!! + call ForForce((ForceUtils___allPlayingUsers), function WoWReforgedRacesUI__ForForceUpdateIdleWorkerIcons) // INLINED!! endfunction function ConsoleUIExistsForCustomRace takes integer whichRace returns boolean @@ -87959,27 +87982,27 @@ function InitRacesUI takes nothing returns nothing endfunction function GetRacesUIUpdateTimerHandleId takes nothing returns integer - return GetHandleId(WoWReforgedRacesUI___updateTimer) + return GetHandleId(WoWReforgedRacesUI__updateTimer) endfunction -function WoWReforgedRacesUI___BeforeSave takes nothing returns nothing - call PauseTimer(WoWReforgedRacesUI___updateTimer) +function WoWReforgedRacesUI__BeforeSave takes nothing returns nothing + call PauseTimer(WoWReforgedRacesUI__updateTimer) endfunction -function WoWReforgedRacesUI___AfterSave takes nothing returns nothing - call ResumeTimer(WoWReforgedRacesUI___updateTimer) +function WoWReforgedRacesUI__AfterSave takes nothing returns nothing + call ResumeTimer(WoWReforgedRacesUI__updateTimer) endfunction -function WoWReforgedRacesUI___Init takes nothing returns nothing - call TimerStart(WoWReforgedRacesUI___updateTimer, 0.3, true, function WoWReforgedRacesUI___TimerFunctionUpdateIdleWorkerIcons) +function WoWReforgedRacesUI__Init takes nothing returns nothing + call TimerStart(WoWReforgedRacesUI__updateTimer, 0.3, true, function WoWReforgedRacesUI__TimerFunctionUpdateIdleWorkerIcons) // make sure that the timer will be paused and not run before restoring frames of GetIdleWorkerOverlayParent after loading the game - call FrameSaverAddEx(function WoWReforgedRacesUI___BeforeSave , function WoWReforgedRacesUI___AfterSave) + call FrameSaverAddEx(function WoWReforgedRacesUI__BeforeSave , function WoWReforgedRacesUI__AfterSave) - call TriggerAddAction(FrameLoader___actionTrigger, (function WoWReforgedRacesUI___AfterSave)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedRacesUI__AfterSave)) // INLINED!! endfunction @@ -100412,7 +100435,7 @@ function CreateNeutralPassiveBuildings takes nothing returns nothing set u=BlzCreateUnitWithSkin(p, 'nfv1', - 14176.0, 14688.0, 270.000, 'nfv1') set u=BlzCreateUnitWithSkin(p, 'nfv3', - 16160.0, 14624.0, 270.000, 'nfv3') set u=BlzCreateUnitWithSkin(p, 'n07P', - 4352.0, - 11968.0, 270.000, 'n07P') - set u=BlzCreateUnitWithSkin(p, 'n098', 8128.0, 8896.0, 270.000, 'n098') + set u=BlzCreateUnitWithSkin(p, 'n098', 7040.0, 8704.0, 270.000, 'n098') call SetUnitColor(u, ConvertPlayerColor(10)) set u=BlzCreateUnitWithSkin(p, 'n06S', - 17664.0, - 21824.0, 270.000, 'n06S') set u=BlzCreateUnitWithSkin(p, 'ngol', 21952.0, - 5952.0, 270.000, 'ngol') @@ -111864,7 +111887,7 @@ function Trig_Summon_Unit_Summon_Black_Arrow_Func006A takes nothing returns noth endfunction function Trig_Summon_Unit_Summon_Black_Arrow_Actions takes nothing returns nothing - set udg_TmpUnit=(BlackArrowSystem___BlackArrowCaster) // INLINED!! + set udg_TmpUnit=(BlackArrowSystem__BlackArrowCaster) // INLINED!! if ( Trig_Summon_Unit_Summon_Black_Arrow_Func002C() ) then set udg_TmpAbilityCode='A1Y3' else @@ -111872,7 +111895,7 @@ function Trig_Summon_Unit_Summon_Black_Arrow_Actions takes nothing returns nothi endif set udg_TmpInteger2=4 call GroupClear(udg_TmpGroup) - call GroupAddGroup((BlackArrowSystem___BlackArrowSummonedUnits), udg_TmpGroup) // INLINED!! + call GroupAddGroup((BlackArrowSystem__BlackArrowSummonedUnits), udg_TmpGroup) // INLINED!! call ForGroupBJ(udg_TmpGroup, function Trig_Summon_Unit_Summon_Black_Arrow_Func006A) endfunction @@ -113452,7 +113475,7 @@ endfunction // Trigger: Item Respawns Respawn //=========================================================================== function Trig_Item_Respawns_Respawn_Actions takes nothing returns nothing - local location tmpLocation= GetItemLoc((ItemRespawnSystem___callbackItem)) // INLINED!! + local location tmpLocation= GetItemLoc((ItemRespawnSystem__callbackItem)) // INLINED!! call DestroyEffect(AddSpecialEffectLocBJ(tmpLocation, "Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")) call RemoveLocation(tmpLocation) set tmpLocation=null @@ -113503,7 +113526,7 @@ endfunction //=========================================================================== function Trig_Save_Game_Init_Actions takes nothing returns nothing - call TriggerAddAction(FrameLoader___actionTrigger, (function Trig_Save_Games_Load_Actions)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function Trig_Save_Games_Load_Actions)) // INLINED!! endfunction @@ -113519,11 +113542,16 @@ endfunction function Trig_Game_Information_Map_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_4772", "TRIGSTR_4773", "ReplaceableTextures\\CommandButtons\\BTNLogo.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_4774") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_4775") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1613") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_4777") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_4776") + set udg_TmpString="Creator: Baradé" + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Please provide feedback." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Website: https://wowreforged.org" + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Discord: https://discord.gg/eM34z36" + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Development: https://github.com/tdauth/wowr" + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -113589,11 +113617,16 @@ endfunction function Trig_Game_Information_Known_Issues_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2185", "TRIGSTR_2186", "ReplaceableTextures\\CommandButtons\\BTNVolcano.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2187") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2188") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2189") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_4692") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_5072") + set udg_TmpString="Long loading time leads to errors for some players." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Enchanting does not work for all item abilities due to Warcraft bugs." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Goblin Town Hall has a weird light bug pointing to the hero glow." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Line of Sight Blockers do not work for flying units (occlusion height)." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Researches increasing unit maximum life can lead to negative maximum life and instant unit deaths." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -113609,10 +113642,14 @@ function Trig_Game_Information_Game_Type_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2039", "TRIGSTR_2175", "ReplaceableTextures\\CommandButtons\\BTNDryadDispelMagic.blp") set udg_QuestGameType=GetLastCreatedQuestBJ() set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2181") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2182") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2183") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2184") + set udg_TmpString="Normal: Nothing changes. Default game type." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Fast: Fast XP, building, resources" + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Hardcore: Increased boss and creep HP, slower leveling, no repicks," + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="defeat when losing a town hall." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -113627,8 +113664,10 @@ endfunction function Trig_Game_Information_Game_Modes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2035", "TRIGSTR_2036", "ReplaceableTextures\\CommandButtons\\BTNArcaneObservatory.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2037") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2038") + set udg_TmpString="Warlord: Partly strategy mode." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Freelancer: Pure RPG mode, begins with +15 attributes and +30 % XP rate." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -113637,19 +113676,58 @@ function InitTrig_Game_Information_Game_Modes takes nothing returns nothing call TriggerAddAction(gg_trg_Game_Information_Game_Modes, function Trig_Game_Information_Game_Modes_Actions) endfunction +//=========================================================================== +// Trigger: Game Information Players +//=========================================================================== +function Trig_Game_Information_Players_Actions takes nothing returns nothing + call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5399", "TRIGSTR_5400", "ReplaceableTextures\\CommandButtons\\BTNVillagerWoman.blp") + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set udg_TmpString="\"-players\": Lists all players with their names, numbers, teams and colors." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="X in chat commands for players can be their number, name or color name." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="\"-accounts\": Lists all known accounts." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="\"-votekick X\": Starts a votekick against player X." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Fixed Computer player Gaia allows rescuing units." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Fixed Computer player The Burning Legion plays with Demon AI at Archimonde's realm." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Fixed Computer player Bosses owns all bosses and is allied with all creeps." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Fixed Computer player Neutral Hostile owns all creeps and is allied with all bosses." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Fixed Computer player Neutral Passive owns all NPCs and neutral buildings." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! +endfunction + +//=========================================================================== +function InitTrig_Game_Information_Players takes nothing returns nothing + set gg_trg_Game_Information_Players=CreateTrigger() + call TriggerAddAction(gg_trg_Game_Information_Players, function Trig_Game_Information_Players_Actions) +endfunction + //=========================================================================== // Trigger: Game Information Heroes //=========================================================================== function Trig_Game_Information_Heroes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2026", "TRIGSTR_2027", "ReplaceableTextures\\CommandButtons\\BTNHeroPaladin.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2028") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2029") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2030") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2031") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2032") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2033") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2034") + set udg_TmpString="\"-repick\": Repick your hero (you lose all units!)." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="\"-fullrepick\": Lose 3/4 of your XP but repick the game mode." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="\"-h1/-h2/-h3\": to (re)pick hero 1/2/3 without losing all units." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Maximum level is 75." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Additional, bonus and boss heroes require a higher hero level of your first hero." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Hero 2 and 3 have no backpack." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Hero 2 and 3 have no backpack and no equipment bags." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -113664,10 +113742,14 @@ endfunction function Trig_Game_Information_Professions_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2020", "TRIGSTR_2021", "ReplaceableTextures\\CommandButtons\\BTNThunderclap.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2022") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2023") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2024") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2025") + set udg_TmpString="Craft items." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="\"-p1/-p2/-p3\": (Re)pick your professions 1/2/3." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Additional professions require a higher hero level of your first hero." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Higher hero levels reduce the crafting cooldowns and increases crafted charges." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -113682,9 +113764,12 @@ endfunction function Trig_Game_Information_Races_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2015", "TRIGSTR_2016", "ReplaceableTextures\\CommandButtons\\BTNPeasant.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2017") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2018") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_2019") + set udg_TmpString="For Warlords only." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="\"-r1/-r2/-r3\": (Re)pick your races 1/2/3." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Additional races require a higher hero level of your first hero." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -114632,7 +114717,8 @@ endfunction function Trig_Game_Information_Legendary_Artifacts_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1929", "TRIGSTR_1930", "ReplaceableTextures\\CommandButtons\\BTNFarSight.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1931") + set udg_TmpString="\"-pingl\": Pings all legendary items which are on the ground." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -114808,11 +114894,18 @@ endfunction function Trig_Game_Information_Evolution_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1895", "TRIGSTR_1896", "ReplaceableTextures\\CommandButtons\\BTNHealthStone.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1897") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1898") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1899") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1900") - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1901") + set udg_TmpString="Balances units for higher hero levels." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Increases maximum life and damage of all units." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Increases the level and armor every 10 levels." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Does not affect buildings." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Used for creeps and boss units every 10 hero levels at once." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! + set udg_TmpString="Creep level determined by the lowest hero level of playing users." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -114827,7 +114920,8 @@ endfunction function Trig_Game_Information_Bonus_Heroes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1892", "TRIGSTR_1893", "ReplaceableTextures\\CommandButtons\\BTNNerubianZiggurat.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1894") + set udg_TmpString="Available at hero level 40." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction //=========================================================================== @@ -114842,7 +114936,8 @@ endfunction function Trig_Game_Information_Goblin_Bank_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1866", "TRIGSTR_1867", "ReplaceableTextures\\CommandButtons\\BTNChestOfGold.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! - call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1868") + set udg_TmpString="Deposit gold and lumber to get interests." + call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), ( R2SW(( udg_GoblinBankInterestRate * 100.00 ), 0, 0) + " % Interest Rate." )) call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1869") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1870") @@ -115538,7 +115633,7 @@ function Trig_Game_Information_Achievements_Actions takes nothing returns nothin call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57616", "TRIGSTR_57617", "ReplaceableTextures\\CommandButtons\\BTNBattleRoar.blp") set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57618") - call AddAchievementsToQuest(GetLastCreatedQuestBJ()) + call AddAchievementsToQuest() endfunction //=========================================================================== @@ -127975,7 +128070,7 @@ endfunction // Trigger: Miner Item Start Respawn //=========================================================================== function Trig_Miner_Item_Start_Respawn_Actions takes nothing returns nothing - set udg_TmpItem=(ItemRespawnSystem___callbackItem) // INLINED!! + set udg_TmpItem=(ItemRespawnSystem__callbackItem) // INLINED!! set udg_TmpUnit=GetTriggerUnit() call MinerPickup(udg_TmpUnit , udg_TmpItem) endfunction @@ -128003,7 +128098,7 @@ endfunction // Trigger: Prospector Item Start Respawn //=========================================================================== function Trig_Prospector_Item_Start_Respawn_Actions takes nothing returns nothing - set udg_TmpItem=(ItemRespawnSystem___callbackItem) // INLINED!! + set udg_TmpItem=(ItemRespawnSystem__callbackItem) // INLINED!! set udg_TmpUnit=GetTriggerUnit() call ProspectorPickup(udg_TmpUnit , udg_TmpItem) endfunction @@ -144646,70 +144741,95 @@ function InitTrig_Heroes_Init_Customizable takes nothing returns nothing endfunction //=========================================================================== -// Trigger: Heroes Init Human +// Trigger: Heroes Init Old Horde //=========================================================================== -function Trig_Heroes_Init_Human_Actions takes nothing returns nothing +function Trig_Heroes_Init_Old_Horde_Actions takes nothing returns nothing // ########################### - set udg_TmpString="Human" - set udg_TmpInteger=udg_RaceHuman + set udg_TmpString="Old Horde" + set udg_TmpInteger=udg_RaceOldHorde // ########################### - set udg_TmpUnitType='Hpal' + set udg_TmpUnitType='O01V' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true call AddHeroWoWReforged() - set udg_TmpAbilityCode='AHhb' + set udg_TmpAbilityCode='AOmi' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A1NE' + set udg_TmpAbilityCode='AOwk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AHad' + set udg_TmpAbilityCode='AOcr' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AHre' + set udg_TmpAbilityCode='AOww' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H00W' + set udg_TmpUnitType='O01T' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true call AddHeroWoWReforged() - set udg_TmpAbilityCode='A0DQ' + set udg_TmpAbilityCode='A0HI' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0DR' + set udg_TmpAbilityCode='A0HH' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AHab' + set udg_TmpAbilityCode='A0HL' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AHmt' + set udg_TmpAbilityCode='A0HG' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H0BS' + set udg_TmpUnitType='Ogld' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true call AddHeroWoWReforged() - set udg_TmpAbilityCode='AOsh' + set udg_TmpAbilityCode='ANrf' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0HQ' + set udg_TmpAbilityCode='A0NH' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0SB' + set udg_TmpAbilityCode='ANms' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AHav' + set udg_TmpAbilityCode='A01I' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H0KV' + set udg_TmpUnitType='O07H' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true call AddHeroWoWReforged() - set udg_TmpAbilityCode='A0PX' + set udg_TmpAbilityCode='AOcl' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0K5' + set udg_TmpAbilityCode='AOfs' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A16R' + set udg_TmpAbilityCode='AOsf' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0IF' + set udg_TmpAbilityCode='AOeq' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H0VB' + set udg_TmpUnitType='O06U' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true call AddHeroWoWReforged() - set udg_TmpAbilityCode='A10C' + set udg_TmpAbilityCode='AOmi' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A1Z5' + set udg_TmpAbilityCode='AOwk' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='AOcr' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='AOww' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='Aamk' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + // ########################### + set udg_TmpUnitType='O07I' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true + call AddHeroWoWReforged() + set udg_TmpAbilityCode='AOsh' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='AOws' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='A06Z' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! @@ -144718,13 +144838,57 @@ function Trig_Heroes_Init_Human_Actions takes nothing returns nothing set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpString="Human Bonus" +endfunction + +//=========================================================================== +function InitTrig_Heroes_Init_Old_Horde takes nothing returns nothing + set gg_trg_Heroes_Init_Old_Horde=CreateTrigger() + call TriggerAddAction(gg_trg_Heroes_Init_Old_Horde, function Trig_Heroes_Init_Old_Horde_Actions) +endfunction + +//=========================================================================== +// Trigger: Heroes Init Alliance of Lordaeron +//=========================================================================== +function Trig_Heroes_Init_Alliance_of_Lordaeron_Actions takes nothing returns nothing // ########################### - set udg_TmpUnitType='H0AI' + set udg_TmpString="Alliance of Lordaeron" + set udg_TmpInteger=udg_RaceAllianceOfLordaeron + // ########################### + set udg_TmpUnitType='H03M' set udg_TmpBoolean=true set udg_TmpBoolean2=true call AddHeroWoWReforged() - set udg_TmpAbilityCode='AHhb' + set udg_TmpAbilityCode='A0FC' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A0QF' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A082' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A0F7' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='Aamk' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + // ########################### + set udg_TmpUnitType='H018' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true + call AddHeroWoWReforged() + set udg_TmpAbilityCode='A07Y' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A081' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A1MN' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A07Z' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='Aamk' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + // ########################### + set udg_TmpUnitType='H0QX' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true + call AddHeroWoWReforged() + set udg_TmpAbilityCode='A1OO' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='A1NE' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! @@ -144735,7 +144899,7 @@ function Trig_Heroes_Init_Human_Actions takes nothing returns nothing set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H0A5' + set udg_TmpUnitType='H0RR' set udg_TmpBoolean=true set udg_TmpBoolean2=true call AddHeroWoWReforged() @@ -144750,39 +144914,49 @@ function Trig_Heroes_Init_Human_Actions takes nothing returns nothing set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H03M' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true +endfunction + +//=========================================================================== +function InitTrig_Heroes_Init_Alliance_of_Lordaeron takes nothing returns nothing + set gg_trg_Heroes_Init_Alliance_of_Lordaeron=CreateTrigger() + call TriggerAddAction(gg_trg_Heroes_Init_Alliance_of_Lordaeron, function Trig_Heroes_Init_Alliance_of_Lordaeron_Actions) +endfunction + +//=========================================================================== +// Trigger: Heroes Init Human +//=========================================================================== +function Trig_Heroes_Init_Human_Actions takes nothing returns nothing + // ########################### + set udg_TmpString="Human" + set udg_TmpInteger=udg_RaceHuman + // ########################### + set udg_TmpUnitType='Hpal' call AddHeroWoWReforged() - set udg_TmpAbilityCode='A0FC' + set udg_TmpAbilityCode='AHhb' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0QF' + set udg_TmpAbilityCode='A1NE' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A082' + set udg_TmpAbilityCode='AHad' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0F7' + set udg_TmpAbilityCode='AHre' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H018' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true + set udg_TmpUnitType='H00W' call AddHeroWoWReforged() - set udg_TmpAbilityCode='A07Y' + set udg_TmpAbilityCode='A0DQ' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A081' + set udg_TmpAbilityCode='A0DR' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A1MN' + set udg_TmpAbilityCode='AHab' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A07Z' + set udg_TmpAbilityCode='AHmt' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='Hlgr' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true + set udg_TmpUnitType='H0BS' call AddHeroWoWReforged() set udg_TmpAbilityCode='AOsh' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! @@ -144795,26 +144969,39 @@ function Trig_Heroes_Init_Human_Actions takes nothing returns nothing set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H0QW' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true + set udg_TmpUnitType='H0KV' call AddHeroWoWReforged() - set udg_TmpAbilityCode='A1OO' + set udg_TmpAbilityCode='A0PX' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A1ON' + set udg_TmpAbilityCode='A0K5' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A1P6' + set udg_TmpAbilityCode='A16R' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AHre' + set udg_TmpAbilityCode='A0IF' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H0QX' + set udg_TmpUnitType='H0VB' + call AddHeroWoWReforged() + set udg_TmpAbilityCode='A10C' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A1Z5' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A06Z' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='AHav' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='Aamk' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + // ########################### + set udg_TmpString="Human Bonus" + // ########################### + set udg_TmpUnitType='H0AI' set udg_TmpBoolean=true set udg_TmpBoolean2=true call AddHeroWoWReforged() - set udg_TmpAbilityCode='A1OO' + set udg_TmpAbilityCode='AHhb' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! set udg_TmpAbilityCode='A1NE' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! @@ -144825,7 +145012,7 @@ function Trig_Heroes_Init_Human_Actions takes nothing returns nothing set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='H0RR' + set udg_TmpUnitType='H0A5' set udg_TmpBoolean=true set udg_TmpBoolean2=true call AddHeroWoWReforged() @@ -144840,6 +145027,36 @@ function Trig_Heroes_Init_Human_Actions takes nothing returns nothing set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### + set udg_TmpUnitType='Hlgr' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true + call AddHeroWoWReforged() + set udg_TmpAbilityCode='AOsh' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A0HQ' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A0SB' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='AHav' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='Aamk' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + // ########################### + set udg_TmpUnitType='H0QW' + set udg_TmpBoolean=true + set udg_TmpBoolean2=true + call AddHeroWoWReforged() + set udg_TmpAbilityCode='A1OO' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A1ON' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='A1P6' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='AHre' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + set udg_TmpAbilityCode='Aamk' + call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! + // ########################### endfunction //=========================================================================== @@ -145279,96 +145496,6 @@ function Trig_Heroes_Init_Orc_Actions takes nothing returns nothing set udg_TmpAbilityCode='Aamk' call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! // ########################### - set udg_TmpUnitType='O01V' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true - call AddHeroWoWReforged() - set udg_TmpAbilityCode='AOmi' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOwk' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOcr' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOww' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='Aamk' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - // ########################### - set udg_TmpUnitType='O01T' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true - call AddHeroWoWReforged() - set udg_TmpAbilityCode='A0HI' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0HH' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0HL' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0HG' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='Aamk' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - // ########################### - set udg_TmpUnitType='Ogld' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true - call AddHeroWoWReforged() - set udg_TmpAbilityCode='ANrf' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A0NH' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='ANms' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A01I' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='Aamk' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - // ########################### - set udg_TmpUnitType='O07H' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true - call AddHeroWoWReforged() - set udg_TmpAbilityCode='AOcl' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOfs' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOsf' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOeq' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='Aamk' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - // ########################### - set udg_TmpUnitType='O06U' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true - call AddHeroWoWReforged() - set udg_TmpAbilityCode='AOmi' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOwk' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOcr' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOww' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='Aamk' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - // ########################### - set udg_TmpUnitType='O07I' - set udg_TmpBoolean=true - set udg_TmpBoolean2=true - call AddHeroWoWReforged() - set udg_TmpAbilityCode='AOsh' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AOws' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='A06Z' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='AHav' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - set udg_TmpAbilityCode='Aamk' - call RegisterHeroAbilityEx(udg_TmpUnitType , udg_TmpAbilityCode , MAX_HERO_SPELL_LEVEL) // INLINED!! - // ########################### set udg_TmpUnitType='Osam' set udg_TmpBoolean=true set udg_TmpBoolean2=true @@ -165547,8 +165674,8 @@ function Trig_Chat_Command_Ally_Func003C takes nothing returns boolean endfunction function Trig_Chat_Command_Ally_Actions takes nothing returns nothing - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength(GetEventPlayerChatStringMatched()), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) if ( Trig_Chat_Command_Ally_Func003C() ) then call DisableTrigger(gg_trg_Computer_Alliance_Change) call DisableTrigger(gg_trg_Player_Leaves_Alliance_Change) @@ -165606,8 +165733,8 @@ function Trig_Chat_Command_Ally_Vision_Func003C takes nothing returns boolean endfunction function Trig_Chat_Command_Ally_Vision_Actions takes nothing returns nothing - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength(GetEventPlayerChatStringMatched()), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) if ( Trig_Chat_Command_Ally_Vision_Func003C() ) then call DisableTrigger(gg_trg_Computer_Alliance_Change) call DisableTrigger(gg_trg_Player_Leaves_Alliance_Change) @@ -165665,8 +165792,8 @@ function Trig_Chat_Command_Ally_Vision_Shared_Units_Func003C takes nothing retur endfunction function Trig_Chat_Command_Ally_Vision_Shared_Units_Actions takes nothing returns nothing - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength(GetEventPlayerChatStringMatched()), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) if ( Trig_Chat_Command_Ally_Vision_Shared_Units_Func003C() ) then call DisableTrigger(gg_trg_Computer_Alliance_Change) call DisableTrigger(gg_trg_Player_Leaves_Alliance_Change) @@ -165724,8 +165851,8 @@ function Trig_Chat_Command_Ally_Vision_Full_Shared_Units_Func003C takes nothing endfunction function Trig_Chat_Command_Ally_Vision_Full_Shared_Units_Actions takes nothing returns nothing - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength(GetEventPlayerChatStringMatched()), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) if ( Trig_Chat_Command_Ally_Vision_Full_Shared_Units_Func003C() ) then call DisableTrigger(gg_trg_Computer_Alliance_Change) call DisableTrigger(gg_trg_Player_Leaves_Alliance_Change) @@ -165783,8 +165910,8 @@ function Trig_Chat_Command_Neutral_Func003C takes nothing returns boolean endfunction function Trig_Chat_Command_Neutral_Actions takes nothing returns nothing - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength(GetEventPlayerChatStringMatched()), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) if ( Trig_Chat_Command_Neutral_Func003C() ) then call DisableTrigger(gg_trg_Computer_Alliance_Change) call DisableTrigger(gg_trg_Player_Leaves_Alliance_Change) @@ -165842,8 +165969,8 @@ function Trig_Chat_Command_Neutral_Vision_Func003C takes nothing returns boolean endfunction function Trig_Chat_Command_Neutral_Vision_Actions takes nothing returns nothing - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength(GetEventPlayerChatStringMatched()), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) if ( Trig_Chat_Command_Neutral_Vision_Func003C() ) then call DisableTrigger(gg_trg_Computer_Alliance_Change) call DisableTrigger(gg_trg_Player_Leaves_Alliance_Change) @@ -165902,8 +166029,8 @@ function Trig_Chat_Command_Unally_Func003C takes nothing returns boolean endfunction function Trig_Chat_Command_Unally_Actions takes nothing returns nothing - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength(GetEventPlayerChatStringMatched()), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) if ( Trig_Chat_Command_Unally_Func003C() ) then call DisableTrigger(gg_trg_Computer_Alliance_Change) call DisableTrigger(gg_trg_Player_Leaves_Alliance_Change) @@ -165961,8 +166088,8 @@ function Trig_Chat_Command_Unally_Vision_Func003C takes nothing returns boolean endfunction function Trig_Chat_Command_Unally_Vision_Actions takes nothing returns nothing - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength(GetEventPlayerChatStringMatched()), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) if ( Trig_Chat_Command_Unally_Vision_Func003C() ) then call DisableTrigger(gg_trg_Computer_Alliance_Change) call DisableTrigger(gg_trg_Player_Leaves_Alliance_Change) @@ -166033,8 +166160,8 @@ endfunction function Trig_Chat_Command_Votekick_Actions takes nothing returns nothing if ( Trig_Chat_Command_Votekick_Func001C() ) then if ( Trig_Chat_Command_Votekick_Func001Func001C() ) then - set udg_TmpInteger=S2I(SubStringBJ(GetEventPlayerChatString(), StringLength("-votekick "), StringLength(GetEventPlayerChatString()))) - set udg_TmpPlayer=ConvertedPlayer(udg_TmpInteger) + set udg_TmpString=(StringTokenEx((GetEventPlayerChatString() ) , ( 1) , " " , false)) // INLINED!! + set udg_TmpPlayer=GetPlayerFromString(udg_TmpString) set udg_TmpString=GetPlayerNameColored(udg_TmpPlayer) if ( Trig_Chat_Command_Votekick_Func001Func001Func004C() ) then if ( Trig_Chat_Command_Votekick_Func001Func001Func004Func001C() ) then @@ -171095,6 +171222,7 @@ function Trig_Properties_Init_Actions takes nothing returns nothing set udg_TmpInteger=udg_ResourceGold set udg_TmpInteger2=5 set udg_TmpInteger3=udg_RaceBloodElf + set udg_TmpBoolean=true call AddPropertyWoWReforged() // ########################### set udg_TmpUnitType='n099' @@ -175442,7 +175570,7 @@ endfunction function Trig_Cinematics_Race_Update_Actions takes nothing returns nothing call ForForce(GetPlayersAll(), function Trig_Cinematics_Race_Update_Func001A) - set udg_TmpString=((GetObjectName(udg_RaceTavernItemType[(CinematicsRaces___currentRace)])) + " (" + I2S(CinematicsRaces___currentRace) + "/" + I2S((udg_MaxRaces)) + ")\nUse the left and right arrow keys to change the previewed race. Use the escape key to skip.") // INLINED!! + set udg_TmpString=((GetObjectName(udg_RaceTavernItemType[(CinematicsRaces__currentRace)])) + " (" + I2S(CinematicsRaces__currentRace) + "/" + I2S((udg_MaxRaces)) + ")\nUse the left and right arrow keys to change the previewed race. Use the escape key to skip.") // INLINED!! call h__TransmissionFromUnitWithNameBJ(GetPlayersAll(), gg_unit_H0T8_2409, "TRIGSTR_48614", null, udg_TmpString, bj_TIMETYPE_SET, 20.00, false) endfunction @@ -175515,7 +175643,7 @@ function Trig_Map_Zones_Init_Azeroth_Actions takes nothing returns nothing set udg_TmpIcon="ReplaceableTextures\\CommandButtons\\BTNCastle.blp" set udg_TmpString2="The world in which the majority of the Warcraft series is set." set udg_TmpString3="azeroth" -call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) // INLINED!! +call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! set WoWReforgedZones__currentContinent=0 // INLINED!! // ########################### endfunction @@ -175900,7 +176028,7 @@ function Trig_Map_Zones_Init_Eastern_Kingdoms_Actions takes nothing returns noth set udg_TmpIcon="ReplaceableTextures\\CommandButtons\\BTNCastle.blp" set udg_TmpString2="The eastern continents on the world of Azeroth which lie to the east of the Great Sea and to the west of the Forbidding Sea. " set udg_TmpString3="easternkingdoms" -call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) // INLINED!! +call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! // ########################### set udg_TmpString="Molten Core" set udg_TmpRect=gg_rct_Zone_Molten_Core @@ -176154,7 +176282,7 @@ function Trig_Map_Zones_Init_Kalimdor_Actions takes nothing returns nothing set udg_TmpIcon="ReplaceableTextures\\CommandButtons\\BTNFarSight.blp" set udg_TmpString2="One of the main continents of Azeroth located to the west of the Eastern Kingdoms, southwest of Northrend and northwest of Pandaria." set udg_TmpString3="kalimdor" -call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) // INLINED!! +call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! // ########################### set udg_TmpString="Cenarius´ Grave" set udg_TmpRect=gg_rct_Zone_Teldrassil @@ -176427,7 +176555,7 @@ function Trig_Map_Zones_Init_Northrend_Actions takes nothing returns nothing set udg_TmpIcon="ReplaceableTextures\\CommandButtons\\BTNGlacier.blp" set udg_TmpString2="The northern, icy continent of the world of Azeroth." set udg_TmpString3="northrend" -call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) // INLINED!! +call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! // ########################### set udg_TmpString="Zul'Drak" set udg_TmpRect=gg_rct_Location_Draktharon_Keep @@ -176568,7 +176696,7 @@ function Trig_Map_Zones_Init_Pandaria_Actions takes nothing returns nothing set udg_TmpIcon="ReplaceableTextures\\CommandButtons\\BTNStrongDrink.blp" set udg_TmpString2="Homeland of the Pandaren and birthplace of their ancient empire which is located in the southern part of Azeroth." set udg_TmpString3="pandaria" -call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) // INLINED!! +call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! // ########################### set udg_TmpString="The Jade Forest" set udg_TmpRect=gg_rct_Zone_Pandaria_The_Jade_Forest_1 @@ -176665,7 +176793,7 @@ function Trig_Map_Zones_Init_Outland_Actions takes nothing returns nothing set udg_TmpIcon="ReplaceableTextures\\CommandButtons\\BTNOutland_FloatingChunks0.dds" set udg_TmpString2="The shattered floating remnants of the destroyed world of Draenor, the homeworld of the Orcs and Ogres and refuge of the Draenei." set udg_TmpString3="outland" -call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) // INLINED!! +call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! set WoWReforgedZones__currentContinent=0 // INLINED!! // ########################### set udg_TmpString="Archimonde's Realm" @@ -176797,7 +176925,7 @@ function Trig_Map_Zones_Init_Argus_Actions takes nothing returns nothing set udg_TmpIcon="ReplaceableTextures\\CommandButtons\\BTNOutland_FloatingChunks0.dds" set udg_TmpString2="The original homeworld of the Eredar, now located within the Twisting Nether." set udg_TmpString3="argus" -call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2) // INLINED!! +call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! set WoWReforgedZones__currentContinent=0 // INLINED!! // ########################### set udg_TmpString="Eredath" @@ -202353,6 +202481,7 @@ function InitCustomTriggers takes nothing returns nothing call InitTrig_Game_Information_Known_Issues() call InitTrig_Game_Information_Game_Type() call InitTrig_Game_Information_Game_Modes() + call InitTrig_Game_Information_Players() call InitTrig_Game_Information_Heroes() call InitTrig_Game_Information_Professions() call InitTrig_Game_Information_Races() @@ -202918,6 +203047,8 @@ function InitCustomTriggers takes nothing returns nothing call InitTrig_NPCs_Init() call InitTrig_Heroes_Unlearn_Init() call InitTrig_Heroes_Init_Customizable() + call InitTrig_Heroes_Init_Old_Horde() + call InitTrig_Heroes_Init_Alliance_of_Lordaeron() call InitTrig_Heroes_Init_Human() call InitTrig_Heroes_Init_Dwarf() call InitTrig_Heroes_Init_Blood_Elf() @@ -204102,6 +204233,7 @@ function RunInitializationTriggers takes nothing returns nothing call ConditionalTriggerExecute(gg_trg_Game_Information_Known_Issues) call ConditionalTriggerExecute(gg_trg_Game_Information_Game_Type) call ConditionalTriggerExecute(gg_trg_Game_Information_Game_Modes) + call ConditionalTriggerExecute(gg_trg_Game_Information_Players) call ConditionalTriggerExecute(gg_trg_Game_Information_Heroes) call ConditionalTriggerExecute(gg_trg_Game_Information_Professions) call ConditionalTriggerExecute(gg_trg_Game_Information_Races) @@ -204273,6 +204405,8 @@ function RunInitializationTriggers takes nothing returns nothing call ConditionalTriggerExecute(gg_trg_NPCs_Init) call ConditionalTriggerExecute(gg_trg_Heroes_Unlearn_Init) call ConditionalTriggerExecute(gg_trg_Heroes_Init_Customizable) + call ConditionalTriggerExecute(gg_trg_Heroes_Init_Old_Horde) + call ConditionalTriggerExecute(gg_trg_Heroes_Init_Alliance_of_Lordaeron) call ConditionalTriggerExecute(gg_trg_Heroes_Init_Human) call ConditionalTriggerExecute(gg_trg_Heroes_Init_Dwarf) call ConditionalTriggerExecute(gg_trg_Heroes_Init_Blood_Elf) @@ -205343,28 +205477,28 @@ function main takes nothing returns nothing call CreateAllUnits() call InitBlizzard() -call ExecuteFunc("jasshelper__initstructs2620277953") -call ExecuteFunc("BoundSentinel___init") +call ExecuteFunc("jasshelper__initstructs2735793515") +call ExecuteFunc("BoundSentinel__init") call ExecuteFunc("Corpse___Init") call ExecuteFunc("CustomRaceSoundSystem__Init") call ExecuteFunc("ForceUtils___Init") -call ExecuteFunc("FrameLoader___init_function") -call ExecuteFunc("FrameSaver___Init") -call ExecuteFunc("GroupUtils___Init") +call ExecuteFunc("FrameLoader__init_function") +call ExecuteFunc("FrameSaver__Init") +call ExecuteFunc("GroupUtils__Init") call ExecuteFunc("HeroUtils___Init") call ExecuteFunc("HostUtils___Init") call ExecuteFunc("IdleWorkersSystem__Init") call ExecuteFunc("ItemUtils___Init") -call ExecuteFunc("MaxItemStacks___Init") -call ExecuteFunc("OnStartGame___Init") -call ExecuteFunc("Reflection___Init") -call ExecuteFunc("SimError___init") -call ExecuteFunc("TerrainPathability___Init") +call ExecuteFunc("MaxItemStacks__Init") +call ExecuteFunc("OnStartGame__Init") +call ExecuteFunc("Reflection__Init") +call ExecuteFunc("SimError__init") +call ExecuteFunc("TerrainPathability__Init") call ExecuteFunc("TimerUtils___init") -call ExecuteFunc("TreeUtils___Init") +call ExecuteFunc("TreeUtils__Init") call ExecuteFunc("UnitTypeUtils___Init") -call ExecuteFunc("WallsSystem___Init") -call ExecuteFunc("WallsSystemAir___Init") +call ExecuteFunc("WallsSystem__Init") +call ExecuteFunc("WallsSystemAir__Init") call ExecuteFunc("WoWReforgedBarrage__Init") call ExecuteFunc("WoWReforgedCages__Init") call ExecuteFunc("WoWReforgedCarHorn__Init") @@ -205375,19 +205509,18 @@ call ExecuteFunc("WoWReforgedFelOrcDemonGate__Init") call ExecuteFunc("WoWReforgedGaia___Init") call ExecuteFunc("WoWReforgedHunter__Init") call ExecuteFunc("WoWReforgedRandomArtifacts___Init") -call ExecuteFunc("WoWReforgedUrlUi___Init") +call ExecuteFunc("WoWReforgedUrlUi__Init") call ExecuteFunc("Challenge___Init") -call ExecuteFunc("CustomConsoleUI___init_function") +call ExecuteFunc("CustomConsoleUI__init_function") call ExecuteFunc("Decay___Init") call ExecuteFunc("ForestWord___Init") -call ExecuteFunc("GetMainSelectedUnit___init_function") -call ExecuteFunc("ItemUnstackSystem___Init") +call ExecuteFunc("GetMainSelectedUnit__init_function") +call ExecuteFunc("ItemUnstackSystem__Init") call ExecuteFunc("MassSpell___Init") call ExecuteFunc("MindControl___Init") call ExecuteFunc("PagedButtonsConfig___Init") call ExecuteFunc("PlayerColorUtils___Init") call ExecuteFunc("Resources___Init") -call ExecuteFunc("Taunts___Init") call ExecuteFunc("TinyBuildingsLimits___Init") call ExecuteFunc("WoWReforgedBan__Init") call ExecuteFunc("WoWReforgedCombiner___Init") @@ -205396,14 +205529,15 @@ call ExecuteFunc("WoWReforgedLearnableSkills___Init") call ExecuteFunc("WoWReforgedLevers__Init") call ExecuteFunc("WoWReforgedTreeUtils___Init") call ExecuteFunc("DrainResources___Init") -call ExecuteFunc("GetMainSelectedUnitForPlayer___Init") -call ExecuteFunc("Log___Init") +call ExecuteFunc("GetMainSelectedUnitForPlayer__Init") +call ExecuteFunc("Log__Init") call ExecuteFunc("PagedButtons___Init") call ExecuteFunc("Push___onInit") call ExecuteFunc("ResourcesChatCommands___Init") call ExecuteFunc("ResourcesCosts___Init") call ExecuteFunc("ResourcesMultiboardGui___Init") call ExecuteFunc("ResourcesWarnings___Init") +call ExecuteFunc("Taunts___Init") call ExecuteFunc("UnitGroupRespawnSystem___Init") call ExecuteFunc("VoteSystem__Init") call ExecuteFunc("WoWReforgedDayNightCycleEffects__Init") @@ -205412,7 +205546,7 @@ call ExecuteFunc("WoWReforgedPagedButtonsConfig___Init") call ExecuteFunc("WoWReforgedProspector__Init") call ExecuteFunc("Crafting___Init") call ExecuteFunc("KeyMovementSystem__Init") -call ExecuteFunc("LogUI___Init") +call ExecuteFunc("LogUI__Init") call ExecuteFunc("PagedButtonsUI___Init") call ExecuteFunc("ResourcesGui___Init") call ExecuteFunc("ResourcesLoadedMines___Init") @@ -205427,7 +205561,7 @@ call ExecuteFunc("HolyNova___Init") call ExecuteFunc("MassDevour___Init") call ExecuteFunc("Parry___Init") call ExecuteFunc("PhoenixEgg___Init") -call ExecuteFunc("Railway___Init") +call ExecuteFunc("Railway__Init") call ExecuteFunc("SummonWall___Init") call ExecuteFunc("TailSwipe___Init") call ExecuteFunc("Telekinesis___Init") @@ -205483,11 +205617,11 @@ call ExecuteFunc("WoWReforgedArmory___Init") call ExecuteFunc("WoWReforgedUpdateSkillUI__Init") call ExecuteFunc("WoWReforgedSaveCodesAll___Init") call ExecuteFunc("WoWReforgedWebsite__Init") -call ExecuteFunc("WoWReforgedSaveCodeUI___Init") +call ExecuteFunc("WoWReforgedSaveCodeUI__Init") call ExecuteFunc("WoWReforgedStartLocationsTavern___Init") -call ExecuteFunc("WoWReforgedActionsBarUI___Init") +call ExecuteFunc("WoWReforgedActionsBarUI__Init") call ExecuteFunc("WoWReforgedCinematic__Init") -call ExecuteFunc("WoWReforgedRacesUI___Init") +call ExecuteFunc("WoWReforgedRacesUI__Init") call InitGlobals() call InitCustomTriggers() @@ -205938,7 +206072,7 @@ function sa__ResetCooldown_reset takes nothing returns boolean call s__ResetCooldown_reset(f__arg_unit1,f__arg_integer1) return true endfunction -function sa__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___resurrectionTimer takes nothing returns boolean +function sa__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__resurrectionTimer takes nothing returns boolean set UnitEventEx___rezCheck=false call DestroyTimer(GetExpiredTimer()) @@ -206345,8 +206479,8 @@ function sa___prototype10_Attributes___HookRemoveUnit takes nothing returns bool call FlushChildHashtable(Attributes___h, GetHandleId((f__arg_unit1))) // INLINED!! return true endfunction -function sa___prototype54_GroupUtils___HookDestroyBoolExpr takes nothing returns boolean - call GroupUtils___HookDestroyBoolExpr(f__arg_boolexpr1) +function sa___prototype54_GroupUtils__HookDestroyBoolExpr takes nothing returns boolean + call GroupUtils__HookDestroyBoolExpr(f__arg_boolexpr1) return true endfunction function sa___prototype10_HeroUtils___RemoveUnitHook takes nothing returns boolean @@ -206357,12 +206491,12 @@ function sa___prototype10_IdleWorkersSystem__RemoveUnitHook takes nothing return call IdleWorkersSystem__RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_ItemOrbOfLight___RemoveUnitHook takes nothing returns boolean - call ItemOrbOfLight___RemoveUnitHook(f__arg_unit1) +function sa___prototype10_ItemOrbOfLight__RemoveUnitHook takes nothing returns boolean + call ItemOrbOfLight__RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype80_ItemRespawnSystem___RemoveItemCleanup takes nothing returns boolean - call ItemRespawnSystem___RemoveItemCleanup(f__arg_item1) +function sa___prototype80_ItemRespawnSystem__RemoveItemCleanup takes nothing returns boolean + call ItemRespawnSystem__RemoveItemCleanup(f__arg_item1) return true endfunction function sa___prototype101_QuestSetTitleHook takes nothing returns boolean @@ -206479,7 +206613,7 @@ function sa___prototype10_WoWReforgedFel__RemoveUnitHook takes nothing returns b call WoWReforgedFel__RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype270_WoWReforgedInfoQuests___CreateQuestBJHook takes nothing returns boolean +function sa___prototype267_WoWReforgedInfoQuests___CreateQuestBJHook takes nothing returns boolean local integer questType=f__arg_integer1 local string title=f__arg_string1 local string description=f__arg_string2 @@ -206494,7 +206628,7 @@ function sa___prototype270_WoWReforgedInfoQuests___CreateQuestBJHook takes nothi endif return true endfunction -function sa___prototype270_WoWReforgedQuests___CreateQuestBJHook takes nothing returns boolean +function sa___prototype267_WoWReforgedQuests___CreateQuestBJHook takes nothing returns boolean local integer questType=f__arg_integer1 local string title=f__arg_string1 local string description=f__arg_string2 @@ -206509,7 +206643,7 @@ function sa___prototype270_WoWReforgedQuests___CreateQuestBJHook takes nothing r endif return true endfunction -function sa___prototype280_Log___DisplayTextToPlayerHook takes nothing returns boolean +function sa___prototype277_Log__DisplayTextToPlayerHook takes nothing returns boolean local player toPlayer=f__arg_player1 local real x=f__arg_real1 local real y=f__arg_real2 @@ -206518,7 +206652,7 @@ function sa___prototype280_Log___DisplayTextToPlayerHook takes nothing returns b call AddLog(toPlayer , message) return true endfunction -function sa___prototype281_Log___DisplayTimedTextToPlayerHook takes nothing returns boolean +function sa___prototype278_Log__DisplayTimedTextToPlayerHook takes nothing returns boolean local player toPlayer=f__arg_player1 local real x=f__arg_real1 local real y=f__arg_real2 @@ -206528,7 +206662,7 @@ function sa___prototype281_Log___DisplayTimedTextToPlayerHook takes nothing retu call AddLog(toPlayer , message) return true endfunction -function sa___prototype281_Log___DisplayTimedTextFromPlayerHook takes nothing returns boolean +function sa___prototype278_Log__DisplayTimedTextFromPlayerHook takes nothing returns boolean local player toPlayer=f__arg_player1 local real x=f__arg_real1 local real y=f__arg_real2 @@ -206538,43 +206672,43 @@ function sa___prototype281_Log___DisplayTimedTextFromPlayerHook takes nothing re call AddLog(toPlayer , message) return true endfunction -function sa___prototype282_Log___DisplayTextToForceHook takes nothing returns boolean - call Log___DisplayTextToForceHook(f__arg_force1,f__arg_string1) +function sa___prototype279_Log__DisplayTextToForceHook takes nothing returns boolean + call Log__DisplayTextToForceHook(f__arg_force1,f__arg_string1) return true endfunction -function sa___prototype283_Log___DisplayTimedTextToForceHook takes nothing returns boolean - call Log___DisplayTimedTextToForceHook(f__arg_force1,f__arg_real1,f__arg_string1) +function sa___prototype280_Log__DisplayTimedTextToForceHook takes nothing returns boolean + call Log__DisplayTimedTextToForceHook(f__arg_force1,f__arg_real1,f__arg_string1) return true endfunction -function sa___prototype284_Log___QuestMessageBJHook takes nothing returns boolean - call Log___QuestMessageBJHook(f__arg_force1,f__arg_integer1,f__arg_string1) +function sa___prototype281_Log__QuestMessageBJHook takes nothing returns boolean + call Log__QuestMessageBJHook(f__arg_force1,f__arg_integer1,f__arg_string1) return true endfunction -function sa___prototype38_Log___BJDebugMsgHook takes nothing returns boolean +function sa___prototype38_Log__BJDebugMsgHook takes nothing returns boolean local string msg=f__arg_string1 - set Log___tmpMessage=msg - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) + set Log__tmpMessage=msg + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) return true endfunction -function sa___prototype93_Log___BlzDisplayChatMessageHook takes nothing returns boolean +function sa___prototype93_Log__BlzDisplayChatMessageHook takes nothing returns boolean local player whichPlayer=f__arg_player1 local integer recipient=f__arg_integer1 local string message=f__arg_string1 - set Log___tmpMessage="[" + Log___GetChatMessageRecipient(recipient) + "] " + GetPlayerNameColoredSimple(whichPlayer) + ": " + message - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) + set Log__tmpMessage="[" + Log__GetChatMessageRecipient(recipient) + "] " + GetPlayerNameColoredSimple(whichPlayer) + ": " + message + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) return true endfunction -function sa___prototype285_Log___TransmissionFromUnitWithNameBJHook takes nothing returns boolean - call Log___TransmissionFromUnitWithNameBJHook(f__arg_force1,f__arg_unit1,f__arg_string1,f__arg_sound1,f__arg_string2,f__arg_integer1,f__arg_real1,f__arg_boolean1) +function sa___prototype282_Log__TransmissionFromUnitWithNameBJHook takes nothing returns boolean + call Log__TransmissionFromUnitWithNameBJHook(f__arg_force1,f__arg_unit1,f__arg_string1,f__arg_sound1,f__arg_string2,f__arg_integer1,f__arg_real1,f__arg_boolean1) return true endfunction -function sa___prototype286_Log___TransmissionFromUnitTypeWithNameBJHook takes nothing returns boolean - call Log___TransmissionFromUnitTypeWithNameBJHook(f__arg_force1,f__arg_player1,f__arg_integer1,f__arg_string1,f__arg_location1,f__arg_sound1,f__arg_string2,f__arg_integer2,f__arg_real1,f__arg_boolean1) +function sa___prototype283_Log__TransmissionFromUnitTypeWithNameBJHook takes nothing returns boolean + call Log__TransmissionFromUnitTypeWithNameBJHook(f__arg_force1,f__arg_player1,f__arg_integer1,f__arg_string1,f__arg_location1,f__arg_sound1,f__arg_string2,f__arg_integer2,f__arg_real1,f__arg_boolean1) return true endfunction -function sa___prototype287_Log___SetCinematicSceneHook takes nothing returns boolean +function sa___prototype284_Log__SetCinematicSceneHook takes nothing returns boolean local integer portraitUnitId=f__arg_integer1 local playercolor color=f__arg_playercolor1 local string speakerTitle=f__arg_string1 @@ -206582,14 +206716,14 @@ function sa___prototype287_Log___SetCinematicSceneHook takes nothing returns boo local real sceneDuration=f__arg_real1 local real voiceoverDuration=f__arg_real2 - set Log___tmpMessage=" " - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) - set Log___tmpMessage="|cffffcc00" + speakerTitle + ":|r " + GetLocalizedMessage(text) - call ForForce(GetPlayersAll(), function Log___ForForceAddLog) + set Log__tmpMessage=" " + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) + set Log__tmpMessage="|cffffcc00" + speakerTitle + ":|r " + GetLocalizedMessage(text) + call ForForce(GetPlayersAll(), function Log__ForForceAddLog) return true endfunction -function sa___prototype288_Log___SetCinematicSceneBJHook takes nothing returns boolean - call Log___SetCinematicSceneBJHook(f__arg_sound1,f__arg_integer1,f__arg_playercolor1,f__arg_string1,f__arg_string2,f__arg_real1,f__arg_real2) +function sa___prototype285_Log__SetCinematicSceneBJHook takes nothing returns boolean + call Log__SetCinematicSceneBJHook(f__arg_sound1,f__arg_integer1,f__arg_playercolor1,f__arg_string1,f__arg_string2,f__arg_real1,f__arg_real2) return true endfunction function sa___prototype16_DisablePagedButtons takes nothing returns boolean @@ -206632,12 +206766,12 @@ function sa___prototype10_PhoenixEgg___RemoveUnitHook takes nothing returns bool call PhoenixEgg___RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_Railway___RemoveUnitHook takes nothing returns boolean - call Railway___RemoveUnitHook(f__arg_unit1) +function sa___prototype10_Railway__RemoveUnitHook takes nothing returns boolean + call Railway__RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_RayConfig___RemoveUnitHook takes nothing returns boolean - call FlushChildHashtable(RayConfig___h, GetHandleId((f__arg_unit1))) // INLINED!! +function sa___prototype10_RayConfig__RemoveUnitHook takes nothing returns boolean + call FlushChildHashtable(RayConfig__h, GetHandleId((f__arg_unit1))) // INLINED!! return true endfunction function sa___prototype192_TailSwipe___onUnitHit takes nothing returns boolean @@ -206664,8 +206798,8 @@ function sa___prototype10_RemoveAuraCaster takes nothing returns boolean call RemoveAuraCaster(f__arg_unit1) return true endfunction -function sa___prototype10_WoWReforgedOldHorde___RemoveDeathKnightHook takes nothing returns boolean - call WoWReforgedOldHorde___RemoveDeathKnightHook(f__arg_unit1) +function sa___prototype10_WoWReforgedOldHorde__RemoveDeathKnightHook takes nothing returns boolean + call WoWReforgedOldHorde__RemoveDeathKnightHook(f__arg_unit1) return true endfunction function sa___prototype390_FilterAlliedTargetsNonStructureMana takes nothing returns boolean @@ -206858,15 +206992,15 @@ function sa___prototype150_WoWReforgedPortals__HookWaygateActivate takes nothing call WoWReforgedPortals__HookWaygateActivate(f__arg_unit1,f__arg_boolean1) return true endfunction -function sa___prototype485_WoWReforgedPortals__HookWaygateActivateBJ takes nothing returns boolean +function sa___prototype486_WoWReforgedPortals__HookWaygateActivateBJ takes nothing returns boolean call WoWReforgedPortals__HookWaygateActivateBJ(f__arg_boolean1,f__arg_unit1) return true endfunction -function sa___prototype254_WoWReforgedPortals__HookWaygateSetDestination takes nothing returns boolean +function sa___prototype251_WoWReforgedPortals__HookWaygateSetDestination takes nothing returns boolean call WoWReforgedPortals__HookWaygateSetDestination(f__arg_unit1,f__arg_real1,f__arg_real2) return true endfunction -function sa___prototype486_WoWReforgedPortals__HookWaygateSetDestinationLocBJ takes nothing returns boolean +function sa___prototype487_WoWReforgedPortals__HookWaygateSetDestinationLocBJ takes nothing returns boolean call WoWReforgedPortals__HookWaygateSetDestinationLocBJ(f__arg_unit1,f__arg_location1) return true endfunction @@ -206899,7 +207033,7 @@ function sa___prototype50_s__MapChanger_storeHeroesSinglePlayerNewOpLimit takes return true endfunction -function jasshelper__initstructs2620277953 takes nothing returns nothing +function jasshelper__initstructs2735793515 takes nothing returns nothing set st__AbstractZone_onDestroy[171]=null set st__MapChanger_storeHeroesSinglePlayerNewOpLimit=CreateTrigger() call TriggerAddCondition(st__MapChanger_storeHeroesSinglePlayerNewOpLimit,Condition( function sa__MapChanger_storeHeroesSinglePlayerNewOpLimit)) @@ -207035,8 +207169,8 @@ function jasshelper__initstructs2620277953 takes nothing returns nothing call TriggerAddCondition(st__TimedAbility_add,Condition( function sa__TimedAbility_add)) set st__ResetCooldown_reset=CreateTrigger() call TriggerAddCondition(st__ResetCooldown_reset,Condition( function sa__ResetCooldown_reset)) - set st__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___resurrectionTimer=CreateTrigger() - call TriggerAddCondition(st__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___resurrectionTimer,Condition( function sa__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___resurrectionTimer)) + set st__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__resurrectionTimer=CreateTrigger() + call TriggerAddCondition(st__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__resurrectionTimer,Condition( function sa__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__resurrectionTimer)) set st__SpellVamp_onDestroy[114]=null set st__SpellVamp_onDestroy[140]=null set st__SpellPower_onDestroy[113]=null @@ -207110,8 +207244,8 @@ function jasshelper__initstructs2620277953 takes nothing returns nothing call TriggerAddAction(st___prototype10[1],function sa___prototype10_Attributes___HookRemoveUnit) call TriggerAddCondition(st___prototype10[1],Condition(function sa___prototype10_Attributes___HookRemoveUnit)) set st___prototype54[1]=CreateTrigger() - call TriggerAddAction(st___prototype54[1],function sa___prototype54_GroupUtils___HookDestroyBoolExpr) - call TriggerAddCondition(st___prototype54[1],Condition(function sa___prototype54_GroupUtils___HookDestroyBoolExpr)) + call TriggerAddAction(st___prototype54[1],function sa___prototype54_GroupUtils__HookDestroyBoolExpr) + call TriggerAddCondition(st___prototype54[1],Condition(function sa___prototype54_GroupUtils__HookDestroyBoolExpr)) set st___prototype10[2]=CreateTrigger() call TriggerAddAction(st___prototype10[2],function sa___prototype10_HeroUtils___RemoveUnitHook) call TriggerAddCondition(st___prototype10[2],Condition(function sa___prototype10_HeroUtils___RemoveUnitHook)) @@ -207119,11 +207253,11 @@ function jasshelper__initstructs2620277953 takes nothing returns nothing call TriggerAddAction(st___prototype10[3],function sa___prototype10_IdleWorkersSystem__RemoveUnitHook) call TriggerAddCondition(st___prototype10[3],Condition(function sa___prototype10_IdleWorkersSystem__RemoveUnitHook)) set st___prototype10[4]=CreateTrigger() - call TriggerAddAction(st___prototype10[4],function sa___prototype10_ItemOrbOfLight___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[4],Condition(function sa___prototype10_ItemOrbOfLight___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[4],function sa___prototype10_ItemOrbOfLight__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[4],Condition(function sa___prototype10_ItemOrbOfLight__RemoveUnitHook)) set st___prototype80[1]=CreateTrigger() - call TriggerAddAction(st___prototype80[1],function sa___prototype80_ItemRespawnSystem___RemoveItemCleanup) - call TriggerAddCondition(st___prototype80[1],Condition(function sa___prototype80_ItemRespawnSystem___RemoveItemCleanup)) + call TriggerAddAction(st___prototype80[1],function sa___prototype80_ItemRespawnSystem__RemoveItemCleanup) + call TriggerAddCondition(st___prototype80[1],Condition(function sa___prototype80_ItemRespawnSystem__RemoveItemCleanup)) set st___prototype101[1]=CreateTrigger() call TriggerAddAction(st___prototype101[1],function sa___prototype101_QuestSetTitleHook) call TriggerAddCondition(st___prototype101[1],Condition(function sa___prototype101_QuestSetTitleHook)) @@ -207181,48 +207315,48 @@ function jasshelper__initstructs2620277953 takes nothing returns nothing set st___prototype10[10]=CreateTrigger() call TriggerAddAction(st___prototype10[10],function sa___prototype10_WoWReforgedFel__RemoveUnitHook) call TriggerAddCondition(st___prototype10[10],Condition(function sa___prototype10_WoWReforgedFel__RemoveUnitHook)) - set st___prototype270[1]=CreateTrigger() - call TriggerAddAction(st___prototype270[1],function sa___prototype270_WoWReforgedInfoQuests___CreateQuestBJHook) - call TriggerAddCondition(st___prototype270[1],Condition(function sa___prototype270_WoWReforgedInfoQuests___CreateQuestBJHook)) - set st___prototype270[2]=CreateTrigger() - call TriggerAddAction(st___prototype270[2],function sa___prototype270_WoWReforgedQuests___CreateQuestBJHook) - call TriggerAddCondition(st___prototype270[2],Condition(function sa___prototype270_WoWReforgedQuests___CreateQuestBJHook)) + set st___prototype267[1]=CreateTrigger() + call TriggerAddAction(st___prototype267[1],function sa___prototype267_WoWReforgedInfoQuests___CreateQuestBJHook) + call TriggerAddCondition(st___prototype267[1],Condition(function sa___prototype267_WoWReforgedInfoQuests___CreateQuestBJHook)) + set st___prototype267[2]=CreateTrigger() + call TriggerAddAction(st___prototype267[2],function sa___prototype267_WoWReforgedQuests___CreateQuestBJHook) + call TriggerAddCondition(st___prototype267[2],Condition(function sa___prototype267_WoWReforgedQuests___CreateQuestBJHook)) + set st___prototype277[1]=CreateTrigger() + call TriggerAddAction(st___prototype277[1],function sa___prototype277_Log__DisplayTextToPlayerHook) + call TriggerAddCondition(st___prototype277[1],Condition(function sa___prototype277_Log__DisplayTextToPlayerHook)) + set st___prototype278[1]=CreateTrigger() + call TriggerAddAction(st___prototype278[1],function sa___prototype278_Log__DisplayTimedTextToPlayerHook) + call TriggerAddCondition(st___prototype278[1],Condition(function sa___prototype278_Log__DisplayTimedTextToPlayerHook)) + set st___prototype278[2]=CreateTrigger() + call TriggerAddAction(st___prototype278[2],function sa___prototype278_Log__DisplayTimedTextFromPlayerHook) + call TriggerAddCondition(st___prototype278[2],Condition(function sa___prototype278_Log__DisplayTimedTextFromPlayerHook)) + set st___prototype279[1]=CreateTrigger() + call TriggerAddAction(st___prototype279[1],function sa___prototype279_Log__DisplayTextToForceHook) + call TriggerAddCondition(st___prototype279[1],Condition(function sa___prototype279_Log__DisplayTextToForceHook)) set st___prototype280[1]=CreateTrigger() - call TriggerAddAction(st___prototype280[1],function sa___prototype280_Log___DisplayTextToPlayerHook) - call TriggerAddCondition(st___prototype280[1],Condition(function sa___prototype280_Log___DisplayTextToPlayerHook)) + call TriggerAddAction(st___prototype280[1],function sa___prototype280_Log__DisplayTimedTextToForceHook) + call TriggerAddCondition(st___prototype280[1],Condition(function sa___prototype280_Log__DisplayTimedTextToForceHook)) set st___prototype281[1]=CreateTrigger() - call TriggerAddAction(st___prototype281[1],function sa___prototype281_Log___DisplayTimedTextToPlayerHook) - call TriggerAddCondition(st___prototype281[1],Condition(function sa___prototype281_Log___DisplayTimedTextToPlayerHook)) - set st___prototype281[2]=CreateTrigger() - call TriggerAddAction(st___prototype281[2],function sa___prototype281_Log___DisplayTimedTextFromPlayerHook) - call TriggerAddCondition(st___prototype281[2],Condition(function sa___prototype281_Log___DisplayTimedTextFromPlayerHook)) + call TriggerAddAction(st___prototype281[1],function sa___prototype281_Log__QuestMessageBJHook) + call TriggerAddCondition(st___prototype281[1],Condition(function sa___prototype281_Log__QuestMessageBJHook)) + set st___prototype38[2]=CreateTrigger() + call TriggerAddAction(st___prototype38[2],function sa___prototype38_Log__BJDebugMsgHook) + call TriggerAddCondition(st___prototype38[2],Condition(function sa___prototype38_Log__BJDebugMsgHook)) + set st___prototype93[1]=CreateTrigger() + call TriggerAddAction(st___prototype93[1],function sa___prototype93_Log__BlzDisplayChatMessageHook) + call TriggerAddCondition(st___prototype93[1],Condition(function sa___prototype93_Log__BlzDisplayChatMessageHook)) set st___prototype282[1]=CreateTrigger() - call TriggerAddAction(st___prototype282[1],function sa___prototype282_Log___DisplayTextToForceHook) - call TriggerAddCondition(st___prototype282[1],Condition(function sa___prototype282_Log___DisplayTextToForceHook)) + call TriggerAddAction(st___prototype282[1],function sa___prototype282_Log__TransmissionFromUnitWithNameBJHook) + call TriggerAddCondition(st___prototype282[1],Condition(function sa___prototype282_Log__TransmissionFromUnitWithNameBJHook)) set st___prototype283[1]=CreateTrigger() - call TriggerAddAction(st___prototype283[1],function sa___prototype283_Log___DisplayTimedTextToForceHook) - call TriggerAddCondition(st___prototype283[1],Condition(function sa___prototype283_Log___DisplayTimedTextToForceHook)) + call TriggerAddAction(st___prototype283[1],function sa___prototype283_Log__TransmissionFromUnitTypeWithNameBJHook) + call TriggerAddCondition(st___prototype283[1],Condition(function sa___prototype283_Log__TransmissionFromUnitTypeWithNameBJHook)) set st___prototype284[1]=CreateTrigger() - call TriggerAddAction(st___prototype284[1],function sa___prototype284_Log___QuestMessageBJHook) - call TriggerAddCondition(st___prototype284[1],Condition(function sa___prototype284_Log___QuestMessageBJHook)) - set st___prototype38[2]=CreateTrigger() - call TriggerAddAction(st___prototype38[2],function sa___prototype38_Log___BJDebugMsgHook) - call TriggerAddCondition(st___prototype38[2],Condition(function sa___prototype38_Log___BJDebugMsgHook)) - set st___prototype93[1]=CreateTrigger() - call TriggerAddAction(st___prototype93[1],function sa___prototype93_Log___BlzDisplayChatMessageHook) - call TriggerAddCondition(st___prototype93[1],Condition(function sa___prototype93_Log___BlzDisplayChatMessageHook)) + call TriggerAddAction(st___prototype284[1],function sa___prototype284_Log__SetCinematicSceneHook) + call TriggerAddCondition(st___prototype284[1],Condition(function sa___prototype284_Log__SetCinematicSceneHook)) set st___prototype285[1]=CreateTrigger() - call TriggerAddAction(st___prototype285[1],function sa___prototype285_Log___TransmissionFromUnitWithNameBJHook) - call TriggerAddCondition(st___prototype285[1],Condition(function sa___prototype285_Log___TransmissionFromUnitWithNameBJHook)) - set st___prototype286[1]=CreateTrigger() - call TriggerAddAction(st___prototype286[1],function sa___prototype286_Log___TransmissionFromUnitTypeWithNameBJHook) - call TriggerAddCondition(st___prototype286[1],Condition(function sa___prototype286_Log___TransmissionFromUnitTypeWithNameBJHook)) - set st___prototype287[1]=CreateTrigger() - call TriggerAddAction(st___prototype287[1],function sa___prototype287_Log___SetCinematicSceneHook) - call TriggerAddCondition(st___prototype287[1],Condition(function sa___prototype287_Log___SetCinematicSceneHook)) - set st___prototype288[1]=CreateTrigger() - call TriggerAddAction(st___prototype288[1],function sa___prototype288_Log___SetCinematicSceneBJHook) - call TriggerAddCondition(st___prototype288[1],Condition(function sa___prototype288_Log___SetCinematicSceneBJHook)) + call TriggerAddAction(st___prototype285[1],function sa___prototype285_Log__SetCinematicSceneBJHook) + call TriggerAddCondition(st___prototype285[1],Condition(function sa___prototype285_Log__SetCinematicSceneBJHook)) set st___prototype16[2]=CreateTrigger() call TriggerAddAction(st___prototype16[2],function sa___prototype16_DisablePagedButtons) call TriggerAddCondition(st___prototype16[2],Condition(function sa___prototype16_DisablePagedButtons)) @@ -207254,11 +207388,11 @@ function jasshelper__initstructs2620277953 takes nothing returns nothing call TriggerAddAction(st___prototype10[16],function sa___prototype10_PhoenixEgg___RemoveUnitHook) call TriggerAddCondition(st___prototype10[16],Condition(function sa___prototype10_PhoenixEgg___RemoveUnitHook)) set st___prototype10[17]=CreateTrigger() - call TriggerAddAction(st___prototype10[17],function sa___prototype10_Railway___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[17],Condition(function sa___prototype10_Railway___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[17],function sa___prototype10_Railway__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[17],Condition(function sa___prototype10_Railway__RemoveUnitHook)) set st___prototype10[18]=CreateTrigger() - call TriggerAddAction(st___prototype10[18],function sa___prototype10_RayConfig___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[18],Condition(function sa___prototype10_RayConfig___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[18],function sa___prototype10_RayConfig__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[18],Condition(function sa___prototype10_RayConfig__RemoveUnitHook)) set st___prototype192[2]=CreateTrigger() call TriggerAddAction(st___prototype192[2],function sa___prototype192_TailSwipe___onUnitHit) call TriggerAddCondition(st___prototype192[2],Condition(function sa___prototype192_TailSwipe___onUnitHit)) @@ -207278,8 +207412,8 @@ function jasshelper__initstructs2620277953 takes nothing returns nothing call TriggerAddAction(st___prototype10[21],function sa___prototype10_RemoveAuraCaster) call TriggerAddCondition(st___prototype10[21],Condition(function sa___prototype10_RemoveAuraCaster)) set st___prototype10[22]=CreateTrigger() - call TriggerAddAction(st___prototype10[22],function sa___prototype10_WoWReforgedOldHorde___RemoveDeathKnightHook) - call TriggerAddCondition(st___prototype10[22],Condition(function sa___prototype10_WoWReforgedOldHorde___RemoveDeathKnightHook)) + call TriggerAddAction(st___prototype10[22],function sa___prototype10_WoWReforgedOldHorde__RemoveDeathKnightHook) + call TriggerAddCondition(st___prototype10[22],Condition(function sa___prototype10_WoWReforgedOldHorde__RemoveDeathKnightHook)) set st___prototype390[1]=CreateTrigger() call TriggerAddAction(st___prototype390[1],function sa___prototype390_FilterAlliedTargetsNonStructureMana) call TriggerAddCondition(st___prototype390[1],Condition(function sa___prototype390_FilterAlliedTargetsNonStructureMana)) @@ -207367,15 +207501,15 @@ function jasshelper__initstructs2620277953 takes nothing returns nothing set st___prototype150[1]=CreateTrigger() call TriggerAddAction(st___prototype150[1],function sa___prototype150_WoWReforgedPortals__HookWaygateActivate) call TriggerAddCondition(st___prototype150[1],Condition(function sa___prototype150_WoWReforgedPortals__HookWaygateActivate)) - set st___prototype485[1]=CreateTrigger() - call TriggerAddAction(st___prototype485[1],function sa___prototype485_WoWReforgedPortals__HookWaygateActivateBJ) - call TriggerAddCondition(st___prototype485[1],Condition(function sa___prototype485_WoWReforgedPortals__HookWaygateActivateBJ)) - set st___prototype254[1]=CreateTrigger() - call TriggerAddAction(st___prototype254[1],function sa___prototype254_WoWReforgedPortals__HookWaygateSetDestination) - call TriggerAddCondition(st___prototype254[1],Condition(function sa___prototype254_WoWReforgedPortals__HookWaygateSetDestination)) set st___prototype486[1]=CreateTrigger() - call TriggerAddAction(st___prototype486[1],function sa___prototype486_WoWReforgedPortals__HookWaygateSetDestinationLocBJ) - call TriggerAddCondition(st___prototype486[1],Condition(function sa___prototype486_WoWReforgedPortals__HookWaygateSetDestinationLocBJ)) + call TriggerAddAction(st___prototype486[1],function sa___prototype486_WoWReforgedPortals__HookWaygateActivateBJ) + call TriggerAddCondition(st___prototype486[1],Condition(function sa___prototype486_WoWReforgedPortals__HookWaygateActivateBJ)) + set st___prototype251[1]=CreateTrigger() + call TriggerAddAction(st___prototype251[1],function sa___prototype251_WoWReforgedPortals__HookWaygateSetDestination) + call TriggerAddCondition(st___prototype251[1],Condition(function sa___prototype251_WoWReforgedPortals__HookWaygateSetDestination)) + set st___prototype487[1]=CreateTrigger() + call TriggerAddAction(st___prototype487[1],function sa___prototype487_WoWReforgedPortals__HookWaygateSetDestinationLocBJ) + call TriggerAddCondition(st___prototype487[1],Condition(function sa___prototype487_WoWReforgedPortals__HookWaygateSetDestinationLocBJ)) set st___prototype10[28]=CreateTrigger() call TriggerAddAction(st___prototype10[28],function sa___prototype10_WoWReforgedEquipment___RemoveUnitHook) call TriggerAddCondition(st___prototype10[28],Condition(function sa___prototype10_WoWReforgedEquipment___RemoveUnitHook)) @@ -207387,25 +207521,25 @@ function jasshelper__initstructs2620277953 takes nothing returns nothing call TriggerAddCondition(st___prototype50[1],Condition(function sa___prototype50_s__MapChanger_storeHeroesSinglePlayerNewOpLimit)) -call ExecuteFunc("s__Ascii___Inits_Ascii___Init___onInit") +call ExecuteFunc("s__Ascii__Inits_Ascii__Init__onInit") -call ExecuteFunc("s__BlackArrowSystem___S_BlackArrowSystem___Init___onInit") +call ExecuteFunc("s__BlackArrowSystem__S_BlackArrowSystem__Init__onInit") -call ExecuteFunc("s__File_FileIO___FileInit___onInit") +call ExecuteFunc("s__File_FileIO__FileInit__onInit") -call ExecuteFunc("s__GameStatus___GameStatus_GameStatus___GameStatusInit___onInit") +call ExecuteFunc("s__GameStatus__GameStatus_GameStatus__GameStatusInit__onInit") -call ExecuteFunc("s__ItemRespawnSystem___S_ItemRespawnSystem___Init___onInit") +call ExecuteFunc("s__ItemRespawnSystem__S_ItemRespawnSystem__Init__onInit") -call ExecuteFunc("s__UserMouse_MouseUtils___Init___onInit") +call ExecuteFunc("s__UserMouse_MouseUtils__Init__onInit") @@ -207457,13 +207591,13 @@ call ExecuteFunc("s__UserMouse_MouseUtils___Init___onInit") -call ExecuteFunc("s__WorldBounds_WorldBounds___WorldBoundInit___onInit") +call ExecuteFunc("s__WorldBounds_WorldBounds___WorldBoundInit__onInit") -call ExecuteFunc("s__Jump_CTLEnd___onInit") +call ExecuteFunc("s__Jump_CTLEnd__onInit") @@ -207473,15 +207607,15 @@ call ExecuteFunc("s__Jump_CTLEnd___onInit") -call ExecuteFunc("s__Spell_PluginSpellEffect___Event___onInit") +call ExecuteFunc("s__Spell_PluginSpellEffect___Event__onInit") -call ExecuteFunc("s__RegisterNativeEvent___NativeEvent_RegisterNativeEvent___NativeEventInit___onInit") +call ExecuteFunc("s__RegisterNativeEvent___NativeEvent_RegisterNativeEvent___NativeEventInit__onInit") -call ExecuteFunc("s__SpellEffectEvent___S_SpellEffectEvent___M___onInit") +call ExecuteFunc("s__SpellEffectEvent___S_SpellEffectEvent___M__onInit") @@ -207491,11 +207625,11 @@ call ExecuteFunc("s__SpellEffectEvent___S_SpellEffectEvent___M___onInit") -call ExecuteFunc("s__TurretSystem__S_TurretSystem__Init___onInit") +call ExecuteFunc("s__TurretSystem__S_TurretSystem__Init__onInit") -call ExecuteFunc("s__UnitDex_UnitDex___UnitDexCore___onInit") +call ExecuteFunc("s__UnitDex_UnitDex___UnitDexCore__onInit") -call ExecuteFunc("s__UnitGroupRespawnSystemConfig___S_UnitGroupRespawnSystemConfig___Init___onInit") +call ExecuteFunc("s__UnitGroupRespawnSystemConfig___S_UnitGroupRespawnSystemConfig___Init__onInit") @@ -207516,7 +207650,7 @@ call ExecuteFunc("s__UnitGroupRespawnSystemConfig___S_UnitGroupRespawnSystemConf -call ExecuteFunc("s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore___onInit") +call ExecuteFunc("s__UnitEventEx___UnitEventEx_UnitEventEx___UnitEventExCore__onInit") diff --git a/wowr.w3x/war3map.mmp b/wowr.w3x/war3map.mmp index 1924fbe0..ec578d7f 100644 Binary files a/wowr.w3x/war3map.mmp and b/wowr.w3x/war3map.mmp differ diff --git a/wowr.w3x/war3map.w3i b/wowr.w3x/war3map.w3i index cb5d5daf..a3841c9b 100644 Binary files a/wowr.w3x/war3map.w3i and b/wowr.w3x/war3map.w3i differ diff --git a/wowr.w3x/war3map.wct b/wowr.w3x/war3map.wct index ba0c0ab0..d745995e 100644 Binary files a/wowr.w3x/war3map.wct and b/wowr.w3x/war3map.wct differ diff --git a/wowr.w3x/war3map.wpm b/wowr.w3x/war3map.wpm index 176fb87d..5b7fff0f 100644 Binary files a/wowr.w3x/war3map.wpm and b/wowr.w3x/war3map.wpm differ diff --git a/wowr.w3x/war3map.wtg b/wowr.w3x/war3map.wtg index 7aed1be0..aa3f3394 100644 Binary files a/wowr.w3x/war3map.wtg and b/wowr.w3x/war3map.wtg differ diff --git a/wowr.w3x/war3map.wts b/wowr.w3x/war3map.wts index 384dd09b..488185e7 100644 --- a/wowr.w3x/war3map.wts +++ b/wowr.w3x/war3map.wts @@ -9535,11 +9535,6 @@ STRING 1612 (Gnoll) (Town Hall) (Tier 1) } -STRING 1613 -{ -Website: https://wowreforged.org -} - STRING 1614 // Abilities: ANwm (Watery Minion), EditorSuffix (Editor Suffix) { @@ -11032,11 +11027,6 @@ STRING 1867 The Goblin Bank is a neutral building located Theramore. You can use it to increase your gold and lumber by depositing it for some time and getting interests. You can also play the Wheel of Fortune there. } -STRING 1868 -{ -Deposit gold and lumber to get interests. -} - STRING 1869 { Win gold, lumber or units with Wheel of Fortune. @@ -11181,11 +11171,6 @@ STRING 1893 Bonus heroes are additional heroes available at a higher hero level. Some of them are characters from Warcraft lore and have quite interesting hero abilities. } -STRING 1894 -{ -Available at hero level 40. -} - STRING 1895 { Evolution @@ -11196,31 +11181,6 @@ STRING 1896 You can research Evolution to increase the the maximum life, damage, armour and level of all of your units, so they will give enemy players more XP. The upgrade is also used for all creeps and units from bosses on the map as soon as the hero of playing users with the lowest hero level hits level 10. The upgrade is useful to continue leveling in late game and to kill strong heroes with a stronger army of units if you invested into units more than leveling. } -STRING 1897 -{ -Increases maximum life and damage of all units. -} - -STRING 1898 -{ -Increases the level and armor every 10 levels. -} - -STRING 1899 -{ -Used for creeps and boss units every 10 hero levels at once. -} - -STRING 1900 -{ -Does not affect buildings. -} - -STRING 1901 -{ -Creep level determined by the lowest hero level of playing users. -} - STRING 1902 { Hand of God @@ -11382,11 +11342,6 @@ Legends and rumors speak of many legendary Artifacts hidden across the World. Th If a Hero carrying a unique artifact DIES without an Ankh or the Reincarnation skill, the artifacts will be removed from the Hero. They can then again be retrieved from the location where they were originally found. } -STRING 1931 -{ -"-pingl": Pings all legendary items which are on the ground. -} - STRING 1932 { Bosses @@ -11832,21 +11787,6 @@ STRING 2016 This selection is restricted to warlords. They receive a scepter and tiny town hall of their race which allows them to summon two workers and therefore to build their first base. } -STRING 2017 -{ -For Warlords only. -} - -STRING 2018 -{ -"-r1/-r2/-r3": Allows you to (re)pick your races. -} - -STRING 2019 -{ -Additional races require a higher hero level of your first hero. -} - STRING 2020 { Professions @@ -11857,26 +11797,6 @@ STRING 2021 After choosing your race or game mode, you have to select a profession. The profession allows you to craft items. These items might help your hero or units to become stronger or to restore their stats or to fortify your base. Crafting items costs mana. } -STRING 2022 -{ -Allow crafting items. -} - -STRING 2023 -{ -"-p1/-p2/-p3": Allows you to (re)pick your professions. -} - -STRING 2024 -{ -Additional professions require a higher hero level of your first hero. -} - -STRING 2025 -{ -Higher hero levels reduce the crafting cooldowns and increases charges. -} - STRING 2026 { Heroes @@ -11887,41 +11807,6 @@ STRING 2027 You have to pick a hero in the beginning of the game which can be repicked. You are allowed to pick two additional heroes at some point when you reached a higher level with your first hero. } -STRING 2028 -{ -Enter "-repick" in the chat to repick your hero (you lose all units!). -} - -STRING 2029 -{ -Enter "-fullrepick" for losing 3/4 of your XP but repick the game mode. -} - -STRING 2030 -{ -Enter "-professionrepick" for repicking your profession only. -} - -STRING 2031 -{ -"-h1/-h2/-h3": to (re)pick hero 1 -3. -} - -STRING 2032 -{ -Additional heroes require a higher hero level of your first hero. -} - -STRING 2033 -{ -Hero 2 and 3 have no backpack. -} - -STRING 2034 -{ -Boss heroes require hero level 60. -} - STRING 2035 { Game Modes @@ -11932,16 +11817,6 @@ STRING 2036 You can choose one of two game modes after the hero selection. As a warlord you play partly in the strategy mode and can build a base. This has the advantage that you have mostly a bigger army than other players. On the other hand, as a freelancer your hero starts with +15 points on all attributes and your hero gets 30% more experience from killing hostile units. Freelancers can see neutral buildings from start. } -STRING 2037 -{ -Warlord: Partly strategy mode. -} - -STRING 2038 -{ -Freelancer: Pure RPG mode, begins with +15 attributes and +30 % XP rate. -} - STRING 2039 { Game Type @@ -12795,26 +12670,6 @@ STRING 2180 Blizzard - [|cffffcc00Level 8|r] } -STRING 2181 -{ -Normal: Nothing changes. Default game type. -} - -STRING 2182 -{ -Fast: Fast XP, building, resources -} - -STRING 2183 -{ -Hardcore: Increased boss and creep HP, slower leveling, no repicks, -} - -STRING 2184 -{ -defeat when losing a town hall. -} - STRING 2185 { Known Issues @@ -12825,21 +12680,6 @@ STRING 2186 Unfortunately, this map has some known unfixed issues. If you think you know the cause of an issue or the solution to fix it, please report it on Discord. } -STRING 2187 -{ -Long loading time leads to errors for some players. -} - -STRING 2188 -{ -Enchanting does not work for all item abilities due to Warcraft bugs. -} - -STRING 2189 -{ -Goblin Town Hall has a weird light bug pointing to the hero glow. -} - STRING 2190 { Hero Journey @@ -27832,11 +27672,6 @@ STRING 4691 (Dungeon) } -STRING 4692 -{ -Line of Sight Blockers do not work for flying units (occlusion height). -} - STRING 4693 // Units: N0HH (Geomancer), Name (Name) { @@ -28306,26 +28141,6 @@ STRING 4773 Welcome to World of Warcraft Reforged. This map is an open world RPG. This means that you can do whatever you want to. Complete some of the optional quests, hunt other players or forge alliances. Baradé wishes you a lot of fun while playing. I thank EvilPitlord and DeMoNiKuS for the creation of the original map "World of Warcraft Reborn". } -STRING 4774 -{ -Creator: Baradé -} - -STRING 4775 -{ -Please provide feedback. -} - -STRING 4776 -{ -Development: https://github.com/tdauth/wowr -} - -STRING 4777 -{ -Discord: https://discord.gg/eM34z36 -} - STRING 4778 // Units: n08L (Mercenary Camp Pandaria), EditorSuffix (Name - Editor Suffix) { @@ -29656,7 +29471,7 @@ Train Red Dragon } STRING 4998 -// Units: n0AP (Human Citizen (male)), Name (Name) +// Units: n066 (Human Citizen (male)), Name (Name) { Human Citizen (male) } @@ -30098,11 +29913,6 @@ STRING 5071 Units owned by player Gaia can be rescued by any other player. Rescued units change their owner to the rescuing player. Rescuing units is only possible if you the player has enough food left to rescue the unit. } -STRING 5072 -{ -Researches increasing unit maximum life can lead to negative maximum life and instant unit deaths. -} - STRING 5073 // Units: H04W (Item Costs Dummy Hero), Name (Name) { @@ -30254,7 +30064,7 @@ Fleet Admiral Tethys } STRING 5098 -// Units: n0AP (Human Citizen (male)), Tip (Tooltip - Basic) +// Units: n00E (Human Citizen (male)), Tip (Tooltip - Basic) { Hire Human Citizen (male) } @@ -31873,13 +31683,13 @@ Azjol-Nerub } STRING 5368 -// Units: n0AP (Human Citizen (male)), Ubertip (Tooltip - Extended) +// Units: n00E (Human Citizen (male)), Ubertip (Tooltip - Extended) { A hearty human citizen. Has life regeneration aura. } STRING 5369 -// Units: n0AQ (Human Citizen (female)), Name (Name) +// Units: n00F (Human Citizen (female)), Name (Name) { Human Citizen (female) } @@ -31891,7 +31701,7 @@ Light flying melee unit that causes extra damage against air units. Can learn Tr } STRING 5371 -// Units: n0AQ (Human Citizen (female)), Tip (Tooltip - Basic) +// Units: n00F (Human Citizen (female)), Tip (Tooltip - Basic) { Hire Human Citizen (female) } @@ -31945,7 +31755,7 @@ Town Portal - [|cffffcc00Level 2|r] } STRING 5380 -// Units: n0AQ (Human Citizen (female)), Ubertip (Tooltip - Extended) +// Units: n00F (Human Citizen (female)), Ubertip (Tooltip - Extended) { An intelligent Human citizen. Has mana regeneration aura. } @@ -31963,101 +31773,111 @@ Train Human Child } STRING 5383 -// Units: n0AS (Human Child), Ubertip (Tooltip - Extended) +// Units: n0IT (Undead Child), Ubertip (Tooltip - Extended) { A tiny villager who can cast Disarmament. } STRING 5384 -// Units: n0AV (Pet Sheep), Name (Name) +// Units: n00Q (Pet Sheep), Name (Name) { Pet Sheep } STRING 5385 -// Units: n0AV (Pet Sheep), Description (Description) +// Units: n00Q (Pet Sheep), Description (Description) { A lovely pet. } STRING 5386 -// Units: h04X (Human Housing), Name (Name) +// Units: h00R (Human Housing), Name (Name) { Human Housing } STRING 5387 -// Units: h04X (Human Housing), Tip (Tooltip - Basic) +// Units: h00R (Human Housing), Tip (Tooltip - Basic) { Build Human Housing } STRING 5388 -// Units: h04X (Human Housing), Ubertip (Tooltip - Extended) +// Units: h00T (Blood Elf Housing), Ubertip (Tooltip - Extended) { Provides an additional source of gold income.|n|n|cffffcc00Limited to 4.|r } STRING 5389 -// Upgrades: R0CY (Naga Siren Adept Training,Naga Siren Master Training), Hotkey (Hotkey) +// Units: n00N (Naga Citizen (female)), Hotkey (Hotkey) { M } STRING 5390 -// Upgrades: R0H5 (Chaos), Hotkey (Hotkey) +// Units: h014 (Portal), Hotkey (Hotkey) { P } STRING 5391 -// Upgrades: R0HO (Storm Hammers), EditorSuffix (Editor Suffix) +// Units: h0S3 (Town Hall), EditorSuffix (Name - Editor Suffix) { (Alliance of Lordaeron) } STRING 5392 -// Upgrades: R0HP (Storm Hammers), EditorSuffix (Editor Suffix) +// Units: h0TE (Keep), EditorSuffix (Name - Editor Suffix) { (Alliance of Lordaeron) } STRING 5393 -// Upgrades: R0HQ (Storm Hammers), EditorSuffix (Editor Suffix) +// Units: h0TF (Castle), EditorSuffix (Name - Editor Suffix) { (Alliance of Lordaeron) } STRING 5394 -// Upgrades: R0HR (Storm Hammers), EditorSuffix (Editor Suffix) +// Units: h0TG (Farm), EditorSuffix (Name - Editor Suffix) { (Alliance of Lordaeron) } STRING 5395 -// Upgrades: R0HS (Black Gunpowder,Refined Gunpowder,Imbued Gunpowder), EditorSuffix (Editor Suffix) +// Units: h0TH (Barracks), EditorSuffix (Name - Editor Suffix) { (Alliance of Lordaeron) } STRING 5396 -// Upgrades: R05E (Defend), Hotkey (Hotkey) +// Units: n00O (Night Elf Citizen (male)), Hotkey (Hotkey) { M } STRING 5397 -// Upgrades: R07E (Sundering Blades), Hotkey (Hotkey) +// Units: h098 (Troll Housing), Hotkey (Hotkey) { O } STRING 5398 -// Upgrades: R07Q (Stone Form), Hotkey (Hotkey) +// Units: n0D5 (Gnome Child), Hotkey (Hotkey) { C } +STRING 5399 +{ +Players +} + +STRING 5400 +{ +Players own heroes, units, buildings and resources. The number of players is determined in the game lobby. Computer players play with Warcraft's AI. Empty slots will not be playing. Users can leave at any time during a game. Users can also be kicked from games by votes.One single player is the host.The ownership of units can be transfered to other players using spells like Charm or chat commands. Players can use their save codes to to save/load data during a game. There are several fixed Computer players which cannot be changed in the game lobby. Alliances between players are preset by their game lobby team. Alliances can be changed during the game using chat commands. +} + STRING 5405 // Units: h0CR (Kul Tiras Advanced Shipyard), Name (Name) { @@ -32317,13 +32137,13 @@ Build Trade House } STRING 5473 -// Units: h098 (Troll Housing), Hotkey (Hotkey) +// Units: h09E (Dalaran Housing), Hotkey (Hotkey) { O } STRING 5474 -// Units: h09E (Dalaran Housing), Hotkey (Hotkey) +// Units: H0B2 (Sorceress), Hotkey (Hotkey) { O } @@ -33187,49 +33007,49 @@ Sends the Pack Horse to the allied Trading Post furthest away to gather gold and } STRING 5681 -// Units: n00N (Naga Citizen (female)), Hotkey (Hotkey) +// Units: n00P (Night Elf Citizen (female)), Hotkey (Hotkey) { M } STRING 5682 -// Units: n00O (Night Elf Citizen (male)), Hotkey (Hotkey) +// Units: u007 (Fortified Infernal Machine), Hotkey (Hotkey) { M } STRING 5683 -// Units: n00P (Night Elf Citizen (female)), Hotkey (Hotkey) +// Units: n016 (Demon Citizen (male)), Hotkey (Hotkey) { M } STRING 5684 -// Units: u007 (Fortified Infernal Machine), Hotkey (Hotkey) +// Units: n017 (Demon Citizen (female)), Hotkey (Hotkey) { M } STRING 5685 -// Units: n016 (Demon Citizen (male)), Hotkey (Hotkey) +// Units: n01C (Infernal Machine), Hotkey (Hotkey) { M } STRING 5686 -// Units: n017 (Demon Citizen (female)), Hotkey (Hotkey) +// Units: n01L (Draenei Citizen (male)), Hotkey (Hotkey) { M } STRING 5687 -// Units: n01C (Infernal Machine), Hotkey (Hotkey) +// Units: n01M (Draenei Citizen (female)), Hotkey (Hotkey) { M } STRING 5688 -// Units: n01L (Draenei Citizen (male)), Hotkey (Hotkey) +// Units: n029 (Furbolg Citizen (male)), Hotkey (Hotkey) { M } @@ -33241,55 +33061,55 @@ STRING 5702 } STRING 5703 -// Units: n01M (Draenei Citizen (female)), Hotkey (Hotkey) +// Units: n02A (Furbolg Citizen (female)), Hotkey (Hotkey) { M } STRING 5704 -// Units: n029 (Furbolg Citizen (male)), Hotkey (Hotkey) +// Units: H018 (The Last Guardian), Hotkey (Hotkey) { M } STRING 5705 -// Units: n02A (Furbolg Citizen (female)), Hotkey (Hotkey) +// Units: n02Y (Neutral Citizen (male)), Hotkey (Hotkey) { M } STRING 5706 -// Units: H018 (The Last Guardian), Hotkey (Hotkey) +// Units: o00S (Fuel Pump), Hotkey (Hotkey) { M } STRING 5707 -// Units: n02Y (Neutral Citizen (male)), Hotkey (Hotkey) +// Units: n03Y (Goblin Citizen (male)), Hotkey (Hotkey) { M } STRING 5708 -// Units: o00S (Fuel Pump), Hotkey (Hotkey) +// Units: n03Z (Goblin Citizen (female)), Hotkey (Hotkey) { M } STRING 5709 -// Units: n03Y (Goblin Citizen (male)), Hotkey (Hotkey) +// Units: n04J (Trading Post), Hotkey (Hotkey) { M } STRING 5710 -// Units: n03Z (Goblin Citizen (female)), Hotkey (Hotkey) +// Units: n04S (Dwarf Citizen (male)), Hotkey (Hotkey) { M } STRING 5711 -// Units: n04J (Trading Post), Hotkey (Hotkey) +// Units: n050 (Dwarf Citizen (female)), Hotkey (Hotkey) { M } @@ -33301,55 +33121,55 @@ STRING 5725 } STRING 5726 -// Units: n04S (Dwarf Citizen (male)), Hotkey (Hotkey) +// Units: n05E (High Elf Citizen (male)), Hotkey (Hotkey) { M } STRING 5727 -// Units: n050 (Dwarf Citizen (female)), Hotkey (Hotkey) +// Units: n05J (High Elf Citizen (female)), Hotkey (Hotkey) { M } STRING 5728 -// Units: n05E (High Elf Citizen (male)), Hotkey (Hotkey) +// Units: n066 (Human Citizen (male)), Hotkey (Hotkey) { M } STRING 5729 -// Units: n05J (High Elf Citizen (female)), Hotkey (Hotkey) +// Units: n07X (Troll Citizen (male)), Hotkey (Hotkey) { M } STRING 5730 -// Units: n066 (Human Citizen (male)), Hotkey (Hotkey) +// Units: o02H (Manhunter), Hotkey (Hotkey) { M } STRING 5731 -// Units: n07X (Troll Citizen (male)), Hotkey (Hotkey) +// Units: n081 (Troll Citizen (female)), Hotkey (Hotkey) { M } STRING 5732 -// Units: o02H (Manhunter), Hotkey (Hotkey) +// Units: n082 (Dalaran Citizen (male)), Hotkey (Hotkey) { M } STRING 5733 -// Units: n081 (Troll Citizen (female)), Hotkey (Hotkey) +// Units: n08B (Dalaran Citizen (female)), Hotkey (Hotkey) { M } STRING 5734 -// Units: n082 (Dalaran Citizen (male)), Hotkey (Hotkey) +// Units: n08M (Pandaren Citizen (male)), Hotkey (Hotkey) { M } @@ -33361,61 +33181,61 @@ S } STRING 5749 -// Units: n08B (Dalaran Citizen (female)), Hotkey (Hotkey) +// Units: n08N (Pandaren Citizen (female)), Hotkey (Hotkey) { M } STRING 5750 -// Units: n08M (Pandaren Citizen (male)), Hotkey (Hotkey) +// Units: n09Z (Tauren Citizen (male)), Hotkey (Hotkey) { M } STRING 5751 -// Units: n08N (Pandaren Citizen (female)), Hotkey (Hotkey) +// Units: n0BL (Human Citizen (female) (Kul Tiras)), Hotkey (Hotkey) { M } STRING 5752 -// Units: n09Z (Tauren Citizen (male)), Hotkey (Hotkey) +// Units: n0BM (Tauren Citizen (female)), Hotkey (Hotkey) { M } STRING 5753 -// Units: n0BL (Human Citizen (female) (Kul Tiras)), Hotkey (Hotkey) +// Units: n0C5 (Worgen Citizen (male)), Hotkey (Hotkey) { M } STRING 5754 -// Units: n0BM (Tauren Citizen (female)), Hotkey (Hotkey) +// Units: n0C6 (Worgen Citizen (female)), Hotkey (Hotkey) { M } STRING 5755 -// Units: n0C5 (Worgen Citizen (male)), Hotkey (Hotkey) +// Units: o04N (Monk), Hotkey (Hotkey) { M } STRING 5756 -// Units: n0C6 (Worgen Citizen (female)), Hotkey (Hotkey) +// Units: n0D0 (Gnome Citizen (male)), Hotkey (Hotkey) { M } STRING 5757 -// Units: o04N (Monk), Hotkey (Hotkey) +// Units: n0D4 (Gnome Citizen (female)), Hotkey (Hotkey) { M } STRING 5770 -// Units: n0D0 (Gnome Citizen (male)), Hotkey (Hotkey) +// Units: n0DY (Human Citizen (male)), Hotkey (Hotkey) { M } @@ -33427,61 +33247,61 @@ Replenish Mana and Life } STRING 5772 -// Units: n0D4 (Gnome Citizen (female)), Hotkey (Hotkey) +// Units: n0E0 (Human Citizen (female)), Hotkey (Hotkey) { M } STRING 5773 -// Units: n0DY (Human Citizen (male)), Hotkey (Hotkey) +// Units: n0E9 (Nerubian Citizen (male)), Hotkey (Hotkey) { M } STRING 5774 -// Units: n0E0 (Human Citizen (female)), Hotkey (Hotkey) +// Units: n0EA (Nerubian Citizen (female)), Hotkey (Hotkey) { M } STRING 5775 -// Units: n0E9 (Nerubian Citizen (male)), Hotkey (Hotkey) +// Units: n0F0 (Mammoth), Hotkey (Hotkey) { M } STRING 5776 -// Units: n0EA (Nerubian Citizen (female)), Hotkey (Hotkey) +// Units: n0F4 (Vrykul Citizen (male)), Hotkey (Hotkey) { M } STRING 5777 -// Units: n0F0 (Mammoth), Hotkey (Hotkey) +// Units: n0F5 (Vrykul Citizen (female)), Hotkey (Hotkey) { M } STRING 5778 -// Units: n0F4 (Vrykul Citizen (male)), Hotkey (Hotkey) +// Units: n0FG (Tuskarr Citizen (male)), Hotkey (Hotkey) { M } STRING 5779 -// Units: n0F5 (Vrykul Citizen (female)), Hotkey (Hotkey) +// Units: n0FK (Icetusk Mammoth), Hotkey (Hotkey) { M } STRING 5780 -// Units: n0FG (Tuskarr Citizen (male)), Hotkey (Hotkey) +// Units: n0FN (Tuskarr Citizen (female)), Hotkey (Hotkey) { M } STRING 5793 -// Units: n0FK (Icetusk Mammoth), Hotkey (Hotkey) +// Units: E01K (Archdruid), Hotkey (Hotkey) { M } @@ -33493,199 +33313,199 @@ Night Elf Housing } STRING 5795 -// Units: n0FN (Tuskarr Citizen (female)), Hotkey (Hotkey) +// Units: n0G4 (Murloc Citizen (male)), Hotkey (Hotkey) { M } STRING 5796 -// Units: E01K (Archdruid), Hotkey (Hotkey) +// Units: n0GF (Ogre Citizen (male)), Hotkey (Hotkey) { M } STRING 5797 -// Units: n0G4 (Murloc Citizen (male)), Hotkey (Hotkey) +// Units: n0GG (Ogre Citizen (female)), Hotkey (Hotkey) { M } STRING 5798 -// Units: n0GF (Ogre Citizen (male)), Hotkey (Hotkey) +// Units: N0HU (Magnataur Destroyer), Hotkey (Hotkey) { M } STRING 5799 -// Units: n0GG (Ogre Citizen (female)), Hotkey (Hotkey) +// Units: n08K (Stonemaul Magi), Hotkey (Hotkey) { M } STRING 5800 -// Units: N0HU (Magnataur Destroyer), Hotkey (Hotkey) +// Units: o07E (Mok'Nathal), Hotkey (Hotkey) { M } STRING 5801 -// Units: n08K (Stonemaul Magi), Hotkey (Hotkey) +// Units: n05S (Human Citizen (male)), Hotkey (Hotkey) { M } STRING 5802 -// Units: o07E (Mok'Nathal), Hotkey (Hotkey) +// Units: h0RM (Mage), Hotkey (Hotkey) { M } STRING 5803 -// Units: n05S (Human Citizen (male)), Hotkey (Hotkey) +// Units: n0JO (Eredar Citizen (male)), Hotkey (Hotkey) { M } STRING 5816 -// Units: h0RM (Mage), Hotkey (Hotkey) +// Units: n0JP (Eredar Citizen (female)), Hotkey (Hotkey) { M } STRING 5817 -// Units: H0B2 (Sorceress), Hotkey (Hotkey) +// Units: e016 (Night Elf Housing), Hotkey (Hotkey) { O } STRING 5818 -// Units: n0JO (Eredar Citizen (male)), Hotkey (Hotkey) +// Units: n0JV (Murloc Citizen (female)), Hotkey (Hotkey) { M } STRING 5819 -// Units: n0JP (Eredar Citizen (female)), Hotkey (Hotkey) +// Units: n0KB (Faceless One Citizen (male)), Hotkey (Hotkey) { M } STRING 5820 -// Units: n0JV (Murloc Citizen (female)), Hotkey (Hotkey) +// Units: n0KG (Faceless One Citizen (female)), Hotkey (Hotkey) { M } STRING 5821 -// Units: n0KB (Faceless One Citizen (male)), Hotkey (Hotkey) +// Units: n0KS (Fel Orc Citizen (male)), Hotkey (Hotkey) { M } STRING 5822 -// Units: n0KG (Faceless One Citizen (female)), Hotkey (Hotkey) +// Units: n0KT (Fel Orc Citizen (female)), Hotkey (Hotkey) { M } STRING 5823 -// Units: n0KS (Fel Orc Citizen (male)), Hotkey (Hotkey) +// Units: n0KX (Satyr Citizen (male)), Hotkey (Hotkey) { M } STRING 5824 -// Units: n0KT (Fel Orc Citizen (female)), Hotkey (Hotkey) +// Units: n0KY (Satyr Citizen (female)), Hotkey (Hotkey) { M } STRING 5825 -// Units: n0KX (Satyr Citizen (male)), Hotkey (Hotkey) +// Units: n062 (Draenei Harvester's Mill), Hotkey (Hotkey) { M } STRING 5826 -// Units: n0KY (Satyr Citizen (female)), Hotkey (Hotkey) +// Units: n09C (Kobold Citizen (male)), Hotkey (Hotkey) { M } STRING 5827 -// Units: n062 (Draenei Harvester's Mill), Hotkey (Hotkey) +// Units: n0A3 (Kobold Citizen (female)), Hotkey (Hotkey) { M } STRING 5828 -// Units: n09C (Kobold Citizen (male)), Hotkey (Hotkey) +// Units: n0MD (Centaur Citizen (male)), Hotkey (Hotkey) { M } STRING 5829 -// Units: n0A3 (Kobold Citizen (female)), Hotkey (Hotkey) +// Units: n0ME (Centaur Citizen (female)), Hotkey (Hotkey) { M } STRING 5830 -// Units: n0MD (Centaur Citizen (male)), Hotkey (Hotkey) +// Units: o0AY (Razormane Mystic), Hotkey (Hotkey) { M } STRING 5831 -// Units: n0ME (Centaur Citizen (female)), Hotkey (Hotkey) +// Units: n0NN (Quillboar Citizen (male)), Hotkey (Hotkey) { M } STRING 5832 -// Units: o0AY (Razormane Mystic), Hotkey (Hotkey) +// Units: n0NO (Quillboar Citizen (female)), Hotkey (Hotkey) { M } STRING 5833 -// Units: n0NN (Quillboar Citizen (male)), Hotkey (Hotkey) +// Units: n0NV (Gnoll Citizen (male)), Hotkey (Hotkey) { M } STRING 5834 -// Units: n0NO (Quillboar Citizen (female)), Hotkey (Hotkey) +// Units: n0NW (Gnoll Citizen (female)), Hotkey (Hotkey) { M } STRING 5835 -// Units: n0NV (Gnoll Citizen (male)), Hotkey (Hotkey) +// Units: n08C (Bandit Citizen (female)), Hotkey (Hotkey) { M } STRING 5836 -// Units: n0NW (Gnoll Citizen (female)), Hotkey (Hotkey) +// Units: n08X (Bandit Citizen (male)), Hotkey (Hotkey) { M } STRING 5837 -// Units: n08C (Bandit Citizen (female)), Hotkey (Hotkey) +// Units: n0A4 (Dungeon Citizen (male)), Hotkey (Hotkey) { M } STRING 5838 -// Units: n08X (Bandit Citizen (male)), Hotkey (Hotkey) +// Units: n0A7 (Dungeon Citizen (female)), Hotkey (Hotkey) { M } STRING 5839 -// Units: n0A4 (Dungeon Citizen (male)), Hotkey (Hotkey) +// Units: n0AP (Human Citizen (male)), Hotkey (Hotkey) { M } @@ -33697,55 +33517,55 @@ T } STRING 5842 -// Units: n0A7 (Dungeon Citizen (female)), Hotkey (Hotkey) +// Units: n0AQ (Human Citizen (female)), Hotkey (Hotkey) { M } STRING 5843 -// Units: n0AP (Human Citizen (male)), Hotkey (Hotkey) +// Items: I027 (Unique - Medivh's Spell Book), Hotkey (Hotkey) { M } STRING 5844 -// Units: n0AQ (Human Citizen (female)), Hotkey (Hotkey) +// Items: I06Z (Magic Sentry), Hotkey (Hotkey) { M } STRING 5845 -// Items: I027 (Unique - Medivh's Spell Book), Hotkey (Hotkey) +// Items: I0AB (Mass Teleport), Hotkey (Hotkey) { M } STRING 5846 -// Items: I06Z (Magic Sentry), Hotkey (Hotkey) +// Items: I0BQ (Feedback), Hotkey (Hotkey) { M } STRING 5847 -// Items: I0AB (Mass Teleport), Hotkey (Hotkey) +// Items: I0C9 (Open Portals), Hotkey (Hotkey) { M } STRING 5848 -// Items: I0BQ (Feedback), Hotkey (Hotkey) +// Items: I0CA (Shadow Strike), Hotkey (Hotkey) { M } STRING 5849 -// Items: I0C9 (Open Portals), Hotkey (Hotkey) +// Items: I0CB (Thorns Aura), Hotkey (Hotkey) { M } STRING 5850 -// Items: I0CA (Shadow Strike), Hotkey (Hotkey) +// Items: I0CC (Battle Roar), Hotkey (Hotkey) { M } @@ -33781,61 +33601,61 @@ Hero Level 55 } STRING 5861 -// Items: I0CB (Thorns Aura), Hotkey (Hotkey) +// Items: I0CD (Evasion), Hotkey (Hotkey) { M } STRING 5862 -// Items: I0CC (Battle Roar), Hotkey (Hotkey) +// Items: I0CE (Mana Burn), Hotkey (Hotkey) { M } STRING 5863 -// Items: I0CD (Evasion), Hotkey (Hotkey) +// Items: I0GF (Town Portal), Hotkey (Hotkey) { M } STRING 5864 -// Items: I0CE (Mana Burn), Hotkey (Hotkey) +// Items: I0GG (Find Artifacts), Hotkey (Hotkey) { M } STRING 5865 -// Items: I0GF (Town Portal), Hotkey (Hotkey) +// Items: I0J7 (Feedback Aura), Hotkey (Hotkey) { M } STRING 5866 -// Items: I0GG (Find Artifacts), Hotkey (Hotkey) +// Items: I0JD (Mass Mana Burn), Hotkey (Hotkey) { M } STRING 5867 -// Items: I0J7 (Feedback Aura), Hotkey (Hotkey) +// Items: I0L0 (Moving Boxes), Hotkey (Hotkey) { M } STRING 5868 -// Items: I0JD (Mass Mana Burn), Hotkey (Hotkey) +// Items: I0N7 (Finish Construction), Hotkey (Hotkey) { M } STRING 5869 -// Items: I0L0 (Moving Boxes), Hotkey (Hotkey) +// Items: I0OE (Evasion Aura), Hotkey (Hotkey) { M } STRING 5880 -// Items: I0N7 (Finish Construction), Hotkey (Hotkey) +// Items: I0U1 (Reflection), Hotkey (Hotkey) { M } @@ -34819,7 +34639,7 @@ Allies the Burning Legion for 5 minutes. } STRING 6220 -// Units: n00E (Human Citizen (male)), Ubertip (Tooltip - Extended) +// Units: n066 (Human Citizen (male)), Ubertip (Tooltip - Extended) { A hearty human citizen. Has life regeneration aura. } @@ -36168,7 +35988,7 @@ R } STRING 6588 -// Units: n0D5 (Gnome Child), Hotkey (Hotkey) +// Units: n0FF (Chieftain), Hotkey (Hotkey) { C } @@ -36318,7 +36138,7 @@ Close Gate } STRING 6614 -// Units: e016 (Night Elf Housing), Hotkey (Hotkey) +// Units: h0H1 (Tauren Housing), Hotkey (Hotkey) { O } @@ -36744,7 +36564,7 @@ Hero Level 5 } STRING 6686 -// Units: h0H1 (Tauren Housing), Hotkey (Hotkey) +// Units: h0JA (Worgen Housing), Hotkey (Hotkey) { O } @@ -36858,7 +36678,7 @@ Replenish Mana and Life - [|cffffcc00Level 4|r] } STRING 6707 -// Items: I0OE (Evasion Aura), Hotkey (Hotkey) +// Items: I0Y2 (Mass Fel), Hotkey (Hotkey) { M } @@ -36948,7 +36768,7 @@ W } STRING 6723 -// Units: n0FF (Chieftain), Hotkey (Hotkey) +// Units: o06R (Ogre Cave), Hotkey (Hotkey) { C } @@ -36972,7 +36792,7 @@ Research Improved Trading - [|cffffcc00Level 44|r] } STRING 6727 -// Units: o06R (Ogre Cave), Hotkey (Hotkey) +// Units: o077 (Clefthoof), Hotkey (Hotkey) { C } @@ -37044,13 +36864,13 @@ U } STRING 6739 -// Units: o077 (Clefthoof), Hotkey (Hotkey) +// Units: h0RV (Cannon), Hotkey (Hotkey) { C } STRING 6740 -// Units: h0JA (Worgen Housing), Hotkey (Hotkey) +// Units: h0JU (Pandaren Housing), Hotkey (Hotkey) { O } @@ -38256,7 +38076,7 @@ Summon Old God of Madness and Chaos } STRING 6957 -// Units: h014 (Portal), Hotkey (Hotkey) +// Units: n02D (Furbolg Polar Hut), Hotkey (Hotkey) { P } @@ -38286,7 +38106,7 @@ Previous Hero } STRING 6962 -// Units: n02D (Furbolg Polar Hut), Hotkey (Hotkey) +// Units: n02K (Polar Furbolg), Hotkey (Hotkey) { P } @@ -40876,7 +40696,7 @@ W } STRING 7419 -// Units: h0RV (Cannon), Hotkey (Hotkey) +// Units: H0T2 (Author), Hotkey (Hotkey) { C } @@ -41014,7 +40834,7 @@ Research Cheap Evolution - [|cffffcc00Level 56|r] } STRING 7443 -// Items: I0U1 (Reflection), Hotkey (Hotkey) +// Items: I0Y3 (Fel), Hotkey (Hotkey) { M } @@ -41920,7 +41740,7 @@ Defend } STRING 7605 -// Units: H0T2 (Author), Hotkey (Hotkey) +// Units: n0IT (Undead Child), Hotkey (Hotkey) { C } @@ -41956,7 +41776,7 @@ Cripple } STRING 7611 -// Units: n02K (Polar Furbolg), Hotkey (Hotkey) +// Units: n039 (Book of Summoning Pedestal), Hotkey (Hotkey) { P } @@ -42146,7 +41966,7 @@ Cleaving Attack } STRING 7649 -// Units: n0IT (Undead Child), Ubertip (Tooltip - Extended) +// Units: n0IV (Neutral Child), Ubertip (Tooltip - Extended) { A tiny villager who can cast Disarmament. } @@ -42176,7 +41996,7 @@ Train Furbolg Child } STRING 7654 -// Units: n0IV (Neutral Child), Ubertip (Tooltip - Extended) +// Units: n0IX (Night Elf Child), Ubertip (Tooltip - Extended) { A tiny villager who can cast Disarmament. } @@ -42674,7 +42494,7 @@ S } STRING 7737 -// Items: I0Y2 (Mass Fel), Hotkey (Hotkey) +// Items: I0Z6 (Envenomed Weapons), Hotkey (Hotkey) { M } @@ -42949,7 +42769,7 @@ Enabled rescuing units from player Gaia. } STRING 7784 -// Units: h00R (Human Housing), Name (Name) +// Units: h0N7 (Human Housing), Name (Name) { Human Housing } @@ -43008,43 +42828,43 @@ Summon Parasite } STRING 7798 -// Units: h0JU (Pandaren Housing), Hotkey (Hotkey) +// Units: h0KZ (Gnome Housing), Hotkey (Hotkey) { O } STRING 7799 -// Units: h0KZ (Gnome Housing), Hotkey (Hotkey) +// Units: h0N7 (Human Housing), Hotkey (Hotkey) { O } STRING 7800 -// Units: h0N7 (Human Housing), Hotkey (Hotkey) +// Units: h0OX (Nerubian Housing), Hotkey (Hotkey) { O } STRING 7801 -// Units: h0OX (Nerubian Housing), Hotkey (Hotkey) +// Units: h0P1 (Burrowed Nerubian Housing), Hotkey (Hotkey) { O } STRING 7802 -// Units: h0P1 (Burrowed Nerubian Housing), Hotkey (Hotkey) +// Units: h0PC (Vrykul Housing), Hotkey (Hotkey) { O } STRING 7803 -// Units: h0PC (Vrykul Housing), Hotkey (Hotkey) +// Units: U02U (Obsidian Statue), Hotkey (Hotkey) { O } STRING 7804 -// Items: I0Y3 (Fel), Hotkey (Hotkey) +// Items: I0ZF (Envenomed Weapons), Hotkey (Hotkey) { M } @@ -43062,31 +42882,31 @@ Violet Citadel } STRING 7807 -// Units: n066 (Human Citizen (male)), Name (Name) +// Units: n0DY (Human Citizen (male)), Name (Name) { Human Citizen (male) } STRING 7808 -// Units: n00E (Human Citizen (male)), Tip (Tooltip - Basic) +// Units: n066 (Human Citizen (male)), Tip (Tooltip - Basic) { Hire Human Citizen (male) } STRING 7809 -// Units: n066 (Human Citizen (male)), Ubertip (Tooltip - Extended) +// Units: n08M (Pandaren Citizen (male)), Ubertip (Tooltip - Extended) { A hearty human citizen. Has life regeneration aura. } STRING 7810 -// Units: n00F (Human Citizen (female)), Name (Name) +// Units: n0E0 (Human Citizen (female)), Name (Name) { Human Citizen (female) } STRING 7811 -// Units: n00F (Human Citizen (female)), Tip (Tooltip - Basic) +// Units: n0BL (Human Citizen (female) (Kul Tiras)), Tip (Tooltip - Basic) { Hire Human Citizen (female) } @@ -43266,7 +43086,7 @@ Hire Night Elf Citizen (female) } STRING 7842 -// Units: n039 (Book of Summoning Pedestal), Hotkey (Hotkey) +// Units: n040 (Pet Clockwerk Goblin), Hotkey (Hotkey) { P } @@ -43350,13 +43170,13 @@ STRING 7855 } STRING 7857 -// Units: n00Q (Pet Sheep), Name (Name) +// Units: n0AV (Pet Sheep), Name (Name) { Pet Sheep } STRING 7858 -// Units: n00Q (Pet Sheep), Description (Description) +// Units: n00R (Pet Worm), Description (Description) { A lovely pet. } @@ -43368,7 +43188,7 @@ Pet Worm } STRING 7860 -// Units: n00R (Pet Worm), Description (Description) +// Units: n00S (Pet Stag), Description (Description) { A lovely pet. } @@ -43380,7 +43200,7 @@ Pet Stag } STRING 7862 -// Units: n00S (Pet Stag), Description (Description) +// Units: n00T (Pet Fel Boar), Description (Description) { A lovely pet. } @@ -43392,7 +43212,7 @@ Pet Fel Boar } STRING 7864 -// Units: n00T (Pet Fel Boar), Description (Description) +// Units: n00U (Pet Pig), Description (Description) { A lovely pet. } @@ -43404,7 +43224,7 @@ Pet Pig } STRING 7866 -// Units: n00U (Pet Pig), Description (Description) +// Units: n00V (Pet Crab), Description (Description) { A lovely pet. } @@ -43416,7 +43236,7 @@ Pet Crab } STRING 7868 -// Units: n00V (Pet Crab), Description (Description) +// Units: n018 (Pet Fel Beast), Description (Description) { A lovely pet. } @@ -43428,7 +43248,7 @@ Pet Fel Beast } STRING 7870 -// Units: n018 (Pet Fel Beast), Description (Description) +// Units: n040 (Pet Clockwerk Goblin), Description (Description) { A lovely pet. } @@ -44292,7 +44112,7 @@ Summon Nether Drake Mount } STRING 8297 -// Units: U02U (Obsidian Statue), Hotkey (Hotkey) +// Units: U02V (Destroyer Form), Hotkey (Hotkey) { O } @@ -44430,7 +44250,7 @@ STRING 8326 } STRING 8327 -// Units: n0IT (Undead Child), Hotkey (Hotkey) +// Units: n0IV (Neutral Child), Hotkey (Hotkey) { C } @@ -44448,67 +44268,67 @@ Improved Masonry } STRING 8336 -// Items: I0Z6 (Envenomed Weapons), Hotkey (Hotkey) +// Items: I12T (Mind Control), Hotkey (Hotkey) { M } STRING 8337 -// Items: I0ZF (Envenomed Weapons), Hotkey (Hotkey) +// Abilities: A0D3 (Convert into Mechanical), Hotkey (Hotkey - Normal) { M } STRING 8338 -// Items: I12T (Mind Control), Hotkey (Hotkey) +// Abilities: A0EY (Move), Hotkey (Hotkey - Normal) { M } STRING 8339 -// Abilities: A0D3 (Convert into Mechanical), Hotkey (Hotkey - Normal) +// Abilities: A0L2 (Jedi Mind Trick), Hotkey (Hotkey - Normal) { M } STRING 8340 -// Abilities: A0EY (Move), Hotkey (Hotkey - Normal) +// Abilities: A1TN (Summon Miners), Hotkey (Hotkey - Normal) { M } STRING 8341 -// Abilities: A0L2 (Jedi Mind Trick), Hotkey (Hotkey - Normal) +// Abilities: A1X4 (Move), Hotkey (Hotkey - Normal) { M } STRING 8342 -// Abilities: A1TN (Summon Miners), Hotkey (Hotkey - Normal) +// Abilities: A21U (Summon Prospectors), Hotkey (Hotkey - Normal) { M } STRING 8343 -// Abilities: A1X4 (Move), Hotkey (Hotkey - Normal) +// Abilities: A237 (Meteor), Hotkey (Hotkey - Normal) { M } STRING 8344 -// Abilities: A21U (Summon Prospectors), Hotkey (Hotkey - Normal) +// Upgrades: R00J (Ghoul Frenzy), Hotkey (Hotkey) { M } STRING 8345 -// Abilities: A237 (Meteor), Hotkey (Hotkey - Normal) +// Upgrades: R01T (Improved Masonry,Advanced Masonry,Imbued Masonry), Hotkey (Hotkey) { M } STRING 8346 -// Upgrades: R00J (Ghoul Frenzy), Hotkey (Hotkey) +// Upgrades: R01T (Improved Masonry,Advanced Masonry,Imbued Masonry), Hotkey (Hotkey) { M } @@ -44934,13 +44754,13 @@ M } STRING 8417 -// Upgrades: R01T (Improved Masonry,Advanced Masonry,Imbued Masonry), Hotkey (Hotkey) +// Upgrades: R024 (Iron Forged Swords,Steel Forged Swords,Mithril Forged Swords), Hotkey (Hotkey) { M } STRING 8418 -// Upgrades: R01T (Improved Masonry,Advanced Masonry,Imbued Masonry), Hotkey (Hotkey) +// Upgrades: R024 (Iron Forged Swords,Steel Forged Swords,Mithril Forged Swords), Hotkey (Hotkey) { M } @@ -50625,7 +50445,7 @@ Nearby friendly melee units gain % of their attack damage when t } STRING 9743 -// Units: n0IV (Neutral Child), Hotkey (Hotkey) +// Units: n0IX (Night Elf Child), Hotkey (Hotkey) { C } @@ -50637,7 +50457,7 @@ H } STRING 9752 -// Units: n040 (Pet Clockwerk Goblin), Hotkey (Hotkey) +// Units: h02N (Pack Horse), Hotkey (Hotkey) { P } @@ -55530,7 +55350,7 @@ M } STRING 11829 -// Units: U02V (Destroyer Form), Hotkey (Hotkey) +// Units: h0PT (Tuskarr Housing), Hotkey (Hotkey) { O } @@ -56284,13 +56104,13 @@ M } STRING 11980 -// Upgrades: R024 (Iron Forged Swords,Steel Forged Swords,Mithril Forged Swords), Hotkey (Hotkey) +// Upgrades: R03B (Improved Masonry,Advanced Masonry,Imbued Masonry), Hotkey (Hotkey) { M } STRING 11981 -// Upgrades: R024 (Iron Forged Swords,Steel Forged Swords,Mithril Forged Swords), Hotkey (Hotkey) +// Upgrades: R03B (Improved Masonry,Advanced Masonry,Imbued Masonry), Hotkey (Hotkey) { M } @@ -57190,7 +57010,7 @@ STRING 12155 } STRING 12156 -// Units: h0PT (Tuskarr Housing), Hotkey (Hotkey) +// Units: E01J (Priestess of the Moon on Owl), Hotkey (Hotkey) { O } @@ -57928,7 +57748,7 @@ rlev } STRING 12405 -// Units: n00F (Human Citizen (female)), Ubertip (Tooltip - Extended) +// Units: n08N (Pandaren Citizen (female)), Ubertip (Tooltip - Extended) { An intelligent Human citizen. Has mana regeneration aura. } @@ -58486,7 +58306,7 @@ Allows training Shredders, Neutral Citizens and mercenaries. } STRING 13792 -// Units: E01J (Priestess of the Moon on Owl), Hotkey (Hotkey) +// Units: h0Q0 (Murloc Housing), Hotkey (Hotkey) { O } @@ -58617,7 +58437,7 @@ Draenei waves: } STRING 13861 -// Units: h02N (Pack Horse), Hotkey (Hotkey) +// Units: n04T (Giant Polar Bear), Hotkey (Hotkey) { P } @@ -59259,7 +59079,7 @@ STRING 14039 } STRING 14040 -// Units: n0IX (Night Elf Child), Hotkey (Hotkey) +// Units: n0IZ (Ogre Child), Hotkey (Hotkey) { C } @@ -59331,7 +59151,7 @@ Orb of Blood } STRING 14052 -// Units: h0Q0 (Murloc Housing), Hotkey (Hotkey) +// Units: h0QC (Ogre Housing), Hotkey (Hotkey) { O } @@ -66479,7 +66299,7 @@ UK } STRING 15798 -// Units: n04T (Giant Polar Bear), Hotkey (Hotkey) +// Units: n04W (Pet Rabbit), Hotkey (Hotkey) { P } @@ -67041,13 +66861,13 @@ T } STRING 15938 -// Units: h0QC (Ogre Housing), Hotkey (Hotkey) +// Units: n0C3 (Stonemaul Ogre), Hotkey (Hotkey) { O } STRING 15939 -// Units: n0C3 (Stonemaul Ogre), Hotkey (Hotkey) +// Units: h0R5 (Human Oil Tanker), Hotkey (Hotkey) { O } @@ -67089,13 +66909,13 @@ Worgen Citizen (male) } STRING 15946 -// Units: h0R5 (Human Oil Tanker), Hotkey (Hotkey) +// Units: h0R6 (Human Oil Tanker), Hotkey (Hotkey) { O } STRING 15947 -// Units: h0R6 (Human Oil Tanker), Hotkey (Hotkey) +// Units: o07K (Orc Oil Tanker), Hotkey (Hotkey) { O } @@ -68154,7 +67974,7 @@ Pick first hero. } STRING 16172 -// Units: n0BL (Human Citizen (female) (Kul Tiras)), Tip (Tooltip - Basic) +// Units: n0E0 (Human Citizen (female)), Tip (Tooltip - Basic) { Hire Human Citizen (female) } @@ -68165,7 +67985,7 @@ Pick second hero. } STRING 16174 -// Units: n08N (Pandaren Citizen (female)), Ubertip (Tooltip - Extended) +// Units: n0BL (Human Citizen (female) (Kul Tiras)), Ubertip (Tooltip - Extended) { An intelligent Human citizen. Has mana regeneration aura. } @@ -68320,7 +68140,7 @@ Mechanical Repair - [|cffffcc00Level 15|r] } STRING 16200 -// Units: n04W (Pet Rabbit), Hotkey (Hotkey) +// Units: n05K (Pet Frog), Hotkey (Hotkey) { P } @@ -70710,7 +70530,7 @@ Discord: https://discord.com/invite/eM34z36 } STRING 16843 -// Units: n0IZ (Ogre Child), Hotkey (Hotkey) +// Units: H0T8 (Developer), Hotkey (Hotkey) { C } @@ -70877,7 +70697,7 @@ T } STRING 16878 -// Units: H0T8 (Developer), Hotkey (Hotkey) +// Units: n0JW (Bone Chipper), Hotkey (Hotkey) { C } @@ -70995,7 +70815,7 @@ Your second hero can be revived at altars and on Theramore but will be removed o } STRING 16898 -// Units: n05K (Pet Frog), Hotkey (Hotkey) +// Units: h059 (Pirate Battleship), Hotkey (Hotkey) { P } @@ -71097,7 +70917,7 @@ Elven Clan Palace } STRING 16917 -// Units: o07K (Orc Oil Tanker), Hotkey (Hotkey) +// Units: o07M (Orc Oil Tanker), Hotkey (Hotkey) { O } @@ -71537,7 +71357,7 @@ Teleports the Hero to the targeted allied land unit or structure. Cooldown of