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(("