diff --git a/wowr.w3x/war3map.j b/wowr.w3x/war3map.j index 42292ca6..f9ac9f8e 100644 --- a/wowr.w3x/war3map.j +++ b/wowr.w3x/war3map.j @@ -63,8 +63,8 @@ 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 @@ -110,7 +110,7 @@ constant boolean LIBRARY_Corpse=true constant integer Corpse_ABILITY_ID= 'A1NL' constant integer Corpse_ABILITY_ID_ITEM= 'A1M0' -trigger Corpse___castTrigger= CreateTrigger() +trigger Corpse__castTrigger= CreateTrigger() //endglobals from Corpse //globals from Corruption: constant boolean LIBRARY_Corruption=true @@ -439,8 +439,8 @@ 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=5 -constant integer Table__listK=6 +constant integer Table__sizeK=11 +constant integer Table__listK=13 //endglobals from Table //globals from TerrainPathability: constant boolean LIBRARY_TerrainPathability=true @@ -577,11 +577,11 @@ 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 @@ -599,15 +599,15 @@ constant integer DUNGEON_WHITE_FOG_LIGHT= 'FDwl' //endglobals from WeatherEffectUtils //globals from WoWErforgedRecordPlayer: constant boolean LIBRARY_WoWErforgedRecordPlayer=true -hashtable WoWErforgedRecordPlayer__h= InitHashtable() +hashtable WoWErforgedRecordPlayer___h= InitHashtable() //endglobals from WoWErforgedRecordPlayer //globals from WoWReforgedAbilityFields: constant boolean LIBRARY_WoWReforgedAbilityFields=true -hashtable WoWReforgedAbilityFields__AbilityFieldHashTable= InitHashtable() -hashtable WoWReforgedAbilityFields__AbilityFieldCountersHashTable= InitHashtable() -integer array WoWReforgedAbilityFields__abilityIds -boolean array WoWReforgedAbilityFields__abilityIdIsItem -integer WoWReforgedAbilityFields__abilityIdsCounter= 0 +hashtable WoWReforgedAbilityFields___AbilityFieldHashTable= InitHashtable() +hashtable WoWReforgedAbilityFields___AbilityFieldCountersHashTable= InitHashtable() +integer array WoWReforgedAbilityFields___abilityIds +boolean array WoWReforgedAbilityFields___abilityIdIsItem +integer WoWReforgedAbilityFields___abilityIdsCounter= 0 constant integer ABILITY_FIELD_TYPE_DEFENSE_INTEGER= 0 constant integer ABILITY_FIELD_TYPE_HERO_STATS_INTEGER= 1 @@ -624,7 +624,7 @@ constant integer ABILITY_FIELD_TYPE_MANA_INTEGER= 111 //endglobals from WoWReforgedAbilityFields //globals from WoWReforgedBarrage: constant boolean LIBRARY_WoWReforgedBarrage=true -trigger WoWReforgedBarrage__learnTrigger= CreateTrigger() +trigger WoWReforgedBarrage___learnTrigger= CreateTrigger() //endglobals from WoWReforgedBarrage //globals from WoWReforgedCages: constant boolean LIBRARY_WoWReforgedCages=true @@ -635,11 +635,11 @@ constant boolean LIBRARY_WoWReforgedCalendarEvents=true //endglobals from WoWReforgedCalendarEvents //globals from WoWReforgedCarHorn: constant boolean LIBRARY_WoWReforgedCarHorn=true -constant integer WoWReforgedCarHorn__ABILITY_ID= 'A23N' -sound array WoWReforgedCarHorn__hornSound -integer WoWReforgedCarHorn__hornSoundCounter= 0 +constant integer WoWReforgedCarHorn___ABILITY_ID= 'A23N' +sound array WoWReforgedCarHorn___hornSound +integer WoWReforgedCarHorn___hornSoundCounter= 0 -trigger WoWReforgedCarHorn__castTrigger= CreateTrigger() +trigger WoWReforgedCarHorn___castTrigger= CreateTrigger() //endglobals from WoWReforgedCarHorn //globals from WoWReforgedCommandButtons: constant boolean LIBRARY_WoWReforgedCommandButtons=true @@ -647,14 +647,14 @@ constant integer ABILITY_ID_COMMAND_BUTTONS= 'A1X3' //endglobals from WoWReforgedCommandButtons //globals from WoWReforgedDalaranShields: constant boolean LIBRARY_WoWReforgedDalaranShields=true -hashtable WoWReforgedDalaranShields__h= InitHashtable() -weathereffect array WoWReforgedDalaranShields__shieldWeatherEffects -integer WoWReforgedDalaranShields__shieldWeatherEffectsCounter= 1 -group WoWReforgedDalaranShields__powerGenerators= CreateGroup() +hashtable WoWReforgedDalaranShields___h= InitHashtable() +weathereffect array WoWReforgedDalaranShields___shieldWeatherEffects +integer WoWReforgedDalaranShields___shieldWeatherEffectsCounter= 1 +group WoWReforgedDalaranShields___powerGenerators= CreateGroup() //endglobals from WoWReforgedDalaranShields //globals from WoWReforgedDependencyEquivalents: constant boolean LIBRARY_WoWReforgedDependencyEquivalents=true -hashtable WoWReforgedDependencyEquivalents___h= InitHashtable() +hashtable WoWReforgedDependencyEquivalents__h= InitHashtable() //endglobals from WoWReforgedDependencyEquivalents //globals from WoWReforgedDischarge: constant boolean LIBRARY_WoWReforgedDischarge=true @@ -666,15 +666,15 @@ constant integer ELEVATOR_DESTRUCTABLE= 'DTrx' constant integer ELEVATOR_RAISE= 'o07F' constant integer ELEVATOR_LOWER= 'o07G' -trigger WoWReforgedElevator__constructionTrigger= CreateTrigger() -trigger WoWReforgedElevator__sellTrigger= CreateTrigger() -trigger WoWReforgedElevator__deathTrigger= CreateTrigger() -hashtable WoWReforgedElevator__h= InitHashtable() +trigger WoWReforgedElevator___constructionTrigger= CreateTrigger() +trigger WoWReforgedElevator___sellTrigger= CreateTrigger() +trigger WoWReforgedElevator___deathTrigger= CreateTrigger() +hashtable WoWReforgedElevator___h= InitHashtable() //endglobals from WoWReforgedElevator //globals from WoWReforgedFarmer: constant boolean LIBRARY_WoWReforgedFarmer=true -filterfunc WoWReforgedFarmer__f -player WoWReforgedFarmer__owner +filterfunc WoWReforgedFarmer___f +player WoWReforgedFarmer___owner //endglobals from WoWReforgedFarmer //globals from WoWReforgedFelOrcDemonGate: constant boolean LIBRARY_WoWReforgedFelOrcDemonGate=true @@ -706,31 +706,31 @@ constant real WoWReforgedFlamethrower_DISTANCE= 270.0 constant real WoWReforgedFlamethrower_DURATION= 0.05 constant real WoWReforgedFlamethrower_SUMMON_DURATION= 2.0 -group WoWReforgedFlamethrower__casters= CreateGroup() -group WoWReforgedFlamethrower__heroCasters= CreateGroup() -timer WoWReforgedFlamethrower__t= CreateTimer() -boolean WoWReforgedFlamethrower__timerOff= true -effect array WoWReforgedFlamethrower__effects -integer WoWReforgedFlamethrower__effectsCounter= 0 +group WoWReforgedFlamethrower___casters= CreateGroup() +group WoWReforgedFlamethrower___heroCasters= CreateGroup() +timer WoWReforgedFlamethrower___t= CreateTimer() +boolean WoWReforgedFlamethrower___timerOff= true +effect array WoWReforgedFlamethrower___effects +integer WoWReforgedFlamethrower___effectsCounter= 0 //endglobals from WoWReforgedFlamethrower //globals from WoWReforgedGaia: constant boolean LIBRARY_WoWReforgedGaia=true -trigger WoWReforgedGaia__updateFoodTriger= CreateTrigger() +trigger WoWReforgedGaia___updateFoodTriger= CreateTrigger() -player WoWReforgedGaia__tmpPlayer= null +player WoWReforgedGaia___tmpPlayer= null //endglobals from WoWReforgedGaia //globals from WoWReforgedHunter: constant boolean LIBRARY_WoWReforgedHunter=true -filterfunc WoWReforgedHunter__filterIsCritterWithTrophy= null +filterfunc WoWReforgedHunter___filterIsCritterWithTrophy= null -integer array WoWReforgedHunter__trophyUnitTypeIds -integer array WoWReforgedHunter__trophyItemTypeIds -integer WoWReforgedHunter__trophyCounter= 0 +integer array WoWReforgedHunter___trophyUnitTypeIds +integer array WoWReforgedHunter___trophyItemTypeIds +integer WoWReforgedHunter___trophyCounter= 0 //endglobals from WoWReforgedHunter //globals from WoWReforgedIcons: constant boolean LIBRARY_WoWReforgedIcons=true -string array WoWReforgedIcons__raceIcons -string array WoWReforgedIcons__professionIcons +string array WoWReforgedIcons___raceIcons +string array WoWReforgedIcons___professionIcons //endglobals from WoWReforgedIcons //globals from WoWReforgedMapData: constant boolean LIBRARY_WoWReforgedMapData=true @@ -743,8 +743,8 @@ constant boolean LIBRARY_WoWReforgedRailRoad=true //endglobals from WoWReforgedRailRoad //globals from WoWReforgedRandomArtifacts: constant boolean LIBRARY_WoWReforgedRandomArtifacts=true -integer array WoWReforgedRandomArtifacts__abilityIds -integer WoWReforgedRandomArtifacts__abilityIdsCounter= 0 +integer array WoWReforgedRandomArtifacts___abilityIds +integer WoWReforgedRandomArtifacts___abilityIdsCounter= 0 //endglobals from WoWReforgedRandomArtifacts //globals from WoWReforgedSleepingBag: constant boolean LIBRARY_WoWReforgedSleepingBag=true @@ -779,27 +779,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 @@ -808,7 +808,7 @@ constant boolean LIBRARY_WorldBounds=true constant boolean LIBRARY_Challenge=true constant integer Challenge_ABILITY_ID= 'A1NO' -trigger Challenge___castTrigger= CreateTrigger() +trigger Challenge__castTrigger= CreateTrigger() //endglobals from Challenge //globals from CooldownReduction: constant boolean LIBRARY_CooldownReduction=true @@ -831,16 +831,16 @@ constant boolean LIBRARY_Decay=true constant integer Decay_ABILITY_ID= 'A1BP' constant integer Decay_ABILITY_ID_ITEM= 'A1BR' -trigger Decay___castTrigger= CreateTrigger() +trigger Decay__castTrigger= CreateTrigger() //endglobals from Decay //globals from ForestWord: constant boolean LIBRARY_ForestWord=true constant integer ForestWord_ABILITY_ID= 'A1SY' -integer ForestWord___tmpCounter= 0 -unit ForestWord___tmpCaster= null +integer ForestWord__tmpCounter= 0 +unit ForestWord__tmpCaster= null -trigger ForestWord___castTrigger= CreateTrigger() +trigger ForestWord__castTrigger= CreateTrigger() //endglobals from ForestWord //globals from FormatTimeUtils: constant boolean LIBRARY_FormatTimeUtils=true @@ -912,11 +912,11 @@ constant boolean LIBRARY_MassSpell=true constant integer MassSpell_DUMMY_UNIT_TYPE_ID= 'h0PY' constant real MassSpell_DUMMY_REMOVAL_DELAY= 4.00 -hashtable MassSpell___h= InitHashtable() -trigger MassSpell___channelTrigger= CreateTrigger() +hashtable MassSpell__h= InitHashtable() +trigger MassSpell__channelTrigger= CreateTrigger() -unit MassSpell___filterCaster= null -integer MassSpell___filterAbilityId= 0 +unit MassSpell__filterCaster= null +integer MassSpell__filterAbilityId= 0 //endglobals from MassSpell //globals from MaxResearchConfig: constant boolean LIBRARY_MaxResearchConfig=true @@ -925,9 +925,9 @@ constant integer MaxResearchConfig_OGRE_STRENGTH_ABILITY_ID= 'A1N7' //globals from MindControl: constant boolean LIBRARY_MindControl=true constant integer MindControl_ABILITY_ID= 'A22T' -trigger MindControl___castTrigger= CreateTrigger() -hashtable MindControl___h= InitHashtable() -force MindControl___notAllowedPlayers= CreateForce() +trigger MindControl__castTrigger= CreateTrigger() +hashtable MindControl__h= InitHashtable() +force MindControl__notAllowedPlayers= CreateForce() //endglobals from MindControl //globals from MissileEffect: constant boolean LIBRARY_MissileEffect=true @@ -964,8 +964,8 @@ constant boolean LIBRARY_PluginSpellEffect=true constant boolean LIBRARY_ReduceFood=true constant integer ReduceFood_BUFF_ABILITY_ID= 'A154' -hashtable ReduceFood___h= InitHashtable() -group ReduceFood___targets= CreateGroup() +hashtable ReduceFood__h= InitHashtable() +group ReduceFood__targets= CreateGroup() //endglobals from ReduceFood //globals from RegisterNativeEvent: constant boolean LIBRARY_RegisterNativeEvent=true @@ -1053,8 +1053,8 @@ constant boolean LIBRARY_StringAdvanced=true constant boolean LIBRARY_Stupidity=true constant integer Stupidity_BUFF_ABILITY_ID= 'A16X' -hashtable Stupidity___h= InitHashtable() -group Stupidity___targets= CreateGroup() +hashtable Stupidity__h= InitHashtable() +group Stupidity__targets= CreateGroup() //endglobals from Stupidity //globals from Tenacity: constant boolean LIBRARY_Tenacity=true @@ -1178,21 +1178,21 @@ constant boolean LIBRARY_WoWReforgedAttributes=true //endglobals from WoWReforgedAttributes //globals from WoWReforgedBan: constant boolean LIBRARY_WoWReforgedBan=true -integer WoWReforgedBan__banCount= 0 -string array WoWReforgedBan__bans -string array WoWReforgedBan__bansReasons +integer WoWReforgedBan___banCount= 0 +string array WoWReforgedBan___bans +string array WoWReforgedBan___bansReasons //endglobals from WoWReforgedBan //globals from WoWReforgedCombiner: constant boolean LIBRARY_WoWReforgedCombiner=true -constant integer WoWReforgedCombiner___ABILITY_ID_INSPECT= 'A1OC' -constant integer WoWReforgedCombiner___ABILITY_ID_MARK_1= 'A1OD' -constant integer WoWReforgedCombiner___ABILITY_ID_MARK_2= 'A1OE' -constant integer WoWReforgedCombiner___ABILITY_ID_MARK_3= 'A1OF' -constant integer WoWReforgedCombiner___ABILITY_ID_MARK_4= 'A1OG' -constant integer WoWReforgedCombiner___ABILITY_ID_TRANSFER= 'A1OH' - -hashtable WoWReforgedCombiner___h= InitHashtable() -trigger WoWReforgedCombiner___castTrigger= CreateTrigger() +constant integer WoWReforgedCombiner__ABILITY_ID_INSPECT= 'A1OC' +constant integer WoWReforgedCombiner__ABILITY_ID_MARK_1= 'A1OD' +constant integer WoWReforgedCombiner__ABILITY_ID_MARK_2= 'A1OE' +constant integer WoWReforgedCombiner__ABILITY_ID_MARK_3= 'A1OF' +constant integer WoWReforgedCombiner__ABILITY_ID_MARK_4= 'A1OG' +constant integer WoWReforgedCombiner__ABILITY_ID_TRANSFER= 'A1OH' + +hashtable WoWReforgedCombiner__h= InitHashtable() +trigger WoWReforgedCombiner__castTrigger= CreateTrigger() //endglobals from WoWReforgedCombiner //globals from WoWReforgedCredits: constant boolean LIBRARY_WoWReforgedCredits=true @@ -1218,33 +1218,33 @@ constant boolean LIBRARY_WoWReforgedFisherman=true //endglobals from WoWReforgedFisherman //globals from WoWReforgedInfoQuests: constant boolean LIBRARY_WoWReforgedInfoQuests=true -integer WoWReforgedInfoQuests__questsMax= 0 -quest array WoWReforgedInfoQuests__questHandle -string array WoWReforgedInfoQuests__questId -string array WoWReforgedInfoQuests__questIcon -string array WoWReforgedInfoQuests__questTitle -string array WoWReforgedInfoQuests__questDescription - -string WoWReforgedInfoQuests__tmpIconPath= null -string WoWReforgedInfoQuests__tmpTitle= null -string WoWReforgedInfoQuests__tmpDescription= null -integer WoWReforgedInfoQuests__tmpRequirement= - 1 +integer WoWReforgedInfoQuests___questsMax= 0 +quest array WoWReforgedInfoQuests___questHandle +string array WoWReforgedInfoQuests___questId +string array WoWReforgedInfoQuests___questIcon +string array WoWReforgedInfoQuests___questTitle +string array WoWReforgedInfoQuests___questDescription + +string WoWReforgedInfoQuests___tmpIconPath= null +string WoWReforgedInfoQuests___tmpTitle= null +string WoWReforgedInfoQuests___tmpDescription= null +integer WoWReforgedInfoQuests___tmpRequirement= - 1 //endglobals from WoWReforgedInfoQuests //globals from WoWReforgedLearnableSkills: constant boolean LIBRARY_WoWReforgedLearnableSkills=true constant integer RESKILL_HERO_LEVEL= 75 constant integer RESKILL_MAX_SLOTS= 5 -integer array WoWReforgedLearnableSkills___learnableSkillLearnItemTypeId -integer array WoWReforgedLearnableSkills___learnableSkillLearnAbilityId -integer array WoWReforgedLearnableSkills___learnableSkillAbilityId -integer array WoWReforgedLearnableSkills___learnableSkillIconAbilityId -integer array WoWReforgedLearnableSkills___learnableSkillSlot -boolean array WoWReforgedLearnableSkills___learnableSkillForbidEquipmentBag -integer WoWReforgedLearnableSkills___learnableSkillCounter= 0 +integer array WoWReforgedLearnableSkills__learnableSkillLearnItemTypeId +integer array WoWReforgedLearnableSkills__learnableSkillLearnAbilityId +integer array WoWReforgedLearnableSkills__learnableSkillAbilityId +integer array WoWReforgedLearnableSkills__learnableSkillIconAbilityId +integer array WoWReforgedLearnableSkills__learnableSkillSlot +boolean array WoWReforgedLearnableSkills__learnableSkillForbidEquipmentBag +integer WoWReforgedLearnableSkills__learnableSkillCounter= 0 -trigger WoWReforgedLearnableSkills___learnTrigger= CreateTrigger() -trigger WoWReforgedLearnableSkills___unlearnTrigger= CreateTrigger() +trigger WoWReforgedLearnableSkills__learnTrigger= CreateTrigger() +trigger WoWReforgedLearnableSkills__unlearnTrigger= CreateTrigger() //endglobals from WoWReforgedLearnableSkills //globals from WoWReforgedLevers: constant boolean LIBRARY_WoWReforgedLevers=true @@ -1263,27 +1263,27 @@ constant integer WoWReforgedLevers___KEY_INDEX= 1 //endglobals from WoWReforgedLevers //globals from WoWReforgedQuests: constant boolean LIBRARY_WoWReforgedQuests=true -integer WoWReforgedQuests__questsMax= 0 -string array WoWReforgedQuests__questId -string array WoWReforgedQuests__questIcon -string array WoWReforgedQuests__questTitle -string array WoWReforgedQuests__questDescription -unit array WoWReforgedQuests__questNpc -integer array WoWReforgedQuests__questReward -integer array WoWReforgedQuests__questRequirement - -string WoWReforgedQuests__tmpIconPath= null -string WoWReforgedQuests__tmpTitle= null -string WoWReforgedQuests__tmpDescription= null -integer WoWReforgedQuests__tmpRequirement= - 1 +integer WoWReforgedQuests___questsMax= 0 +string array WoWReforgedQuests___questId +string array WoWReforgedQuests___questIcon +string array WoWReforgedQuests___questTitle +string array WoWReforgedQuests___questDescription +unit array WoWReforgedQuests___questNpc +integer array WoWReforgedQuests___questReward +integer array WoWReforgedQuests___questRequirement + +string WoWReforgedQuests___tmpIconPath= null +string WoWReforgedQuests___tmpTitle= null +string WoWReforgedQuests___tmpDescription= null +integer WoWReforgedQuests___tmpRequirement= - 1 //endglobals from WoWReforgedQuests //globals from WoWReforgedRefund: constant boolean LIBRARY_WoWReforgedRefund=true //endglobals from WoWReforgedRefund //globals from WoWReforgedTextTag: constant boolean LIBRARY_WoWReforgedTextTag=true -player WoWReforgedTextTag__tmpPlayer= Player(0) -boolean WoWReforgedTextTag__tmpShow= false +player WoWReforgedTextTag___tmpPlayer= Player(0) +boolean WoWReforgedTextTag___tmpShow= false //endglobals from WoWReforgedTextTag //globals from WoWReforgedTreeUtils: constant boolean LIBRARY_WoWReforgedTreeUtils=true @@ -1319,11 +1319,11 @@ constant real DrainResources_TIMER_INTERVAL= 1.0 constant integer DrainResources_ABILITY_ID= 'A17J' constant integer DrainResources_ABILITY_ID_ITEM= 'A18J' -hashtable DrainResources___h= InitHashtable() -group DrainResources___casters= CreateGroup() -timer DrainResources___t= CreateTimer() -trigger DrainResources___castTrigger= CreateTrigger() -trigger DrainResources___stopTrigger= CreateTrigger() +hashtable DrainResources__h= InitHashtable() +group DrainResources__casters= CreateGroup() +timer DrainResources__t= CreateTimer() +trigger DrainResources__castTrigger= CreateTrigger() +trigger DrainResources__stopTrigger= CreateTrigger() //endglobals from DrainResources //globals from Evasion: constant boolean LIBRARY_Evasion=true @@ -1354,17 +1354,17 @@ string Log__tmpMessage= null //endglobals from Log //globals from MaxHpResearch: constant boolean LIBRARY_MaxHpResearch=true -integer array MaxHpResearch___researches -integer MaxHpResearch___researchesCounter= 0 +integer array MaxHpResearch__researches +integer MaxHpResearch__researchesCounter= 0 -integer MaxHpResearch___filterResearch= 0 +integer MaxHpResearch__filterResearch= 0 -trigger MaxHpResearch___trainTrigger= CreateTrigger() -trigger MaxHpResearch___summonTrigger= CreateTrigger() -trigger MaxHpResearch___sellTrigger= CreateTrigger() -trigger MaxHpResearch___changeOwnerTrigger= CreateTrigger() -trigger MaxHpResearch___researchTrigger= CreateTrigger() -trigger MaxHpResearch___upgradeTrigger= CreateTrigger() +trigger MaxHpResearch__trainTrigger= CreateTrigger() +trigger MaxHpResearch__summonTrigger= CreateTrigger() +trigger MaxHpResearch__sellTrigger= CreateTrigger() +trigger MaxHpResearch__changeOwnerTrigger= CreateTrigger() +trigger MaxHpResearch__researchTrigger= CreateTrigger() +trigger MaxHpResearch__upgradeTrigger= CreateTrigger() //endglobals from MaxHpResearch //globals from Missiles: constant boolean LIBRARY_Missiles=true @@ -1430,9 +1430,9 @@ integer PagedButtons__triggerAvailableObject= 0 //endglobals from PagedButtons //globals from Push: constant boolean LIBRARY_Push=true -integer Push___FireBallKnockbackType -constant string Push___EFFECT= "Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl" -constant string Push___EXPLOSION_EFFECT= "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" +integer Push__FireBallKnockbackType +constant string Push__EFFECT= "Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl" +constant string Push__EXPLOSION_EFFECT= "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" //endglobals from Push //globals from ResourcesChatCommands: constant boolean LIBRARY_ResourcesChatCommands=true @@ -1508,19 +1508,19 @@ constant boolean LIBRARY_SpellVamp=true //endglobals from SpellVamp //globals from Taunts: constant boolean LIBRARY_Taunts=true -hashtable Taunts___h= InitHashtable() +hashtable Taunts__h= InitHashtable() -trigger Taunts___TauntsEnableChatTrigger= CreateTrigger() -trigger Taunts___TauntsDisableChatTrigger= CreateTrigger() -trigger Taunts___TauntsListChatTrigger= CreateTrigger() +trigger Taunts__TauntsEnableChatTrigger= CreateTrigger() +trigger Taunts__TauntsDisableChatTrigger= CreateTrigger() +trigger Taunts__TauntsListChatTrigger= CreateTrigger() -boolean array Taunts___TauntsEnabled +boolean array Taunts__TauntsEnabled -integer Taunts___TauntsCount= 0 -string array Taunts___TauntChatCommands -string array Taunts___TauntTexts -sound array Taunts___TauntSounds -trigger array Taunts___TauntsChatTrigger +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 @@ -1702,40 +1702,40 @@ integer WoWReforgedChangeLog___versionQuestsCounter= 0 //endglobals from WoWReforgedChangeLog //globals from WoWReforgedDayNightCycleEffects: constant boolean LIBRARY_WoWReforgedDayNightCycleEffects=true -boolean WoWReforgedDayNightCycleEffects__effectsIsDaytime= false -filterfunc WoWReforgedDayNightCycleEffects__filter= null -trigger WoWReforgedDayNightCycleEffects__dayEffectsTrigger= null -trigger WoWReforgedDayNightCycleEffects__nightEffectsTrigger= null - -integer array WoWReforgedDayNightCycleEffects__destructableIds -boolean array WoWReforgedDayNightCycleEffects__destructableHide -real array WoWReforgedDayNightCycleEffects__destructableHideDelay -integer WoWReforgedDayNightCycleEffects__destructableIdsCounter= 0 - -integer array WoWReforgedDayNightCycleEffects__doodadIds -string array WoWReforgedDayNightCycleEffects__doodadDayAnimNames -string array WoWReforgedDayNightCycleEffects__doodadNightAnimNames -integer WoWReforgedDayNightCycleEffects__doodadIdsCounter= 0 +boolean WoWReforgedDayNightCycleEffects___effectsIsDaytime= false +filterfunc WoWReforgedDayNightCycleEffects___filter= null +trigger WoWReforgedDayNightCycleEffects___dayEffectsTrigger= null +trigger WoWReforgedDayNightCycleEffects___nightEffectsTrigger= null + +integer array WoWReforgedDayNightCycleEffects___destructableIds +boolean array WoWReforgedDayNightCycleEffects___destructableHide +real array WoWReforgedDayNightCycleEffects___destructableHideDelay +integer WoWReforgedDayNightCycleEffects___destructableIdsCounter= 0 + +integer array WoWReforgedDayNightCycleEffects___doodadIds +string array WoWReforgedDayNightCycleEffects___doodadDayAnimNames +string array WoWReforgedDayNightCycleEffects___doodadNightAnimNames +integer WoWReforgedDayNightCycleEffects___doodadIdsCounter= 0 //endglobals from WoWReforgedDayNightCycleEffects //globals from WoWReforgedHeroSkills: constant boolean LIBRARY_WoWReforgedHeroSkills=true // skills/ability IDs -hashtable WoWReforgedHeroSkills___h= InitHashtable() +hashtable WoWReforgedHeroSkills__h= InitHashtable() // skill levels -hashtable WoWReforgedHeroSkills___h2= InitHashtable() -trigger WoWReforgedHeroSkills___learnTrigger= CreateTrigger() -trigger WoWReforgedHeroSkills___unlearnTrigger= CreateTrigger() +hashtable WoWReforgedHeroSkills__h2= InitHashtable() +trigger WoWReforgedHeroSkills__learnTrigger= CreateTrigger() +trigger WoWReforgedHeroSkills__unlearnTrigger= CreateTrigger() //endglobals from WoWReforgedHeroSkills //globals from WoWReforgedMiner: constant boolean LIBRARY_WoWReforgedMiner=true -integer array WoWReforgedMiner__oreItemTypeIds -integer WoWReforgedMiner__oreItemTypeIdsCounter= 0 +integer array WoWReforgedMiner___oreItemTypeIds +integer WoWReforgedMiner___oreItemTypeIdsCounter= 0 -integer array WoWReforgedMiner__gemItemTypeIds -integer WoWReforgedMiner__gemItemTypeIdsCounter= 0 +integer array WoWReforgedMiner___gemItemTypeIds +integer WoWReforgedMiner___gemItemTypeIdsCounter= 0 -integer array WoWReforgedMiner__mineralResources -integer WoWReforgedMiner__mineralResourcesCounter= 0 +integer array WoWReforgedMiner___mineralResources +integer WoWReforgedMiner___mineralResourcesCounter= 0 //endglobals from WoWReforgedMiner //globals from WoWReforgedNpcs: constant boolean LIBRARY_WoWReforgedNpcs=true @@ -1748,8 +1748,8 @@ constant boolean LIBRARY_WoWReforgedPagedButtonsConfig=true //endglobals from WoWReforgedPagedButtonsConfig //globals from WoWReforgedProspector: constant boolean LIBRARY_WoWReforgedProspector=true -integer array WoWReforgedProspector__goldItemTypeIds -integer WoWReforgedProspector__goldItemTypeIdsCounter= 0 +integer array WoWReforgedProspector___goldItemTypeIds +integer WoWReforgedProspector___goldItemTypeIdsCounter= 0 //endglobals from WoWReforgedProspector //globals from AStructCoreInterfaceThirdPersonCamera: constant boolean LIBRARY_AStructCoreInterfaceThirdPersonCamera=true @@ -2181,18 +2181,18 @@ constant integer Tunnel_UNIT_TYPE_ID= 'u028' constant integer Tunnel_UNIT_TYPE_ID_2= 'u03F' constant integer Tunnel_REGENERATION_ABILITY_ID= 'A1DK' -group Tunnel___loaded= CreateGroup() -group Tunnel___copies= CreateGroup() -trigger Tunnel___loadTrigger= CreateTrigger() -trigger Tunnel___constructionTrigger= CreateTrigger() -hashtable Tunnel___h= InitHashtable() +group Tunnel__loaded= CreateGroup() +group Tunnel__copies= CreateGroup() +trigger Tunnel__loadTrigger= CreateTrigger() +trigger Tunnel__constructionTrigger= CreateTrigger() +hashtable Tunnel__h= InitHashtable() -unit Tunnel___tmpUnit= null +unit Tunnel__tmpUnit= null -constant integer Tunnel___KEY_SOURCE= 0 -constant integer Tunnel___KEY_TUNNEL= 1 -constant integer Tunnel___KEY_X= 2 -constant integer Tunnel___KEY_Y= 3 +constant integer Tunnel__KEY_SOURCE= 0 +constant integer Tunnel__KEY_TUNNEL= 1 +constant integer Tunnel__KEY_X= 2 +constant integer Tunnel__KEY_Y= 3 //endglobals from Tunnel //globals from WoWReforgedCritters: constant boolean LIBRARY_WoWReforgedCritters=true @@ -2203,12 +2203,12 @@ constant integer UNIT_TYPE_ID= 'h05T' //endglobals from WoWReforgedEnslave //globals from WoWReforgedLevels: constant boolean LIBRARY_WoWReforgedLevels=true -integer WoWReforgedLevels___levelCounter= 0 -string array WoWReforgedLevels___levelName -integer array WoWReforgedLevels___levelItemTypeId -string array WoWReforgedLevels___levelMapName +integer WoWReforgedLevels__levelCounter= 0 +string array WoWReforgedLevels__levelName +integer array WoWReforgedLevels__levelItemTypeId +string array WoWReforgedLevels__levelMapName -trigger WoWReforgedLevels___sellTrigger= CreateTrigger() +trigger WoWReforgedLevels__sellTrigger= CreateTrigger() //endglobals from WoWReforgedLevels //globals from WoWReforgedMaxHpResearch: constant boolean LIBRARY_WoWReforgedMaxHpResearch=true @@ -2228,14 +2228,14 @@ constant boolean LIBRARY_WoWReforgedWitchHut=true constant integer WoWReforgedWitchHut_UNIT_TYPE= 'o05F' constant integer WoWReforgedWitchHut_UNIT_TYPE_REMOVE_ABILITIES= 'u01W' -hashtable WoWReforgedWitchHut__h= InitHashtable() -integer array WoWReforgedWitchHut__unitTypeIds -integer array WoWReforgedWitchHut__abilityIds -integer WoWReforgedWitchHut__unitTypeIdsCounter= 0 -group WoWReforgedWitchHut__witchHuts= CreateGroup() -trigger WoWReforgedWitchHut__constructionTrigger= CreateTrigger() -trigger WoWReforgedWitchHut__deathTrigger= CreateTrigger() -trigger WoWReforgedWitchHut__sellTrigger= CreateTrigger() +hashtable WoWReforgedWitchHut___h= InitHashtable() +integer array WoWReforgedWitchHut___unitTypeIds +integer array WoWReforgedWitchHut___abilityIds +integer WoWReforgedWitchHut___unitTypeIdsCounter= 0 +group WoWReforgedWitchHut___witchHuts= CreateGroup() +trigger WoWReforgedWitchHut___constructionTrigger= CreateTrigger() +trigger WoWReforgedWitchHut___deathTrigger= CreateTrigger() +trigger WoWReforgedWitchHut___sellTrigger= CreateTrigger() //endglobals from WoWReforgedWitchHut //globals from DamageInterfaceUtils: constant boolean LIBRARY_DamageInterfaceUtils=true @@ -2243,48 +2243,48 @@ constant boolean LIBRARY_DamageInterfaceUtils=true //globals from Demoralize: constant boolean LIBRARY_Demoralize=true constant integer Demoralize_ABILITY_ID= 'A1Z3' -trigger Demoralize___castTrigger= CreateTrigger() -player Demoralize___tmpPlayer= null +trigger Demoralize__castTrigger= CreateTrigger() +player Demoralize__tmpPlayer= null //endglobals from Demoralize //globals from HolyNova: constant boolean LIBRARY_HolyNova=true constant integer HolyNova_ABILITY_ID= 'A1NH' constant integer HolyNova_ABILITY_ID_2= 'A1ON' -unit HolyNova___tmpCaster= null +unit HolyNova__tmpCaster= null -trigger HolyNova___castTrigger= CreateTrigger() +trigger HolyNova__castTrigger= CreateTrigger() //endglobals from HolyNova //globals from MassDevour: constant boolean LIBRARY_MassDevour=true -constant real MassDevour___RANGE= 512.0 -constant integer MassDevour___ABILITY_ID= 'A10L' -constant integer MassDevour___BUFF_ABILITY_ID= 'A0Y1' -constant integer MassDevour___DUMMY_ID= 'h0H7' +constant real MassDevour__RANGE= 512.0 +constant integer MassDevour__ABILITY_ID= 'A10L' +constant integer MassDevour__BUFF_ABILITY_ID= 'A0Y1' +constant integer MassDevour__DUMMY_ID= 'h0H7' -constant integer MassDevour___DUMMY_DEVOUR_ABILITY_ID= 'A10N' -constant integer MassDevour___DUMMY_DEVOUR_CARGO_ABILITY_ID= 'A10M' +constant integer MassDevour__DUMMY_DEVOUR_ABILITY_ID= 'A10N' +constant integer MassDevour__DUMMY_DEVOUR_CARGO_ABILITY_ID= 'A10M' -constant string MassDevour___DUMMY_DEVOUR_ORDER= "creepdevour" +constant string MassDevour__DUMMY_DEVOUR_ORDER= "creepdevour" -hashtable MassDevour___h= InitHashtable() -trigger MassDevour___castTrigger= CreateTrigger() -trigger MassDevour___deathTriggerCaster= CreateTrigger() -trigger MassDevour___deathTriggerTarget= CreateTrigger() -group MassDevour___casters= CreateGroup() -group MassDevour___targets= CreateGroup() +hashtable MassDevour__h= InitHashtable() +trigger MassDevour__castTrigger= CreateTrigger() +trigger MassDevour__deathTriggerCaster= CreateTrigger() +trigger MassDevour__deathTriggerTarget= CreateTrigger() +group MassDevour__casters= CreateGroup() +group MassDevour__targets= CreateGroup() // keys for targets -constant integer MassDevour___KEY_CASTER= 0 -constant integer MassDevour___KEY_DUMMY= 1 +constant integer MassDevour__KEY_CASTER= 0 +constant integer MassDevour__KEY_DUMMY= 1 // keys for casters -constant integer MassDevour___KEY_DUMMIES= 0 +constant integer MassDevour__KEY_DUMMIES= 0 -unit MassDevour___c= null -player MassDevour___owner= null -group MassDevour___dummies= null -unit MassDevour___tmpCaster= null +unit MassDevour__c= null +player MassDevour__owner= null +group MassDevour__dummies= null +unit MassDevour__tmpCaster= null //endglobals from MassDevour //globals from NewBonus: constant boolean LIBRARY_NewBonus=true @@ -2367,20 +2367,20 @@ constant abilityreallevelfield NewBonus___LIFE_STEAL_FIELD= ABILITY_RLF_LIFE_STO constant boolean LIBRARY_Parry=true constant integer Parry_ABILITY_ID= 'A1Z5' constant integer Parry_BUFF_ABILITY_ID= 'A1Z7' -trigger Parry___castTrigger= CreateTrigger() -trigger Parry___attackTrigger= CreateTrigger() -group Parry___casters= CreateGroup() -hashtable Parry___h= InitHashtable() +trigger Parry__castTrigger= CreateTrigger() +trigger Parry__attackTrigger= CreateTrigger() +group Parry__casters= CreateGroup() +hashtable Parry__h= InitHashtable() //endglobals from Parry //globals from PhoenixEgg: constant boolean LIBRARY_PhoenixEgg=true constant integer PhoenixEgg_UNIT_TYPE_ID= 'h0VE' constant integer PhoenixEgg_ABILITY_ID= 'A1ZP' constant integer PhoenixEgg_ABILITY_ID_2= 'A24J' -trigger PhoenixEgg___summonTrigger= CreateTrigger() -trigger PhoenixEgg___deathTrigger= CreateTrigger() -group PhoenixEgg___eggs= CreateGroup() -hashtable PhoenixEgg___h= InitHashtable() +trigger PhoenixEgg__summonTrigger= CreateTrigger() +trigger PhoenixEgg__deathTrigger= CreateTrigger() +group PhoenixEgg__eggs= CreateGroup() +hashtable PhoenixEgg__h= InitHashtable() //endglobals from PhoenixEgg //globals from Railway: constant boolean LIBRARY_Railway=true @@ -2393,12 +2393,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 @@ -2451,32 +2451,32 @@ constant boolean LIBRARY_SummonWall=true constant integer SummonWall_ABILITY_ID= 'A1E3' constant integer SummonWall_UNIT_TYPE_ID= 'h0P8' -trigger SummonWall___castTrigger= CreateTrigger() +trigger SummonWall__castTrigger= CreateTrigger() //endglobals from SummonWall //globals from TailSwipe: constant boolean LIBRARY_TailSwipe=true constant integer TailSwipe_ABILITY_ID= 'A1QI' integer TailSwipe_kbType= 0 -trigger TailSwipe___castTrigger= CreateTrigger() -player TailSwipe___tmpPlayer= null +trigger TailSwipe__castTrigger= CreateTrigger() +player TailSwipe__tmpPlayer= null //endglobals from TailSwipe //globals from Telekinesis: constant boolean LIBRARY_Telekinesis=true -constant real Telekinesis___MAX_DISTANCE= 700.0 -constant integer Telekinesis___ABILITY_ID= 'A0XZ' -constant integer Telekinesis___BUFF_ABILITY_ID= 'A0Y1' -constant integer Telekinesis___ITEM_ABILITY_ID= 'A1VM' +constant real Telekinesis__MAX_DISTANCE= 700.0 +constant integer Telekinesis__ABILITY_ID= 'A0XZ' +constant integer Telekinesis__BUFF_ABILITY_ID= 'A0Y1' +constant integer Telekinesis__ITEM_ABILITY_ID= 'A1VM' -hashtable Telekinesis___h= InitHashtable() -trigger Telekinesis___castTrigger= CreateTrigger() -group Telekinesis___casters= CreateGroup() +hashtable Telekinesis__h= InitHashtable() +trigger Telekinesis__castTrigger= CreateTrigger() +group Telekinesis__casters= CreateGroup() -constant integer Telekinesis___KEY_TARGET= 0 -constant integer Telekinesis___KEY_TARGET_TYPE= 1 +constant integer Telekinesis__KEY_TARGET= 0 +constant integer Telekinesis__KEY_TARGET_TYPE= 1 -constant integer Telekinesis___TARGET_TYPE_UNIT= 0 -constant integer Telekinesis___TARGET_TYPE_ITEM= 1 -constant integer Telekinesis___TARGET_TYPE_DESTRUCTABLE= 2 +constant integer Telekinesis__TARGET_TYPE_UNIT= 0 +constant integer Telekinesis__TARGET_TYPE_ITEM= 1 +constant integer Telekinesis__TARGET_TYPE_DESTRUCTABLE= 2 //endglobals from Telekinesis //globals from WoWReforgedPiggery: constant boolean LIBRARY_WoWReforgedPiggery=true @@ -2500,18 +2500,18 @@ constant integer PROFESSION_RANK_NOVICE= 0 constant integer PROFESSION_MAX_CRAFTED= 4 -integer WoWReforgedProfessions___professionsCounter= 0 -integer array WoWReforgedProfessions___professions +integer WoWReforgedProfessions__professionsCounter= 0 +integer array WoWReforgedProfessions__professions -integer WoWReforgedProfessions___tmpRankCounter= PROFESSION_RANK_NOVICE +integer WoWReforgedProfessions__tmpRankCounter= PROFESSION_RANK_NOVICE -trigger WoWReforgedProfessions___castTrigger= CreateTrigger() +trigger WoWReforgedProfessions__castTrigger= CreateTrigger() //endglobals from WoWReforgedProfessions //globals from WoWReforgedTradingPosts: constant boolean LIBRARY_WoWReforgedTradingPosts=true -trigger WoWReforgedTradingPosts__gatherTrigger= CreateTrigger() -integer array WoWReforgedTradingPosts__tradingPostResource -integer WoWReforgedTradingPosts__tradingPostResourceCount= 0 +trigger WoWReforgedTradingPosts___gatherTrigger= CreateTrigger() +integer array WoWReforgedTradingPosts___tradingPostResource +integer WoWReforgedTradingPosts___tradingPostResourceCount= 0 //endglobals from WoWReforgedTradingPosts //globals from NewBonusUtils: constant boolean LIBRARY_NewBonusUtils=true @@ -2565,14 +2565,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 @@ -2587,15 +2587,15 @@ constant integer ITEM_TYPE_ID_ORANGE= 'I0U3' constant integer ITEM_TYPE_ID_LEMON= 'I0U2' constant integer ITEM_TYPE_ID_MEAT= 'I0X1' -integer array WowReforgedCook__foodItemTypeIds -integer WowReforgedCook__foodItemTypeIdsCounter= 0 +integer array WowReforgedCook___foodItemTypeIds +integer WowReforgedCook___foodItemTypeIdsCounter= 0 //endglobals from WowReforgedCook //globals from WoWReforgedUtils: constant boolean LIBRARY_WoWReforgedUtils=true -trigger WoWReforgedUtils___levelTrigger= CreateTrigger() -boolean WoWReforgedUtils___initialized= false -boolean WoWReforgedUtils___isInSinglePlayer= true -player WoWReforgedUtils___tmpPlayer= null +trigger WoWReforgedUtils__levelTrigger= CreateTrigger() +boolean WoWReforgedUtils__initialized= false +boolean WoWReforgedUtils__isInSinglePlayer= true +player WoWReforgedUtils__tmpPlayer= null integer auraFilterFunc= 0 //endglobals from WoWReforgedUtils //globals from JumpSpellvJASSJangoFett: @@ -2685,18 +2685,18 @@ constant real Interval= 0.04 //endglobals from WoWReforgedKnockbackSimple //globals from WoWReforgedLearnableSkillsShop: constant boolean LIBRARY_WoWReforgedLearnableSkillsShop=true -trigger WoWReforgedLearnableSkillsShop___sellTrigger= CreateTrigger() -trigger WoWReforgedLearnableSkillsShop___constructionTrigger= CreateTrigger() -trigger WoWReforgedLearnableSkillsShop___summonTrigger= CreateTrigger() -trigger WoWReforgedLearnableSkillsShop___deathTrigger= CreateTrigger() -timer array WoWReforgedLearnableSkillsShop___cooldownTimer +trigger WoWReforgedLearnableSkillsShop__sellTrigger= CreateTrigger() +trigger WoWReforgedLearnableSkillsShop__constructionTrigger= CreateTrigger() +trigger WoWReforgedLearnableSkillsShop__summonTrigger= CreateTrigger() +trigger WoWReforgedLearnableSkillsShop__deathTrigger= CreateTrigger() +timer array WoWReforgedLearnableSkillsShop__cooldownTimer //endglobals from WoWReforgedLearnableSkillsShop //globals from WoWReforgedMapChanger: constant boolean LIBRARY_WoWReforgedMapChanger=true //endglobals from WoWReforgedMapChanger //globals from WoWReforgedProfessionsTavern: constant boolean LIBRARY_WoWReforgedProfessionsTavern=true -trigger WoWReforgedProfessionsTavern___sellTrigger= CreateTrigger() +trigger WoWReforgedProfessionsTavern__sellTrigger= CreateTrigger() //endglobals from WoWReforgedProfessionsTavern //globals from WoWReforgedResurrectionStone: constant boolean LIBRARY_WoWReforgedResurrectionStone=true @@ -2704,35 +2704,35 @@ constant integer ITEM_ACTIVATE_RESURRECTION_STONE= 'I147' constant integer ITEM_DEACTIVATE_RESURRECTION_STONE= 'I14A' constant real RESURRECTION_TIME= 30.0 -integer array WoWReforgedResurrectionStone__resurrectionStones -integer WoWReforgedResurrectionStone__resurrectionStonesCounter= 0 +integer array WoWReforgedResurrectionStone___resurrectionStones +integer WoWReforgedResurrectionStone___resurrectionStonesCounter= 0 -trigger WoWReforgedResurrectionStone__deathTrigger= CreateTrigger() -trigger WoWReforgedResurrectionStone__reviveTrigger= CreateTrigger() -trigger WoWReforgedResurrectionStone__chatTrigger= CreateTrigger() -hashtable WoWReforgedResurrectionStone__h= InitHashtable() +trigger WoWReforgedResurrectionStone___deathTrigger= CreateTrigger() +trigger WoWReforgedResurrectionStone___reviveTrigger= CreateTrigger() +trigger WoWReforgedResurrectionStone___chatTrigger= CreateTrigger() +hashtable WoWReforgedResurrectionStone___h= InitHashtable() -integer array WoWReforgedResurrectionStone__heroResurrectionStones -timer array WoWReforgedResurrectionStone__heroResurrectionTimers +integer array WoWReforgedResurrectionStone___heroResurrectionStones +timer array WoWReforgedResurrectionStone___heroResurrectionTimers //endglobals from WoWReforgedResurrectionStone //globals from WoWReforgedSkins: constant boolean LIBRARY_WoWReforgedSkins=true -integer array WoWReforgedSkins___skinItemTypeId -integer array WoWReforgedSkins___skinUnitTypeId -integer WoWReforgedSkins___skinCounter= 0 - -trigger WoWReforgedSkins___sellTrigger= CreateTrigger() -trigger WoWReforgedSkins___constructionTrigger= CreateTrigger() -trigger WoWReforgedSkins___summonTrigger= CreateTrigger() -trigger WoWReforgedSkins___deathTrigger= CreateTrigger() +integer array WoWReforgedSkins__skinItemTypeId +integer array WoWReforgedSkins__skinUnitTypeId +integer WoWReforgedSkins__skinCounter= 0 + +trigger WoWReforgedSkins__sellTrigger= CreateTrigger() +trigger WoWReforgedSkins__constructionTrigger= CreateTrigger() +trigger WoWReforgedSkins__summonTrigger= CreateTrigger() +trigger WoWReforgedSkins__deathTrigger= CreateTrigger() //endglobals from WoWReforgedSkins //globals from WoWReforgedSummonedUnits: constant boolean LIBRARY_WoWReforgedSummonedUnits=true -group array WoWReforgedSummonedUnits__summonedUnits -trigger WoWReforgedSummonedUnits__summonTrigger= CreateTrigger() -trigger WoWReforgedSummonedUnits__deathTrigger= CreateTrigger() -trigger WoWReforgedSummonedUnits__changeOwnerTrigger= CreateTrigger() -trigger WoWReforgedSummonedUnits__selectTrigger= CreateTrigger() +group array WoWReforgedSummonedUnits___summonedUnits +trigger WoWReforgedSummonedUnits___summonTrigger= CreateTrigger() +trigger WoWReforgedSummonedUnits___deathTrigger= CreateTrigger() +trigger WoWReforgedSummonedUnits___changeOwnerTrigger= CreateTrigger() +trigger WoWReforgedSummonedUnits___selectTrigger= CreateTrigger() //endglobals from WoWReforgedSummonedUnits //globals from WoWReforgedVIPs: constant boolean LIBRARY_WoWReforgedVIPs=true @@ -2746,16 +2746,16 @@ constant boolean LIBRARY_WowReforgedRespawnUtils=true //endglobals from WowReforgedRespawnUtils //globals from WoWReforgedAiPlayersUi: constant boolean LIBRARY_WoWReforgedAiPlayersUi=true -constant string WoWReforgedAiPlayersUi___PREFIX= "AiPlayersUi" +constant string WoWReforgedAiPlayersUi__PREFIX= "AiPlayersUi" constant integer AI_PLAYERS_UI_MAX_PLAYERS= 1 constant real AI_PLAYERS_UI_LINE_HEADERS_Y= UI_FULLSCREEN_Y - 0.05 -constant real AI_PLAYERS_UI_LINE_HEADERS_HEIGHT= 0.01 +constant real AI_PLAYERS_UI_LINE_HEADERS_HEIGHT= 0.006 constant real AI_PLAYERS_UI_LINE_HEIGHT= 0.03 -constant real AI_PLAYERS_UI_LINE_HEIGHT_SPACING= 0.08 +constant real AI_PLAYERS_UI_LINE_HEIGHT_SPACING= 0.09 constant real AI_PLAYERS_UI_START_X= UI_FULLSCREEN_X + 0.03 @@ -2909,124 +2909,124 @@ constant integer AI_PLAYERS_UI_PROFESSIONS_MENU_ITEM_GOLEM_SCULPTOR= 15 constant integer AI_PLAYERS_UI_PROFESSIONS_MENU_ITEM_WARLOCK= 16 constant integer AI_PLAYERS_UI_PROFESSIONS_MENU_ITEM_ASTROMANCER= 17 -integer WoWReforgedAiPlayersUi___Counter= 0 -integer WoWReforgedAiPlayersUi___MaxPages= 0 -force WoWReforgedAiPlayersUi___Force= CreateForce() -integer WoWReforgedAiPlayersUi___Page= 0 +integer WoWReforgedAiPlayersUi__Counter= 0 +integer WoWReforgedAiPlayersUi__MaxPages= 0 +force WoWReforgedAiPlayersUi__Force= CreateForce() +integer WoWReforgedAiPlayersUi__Page= 0 -framehandle WoWReforgedAiPlayersUi___BackgroundFrame -framehandle WoWReforgedAiPlayersUi___TitleFrame +framehandle WoWReforgedAiPlayersUi__BackgroundFrame +framehandle WoWReforgedAiPlayersUi__TitleFrame // header line -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnPlayerName -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnColor -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnTeam -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnHero -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevel -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnStartLocation -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnRace -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnProfession -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnStartGold -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnStartLumber -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimit -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolution -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnStartImprovedPowerGenerator -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnStartImprovedCreepHunter -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnStartImprovedNavy -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayers -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnHeroes -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnExpansions -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnSharedControl -framehandle WoWReforgedAiPlayersUi___LabelFrameColumnDifficulty +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnPlayerName +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnColor +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnTeam +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnHero +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevel +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnStartLocation +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnRace +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnProfession +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnStartGold +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnStartLumber +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimit +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolution +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnStartImprovedPowerGenerator +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnStartImprovedCreepHunter +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnStartImprovedNavy +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayers +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnHeroes +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnExpansions +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnSharedControl +framehandle WoWReforgedAiPlayersUi__LabelFrameColumnDifficulty // sync data -string array WoWReforgedAiPlayersUi___PlayerNames -integer array WoWReforgedAiPlayersUi___Color -integer array WoWReforgedAiPlayersUi___Teams -integer array WoWReforgedAiPlayersUi___Heroes -integer array WoWReforgedAiPlayersUi___HeroStartLevels -integer array WoWReforgedAiPlayersUi___StartLocations -integer array WoWReforgedAiPlayersUi___Races -integer array WoWReforgedAiPlayersUi___Professions -integer array WoWReforgedAiPlayersUi___StartGold -integer array WoWReforgedAiPlayersUi___StartLumber -integer array WoWReforgedAiPlayersUi___FoodLimit -integer array WoWReforgedAiPlayersUi___StartEvolution -integer array WoWReforgedAiPlayersUi___AttackPlayers -integer array WoWReforgedAiPlayersUi___HeroesCount -integer array WoWReforgedAiPlayersUi___Expansions -integer array WoWReforgedAiPlayersUi___SharedControl -integer array WoWReforgedAiPlayersUi___Difficulty -boolean array WoWReforgedAiPlayersUi___SyncDone - -trigger WoWReforgedAiPlayersUi___SyncTrigger +string array WoWReforgedAiPlayersUi__PlayerNames +integer array WoWReforgedAiPlayersUi__Color +integer array WoWReforgedAiPlayersUi__Teams +integer array WoWReforgedAiPlayersUi__Heroes +integer array WoWReforgedAiPlayersUi__HeroStartLevels +integer array WoWReforgedAiPlayersUi__StartLocations +integer array WoWReforgedAiPlayersUi__Races +integer array WoWReforgedAiPlayersUi__Professions +integer array WoWReforgedAiPlayersUi__StartGold +integer array WoWReforgedAiPlayersUi__StartLumber +integer array WoWReforgedAiPlayersUi__FoodLimit +integer array WoWReforgedAiPlayersUi__StartEvolution +integer array WoWReforgedAiPlayersUi__AttackPlayers +integer array WoWReforgedAiPlayersUi__HeroesCount +integer array WoWReforgedAiPlayersUi__Expansions +integer array WoWReforgedAiPlayersUi__SharedControl +integer array WoWReforgedAiPlayersUi__Difficulty +boolean array WoWReforgedAiPlayersUi__SyncDone + +trigger WoWReforgedAiPlayersUi__SyncTrigger // async -integer array WoWReforgedAiPlayersUi___SharedControlAsync +integer array WoWReforgedAiPlayersUi__SharedControlAsync // player lines -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnPlayerNameEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUpFrame -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDownFrame -integer array WoWReforgedAiPlayersUi___ColorLocal -trigger array WoWReforgedAiPlayersUi___ColorPopupMenuTrigger -trigger array WoWReforgedAiPlayersUi___ColorUpTrigger -trigger array WoWReforgedAiPlayersUi___ColorDownTrigger -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnTeamEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUpFrame -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDownFrame -trigger array WoWReforgedAiPlayersUi___HeroUpTrigger -trigger array WoWReforgedAiPlayersUi___HeroDownTrigger -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevelEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnStartLocationEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUpFrame -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDownFrame -trigger array WoWReforgedAiPlayersUi___RaceUpTrigger -trigger array WoWReforgedAiPlayersUi___RaceDownTrigger -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnProfessionEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnStartGoldEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnStartLumberEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimitEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolutionEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnStartImprovedPowerGeneratorEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnStartImprovedCreepHunterEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnStartImprovedNavyEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayerCheckbox -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnHeroesEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnExpansionsEdit -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnSharedControlCheckbox -framehandle array WoWReforgedAiPlayersUi___LabelFrameColumnDifficultyEdit -trigger array WoWReforgedAiPlayersUi___checkSharedControlTrigger -trigger array WoWReforgedAiPlayersUi___uncheckSharedControlTrigger +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnPlayerNameEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUpFrame +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDownFrame +integer array WoWReforgedAiPlayersUi__ColorLocal +trigger array WoWReforgedAiPlayersUi__ColorPopupMenuTrigger +trigger array WoWReforgedAiPlayersUi__ColorUpTrigger +trigger array WoWReforgedAiPlayersUi__ColorDownTrigger +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnTeamEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUpFrame +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDownFrame +trigger array WoWReforgedAiPlayersUi__HeroUpTrigger +trigger array WoWReforgedAiPlayersUi__HeroDownTrigger +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevelEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnStartLocationEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUpFrame +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDownFrame +trigger array WoWReforgedAiPlayersUi__RaceUpTrigger +trigger array WoWReforgedAiPlayersUi__RaceDownTrigger +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnProfessionEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnStartGoldEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnStartLumberEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimitEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolutionEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnStartImprovedPowerGeneratorEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnStartImprovedCreepHunterEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnStartImprovedNavyEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayerCheckbox +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnHeroesEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnExpansionsEdit +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnSharedControlCheckbox +framehandle array WoWReforgedAiPlayersUi__LabelFrameColumnDifficultyEdit +trigger array WoWReforgedAiPlayersUi__checkSharedControlTrigger +trigger array WoWReforgedAiPlayersUi__uncheckSharedControlTrigger // bottom buttons -framehandle WoWReforgedAiPlayersUi___PreviousPageButton -trigger WoWReforgedAiPlayersUi___PreviousPageTrigger +framehandle WoWReforgedAiPlayersUi__PreviousPageButton +trigger WoWReforgedAiPlayersUi__PreviousPageTrigger -framehandle WoWReforgedAiPlayersUi___NextPageButton -trigger WoWReforgedAiPlayersUi___NextPageTrigger +framehandle WoWReforgedAiPlayersUi__NextPageButton +trigger WoWReforgedAiPlayersUi__NextPageTrigger -framehandle WoWReforgedAiPlayersUi___ApplyButton -trigger WoWReforgedAiPlayersUi___ApplyTrigger +framehandle WoWReforgedAiPlayersUi__ApplyButton +trigger WoWReforgedAiPlayersUi__ApplyTrigger //endglobals from WoWReforgedAiPlayersUi //globals from WoWReforgedCraftingStash: constant boolean LIBRARY_WoWReforgedCraftingStash=true //endglobals from WoWReforgedCraftingStash //globals from WoWReforgedEnchanter: constant boolean LIBRARY_WoWReforgedEnchanter=true -hashtable WoWReforgedEnchanter__EnchanterSystemHashTable= InitHashtable() -group WoWReforgedEnchanter__EnchantedUnits= CreateGroup() +hashtable WoWReforgedEnchanter___EnchanterSystemHashTable= InitHashtable() +group WoWReforgedEnchanter___EnchantedUnits= CreateGroup() constant integer ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS= 1 constant integer ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS= 2 @@ -3049,24 +3049,24 @@ constant integer ENCHANTER_STAT_BONUS_MASTER= 4 constant integer ENCHANTER_DAMAGE_BONUS_MASTER= 9 constant integer ENCHANTER_HIT_POINTS_BONUS_MASTER= 200 -trigger WoWReforgedEnchanter__pickupItemTrigger= CreateTrigger() -trigger WoWReforgedEnchanter__dropItemTrigger= CreateTrigger() +trigger WoWReforgedEnchanter___pickupItemTrigger= CreateTrigger() +trigger WoWReforgedEnchanter___dropItemTrigger= CreateTrigger() //endglobals from WoWReforgedEnchanter //globals from WoWReforgedHeroUtils: constant boolean LIBRARY_WoWReforgedHeroUtils=true //endglobals from WoWReforgedHeroUtils //globals from WoWReforgedHeroesTavern: constant boolean LIBRARY_WoWReforgedHeroesTavern=true -unit WoWReforgedHeroesTavern___tmpUnit= null -integer WoWReforgedHeroesTavern___index= 0 -string WoWReforgedHeroesTavern___tmpString= null +unit WoWReforgedHeroesTavern__tmpUnit= null +integer WoWReforgedHeroesTavern__index= 0 +string WoWReforgedHeroesTavern__tmpString= null -trigger WoWReforgedHeroesTavern___sellTrigger= CreateTrigger() +trigger WoWReforgedHeroesTavern__sellTrigger= CreateTrigger() //endglobals from WoWReforgedHeroesTavern //globals from WoWReforgedInscriptor: constant boolean LIBRARY_WoWReforgedInscriptor=true -hashtable WoWReforgedInscriptor__h= InitHashtable() -group WoWReforgedInscriptor__targets= CreateGroup() +hashtable WoWReforgedInscriptor___h= InitHashtable() +group WoWReforgedInscriptor___targets= CreateGroup() constant integer INSCRIPTOR_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS= 1 constant integer INSCRIPTOR_SYSTEM_KEY_DAMAGE_BONUS= 2 @@ -3091,28 +3091,28 @@ constant integer INSCRIPTOR_HIT_POINTS_BONUS_MASTER= 200 constant integer INSCRIPTION_HERO_SPELL= 'A1YB' -trigger WoWReforgedInscriptor__pickupItemTrigger= CreateTrigger() -trigger WoWReforgedInscriptor__dropItemTrigger= CreateTrigger() -trigger WoWReforgedInscriptor__learnTrigger= CreateTrigger() +trigger WoWReforgedInscriptor___pickupItemTrigger= CreateTrigger() +trigger WoWReforgedInscriptor___dropItemTrigger= CreateTrigger() +trigger WoWReforgedInscriptor___learnTrigger= CreateTrigger() //endglobals from WoWReforgedInscriptor //globals from WoWReforgedMounts: constant boolean LIBRARY_WoWReforgedMounts=true -hashtable WoWReforgedMounts__MountHashTable= InitHashtable() -string array WoWReforgedMounts__mountName1 -string array WoWReforgedMounts__mountName2 -string array WoWReforgedMounts__mountName3 +hashtable WoWReforgedMounts___MountHashTable= InitHashtable() +string array WoWReforgedMounts___mountName1 +string array WoWReforgedMounts___mountName2 +string array WoWReforgedMounts___mountName3 constant integer WoWReforgedMounts_MOUNTS_HERO_LEVEL= 20 constant integer WoWReforgedMounts_MOUNTS_CAGE= 'o04H' -integer array WoWReforgedMounts__mountTypes -integer WoWReforgedMounts__mountTypesCounter= 0 +integer array WoWReforgedMounts___mountTypes +integer WoWReforgedMounts___mountTypesCounter= 0 -trigger WoWReforgedMounts__sellTrigger= CreateTrigger() -trigger WoWReforgedMounts__levelTrigger= CreateTrigger() -trigger WoWReforgedMounts__summonTrigger= CreateTrigger() -trigger WoWReforgedMounts__constructionTrigger= CreateTrigger() -boolean array WoWReforgedMounts__playerHasMounts -integer WoWReforgedMounts__tmpAbilityId= 0 +trigger WoWReforgedMounts___sellTrigger= CreateTrigger() +trigger WoWReforgedMounts___levelTrigger= CreateTrigger() +trigger WoWReforgedMounts___summonTrigger= CreateTrigger() +trigger WoWReforgedMounts___constructionTrigger= CreateTrigger() +boolean array WoWReforgedMounts___playerHasMounts +integer WoWReforgedMounts___tmpAbilityId= 0 constant integer WoWReforgedMounts_RUNNING_WILD_ITEM_TYPE_ID= 'I0HU' constant integer WoWReforgedMounts_RUNNING_WILD_WORGEN_DEATH_KNIGHT= 'A11Y' constant integer WoWReforgedMounts_WORGEN_DEATH_KNIGHT= 'U01K' @@ -3206,43 +3206,43 @@ constant integer RACE_OBJECT_TYPE_SHIP_SPECIAL_2= 74 constant integer RACE_MAX_OBJECT_TYPES= 75 -hashtable WoWReforgedRaces___objectTypeHashTable= InitHashtable() -hashtable WoWReforgedRaces___objectTypeIdHashTable= InitHashtable() +hashtable WoWReforgedRaces__objectTypeHashTable= InitHashtable() +hashtable WoWReforgedRaces__objectTypeIdHashTable= InitHashtable() -integer array WoWReforgedRaces___objectTypeCreeps -integer WoWReforgedRaces___objectTypeCreepsCounter= 0 +integer array WoWReforgedRaces__objectTypeCreeps +integer WoWReforgedRaces__objectTypeCreepsCounter= 0 -integer array WoWReforgedRaces___objectTypeNeutralUnits -integer WoWReforgedRaces___objectTypeNeutralUnitsCounter= 0 +integer array WoWReforgedRaces__objectTypeNeutralUnits +integer WoWReforgedRaces__objectTypeNeutralUnitsCounter= 0 -integer array WoWReforgedRaces___objectTypeNeutralBuildings -integer WoWReforgedRaces___objectTypeNeutralBuildingsCounter= 0 +integer array WoWReforgedRaces__objectTypeNeutralBuildings +integer WoWReforgedRaces__objectTypeNeutralBuildingsCounter= 0 -integer array WoWReforgedRaces___objectTypeAbilities -integer array WoWReforgedRaces___objectTypeAbilitiesLevels -integer array WoWReforgedRaces___objectTypeAbilitiesRace -integer WoWReforgedRaces___objectTypeAbilitiesCounter= 0 +integer array WoWReforgedRaces__objectTypeAbilities +integer array WoWReforgedRaces__objectTypeAbilitiesLevels +integer array WoWReforgedRaces__objectTypeAbilitiesRace +integer WoWReforgedRaces__objectTypeAbilitiesCounter= 0 //endglobals from WoWReforgedRaces //globals from WoWReforgedStandardHeroAbilities: constant boolean LIBRARY_WoWReforgedStandardHeroAbilities=true -integer array WoWReforgedStandardHeroAbilities___standardHeroAbilities -integer WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter= 0 - -trigger WoWReforgedStandardHeroAbilities___sellTrigger= CreateTrigger() -trigger WoWReforgedStandardHeroAbilities___constructionTrigger= CreateTrigger() -trigger WoWReforgedStandardHeroAbilities___summonTrigger= CreateTrigger() -trigger WoWReforgedStandardHeroAbilities___deathTrigger= CreateTrigger() -trigger WoWReforgedStandardHeroAbilities___levelTrigger= CreateTrigger() +integer array WoWReforgedStandardHeroAbilities__standardHeroAbilities +integer WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter= 0 + +trigger WoWReforgedStandardHeroAbilities__sellTrigger= CreateTrigger() +trigger WoWReforgedStandardHeroAbilities__constructionTrigger= CreateTrigger() +trigger WoWReforgedStandardHeroAbilities__summonTrigger= CreateTrigger() +trigger WoWReforgedStandardHeroAbilities__deathTrigger= CreateTrigger() +trigger WoWReforgedStandardHeroAbilities__levelTrigger= CreateTrigger() //endglobals from WoWReforgedStandardHeroAbilities //globals from WoWReforgedStats: constant boolean LIBRARY_WoWReforgedStats=true -integer WoWReforgedStats__currentRow= 1 +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 @@ -3265,54 +3265,54 @@ integer SaveObjectResearchCounter= 1 //endglobals from SaveCodeObjectSystem //globals from WoWReforgedAchievements: constant boolean LIBRARY_WoWReforgedAchievements=true -group array WoWReforgedAchievements__conquerorTownHalls -integer WoWReforgedAchievements__questsCompleted= 0 -integer WoWReforgedAchievements__playersDefeated= 0 -integer array WoWReforgedAchievements__playerHeroKills -hashtable WoWReforgedAchievements__bossKillsHashTable= InitHashtable() -boolean array WoWReforgedAchievements__playerBossKillAchievements -hashtable WoWReforgedAchievements__unitTypeKillsHashTable= InitHashtable() -boolean array WoWReforgedAchievements__playerHasEveryCreepTypeAchievement -integer WoWReforgedAchievements__treesKilled= 0 -real array WoWReforgedAchievements__playerDamageTaken -real array WoWReforgedAchievements__playerDamageCaused -trigger WoWReforgedAchievements__damageTrigger= CreateTrigger() -boolean array WoWReforgedAchievements__playerOverpopulation -integer array WoWReforgedAchievements__playerLockPicks -integer array WoWReforgedAchievements__playerPickPockets -integer array WoWReforgedAchievements__playerHeroDeaths -integer array WoWReforgedAchievements__playerUndeadKills -integer array WoWReforgedAchievements__playerNonUndeadKills -integer array WoWReforgedAchievements__playerCitizenKills -integer array WoWReforgedAchievements__playerOil -boolean array WoWReforgedAchievements__playerCompletedAllAchievements -integer array WoWReforgedAchievements__playerPropertyCounter -integer array WoWReforgedAchievements__playerZonesCounter -integer array WoWReforgedAchievements__playerRacingTracks -trigger WoWReforgedAchievements__constructionFinishedTrigger= CreateTrigger() -trigger WoWReforgedAchievements__deathTrigger= CreateTrigger() -trigger WoWReforgedAchievements__gatherTrigger= CreateTrigger() - -integer WoWReforgedAchievements__achievementsCounter= 0 -integer array WoWReforgedAchievements__achievements +group array WoWReforgedAchievements___conquerorTownHalls +integer WoWReforgedAchievements___questsCompleted= 0 +integer WoWReforgedAchievements___playersDefeated= 0 +integer array WoWReforgedAchievements___playerHeroKills +hashtable WoWReforgedAchievements___bossKillsHashTable= InitHashtable() +boolean array WoWReforgedAchievements___playerBossKillAchievements +hashtable WoWReforgedAchievements___unitTypeKillsHashTable= InitHashtable() +boolean array WoWReforgedAchievements___playerHasEveryCreepTypeAchievement +integer WoWReforgedAchievements___treesKilled= 0 +real array WoWReforgedAchievements___playerDamageTaken +real array WoWReforgedAchievements___playerDamageCaused +trigger WoWReforgedAchievements___damageTrigger= CreateTrigger() +boolean array WoWReforgedAchievements___playerOverpopulation +integer array WoWReforgedAchievements___playerLockPicks +integer array WoWReforgedAchievements___playerPickPockets +integer array WoWReforgedAchievements___playerHeroDeaths +integer array WoWReforgedAchievements___playerUndeadKills +integer array WoWReforgedAchievements___playerNonUndeadKills +integer array WoWReforgedAchievements___playerCitizenKills +integer array WoWReforgedAchievements___playerOil +boolean array WoWReforgedAchievements___playerCompletedAllAchievements +integer array WoWReforgedAchievements___playerPropertyCounter +integer array WoWReforgedAchievements___playerZonesCounter +integer array WoWReforgedAchievements___playerRacingTracks +trigger WoWReforgedAchievements___constructionFinishedTrigger= CreateTrigger() +trigger WoWReforgedAchievements___deathTrigger= CreateTrigger() +trigger WoWReforgedAchievements___gatherTrigger= CreateTrigger() + +integer WoWReforgedAchievements___achievementsCounter= 0 +integer array WoWReforgedAchievements___achievements //endglobals from WoWReforgedAchievements //globals from WoWReforgedAlchemistLab: constant boolean LIBRARY_WoWReforgedAlchemistLab=true constant integer ABILITY_ID_CONVERT_UNIT= 'A16S' constant integer ABILITY_ID_CONVERT_ITEM= 'A1BI' -trigger WoWReforgedAlchemistLab__constructionTrigger= CreateTrigger() -trigger WoWReforgedAlchemistLab__sellTrigger= CreateTrigger() -trigger WoWReforgedAlchemistLab__castTrigger= CreateTrigger() -trigger array WoWReforgedAlchemistLab__convertTriggers -integer WoWReforgedAlchemistLab__convertTriggersCounter= 0 -unit WoWReforgedAlchemistLab__triggerConverter= null -unit WoWReforgedAlchemistLab__triggerReplacingUnit= null -item WoWReforgedAlchemistLab__triggerReplacingItem= null +trigger WoWReforgedAlchemistLab___constructionTrigger= CreateTrigger() +trigger WoWReforgedAlchemistLab___sellTrigger= CreateTrigger() +trigger WoWReforgedAlchemistLab___castTrigger= CreateTrigger() +trigger array WoWReforgedAlchemistLab___convertTriggers +integer WoWReforgedAlchemistLab___convertTriggersCounter= 0 +unit WoWReforgedAlchemistLab___triggerConverter= null +unit WoWReforgedAlchemistLab___triggerReplacingUnit= null +item WoWReforgedAlchemistLab___triggerReplacingItem= null //endglobals from WoWReforgedAlchemistLab //globals from WoWReforgedAltars: constant boolean LIBRARY_WoWReforgedAltars=true -player WoWReforgedAltars__filterPlayer= null +player WoWReforgedAltars___filterPlayer= null //endglobals from WoWReforgedAltars //globals from WoWReforgedBuilder: constant boolean LIBRARY_WoWReforgedBuilder=true @@ -3324,11 +3324,11 @@ constant integer ITEM_TYPE_ID_NEUTRAL_PASSIVE= 'I0W1' constant integer ITEM_TYPE_ID_COLOR_RED= 'I0W2' -integer array WoWReforgedBuilder___targetPlayerIndex +integer array WoWReforgedBuilder__targetPlayerIndex -trigger WoWReforgedBuilder___sellTrigger= CreateTrigger() -trigger WoWReforgedBuilder___orderTrigger= CreateTrigger() -trigger WoWReforgedBuilder___orderTargetTrigger= CreateTrigger() +trigger WoWReforgedBuilder__sellTrigger= CreateTrigger() +trigger WoWReforgedBuilder__orderTrigger= CreateTrigger() +trigger WoWReforgedBuilder__orderTargetTrigger= CreateTrigger() //endglobals from WoWReforgedBuilder //globals from WoWReforgedClans: constant boolean LIBRARY_WoWReforgedClans=true @@ -3344,7 +3344,7 @@ constant boolean LIBRARY_WoWReforgedRacesLimits=true //endglobals from WoWReforgedRacesLimits //globals from WoWReforgedRacesTavern: constant boolean LIBRARY_WoWReforgedRacesTavern=true -trigger WoWReforgedRacesTavern___sellTrigger= CreateTrigger() +trigger WoWReforgedRacesTavern__sellTrigger= CreateTrigger() //endglobals from WoWReforgedRacesTavern //globals from WoWReforgedRecreateHeroItems: constant boolean LIBRARY_WoWReforgedRecreateHeroItems=true @@ -3371,15 +3371,15 @@ constant integer RANDOM_WATER_MINE= 'n0DT' constant integer WATER_OIL_PLATFORM= 'n0DU' constant integer FLOTSAM= 'n0DJ' -integer WoWReforgedResources___maxMines= 0 -integer array WoWReforgedResources___mineTypes -integer array WoWReforgedResources___mineResource -integer array WoWReforgedResources___mineStartAmount +integer WoWReforgedResources__maxMines= 0 +integer array WoWReforgedResources__mineTypes +integer array WoWReforgedResources__mineResource +integer array WoWReforgedResources__mineStartAmount -integer WoWReforgedResources___maxWaterMines= 0 -integer array WoWReforgedResources___waterMineTypes -integer array WoWReforgedResources___waterMineResource -integer array WoWReforgedResources___waterMineStartAmount +integer WoWReforgedResources__maxWaterMines= 0 +integer array WoWReforgedResources__waterMineTypes +integer array WoWReforgedResources__waterMineResource +integer array WoWReforgedResources__waterMineStartAmount //endglobals from WoWReforgedResources //globals from WoWReforgedSaddle: constant boolean LIBRARY_WoWReforgedSaddle=true @@ -3393,24 +3393,24 @@ constant integer SCEPTERS_SHOP= 'n06Q' //endglobals from WoWReforgedSceptersShop //globals from WoWReforgedThievesGuild: constant boolean LIBRARY_WoWReforgedThievesGuild=true -trigger WoWReforgedThievesGuild__deathTrigger= CreateTrigger() -trigger WoWReforgedThievesGuild__changesOwnerTrigger= CreateTrigger() -trigger WoWReforgedThievesGuild__constructFinishTrigger= CreateTrigger() -trigger WoWReforgedThievesGuild__sellUnitTrigger= CreateTrigger() -trigger WoWReforgedThievesGuild__sellItemTrigger= CreateTrigger() +trigger WoWReforgedThievesGuild___deathTrigger= CreateTrigger() +trigger WoWReforgedThievesGuild___changesOwnerTrigger= CreateTrigger() +trigger WoWReforgedThievesGuild___constructFinishTrigger= CreateTrigger() +trigger WoWReforgedThievesGuild___sellUnitTrigger= CreateTrigger() +trigger WoWReforgedThievesGuild___sellItemTrigger= CreateTrigger() -timer WoWReforgedThievesGuild__stockUpdateTimer= CreateTimer() +timer WoWReforgedThievesGuild___stockUpdateTimer= CreateTimer() -group WoWReforgedThievesGuild__thievesGuilds= CreateGroup() -unit WoWReforgedThievesGuild__tmpUnit= null -player WoWReforgedThievesGuild__tmpPreviousOwner= null +group WoWReforgedThievesGuild___thievesGuilds= CreateGroup() +unit WoWReforgedThievesGuild___tmpUnit= null +player WoWReforgedThievesGuild___tmpPreviousOwner= null //endglobals from WoWReforgedThievesGuild //globals from WoWReforgedWrapUp: constant boolean LIBRARY_WoWReforgedWrapUp=true -trigger WoWReforgedWrapUp___constructionTrigger= CreateTrigger() -trigger WoWReforgedWrapUp___deathTrigger= CreateTrigger() -group WoWReforgedWrapUp___constructedBuildings= CreateGroup() -player WoWReforgedWrapUp___tmpPlayer= null +trigger WoWReforgedWrapUp__constructionTrigger= CreateTrigger() +trigger WoWReforgedWrapUp__deathTrigger= CreateTrigger() +group WoWReforgedWrapUp__constructedBuildings= CreateGroup() +player WoWReforgedWrapUp__tmpPlayer= null //endglobals from WoWReforgedWrapUp //globals from WowReforgedMultiply: constant boolean LIBRARY_WowReforgedMultiply=true @@ -3418,12 +3418,12 @@ constant integer WowReforgedMultiply_ABILITY_ID= 'A184' constant integer WowReforgedMultiply_BUFF_ID= 'BFig' constant real WowReforgedMultiply_DURATION= 60.0 -trigger WowReforgedMultiply__castTrigger= CreateTrigger() +trigger WowReforgedMultiply___castTrigger= CreateTrigger() //endglobals from WowReforgedMultiply //globals from WoWReforgedArena: constant boolean LIBRARY_WoWReforgedArena=true -integer array WoWReforgedArena__tickets -integer WoWReforgedArena__ticketsCounter= 0 +integer array WoWReforgedArena___tickets +integer WoWReforgedArena___ticketsCounter= 0 //endglobals from WoWReforgedArena //globals from WoWReforgedCheats: constant boolean LIBRARY_WoWReforgedCheats=true @@ -3437,24 +3437,24 @@ constant integer WoWReforgedRacing_MAX_CHECKPOINTS= 100 constant real WoWReforgedRacing_CHECKPOINT_RADIUS= 100.0 constant string WoWReforgedRacing_CHECKPOINT_TARGET_EFFECT= "Abilities\\Spells\\Other\\Aneu\\AneuTarget.mdl" -integer WoWReforgedRacing__currentRacingTrack= 0 -player WoWReforgedRacing__firstPlace= null -player WoWReforgedRacing__secondPlace= null -player WoWReforgedRacing__thirdPlace= null -timer WoWReforgedRacing__currentRacingTrackTimer= CreateTimer() -timerdialog WoWReforgedRacing__currentRacingTrackTimerDialog= null -integer array WoWReforgedRacing__racingTracks -integer WoWReforgedRacing__racingTracksCounter= 0 -trigger WoWReforgedRacing__sellItemTrigger= CreateTrigger() -trigger WoWReforgedRacing__enterCheckpointTrigger= CreateTrigger() -hashtable WoWReforgedRacing__h= InitHashtable() +integer WoWReforgedRacing___currentRacingTrack= 0 +player WoWReforgedRacing___firstPlace= null +player WoWReforgedRacing___secondPlace= null +player WoWReforgedRacing___thirdPlace= null +timer WoWReforgedRacing___currentRacingTrackTimer= CreateTimer() +timerdialog WoWReforgedRacing___currentRacingTrackTimerDialog= null +integer array WoWReforgedRacing___racingTracks +integer WoWReforgedRacing___racingTracksCounter= 0 +trigger WoWReforgedRacing___sellItemTrigger= CreateTrigger() +trigger WoWReforgedRacing___enterCheckpointTrigger= CreateTrigger() +hashtable WoWReforgedRacing___h= InitHashtable() //endglobals from WoWReforgedRacing //globals from WoWReforgedResearches: constant boolean LIBRARY_WoWReforgedResearches=true -integer array WoWReforgedResearches__researches -integer WoWReforgedResearches__researchesCounter= 0 +integer array WoWReforgedResearches___researches +integer WoWReforgedResearches___researchesCounter= 0 -integer WoWReforgedResearches__lastCreatedResearch= 0 +integer WoWReforgedResearches___lastCreatedResearch= 0 //endglobals from WoWReforgedResearches //globals from WoWReforgedZones: constant boolean LIBRARY_WoWReforgedZones=true @@ -3473,14 +3473,14 @@ constant integer MAX_ZONE_RECTS= 10 constant integer ZONE_TYPE_ZONE= 0 constant integer ZONE_TYPE_WORLD= 1 constant integer ZONE_TYPE_CONTINENT= 2 -integer array WoWReforgedZones__zones -integer WoWReforgedZones__zonesCounter= 0 +integer array WoWReforgedZones___zones +integer WoWReforgedZones___zonesCounter= 0 -trigger WoWReforgedZones__enterTrigger= CreateTrigger() +trigger WoWReforgedZones___enterTrigger= CreateTrigger() -integer WoWReforgedZones__currentWorld= 0 -integer WoWReforgedZones__currentContinent= 0 -integer WoWReforgedZones__currentZone= 0 +integer WoWReforgedZones___currentWorld= 0 +integer WoWReforgedZones___currentContinent= 0 +integer WoWReforgedZones___currentZone= 0 //endglobals from WoWReforgedZones //globals from WoWReforgedCalendar: constant boolean LIBRARY_WoWReforgedCalendar=true @@ -3516,37 +3516,37 @@ constant integer OCTOBER= 10 constant integer NOVEMBER= 11 constant integer DECEMBER= 12 -trigger WoWReforgedCalendar__changeDayTrigger= CreateTrigger() -timer WoWReforgedCalendar__changeSecondTimer= CreateTimer() -region WoWReforgedCalendar__rainyRegion= null -weathereffect array WoWReforgedCalendar__weather -integer array WoWReforgedCalendar__weatherEffectIds -integer WoWReforgedCalendar__days= SUMMER_DAY -integer WoWReforgedCalendar__years= 24 -integer WoWReforgedCalendar__season= SEASON_WINTER +trigger WoWReforgedCalendar___changeDayTrigger= CreateTrigger() +timer WoWReforgedCalendar___changeSecondTimer= CreateTimer() +region WoWReforgedCalendar___rainyRegion= null +weathereffect array WoWReforgedCalendar___weather +integer array WoWReforgedCalendar___weatherEffectIds +integer WoWReforgedCalendar___days= SUMMER_DAY +integer WoWReforgedCalendar___years= 24 +integer WoWReforgedCalendar___season= SEASON_WINTER -boolean WoWReforgedCalendar__seasonsEnabled= true +boolean WoWReforgedCalendar___seasonsEnabled= true -boolean WoWReforgedCalendar__easterTrees= false -boolean WoWReforgedCalendar__christmasTrees= false -effect array WoWReforgedCalendar__newYearEffects +boolean WoWReforgedCalendar___easterTrees= false +boolean WoWReforgedCalendar___christmasTrees= false +effect array WoWReforgedCalendar___newYearEffects -boolean WoWReforgedCalendar__weatherRunning= false -timer WoWReforgedCalendar__weatherTimer= CreateTimer() -timer WoWReforgedCalendar__thunderTimer= CreateTimer() +boolean WoWReforgedCalendar___weatherRunning= false +timer WoWReforgedCalendar___weatherTimer= CreateTimer() +timer WoWReforgedCalendar___thunderTimer= CreateTimer() -integer array WoWReforgedCalendar__tileMappings -integer WoWReforgedCalendar__tileMappingsCounter= 0 +integer array WoWReforgedCalendar___tileMappings +integer WoWReforgedCalendar___tileMappingsCounter= 0 -integer array WoWReforgedCalendar__calendarEvents -integer WoWReforgedCalendar__calendarEventsCounter= 0 +integer array WoWReforgedCalendar___calendarEvents +integer WoWReforgedCalendar___calendarEventsCounter= 0 -hashtable WoWReforgedCalendar__h= InitHashtable() +hashtable WoWReforgedCalendar___h= InitHashtable() -filterfunc WoWReforgedCalendar__filterIsMineWithResourceWaterNotFull= null -integer WoWReforgedCalendar__sourceSeason= 0 -integer WoWReforgedCalendar__targetSeason= 0 -filterfunc WoWReforgedCalendar__treeFilter= null +filterfunc WoWReforgedCalendar___filterIsMineWithResourceWaterNotFull= null +integer WoWReforgedCalendar___sourceSeason= 0 +integer WoWReforgedCalendar___targetSeason= 0 +filterfunc WoWReforgedCalendar___treeFilter= null integer easter= 0 integer christmas= 0 integer newyear= 0 @@ -3560,9 +3560,9 @@ constant boolean LIBRARY_WoWReforgedComputer=true //globals from WoWReforgedMassForestation: constant boolean LIBRARY_WoWReforgedMassForestation=true constant integer WoWReforgedMassForestation_ABILITY_ID= 'A22J' -trigger WoWReforgedMassForestation__castTrigger= CreateTrigger() -integer WoWReforgedMassForestation__abilityLevel= 0 -player WoWReforgedMassForestation__owner= null +trigger WoWReforgedMassForestation___castTrigger= CreateTrigger() +integer WoWReforgedMassForestation___abilityLevel= 0 +player WoWReforgedMassForestation___owner= null //endglobals from WoWReforgedMassForestation //globals from WoWReforgedPings: constant boolean LIBRARY_WoWReforgedPings=true @@ -3571,15 +3571,15 @@ player WoWReforgedPings___owner= null //endglobals from WoWReforgedPings //globals from WoWReforgedPortals: constant boolean LIBRARY_WoWReforgedPortals=true -boolean WoWReforgedPortals__initialized= false -trigger WoWReforgedPortals__constructFinishedTrigger= CreateTrigger() +boolean WoWReforgedPortals___initialized= false +trigger WoWReforgedPortals___constructFinishedTrigger= CreateTrigger() //endglobals from WoWReforgedPortals //globals from WoWReforgedCalendarMultiboard: constant boolean LIBRARY_WoWReforgedCalendarMultiboard=true -constant real WoWReforgedCalendarMultiboard__SIZE= 0.06 +constant real WoWReforgedCalendarMultiboard___SIZE= 0.06 -multiboard WoWReforgedCalendarMultiboard__m= null -timer WoWReforgedCalendarMultiboard__t= CreateTimer() +multiboard WoWReforgedCalendarMultiboard___m= null +timer WoWReforgedCalendarMultiboard___t= CreateTimer() //endglobals from WoWReforgedCalendarMultiboard //globals from WoWReforgedProperties: constant boolean LIBRARY_WoWReforgedProperties=true @@ -3589,13 +3589,13 @@ constant integer WoWReforgedProperties_UNLOAD_ABILITY_ID= 'S01P' constant integer WoWReforgedProperties_SELECT_UNIT_ABILITY_ID= 'Ane2' constant integer WoWReforgedProperties_SELECT_HERO_ABILITY_ID= 'Aneu' -trigger WoWReforgedProperties__purchaseTrigger= CreateTrigger() +trigger WoWReforgedProperties___purchaseTrigger= CreateTrigger() -integer array WoWReforgedProperties__properties -integer WoWReforgedProperties__propertiesCounter= 0 +integer array WoWReforgedProperties___properties +integer WoWReforgedProperties___propertiesCounter= 0 -group WoWReforgedProperties__properiesGroup= CreateGroup() -hashtable WoWReforgedProperties__h= InitHashtable() +group WoWReforgedProperties___properiesGroup= CreateGroup() +hashtable WoWReforgedProperties___h= InitHashtable() //endglobals from WoWReforgedProperties //globals from WoWReforgedItemCheck: constant boolean LIBRARY_WoWReforgedItemCheck=true @@ -3624,111 +3624,111 @@ constant integer A_ORDER_ID_USE_SLOT_4= 852012 constant integer A_ORDER_ID_USE_SLOT_5= 852013 // item slot data -integer array WoWReforgedBackpacks___BackpackItemType -integer array WoWReforgedBackpacks___BackpackItemCharges -boolean array WoWReforgedBackpacks___BackpackItemPawnable -boolean array WoWReforgedBackpacks___BackpackItemInvulnerable -string array WoWReforgedBackpacks___BackpackItemName -string array WoWReforgedBackpacks___BackpackItemDescription -string array WoWReforgedBackpacks___BackpackItemTooltip -string array WoWReforgedBackpacks___BackpackItemTooltipExtended -player array WoWReforgedBackpacks___BackpackItemPlayer +integer array WoWReforgedBackpacks__BackpackItemType +integer array WoWReforgedBackpacks__BackpackItemCharges +boolean array WoWReforgedBackpacks__BackpackItemPawnable +boolean array WoWReforgedBackpacks__BackpackItemInvulnerable +string array WoWReforgedBackpacks__BackpackItemName +string array WoWReforgedBackpacks__BackpackItemDescription +string array WoWReforgedBackpacks__BackpackItemTooltip +string array WoWReforgedBackpacks__BackpackItemTooltipExtended +player array WoWReforgedBackpacks__BackpackItemPlayer // player data -unit array WoWReforgedBackpacks___Backpack -integer array WoWReforgedBackpacks___BackpackPageNumber -trigger array WoWReforgedBackpacks___BackpackTriggerChangePage -trigger array WoWReforgedBackpacks___BackpackTriggerPickup -trigger array WoWReforgedBackpacks___BackpackTriggerDrop -trigger array WoWReforgedBackpacks___BackpackTriggerMove -trigger array WoWReforgedBackpacks___BackpackTriggerOrder -item array WoWReforgedBackpacks___BackpackTargetItem -boolean array WoWReforgedBackpacks___BackpackPlayerBagInfo - -boolean WoWReforgedBackpacks___BackpackPickupTimerHasStarted= false - -timer WoWReforgedBackpacks___BackpackPickupTimer= CreateTimer() -timer WoWReforgedBackpacks___BackpackUpdateLocationTimer= CreateTimer() +unit array WoWReforgedBackpacks__Backpack +integer array WoWReforgedBackpacks__BackpackPageNumber +trigger array WoWReforgedBackpacks__BackpackTriggerChangePage +trigger array WoWReforgedBackpacks__BackpackTriggerPickup +trigger array WoWReforgedBackpacks__BackpackTriggerDrop +trigger array WoWReforgedBackpacks__BackpackTriggerMove +trigger array WoWReforgedBackpacks__BackpackTriggerOrder +item array WoWReforgedBackpacks__BackpackTargetItem +boolean array WoWReforgedBackpacks__BackpackPlayerBagInfo + +boolean WoWReforgedBackpacks__BackpackPickupTimerHasStarted= false + +timer WoWReforgedBackpacks__BackpackPickupTimer= CreateTimer() +timer WoWReforgedBackpacks__BackpackUpdateLocationTimer= CreateTimer() //endglobals from WoWReforgedBackpacks //globals from WoWReforgedAllRaces: constant boolean LIBRARY_WoWReforgedAllRaces=true -unit array WoWReforgedAllRaces__ghoul +unit array WoWReforgedAllRaces___ghoul //endglobals from WoWReforgedAllRaces //globals from WoWReforgedBackpackUI: constant boolean LIBRARY_WoWReforgedBackpackUI=true -constant real WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE= 0.02818 -constant real WoWReforgedBackpackUI___BACKPACK_UI_CHARGES_BACKGROUND_SIZE= 0.014 -constant real WoWReforgedBackpackUI___BACKPACK_UI_CHARGES_POS= 0.003 -constant real WoWReforgedBackpackUI___BACKPACK_UI_CHARGES_SIZE= 0.02 -constant real WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SPACE= 0.005 - -constant real WoWReforgedBackpackUI___UI_SLOT_X= 0.03 -constant real WoWReforgedBackpackUI___UI_SLOT_Y= 0.53 - -constant real WoWReforgedBackpackUI___UI_CHECKBOX_X= 0.48 -constant real WoWReforgedBackpackUI___UI_CHECKBOX_Y= 0.20 -constant real WoWReforgedBackpackUI___UI_CHECKBOX_SIZE= 0.02818 - -constant real WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_X= 0.62 -constant real WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_Y= 0.54 -constant real WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_WIDTH= 0.16 -constant real WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_HEIGHT= 0.34 - -constant real WoWReforgedBackpackUI___UI_TOOLTIP_X= 0.639 -constant real WoWReforgedBackpackUI___UI_TOOLTIP_Y= 0.47 -constant real WoWReforgedBackpackUI___UI_TOOLTIP_WIDTH= 0.14 -constant real WoWReforgedBackpackUI___UI_TOOLTIP_HEIGHT= 0.6 - -constant real WoWReforgedBackpackUI___UI_TOOLTIP_ICON_X= WoWReforgedBackpackUI___UI_TOOLTIP_X -constant real WoWReforgedBackpackUI___UI_TOOLTIP_ICON_Y= 0.50 -constant real WoWReforgedBackpackUI___UI_TOOLTIP_ICON_SIZE= 0.02 - -boolean array WoWReforgedBackpackUI___BackpackUIVisible -framehandle WoWReforgedBackpackUI___BackpackBackgroundFrame -framehandle WoWReforgedBackpackUI___BackpackTitleFrame -framehandle array WoWReforgedBackpackUI___BackpackItemFrame -framehandle array WoWReforgedBackpackUI___BackpackItemBackdropFrame -framehandle array WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame -framehandle array WoWReforgedBackpackUI___BackpackItemChargesFrame -framehandle array WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame -framehandle array WoWReforgedBackpackUI___BackpackItemBagFrame -trigger array WoWReforgedBackpackUI___BackpackItemTrigger -trigger array WoWReforgedBackpackUI___BackpackItemTooltipOnTrigger -trigger array WoWReforgedBackpackUI___BackpackItemTooltipOffTrigger -framehandle WoWReforgedBackpackUI___BackpackTooltipFrame -framehandle WoWReforgedBackpackUI___BackpackTooltipIcon -framehandle WoWReforgedBackpackUI___BackpackTooltipModel -framehandle WoWReforgedBackpackUI___BackpackItemGoldFrame -framehandle WoWReforgedBackpackUI___BackpackItemGoldIconFrame -framehandle WoWReforgedBackpackUI___BackpackTooltipText -framehandle WoWReforgedBackpackUI___Checkbox -trigger WoWReforgedBackpackUI___CheckTrigger -trigger WoWReforgedBackpackUI___UncheckTrigger -trigger WoWReforgedBackpackUI___CheckboxTooltipOnTrigger -trigger WoWReforgedBackpackUI___CheckboxTooltipOffTrigger -framehandle WoWReforgedBackpackUI___BackpackCloseButton -trigger WoWReforgedBackpackUI___BackpackCloseTrigger -trigger WoWReforgedBackpackUI___BackpackSyncTrigger -boolean array WoWReforgedBackpackUI___Checked +constant real WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE= 0.02818 +constant real WoWReforgedBackpackUI__BACKPACK_UI_CHARGES_BACKGROUND_SIZE= 0.014 +constant real WoWReforgedBackpackUI__BACKPACK_UI_CHARGES_POS= 0.003 +constant real WoWReforgedBackpackUI__BACKPACK_UI_CHARGES_SIZE= 0.02 +constant real WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SPACE= 0.005 + +constant real WoWReforgedBackpackUI__UI_SLOT_X= 0.03 +constant real WoWReforgedBackpackUI__UI_SLOT_Y= 0.53 + +constant real WoWReforgedBackpackUI__UI_CHECKBOX_X= 0.48 +constant real WoWReforgedBackpackUI__UI_CHECKBOX_Y= 0.20 +constant real WoWReforgedBackpackUI__UI_CHECKBOX_SIZE= 0.02818 + +constant real WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_X= 0.62 +constant real WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_Y= 0.54 +constant real WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_WIDTH= 0.16 +constant real WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_HEIGHT= 0.34 + +constant real WoWReforgedBackpackUI__UI_TOOLTIP_X= 0.639 +constant real WoWReforgedBackpackUI__UI_TOOLTIP_Y= 0.47 +constant real WoWReforgedBackpackUI__UI_TOOLTIP_WIDTH= 0.14 +constant real WoWReforgedBackpackUI__UI_TOOLTIP_HEIGHT= 0.6 + +constant real WoWReforgedBackpackUI__UI_TOOLTIP_ICON_X= WoWReforgedBackpackUI__UI_TOOLTIP_X +constant real WoWReforgedBackpackUI__UI_TOOLTIP_ICON_Y= 0.50 +constant real WoWReforgedBackpackUI__UI_TOOLTIP_ICON_SIZE= 0.02 + +boolean array WoWReforgedBackpackUI__BackpackUIVisible +framehandle WoWReforgedBackpackUI__BackpackBackgroundFrame +framehandle WoWReforgedBackpackUI__BackpackTitleFrame +framehandle array WoWReforgedBackpackUI__BackpackItemFrame +framehandle array WoWReforgedBackpackUI__BackpackItemBackdropFrame +framehandle array WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame +framehandle array WoWReforgedBackpackUI__BackpackItemChargesFrame +framehandle array WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame +framehandle array WoWReforgedBackpackUI__BackpackItemBagFrame +trigger array WoWReforgedBackpackUI__BackpackItemTrigger +trigger array WoWReforgedBackpackUI__BackpackItemTooltipOnTrigger +trigger array WoWReforgedBackpackUI__BackpackItemTooltipOffTrigger +framehandle WoWReforgedBackpackUI__BackpackTooltipFrame +framehandle WoWReforgedBackpackUI__BackpackTooltipIcon +framehandle WoWReforgedBackpackUI__BackpackTooltipModel +framehandle WoWReforgedBackpackUI__BackpackItemGoldFrame +framehandle WoWReforgedBackpackUI__BackpackItemGoldIconFrame +framehandle WoWReforgedBackpackUI__BackpackTooltipText +framehandle WoWReforgedBackpackUI__Checkbox +trigger WoWReforgedBackpackUI__CheckTrigger +trigger WoWReforgedBackpackUI__UncheckTrigger +trigger WoWReforgedBackpackUI__CheckboxTooltipOnTrigger +trigger WoWReforgedBackpackUI__CheckboxTooltipOffTrigger +framehandle WoWReforgedBackpackUI__BackpackCloseButton +trigger WoWReforgedBackpackUI__BackpackCloseTrigger +trigger WoWReforgedBackpackUI__BackpackSyncTrigger +boolean array WoWReforgedBackpackUI__Checked //endglobals from WoWReforgedBackpackUI //globals from WoWReforgedDemigod: constant boolean LIBRARY_WoWReforgedDemigod=true //endglobals from WoWReforgedDemigod //globals from WoWReforgedHeroTransformation: constant boolean LIBRARY_WoWReforgedHeroTransformation=true -trigger WoWReforgedHeroTransformation__pickupTrigger= CreateTrigger() -trigger WoWReforgedHeroTransformation__dropTrigger= CreateTrigger() -trigger WoWReforgedHeroTransformation__castTrigger= CreateTrigger() -integer array WoWReforgedHeroTransformation__types -integer WoWReforgedHeroTransformation__typesCounter= 0 - -constant integer WoWReforgedHeroTransformation__MAX_HEROES= 3 -integer array WoWReforgedHeroTransformation__playerHeroOriginalUnitTypeId +trigger WoWReforgedHeroTransformation___pickupTrigger= CreateTrigger() +trigger WoWReforgedHeroTransformation___dropTrigger= CreateTrigger() +trigger WoWReforgedHeroTransformation___castTrigger= CreateTrigger() +integer array WoWReforgedHeroTransformation___types +integer WoWReforgedHeroTransformation___typesCounter= 0 + +constant integer WoWReforgedHeroTransformation___MAX_HEROES= 3 +integer array WoWReforgedHeroTransformation___playerHeroOriginalUnitTypeId //endglobals from WoWReforgedHeroTransformation //globals from WoWReforgedItemUtils: constant boolean LIBRARY_WoWReforgedItemUtils=true -integer WoWReforgedItemUtils__pickedupItemsCounter= 0 -player WoWReforgedItemUtils__pickedupItemsPlayer +integer WoWReforgedItemUtils___pickedupItemsCounter= 0 +player WoWReforgedItemUtils___pickedupItemsPlayer //endglobals from WoWReforgedItemUtils //globals from WoWReforgedNeutralZone: constant boolean LIBRARY_WoWReforgedNeutralZone=true @@ -3754,19 +3754,19 @@ constant integer WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED= 1 constant integer WoWReforgedEquipment_CATEGORY_TYPE_RANGE= 2 constant integer WoWReforgedEquipment_CATEGORY_TYPE_MAX= 3 -hashtable WoWReforgedEquipment___h= InitHashtable() -hashtable WoWReforgedEquipment___h2= InitHashtable() +hashtable WoWReforgedEquipment__h= InitHashtable() +hashtable WoWReforgedEquipment__h2= InitHashtable() -trigger WoWReforgedEquipment___pickupTrigger= CreateTrigger() -trigger WoWReforgedEquipment___dropTrigger= CreateTrigger() -trigger WoWReforgedEquipment___attackTrigger= CreateTrigger() +trigger WoWReforgedEquipment__pickupTrigger= CreateTrigger() +trigger WoWReforgedEquipment__dropTrigger= CreateTrigger() +trigger WoWReforgedEquipment__attackTrigger= CreateTrigger() -integer array WoWReforgedEquipment___equipmentItemTypeId -string array WoWReforgedEquipment___equipmentItemTypeCategoryName -integer array WoWReforgedEquipment___equipmentItemTypeCategory -boolean array WoWReforgedEquipment___equipmentItemTypeCategoryType -integer array WoWReforgedEquipment___equipmentItemTypeAnimation -integer WoWReforgedEquipment___equipmentTypesCounter= 1 +integer array WoWReforgedEquipment__equipmentItemTypeId +string array WoWReforgedEquipment__equipmentItemTypeCategoryName +integer array WoWReforgedEquipment__equipmentItemTypeCategory +boolean array WoWReforgedEquipment__equipmentItemTypeCategoryType +integer array WoWReforgedEquipment__equipmentItemTypeAnimation +integer WoWReforgedEquipment__equipmentTypesCounter= 1 //endglobals from WoWReforgedEquipment //globals from WoWReforgedSaveCodes: constant boolean LIBRARY_WoWReforgedSaveCodes=true @@ -3793,44 +3793,44 @@ integer array SaveAndLoadAutoSyncCounter //endglobals from WoWReforgedSaveCodes //globals from WoWReforgedSkillUI: constant boolean LIBRARY_WoWReforgedSkillUI=true -constant string WoWReforgedSkillUI___PREFIX= "SkillUI" - -constant real WoWReforgedSkillUI___X= 0.493 -constant real WoWReforgedSkillUI___Y= 0.08 -constant real WoWReforgedSkillUI___WIDTH= 0.01 -constant real WoWReforgedSkillUI___HEIGHT= 0.01 -constant real WoWReforgedSkillUI___SPACING= 0.003 - -constant real WoWReforgedSkillUI___Y2= 0.06 - -constant real WoWReforgedSkillUI___Y3= 0.0325 - -constant real WoWReforgedSkillUI___TOGGLE_X= 0.4 -constant real WoWReforgedSkillUI___TOGGLE_Y= 0.035 - -constant real WoWReforgedSkillUI___ATTRIBUTE_POINTS_X= WoWReforgedSkillUI___TOGGLE_X + WoWReforgedSkillUI___WIDTH + 0.01 -constant real WoWReforgedSkillUI___ATTRIBUTE_POINTS_WIDTH= 0.08 - -hashtable WoWReforgedSkillUI___h= InitHashtable() -framehandle array WoWReforgedSkillUI___IconFrameUp -framehandle array WoWReforgedSkillUI___IconFrameUpFrame -framehandle array WoWReforgedSkillUI___IconFrameDown -framehandle array WoWReforgedSkillUI___IconFrameDownFrame -trigger array WoWReforgedSkillUI___upTrigger -trigger array WoWReforgedSkillUI___downTrigger -framehandle WoWReforgedSkillUI___IconFrameToggle -framehandle WoWReforgedSkillUI___IconFrameToggleFrame -framehandle WoWReforgedSkillUI___IconFrameAttributePoints -trigger WoWReforgedSkillUI___toggleTrigger -trigger WoWReforgedSkillUI___syncTrigger= CreateTrigger() -trigger WoWReforgedSkillUI___selectionTrigger= CreateTrigger() -trigger WoWReforgedSkillUI___deselectionTrigger= CreateTrigger() -trigger WoWReforgedSkillUI___loadTrigger= CreateTrigger() -unit array WoWReforgedSkillUI___currentHero -boolean array WoWReforgedSkillUI___hidden - -player WoWReforgedSkillUI___tmpPlayer= null -trigger WoWReforgedSkillUI___tmpTrigger= CreateTrigger() +constant string WoWReforgedSkillUI__PREFIX= "SkillUI" + +constant real WoWReforgedSkillUI__X= 0.493 +constant real WoWReforgedSkillUI__Y= 0.08 +constant real WoWReforgedSkillUI__WIDTH= 0.01 +constant real WoWReforgedSkillUI__HEIGHT= 0.01 +constant real WoWReforgedSkillUI__SPACING= 0.003 + +constant real WoWReforgedSkillUI__Y2= 0.06 + +constant real WoWReforgedSkillUI__Y3= 0.0325 + +constant real WoWReforgedSkillUI__TOGGLE_X= 0.4 +constant real WoWReforgedSkillUI__TOGGLE_Y= 0.035 + +constant real WoWReforgedSkillUI__ATTRIBUTE_POINTS_X= WoWReforgedSkillUI__TOGGLE_X + WoWReforgedSkillUI__WIDTH + 0.01 +constant real WoWReforgedSkillUI__ATTRIBUTE_POINTS_WIDTH= 0.08 + +hashtable WoWReforgedSkillUI__h= InitHashtable() +framehandle array WoWReforgedSkillUI__IconFrameUp +framehandle array WoWReforgedSkillUI__IconFrameUpFrame +framehandle array WoWReforgedSkillUI__IconFrameDown +framehandle array WoWReforgedSkillUI__IconFrameDownFrame +trigger array WoWReforgedSkillUI__upTrigger +trigger array WoWReforgedSkillUI__downTrigger +framehandle WoWReforgedSkillUI__IconFrameToggle +framehandle WoWReforgedSkillUI__IconFrameToggleFrame +framehandle WoWReforgedSkillUI__IconFrameAttributePoints +trigger WoWReforgedSkillUI__toggleTrigger +trigger WoWReforgedSkillUI__syncTrigger= CreateTrigger() +trigger WoWReforgedSkillUI__selectionTrigger= CreateTrigger() +trigger WoWReforgedSkillUI__deselectionTrigger= CreateTrigger() +trigger WoWReforgedSkillUI__loadTrigger= CreateTrigger() +unit array WoWReforgedSkillUI__currentHero +boolean array WoWReforgedSkillUI__hidden + +player WoWReforgedSkillUI__tmpPlayer= null +trigger WoWReforgedSkillUI__tmpTrigger= CreateTrigger() //endglobals from WoWReforgedSkillUI //globals from WoWReforgedUpdateBackpackUI: constant boolean LIBRARY_WoWReforgedUpdateBackpackUI=true @@ -3839,20 +3839,20 @@ trigger updateBackpackUITrigger= CreateTrigger() //endglobals from WoWReforgedUpdateBackpackUI //globals from WoWReforgedArmory: constant boolean LIBRARY_WoWReforgedArmory=true -trigger WoWReforgedArmory___sellTrigger= CreateTrigger() -trigger WoWReforgedArmory___constructionTrigger= CreateTrigger() -trigger WoWReforgedArmory___summonTrigger= CreateTrigger() +trigger WoWReforgedArmory__sellTrigger= CreateTrigger() +trigger WoWReforgedArmory__constructionTrigger= CreateTrigger() +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 @@ -3902,315 +3902,315 @@ string WoWReforgedSaveCodesAll__tmpString= "" //endglobals from WoWReforgedSaveCodesAll //globals from WoWReforgedStartLocations: constant boolean LIBRARY_WoWReforgedStartLocations=true -integer array WoWReforgedStartLocations__startLocationsItemTypeIds -real array WoWReforgedStartLocations__startLocationsX -real array WoWReforgedStartLocations__startLocationsY -real array WoWReforgedStartLocations__startLocationsFacing -boolean array WoWReforgedStartLocations__startLocationsIsClanArea -integer WoWReforgedStartLocations__startLocationsCounter= 0 +integer array WoWReforgedStartLocations___startLocationsItemTypeIds +real array WoWReforgedStartLocations___startLocationsX +real array WoWReforgedStartLocations___startLocationsY +real array WoWReforgedStartLocations___startLocationsFacing +boolean array WoWReforgedStartLocations___startLocationsIsClanArea +integer WoWReforgedStartLocations___startLocationsCounter= 0 //endglobals from WoWReforgedStartLocations //globals from WoWReforgedPlayerInfos: 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 -trigger WoWReforgedStartLocationsTavern___sellTrigger= CreateTrigger() +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 -group array WoWReforgedCinematic__playerSelections +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 @@ -9736,13 +9736,13 @@ integer array s__Profession_bookItemTypeId integer array s___Profession_ranks constant integer s___Profession_ranks_size=4 integer array s__Profession_ranks -constant integer si__WoWReforgedTradingPosts__TradingPostResource=150 -integer si__WoWReforgedTradingPosts__TradingPostResource_F=0 -integer si__WoWReforgedTradingPosts__TradingPostResource_I=0 -integer array si__WoWReforgedTradingPosts__TradingPostResource_V -integer array s__WoWReforgedTradingPosts__TradingPostResource_resource -integer array s__WoWReforgedTradingPosts__TradingPostResource_buyUnitTypeId -integer array s__WoWReforgedTradingPosts__TradingPostResource_sellUnitTypeId +constant integer si__WoWReforgedTradingPosts___TradingPostResource=150 +integer si__WoWReforgedTradingPosts___TradingPostResource_F=0 +integer si__WoWReforgedTradingPosts___TradingPostResource_I=0 +integer array si__WoWReforgedTradingPosts___TradingPostResource_V +integer array s__WoWReforgedTradingPosts___TradingPostResource_resource +integer array s__WoWReforgedTradingPosts___TradingPostResource_buyUnitTypeId +integer array s__WoWReforgedTradingPosts___TradingPostResource_sellUnitTypeId constant integer si__NewBonusUtils=151 constant real s__NewBonusUtils_period= 0.03125000 timer s__NewBonusUtils_timer= CreateTimer() @@ -9809,18 +9809,18 @@ constant integer si__JumpingStomp=155 integer si__JumpingStomp_F=0 integer si__JumpingStomp_I=0 integer array si__JumpingStomp_V -constant integer si__WoWReforgedKnockbackSimple__KnockbackS=156 -integer si__WoWReforgedKnockbackSimple__KnockbackS_F=0 -integer si__WoWReforgedKnockbackSimple__KnockbackS_I=0 -integer array si__WoWReforgedKnockbackSimple__KnockbackS_V -unit array s__WoWReforgedKnockbackSimple__KnockbackS_target -real array s__WoWReforgedKnockbackSimple__KnockbackS_d1 -real array s__WoWReforgedKnockbackSimple__KnockbackS_d2 -real array s__WoWReforgedKnockbackSimple__KnockbackS_sin -real array s__WoWReforgedKnockbackSimple__KnockbackS_cos -real array s__WoWReforgedKnockbackSimple__KnockbackS_r -string array s__WoWReforgedKnockbackSimple__KnockbackS_efect -string array s__WoWReforgedKnockbackSimple__KnockbackS_attachmentPoint +constant integer si__WoWReforgedKnockbackSimple___KnockbackS=156 +integer si__WoWReforgedKnockbackSimple___KnockbackS_F=0 +integer si__WoWReforgedKnockbackSimple___KnockbackS_I=0 +integer array si__WoWReforgedKnockbackSimple___KnockbackS_V +unit array s__WoWReforgedKnockbackSimple___KnockbackS_target +real array s__WoWReforgedKnockbackSimple___KnockbackS_d1 +real array s__WoWReforgedKnockbackSimple___KnockbackS_d2 +real array s__WoWReforgedKnockbackSimple___KnockbackS_sin +real array s__WoWReforgedKnockbackSimple___KnockbackS_cos +real array s__WoWReforgedKnockbackSimple___KnockbackS_r +string array s__WoWReforgedKnockbackSimple___KnockbackS_efect +string array s__WoWReforgedKnockbackSimple___KnockbackS_attachmentPoint constant integer si__MapChanger=157 integer si__MapChanger_F=0 integer si__MapChanger_I=0 @@ -9845,26 +9845,26 @@ rect array s__ResurrectionStone_revivalRect real array s__ResurrectionStone_facing trigger array s__ResurrectionStone_activationTrigger group array s__ResurrectionStone_g -constant integer si__WoWReforgedMounts__M=159 -integer si__WoWReforgedMounts__M_F=0 -integer si__WoWReforgedMounts__M_I=0 -integer array si__WoWReforgedMounts__M_V -integer array s__WoWReforgedMounts__M_unitTypeId -integer array s__WoWReforgedMounts__M_abilityId -integer array s__WoWReforgedMounts__M_itemTypeId -string array s__WoWReforgedMounts__M_accountNames -boolean array s__WoWReforgedMounts__M_bonus -constant integer si__WoWReforgedStandardHeroAbilities___A=160 -integer si__WoWReforgedStandardHeroAbilities___A_F=0 -integer si__WoWReforgedStandardHeroAbilities___A_I=0 -integer array si__WoWReforgedStandardHeroAbilities___A_V -integer array s__WoWReforgedStandardHeroAbilities___A_itemTypeId -integer array s__WoWReforgedStandardHeroAbilities___A_abilityId -integer array s__WoWReforgedStandardHeroAbilities___A_maxLevel -boolean array s__WoWReforgedStandardHeroAbilities___A_requiresVIP -boolean array s__WoWReforgedStandardHeroAbilities___A_requiresReskillable -boolean array s__WoWReforgedStandardHeroAbilities___A_requiresAncientStructure -boolean array s__WoWReforgedStandardHeroAbilities___A_notAvailable +constant integer si__WoWReforgedMounts___M=159 +integer si__WoWReforgedMounts___M_F=0 +integer si__WoWReforgedMounts___M_I=0 +integer array si__WoWReforgedMounts___M_V +integer array s__WoWReforgedMounts___M_unitTypeId +integer array s__WoWReforgedMounts___M_abilityId +integer array s__WoWReforgedMounts___M_itemTypeId +string array s__WoWReforgedMounts___M_accountNames +boolean array s__WoWReforgedMounts___M_bonus +constant integer si__WoWReforgedStandardHeroAbilities__A=160 +integer si__WoWReforgedStandardHeroAbilities__A_F=0 +integer si__WoWReforgedStandardHeroAbilities__A_I=0 +integer array si__WoWReforgedStandardHeroAbilities__A_V +integer array s__WoWReforgedStandardHeroAbilities__A_itemTypeId +integer array s__WoWReforgedStandardHeroAbilities__A_abilityId +integer array s__WoWReforgedStandardHeroAbilities__A_maxLevel +boolean array s__WoWReforgedStandardHeroAbilities__A_requiresVIP +boolean array s__WoWReforgedStandardHeroAbilities__A_requiresReskillable +boolean array s__WoWReforgedStandardHeroAbilities__A_requiresAncientStructure +boolean array s__WoWReforgedStandardHeroAbilities__A_notAvailable constant integer si__Achievement=161 integer si__Achievement_F=0 integer si__Achievement_I=0 @@ -9991,14 +9991,14 @@ integer array s__Property_resource integer array s__Property_maxWorkers integer array s__Property_soldRace boolean array s__Property_shipyard -constant integer si__WoWReforgedHeroTransformation__HeroTransformationItemType=180 -integer si__WoWReforgedHeroTransformation__HeroTransformationItemType_F=0 -integer si__WoWReforgedHeroTransformation__HeroTransformationItemType_I=0 -integer array si__WoWReforgedHeroTransformation__HeroTransformationItemType_V -integer array s__WoWReforgedHeroTransformation__HeroTransformationItemType_id -integer array s__WoWReforgedHeroTransformation__HeroTransformationItemType_strengthUnitTypeId -integer array s__WoWReforgedHeroTransformation__HeroTransformationItemType_agilityUnitTypeId -integer array s__WoWReforgedHeroTransformation__HeroTransformationItemType_intelligenceUnitTypeId +constant integer si__WoWReforgedHeroTransformation___HeroTransformationItemType=180 +integer si__WoWReforgedHeroTransformation___HeroTransformationItemType_F=0 +integer si__WoWReforgedHeroTransformation___HeroTransformationItemType_I=0 +integer array si__WoWReforgedHeroTransformation___HeroTransformationItemType_V +integer array s__WoWReforgedHeroTransformation___HeroTransformationItemType_id +integer array s__WoWReforgedHeroTransformation___HeroTransformationItemType_strengthUnitTypeId +integer array s__WoWReforgedHeroTransformation___HeroTransformationItemType_agilityUnitTypeId +integer array s__WoWReforgedHeroTransformation___HeroTransformationItemType_intelligenceUnitTypeId integer array s__TimerUtils__data timer array s__TimerUtils__tT integer array s__s__AArrowKeys_m_playerArrowKeys @@ -11206,32 +11206,32 @@ function s__AArrowKeys_deallocate takes integer this returns nothing set si__AArrowKeys_F=this endfunction -//Generated allocator of WoWReforgedHeroTransformation__HeroTransformationItemType -function s__WoWReforgedHeroTransformation__HeroTransformationItemType__allocate takes nothing returns integer - local integer this=si__WoWReforgedHeroTransformation__HeroTransformationItemType_F +//Generated allocator of WoWReforgedHeroTransformation___HeroTransformationItemType +function s__WoWReforgedHeroTransformation___HeroTransformationItemType__allocate takes nothing returns integer + local integer this=si__WoWReforgedHeroTransformation___HeroTransformationItemType_F if (this!=0) then - set si__WoWReforgedHeroTransformation__HeroTransformationItemType_F=si__WoWReforgedHeroTransformation__HeroTransformationItemType_V[this] + set si__WoWReforgedHeroTransformation___HeroTransformationItemType_F=si__WoWReforgedHeroTransformation___HeroTransformationItemType_V[this] else - set si__WoWReforgedHeroTransformation__HeroTransformationItemType_I=si__WoWReforgedHeroTransformation__HeroTransformationItemType_I+1 - set this=si__WoWReforgedHeroTransformation__HeroTransformationItemType_I + set si__WoWReforgedHeroTransformation___HeroTransformationItemType_I=si__WoWReforgedHeroTransformation___HeroTransformationItemType_I+1 + set this=si__WoWReforgedHeroTransformation___HeroTransformationItemType_I endif if (this>8190) then return 0 endif - set si__WoWReforgedHeroTransformation__HeroTransformationItemType_V[this]=-1 + set si__WoWReforgedHeroTransformation___HeroTransformationItemType_V[this]=-1 return this endfunction -//Generated destructor of WoWReforgedHeroTransformation__HeroTransformationItemType -function s__WoWReforgedHeroTransformation__HeroTransformationItemType_deallocate takes integer this returns nothing +//Generated destructor of WoWReforgedHeroTransformation___HeroTransformationItemType +function s__WoWReforgedHeroTransformation___HeroTransformationItemType_deallocate takes integer this returns nothing if this==null then return - elseif (si__WoWReforgedHeroTransformation__HeroTransformationItemType_V[this]!=-1) then + elseif (si__WoWReforgedHeroTransformation___HeroTransformationItemType_V[this]!=-1) then return endif - set si__WoWReforgedHeroTransformation__HeroTransformationItemType_V[this]=si__WoWReforgedHeroTransformation__HeroTransformationItemType_F - set si__WoWReforgedHeroTransformation__HeroTransformationItemType_F=this + set si__WoWReforgedHeroTransformation___HeroTransformationItemType_V[this]=si__WoWReforgedHeroTransformation___HeroTransformationItemType_F + set si__WoWReforgedHeroTransformation___HeroTransformationItemType_F=this endfunction //Generated allocator of Property @@ -11497,60 +11497,60 @@ function s__Achievement_deallocate takes integer this returns nothing set si__Achievement_F=this endfunction -//Generated allocator of WoWReforgedStandardHeroAbilities___A -function s__WoWReforgedStandardHeroAbilities___A__allocate takes nothing returns integer - local integer this=si__WoWReforgedStandardHeroAbilities___A_F +//Generated allocator of WoWReforgedStandardHeroAbilities__A +function s__WoWReforgedStandardHeroAbilities__A__allocate takes nothing returns integer + local integer this=si__WoWReforgedStandardHeroAbilities__A_F if (this!=0) then - set si__WoWReforgedStandardHeroAbilities___A_F=si__WoWReforgedStandardHeroAbilities___A_V[this] + set si__WoWReforgedStandardHeroAbilities__A_F=si__WoWReforgedStandardHeroAbilities__A_V[this] else - set si__WoWReforgedStandardHeroAbilities___A_I=si__WoWReforgedStandardHeroAbilities___A_I+1 - set this=si__WoWReforgedStandardHeroAbilities___A_I + set si__WoWReforgedStandardHeroAbilities__A_I=si__WoWReforgedStandardHeroAbilities__A_I+1 + set this=si__WoWReforgedStandardHeroAbilities__A_I endif if (this>8190) then return 0 endif - set si__WoWReforgedStandardHeroAbilities___A_V[this]=-1 + set si__WoWReforgedStandardHeroAbilities__A_V[this]=-1 return this endfunction -//Generated destructor of WoWReforgedStandardHeroAbilities___A -function s__WoWReforgedStandardHeroAbilities___A_deallocate takes integer this returns nothing +//Generated destructor of WoWReforgedStandardHeroAbilities__A +function s__WoWReforgedStandardHeroAbilities__A_deallocate takes integer this returns nothing if this==null then return - elseif (si__WoWReforgedStandardHeroAbilities___A_V[this]!=-1) then + elseif (si__WoWReforgedStandardHeroAbilities__A_V[this]!=-1) then return endif - set si__WoWReforgedStandardHeroAbilities___A_V[this]=si__WoWReforgedStandardHeroAbilities___A_F - set si__WoWReforgedStandardHeroAbilities___A_F=this + set si__WoWReforgedStandardHeroAbilities__A_V[this]=si__WoWReforgedStandardHeroAbilities__A_F + set si__WoWReforgedStandardHeroAbilities__A_F=this endfunction -//Generated allocator of WoWReforgedMounts__M -function s__WoWReforgedMounts__M__allocate takes nothing returns integer - local integer this=si__WoWReforgedMounts__M_F +//Generated allocator of WoWReforgedMounts___M +function s__WoWReforgedMounts___M__allocate takes nothing returns integer + local integer this=si__WoWReforgedMounts___M_F if (this!=0) then - set si__WoWReforgedMounts__M_F=si__WoWReforgedMounts__M_V[this] + set si__WoWReforgedMounts___M_F=si__WoWReforgedMounts___M_V[this] else - set si__WoWReforgedMounts__M_I=si__WoWReforgedMounts__M_I+1 - set this=si__WoWReforgedMounts__M_I + set si__WoWReforgedMounts___M_I=si__WoWReforgedMounts___M_I+1 + set this=si__WoWReforgedMounts___M_I endif if (this>8190) then return 0 endif - set si__WoWReforgedMounts__M_V[this]=-1 + set si__WoWReforgedMounts___M_V[this]=-1 return this endfunction -//Generated destructor of WoWReforgedMounts__M -function s__WoWReforgedMounts__M_deallocate takes integer this returns nothing +//Generated destructor of WoWReforgedMounts___M +function s__WoWReforgedMounts___M_deallocate takes integer this returns nothing if this==null then return - elseif (si__WoWReforgedMounts__M_V[this]!=-1) then + elseif (si__WoWReforgedMounts___M_V[this]!=-1) then return endif - set si__WoWReforgedMounts__M_V[this]=si__WoWReforgedMounts__M_F - set si__WoWReforgedMounts__M_F=this + set si__WoWReforgedMounts___M_V[this]=si__WoWReforgedMounts___M_F + set si__WoWReforgedMounts___M_F=this endfunction //Generated allocator of ResurrectionStone @@ -11624,32 +11624,32 @@ function s__MapChanger_deallocate takes integer this returns nothing set si__MapChanger_F=this endfunction -//Generated allocator of WoWReforgedKnockbackSimple__KnockbackS -function s__WoWReforgedKnockbackSimple__KnockbackS__allocate takes nothing returns integer - local integer this=si__WoWReforgedKnockbackSimple__KnockbackS_F +//Generated allocator of WoWReforgedKnockbackSimple___KnockbackS +function s__WoWReforgedKnockbackSimple___KnockbackS__allocate takes nothing returns integer + local integer this=si__WoWReforgedKnockbackSimple___KnockbackS_F if (this!=0) then - set si__WoWReforgedKnockbackSimple__KnockbackS_F=si__WoWReforgedKnockbackSimple__KnockbackS_V[this] + set si__WoWReforgedKnockbackSimple___KnockbackS_F=si__WoWReforgedKnockbackSimple___KnockbackS_V[this] else - set si__WoWReforgedKnockbackSimple__KnockbackS_I=si__WoWReforgedKnockbackSimple__KnockbackS_I+1 - set this=si__WoWReforgedKnockbackSimple__KnockbackS_I + set si__WoWReforgedKnockbackSimple___KnockbackS_I=si__WoWReforgedKnockbackSimple___KnockbackS_I+1 + set this=si__WoWReforgedKnockbackSimple___KnockbackS_I endif if (this>8190) then return 0 endif - set si__WoWReforgedKnockbackSimple__KnockbackS_V[this]=-1 + set si__WoWReforgedKnockbackSimple___KnockbackS_V[this]=-1 return this endfunction -//Generated destructor of WoWReforgedKnockbackSimple__KnockbackS -function s__WoWReforgedKnockbackSimple__KnockbackS_deallocate takes integer this returns nothing +//Generated destructor of WoWReforgedKnockbackSimple___KnockbackS +function s__WoWReforgedKnockbackSimple___KnockbackS_deallocate takes integer this returns nothing if this==null then return - elseif (si__WoWReforgedKnockbackSimple__KnockbackS_V[this]!=-1) then + elseif (si__WoWReforgedKnockbackSimple___KnockbackS_V[this]!=-1) then return endif - set si__WoWReforgedKnockbackSimple__KnockbackS_V[this]=si__WoWReforgedKnockbackSimple__KnockbackS_F - set si__WoWReforgedKnockbackSimple__KnockbackS_F=this + set si__WoWReforgedKnockbackSimple___KnockbackS_V[this]=si__WoWReforgedKnockbackSimple___KnockbackS_F + set si__WoWReforgedKnockbackSimple___KnockbackS_F=this endfunction //Generated allocator of JumpingStomp @@ -11780,32 +11780,32 @@ function s__Attributes__A_deallocate takes integer this returns nothing set si__Attributes__A_F=this endfunction -//Generated allocator of WoWReforgedTradingPosts__TradingPostResource -function s__WoWReforgedTradingPosts__TradingPostResource__allocate takes nothing returns integer - local integer this=si__WoWReforgedTradingPosts__TradingPostResource_F +//Generated allocator of WoWReforgedTradingPosts___TradingPostResource +function s__WoWReforgedTradingPosts___TradingPostResource__allocate takes nothing returns integer + local integer this=si__WoWReforgedTradingPosts___TradingPostResource_F if (this!=0) then - set si__WoWReforgedTradingPosts__TradingPostResource_F=si__WoWReforgedTradingPosts__TradingPostResource_V[this] + set si__WoWReforgedTradingPosts___TradingPostResource_F=si__WoWReforgedTradingPosts___TradingPostResource_V[this] else - set si__WoWReforgedTradingPosts__TradingPostResource_I=si__WoWReforgedTradingPosts__TradingPostResource_I+1 - set this=si__WoWReforgedTradingPosts__TradingPostResource_I + set si__WoWReforgedTradingPosts___TradingPostResource_I=si__WoWReforgedTradingPosts___TradingPostResource_I+1 + set this=si__WoWReforgedTradingPosts___TradingPostResource_I endif if (this>8190) then return 0 endif - set si__WoWReforgedTradingPosts__TradingPostResource_V[this]=-1 + set si__WoWReforgedTradingPosts___TradingPostResource_V[this]=-1 return this endfunction -//Generated destructor of WoWReforgedTradingPosts__TradingPostResource -function s__WoWReforgedTradingPosts__TradingPostResource_deallocate takes integer this returns nothing +//Generated destructor of WoWReforgedTradingPosts___TradingPostResource +function s__WoWReforgedTradingPosts___TradingPostResource_deallocate takes integer this returns nothing if this==null then return - elseif (si__WoWReforgedTradingPosts__TradingPostResource_V[this]!=-1) then + elseif (si__WoWReforgedTradingPosts___TradingPostResource_V[this]!=-1) then return endif - set si__WoWReforgedTradingPosts__TradingPostResource_V[this]=si__WoWReforgedTradingPosts__TradingPostResource_F - set si__WoWReforgedTradingPosts__TradingPostResource_F=this + set si__WoWReforgedTradingPosts___TradingPostResource_V[this]=si__WoWReforgedTradingPosts___TradingPostResource_F + set si__WoWReforgedTradingPosts___TradingPostResource_F=this endfunction //Generated allocator of Profession @@ -15546,17 +15546,17 @@ 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: WoWReforgedFelOrcDemonGate___RemoveUnitHook call sc___prototype10_evaluate(5,a0) - //hook: WoWReforgedFlamethrower__RemoveUnitHook + //hook: WoWReforgedFlamethrower___RemoveUnitHook call sc___prototype10_evaluate(6,a0) //hook: Resources__RemoveUnitHook call sc___prototype10_evaluate(7,a0) //hook: TurretSystemRemoveVehicle call sc___prototype16_evaluate(1,a0) - //hook: WoWReforgedCombiner___RemoveUnitHook + //hook: WoWReforgedCombiner__RemoveUnitHook call sc___prototype10_evaluate(8,a0) //hook: WoWReforgedFel___RemoveUnitHook call sc___prototype10_evaluate(9,a0) @@ -15566,39 +15566,39 @@ function h__RemoveUnit takes unit a0 returns nothing call sc___prototype10_evaluate(10,a0) //hook: ResourcesGui__RemoveUnitHook call sc___prototype10_evaluate(11,a0) - //hook: Tunnel___RemoveUnitHook + //hook: Tunnel__RemoveUnitHook call sc___prototype10_evaluate(12,a0) - //hook: WoWReforgedWitchHut__HookRemoveUnit + //hook: WoWReforgedWitchHut___HookRemoveUnit call sc___prototype10_evaluate(13,a0) - //hook: MassDevour___RemoveUnitMassDevour + //hook: MassDevour__RemoveUnitMassDevour call sc___prototype10_evaluate(14,a0) - //hook: Parry___RemoveUnitHook + //hook: Parry__RemoveUnitHook call sc___prototype10_evaluate(15,a0) - //hook: PhoenixEgg___RemoveUnitHook + //hook: PhoenixEgg__RemoveUnitHook call sc___prototype10_evaluate(16,a0) - //hook: Railway___RemoveUnitHook + //hook: Railway__RemoveUnitHook call sc___prototype10_evaluate(17,a0) //hook: RayConfig__RemoveUnitHook call sc___prototype10_evaluate(18,a0) - //hook: Telekinesis___RemoveUnitTelekinesis + //hook: Telekinesis__RemoveUnitTelekinesis call sc___prototype10_evaluate(19,a0) //hook: Ray__RemoveUnitHook 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 + //hook: WoWReforgedSummonedUnits___RemoveUnitHook call sc___prototype10_evaluate(23,a0) - //hook: WoWReforgedEnchanter__EnchanterSystemRemoveUnit + //hook: WoWReforgedEnchanter___EnchanterSystemRemoveUnit call sc___prototype10_evaluate(24,a0) - //hook: WoWReforgedInscriptor__InscriptorSystemRemoveUnit + //hook: WoWReforgedInscriptor___InscriptorSystemRemoveUnit call sc___prototype10_evaluate(25,a0) - //hook: WoWReforgedThievesGuild__RemoveUnitHook + //hook: WoWReforgedThievesGuild___RemoveUnitHook call sc___prototype10_evaluate(26,a0) - //hook: WoWReforgedWrapUp___HookRemoveConstructedBuilding + //hook: WoWReforgedWrapUp__HookRemoveConstructedBuilding call sc___prototype10_evaluate(27,a0) - //hook: WoWReforgedEquipment___RemoveUnitHook + //hook: WoWReforgedEquipment__RemoveUnitHook call sc___prototype10_evaluate(28,a0) call RemoveUnit(a0) endfunction @@ -15699,9 +15699,9 @@ function h__UpdateEachStockBuilding takes itemtype a0, integer a1 returns nothin call UpdateEachStockBuilding(a0,a1) endfunction function h__CreateQuestBJ takes integer a0, string a1, string a2, string a3 returns quest - //hook: WoWReforgedInfoQuests__CreateQuestBJHook + //hook: WoWReforgedInfoQuests___CreateQuestBJHook call sc___prototype259_evaluate(1,a0,a1,a2,a3) - //hook: WoWReforgedQuests__CreateQuestBJHook + //hook: WoWReforgedQuests___CreateQuestBJHook call sc___prototype259_evaluate(2,a0,a1,a2,a3) return CreateQuestBJ(a0,a1,a2,a3) endfunction @@ -15771,27 +15771,27 @@ function h__GroupAddUnitSimple takes unit a0, group a1 returns nothing call GroupAddUnitSimple(a0,a1) endfunction function h__QuestSetCompletedBJ takes quest a0, boolean a1 returns nothing - //hook: WoWReforgedAchievements__QuestSetCompletedBJHook + //hook: WoWReforgedAchievements___QuestSetCompletedBJHook call sc___prototype453_evaluate(1,a0,a1) call QuestSetCompletedBJ(a0,a1) endfunction function h__WaygateActivate takes unit a0, boolean a1 returns nothing - //hook: WoWReforgedPortals__HookWaygateActivate + //hook: WoWReforgedPortals___HookWaygateActivate call sc___prototype144_evaluate(1,a0,a1) call WaygateActivate(a0,a1) endfunction function h__WaygateActivateBJ takes boolean a0, unit a1 returns nothing - //hook: WoWReforgedPortals__HookWaygateActivateBJ + //hook: WoWReforgedPortals___HookWaygateActivateBJ call sc___prototype475_evaluate(1,a0,a1) call WaygateActivateBJ(a0,a1) endfunction function h__WaygateSetDestination takes unit a0, real a1, real a2 returns nothing - //hook: WoWReforgedPortals__HookWaygateSetDestination + //hook: WoWReforgedPortals___HookWaygateSetDestination call sc___prototype243_evaluate(1,a0,a1,a2) call WaygateSetDestination(a0,a1,a2) endfunction function h__WaygateSetDestinationLocBJ takes unit a0, location a1 returns nothing - //hook: WoWReforgedPortals__HookWaygateSetDestinationLocBJ + //hook: WoWReforgedPortals___HookWaygateSetDestinationLocBJ call sc___prototype476_evaluate(1,a0,a1) call WaygateSetDestinationLocBJ(a0,a1) endfunction @@ -17112,20 +17112,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) @@ -17356,16 +17356,16 @@ function Corpse takes integer abilityId,unit caster,real x,real y returns nothin call CreateCorpse(GetOwningPlayer(caster), 'ucry', x, y, 0.0) endfunction -function Corpse___TriggerConditionCast takes nothing returns boolean +function Corpse__TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == Corpse_ABILITY_ID_ITEM or GetSpellAbilityId() == Corpse_ABILITY_ID ) then call Corpse(GetSpellAbilityId() , GetTriggerUnit() , GetSpellTargetX() , GetSpellTargetY()) endif return false endfunction -function Corpse___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(Corpse___castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(Corpse___castTrigger, Condition(function Corpse___TriggerConditionCast)) +function Corpse__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(Corpse__castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(Corpse__castTrigger, Condition(function Corpse__TriggerConditionCast)) endfunction @@ -18746,13 +18746,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 @@ -22502,16 +22502,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 @@ -22717,16 +22717,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 @@ -22821,11 +22821,11 @@ endfunction function GetMusicFromRecordPlayer takes unit recordPlayer returns sound - return LoadSoundHandle(WoWErforgedRecordPlayer__h, GetHandleId(recordPlayer), 0) + return LoadSoundHandle(WoWErforgedRecordPlayer___h, GetHandleId(recordPlayer), 0) endfunction function StopMusicFromRecordPlayer takes unit recordPlayer returns nothing - local sound s= (LoadSoundHandle(WoWErforgedRecordPlayer__h, GetHandleId((recordPlayer)), 0)) // INLINED!! + local sound s= (LoadSoundHandle(WoWErforgedRecordPlayer___h, GetHandleId((recordPlayer)), 0)) // INLINED!! if ( s != null ) then call StopSound(s, false, false) endif @@ -22833,13 +22833,13 @@ endfunction function PlayMusicFromRecordPlayer takes unit recordPlayer,sound s returns nothing call StopMusicFromRecordPlayer(recordPlayer) - call SaveSoundHandle(WoWErforgedRecordPlayer__h, GetHandleId(recordPlayer), 0, s) + call SaveSoundHandle(WoWErforgedRecordPlayer___h, GetHandleId(recordPlayer), 0, s) call PlaySoundOnUnitBJ(s, 100.0, recordPlayer) endfunction function FlushRecordPlayer takes unit recordPlayer returns nothing call StopMusicFromRecordPlayer(recordPlayer) - call FlushChildHashtable(WoWErforgedRecordPlayer__h, GetHandleId(recordPlayer)) + call FlushChildHashtable(WoWErforgedRecordPlayer___h, GetHandleId(recordPlayer)) endfunction @@ -22853,13 +22853,13 @@ endfunction function RegisterAbilityFieldEx takes integer abilityId,integer fieldId,integer fieldType,boolean isItemAbility returns integer - local integer counter= LoadInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, abilityId, 0) + 1 - call SaveInteger(WoWReforgedAbilityFields__AbilityFieldHashTable, abilityId, fieldId, fieldType) - call SaveInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, abilityId, counter, fieldId) - call SaveInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, abilityId, 0, counter) - set WoWReforgedAbilityFields__abilityIds[WoWReforgedAbilityFields__abilityIdsCounter]=abilityId - set WoWReforgedAbilityFields__abilityIdIsItem[WoWReforgedAbilityFields__abilityIdsCounter]=isItemAbility - set WoWReforgedAbilityFields__abilityIdsCounter=WoWReforgedAbilityFields__abilityIdsCounter + 1 + local integer counter= LoadInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, abilityId, 0) + 1 + call SaveInteger(WoWReforgedAbilityFields___AbilityFieldHashTable, abilityId, fieldId, fieldType) + call SaveInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, abilityId, counter, fieldId) + call SaveInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, abilityId, 0, counter) + set WoWReforgedAbilityFields___abilityIds[WoWReforgedAbilityFields___abilityIdsCounter]=abilityId + set WoWReforgedAbilityFields___abilityIdIsItem[WoWReforgedAbilityFields___abilityIdsCounter]=isItemAbility + set WoWReforgedAbilityFields___abilityIdsCounter=WoWReforgedAbilityFields___abilityIdsCounter + 1 return counter endfunction @@ -22868,32 +22868,32 @@ function RegisterAbilityField takes nothing returns integer endfunction function GetMaxAbilityFields takes integer abilityId returns integer - return LoadInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, abilityId, 0) + return LoadInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, abilityId, 0) endfunction function GetAbilityFieldId takes integer abilityId,integer index returns integer - return LoadInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, abilityId, index + 1) + return LoadInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, abilityId, index + 1) endfunction function GetAbilityFieldType takes integer abilityId,integer index returns integer - local integer fieldId= (LoadInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, (abilityId ), ( index) + 1)) // INLINED!! - return LoadInteger(WoWReforgedAbilityFields__AbilityFieldHashTable, abilityId, fieldId) + local integer fieldId= (LoadInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, (abilityId ), ( index) + 1)) // INLINED!! + return LoadInteger(WoWReforgedAbilityFields___AbilityFieldHashTable, abilityId, fieldId) endfunction function GetAbilityFieldTypeByFieldId takes integer abilityId,integer fieldId returns integer - return LoadInteger(WoWReforgedAbilityFields__AbilityFieldHashTable, abilityId, fieldId) + return LoadInteger(WoWReforgedAbilityFields___AbilityFieldHashTable, abilityId, fieldId) endfunction function AddAbilityFieldBonuses takes integer abilityId,ability whichAbility,integer level,integer defenseBonus,integer heroStatsBonus,real durationBonus,real damageBonus,real lifeRealBonus,real manaRealBonus,integer lifeRegenerationBonus,real chanceRealBonus,real defenseRealBonus,integer summonedUnitsBonus,integer lifeBonus,integer manaBonus returns nothing - local integer max= (LoadInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, (abilityId), 0)) // INLINED!! + local integer max= (LoadInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, (abilityId), 0)) // INLINED!! local integer fieldType= 0 local integer fieldId= 0 local boolean result= false local integer i= 0 loop exitwhen ( i >= max ) - set fieldId=(LoadInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, (abilityId ), ( i) + 1)) // INLINED!! - set fieldType=(LoadInteger(WoWReforgedAbilityFields__AbilityFieldHashTable, (abilityId ), ( fieldId))) // INLINED!! + set fieldId=(LoadInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, (abilityId ), ( i) + 1)) // INLINED!! + set fieldType=(LoadInteger(WoWReforgedAbilityFields___AbilityFieldHashTable, (abilityId ), ( fieldId))) // INLINED!! if ( fieldType == ABILITY_FIELD_TYPE_DEFENSE_INTEGER ) then //call BJDebugMsg("Adding defense bonus to field " + I2S(fieldId) + " of " + I2S(defenseBonus) + " for level " + I2S(level) + " with previous defense " + I2S(BlzGetAbilityIntegerLevelField(whichAbility, ConvertAbilityIntegerLevelField(fieldId), level)) + " expected field ID " + I2S('Idef')) set result=BlzSetAbilityIntegerLevelField(whichAbility, ConvertAbilityIntegerLevelField(fieldId), level, BlzGetAbilityIntegerLevelField(whichAbility, ConvertAbilityIntegerLevelField(fieldId), level) + defenseBonus) @@ -22942,12 +22942,12 @@ function AbilityFieldsListNonItemAbilities takes nothing returns string local integer counter= 0 local integer i= 0 loop - exitwhen ( i >= WoWReforgedAbilityFields__abilityIdsCounter ) - if ( not WoWReforgedAbilityFields__abilityIdIsItem[i] ) then + exitwhen ( i >= WoWReforgedAbilityFields___abilityIdsCounter ) + if ( not WoWReforgedAbilityFields___abilityIdIsItem[i] ) then if ( counter > 0 ) then set result=result + ", " endif - set result=result + GetObjectName(WoWReforgedAbilityFields__abilityIds[i]) + set result=result + GetObjectName(WoWReforgedAbilityFields___abilityIds[i]) set counter=counter + 1 endif set i=i + 1 @@ -22960,7 +22960,7 @@ endfunction //library WoWReforgedBarrage: -function WoWReforgedBarrage__TriggerConditionHeroSkill takes nothing returns boolean +function WoWReforgedBarrage___TriggerConditionHeroSkill takes nothing returns boolean if ( GetLearnedSkill() == 'A1OQ' or GetLearnedSkill() == 'A0J9' or GetLearnedSkill() == 'A24L' ) then call BlzSetAbilityStringLevelField(BlzGetUnitAbility(GetTriggerUnit(), GetLearnedSkill()), ABILITY_SLF_MISSILE_ART, 0, BlzGetUnitWeaponStringField(GetTriggerUnit(), UNIT_WEAPON_SF_ATTACK_PROJECTILE_ART, 0)) //call BJDebugMsg("Change missile for Barrage to: " + BlzGetUnitWeaponStringField(GetTriggerUnit(), UNIT_WEAPON_SF_ATTACK_PROJECTILE_ART, 0)) @@ -22968,9 +22968,9 @@ function WoWReforgedBarrage__TriggerConditionHeroSkill takes nothing returns boo return false endfunction -function WoWReforgedBarrage__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedBarrage__learnTrigger, EVENT_PLAYER_HERO_SKILL) - call TriggerAddCondition(WoWReforgedBarrage__learnTrigger, Condition(function WoWReforgedBarrage__TriggerConditionHeroSkill)) +function WoWReforgedBarrage___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedBarrage___learnTrigger, EVENT_PLAYER_HERO_SKILL) + call TriggerAddCondition(WoWReforgedBarrage___learnTrigger, Condition(function WoWReforgedBarrage___TriggerConditionHeroSkill)) endfunction @@ -23031,31 +23031,31 @@ endfunction //library WoWReforgedCarHorn: -function WoWReforgedCarHorn__PlayCarHornSound takes unit whichUnit returns nothing - local integer r= GetRandomInt(0, WoWReforgedCarHorn__hornSoundCounter - 1) - call PlaySoundOnUnitBJ(WoWReforgedCarHorn__hornSound[r], 100.0, whichUnit) +function WoWReforgedCarHorn___PlayCarHornSound takes unit whichUnit returns nothing + local integer r= GetRandomInt(0, WoWReforgedCarHorn___hornSoundCounter - 1) + call PlaySoundOnUnitBJ(WoWReforgedCarHorn___hornSound[r], 100.0, whichUnit) endfunction -function WoWReforgedCarHorn__AddHornSound takes sound whichSound returns nothing - set WoWReforgedCarHorn__hornSound[WoWReforgedCarHorn__hornSoundCounter]=whichSound - set WoWReforgedCarHorn__hornSoundCounter=WoWReforgedCarHorn__hornSoundCounter + 1 +function WoWReforgedCarHorn___AddHornSound takes sound whichSound returns nothing + set WoWReforgedCarHorn___hornSound[WoWReforgedCarHorn___hornSoundCounter]=whichSound + set WoWReforgedCarHorn___hornSoundCounter=WoWReforgedCarHorn___hornSoundCounter + 1 endfunction -function WoWReforgedCarHorn__TriggerConditionCast takes nothing returns boolean - if ( GetSpellAbilityId() == WoWReforgedCarHorn__ABILITY_ID ) then - call WoWReforgedCarHorn__PlayCarHornSound(GetTriggerUnit()) +function WoWReforgedCarHorn___TriggerConditionCast takes nothing returns boolean + if ( GetSpellAbilityId() == WoWReforgedCarHorn___ABILITY_ID ) then + call WoWReforgedCarHorn___PlayCarHornSound(GetTriggerUnit()) endif return false endfunction -function WoWReforgedCarHorn__Init takes nothing returns nothing - call WoWReforgedCarHorn__AddHornSound(gg_snd_War3CarHonk02) - call WoWReforgedCarHorn__AddHornSound(gg_snd_War3CarHonk03) - call WoWReforgedCarHorn__AddHornSound(gg_snd_War3CarHonk05) - call WoWReforgedCarHorn__AddHornSound(gg_snd_War3CarHonk08) +function WoWReforgedCarHorn___Init takes nothing returns nothing + call WoWReforgedCarHorn___AddHornSound(gg_snd_War3CarHonk02) + call WoWReforgedCarHorn___AddHornSound(gg_snd_War3CarHonk03) + call WoWReforgedCarHorn___AddHornSound(gg_snd_War3CarHonk05) + call WoWReforgedCarHorn___AddHornSound(gg_snd_War3CarHonk08) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedCarHorn__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(WoWReforgedCarHorn__castTrigger, Condition(function WoWReforgedCarHorn__TriggerConditionCast)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedCarHorn___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(WoWReforgedCarHorn___castTrigger, Condition(function WoWReforgedCarHorn___TriggerConditionCast)) endfunction @@ -23096,27 +23096,27 @@ endfunction //library WoWReforgedDalaranShields: -function WoWReforgedDalaranShields__AddShieldWeatherEffect takes weathereffect w returns integer - local integer index= WoWReforgedDalaranShields__shieldWeatherEffectsCounter - set WoWReforgedDalaranShields__shieldWeatherEffects[index]=w - set WoWReforgedDalaranShields__shieldWeatherEffectsCounter=WoWReforgedDalaranShields__shieldWeatherEffectsCounter + 1 +function WoWReforgedDalaranShields___AddShieldWeatherEffect takes weathereffect w returns integer + local integer index= WoWReforgedDalaranShields___shieldWeatherEffectsCounter + set WoWReforgedDalaranShields___shieldWeatherEffects[index]=w + set WoWReforgedDalaranShields___shieldWeatherEffectsCounter=WoWReforgedDalaranShields___shieldWeatherEffectsCounter + 1 return index endfunction -function WoWReforgedDalaranShields__GetShieldWeatherEffect takes integer index returns weathereffect - return WoWReforgedDalaranShields__shieldWeatherEffects[index] +function WoWReforgedDalaranShields___GetShieldWeatherEffect takes integer index returns weathereffect + return WoWReforgedDalaranShields___shieldWeatherEffects[index] endfunction -function WoWReforgedDalaranShields__FreeShieldWeatherEffect takes integer index returns nothing +function WoWReforgedDalaranShields___FreeShieldWeatherEffect takes integer index returns nothing local integer i= index local integer j= i + 1 loop - exitwhen ( j >= WoWReforgedDalaranShields__shieldWeatherEffectsCounter ) - set WoWReforgedDalaranShields__shieldWeatherEffects[i]=WoWReforgedDalaranShields__shieldWeatherEffects[j] + exitwhen ( j >= WoWReforgedDalaranShields___shieldWeatherEffectsCounter ) + set WoWReforgedDalaranShields___shieldWeatherEffects[i]=WoWReforgedDalaranShields___shieldWeatherEffects[j] set i=i + 1 set j=i + 1 endloop - set WoWReforgedDalaranShields__shieldWeatherEffectsCounter=i + set WoWReforgedDalaranShields___shieldWeatherEffectsCounter=i endfunction function EnableDalaranShield takes unit powerGenerator returns nothing @@ -23125,9 +23125,9 @@ function EnableDalaranShield takes unit powerGenerator returns nothing local rect where= GetRectFromCircleBJ(pos, 500.0) local weathereffect w= AddWeatherEffect(where, 'MEds') call EnableWeatherEffect(w, true) - call GroupAddUnit(WoWReforgedDalaranShields__powerGenerators, powerGenerator) - call SaveRectHandle(WoWReforgedDalaranShields__h, handleId, 0, where) - call SaveInteger(WoWReforgedDalaranShields__h, handleId, 1, WoWReforgedDalaranShields__AddShieldWeatherEffect(w)) + call GroupAddUnit(WoWReforgedDalaranShields___powerGenerators, powerGenerator) + call SaveRectHandle(WoWReforgedDalaranShields___h, handleId, 0, where) + call SaveInteger(WoWReforgedDalaranShields___h, handleId, 1, WoWReforgedDalaranShields___AddShieldWeatherEffect(w)) call RemoveLocation(pos) set pos=null set where=null @@ -23136,22 +23136,22 @@ endfunction function GetDalaranShieldRect takes unit powerGenerator returns rect local integer handleId= GetHandleId(powerGenerator) - return LoadRectHandle(WoWReforgedDalaranShields__h, handleId, 0) + return LoadRectHandle(WoWReforgedDalaranShields___h, handleId, 0) endfunction function DisableDalaranShield takes unit powerGenerator returns nothing local integer handleId= GetHandleId(powerGenerator) - local integer weatherEffectIndex= LoadInteger(WoWReforgedDalaranShields__h, handleId, 1) + local integer weatherEffectIndex= LoadInteger(WoWReforgedDalaranShields___h, handleId, 1) local weathereffect w= null - local rect where= LoadRectHandle(WoWReforgedDalaranShields__h, handleId, 0) + local rect where= LoadRectHandle(WoWReforgedDalaranShields___h, handleId, 0) if ( weatherEffectIndex > 0 ) then - set w=(WoWReforgedDalaranShields__shieldWeatherEffects[(weatherEffectIndex)]) // INLINED!! + set w=(WoWReforgedDalaranShields___shieldWeatherEffects[(weatherEffectIndex)]) // INLINED!! if ( w != null ) then call EnableWeatherEffect(w, false) call RemoveWeatherEffect(w) endif - call WoWReforgedDalaranShields__FreeShieldWeatherEffect(weatherEffectIndex) + call WoWReforgedDalaranShields___FreeShieldWeatherEffect(weatherEffectIndex) set w=null endif @@ -23160,19 +23160,19 @@ function DisableDalaranShield takes unit powerGenerator returns nothing set where=null endif - call GroupRemoveUnit(WoWReforgedDalaranShields__powerGenerators, powerGenerator) + call GroupRemoveUnit(WoWReforgedDalaranShields___powerGenerators, powerGenerator) endfunction function IsDalaranShieldEnabled takes unit powerGenerator returns boolean - return IsUnitInGroup(powerGenerator, WoWReforgedDalaranShields__powerGenerators) + return IsUnitInGroup(powerGenerator, WoWReforgedDalaranShields___powerGenerators) endfunction function DalaranShieldsAreEmpty takes nothing returns boolean - return BlzGroupGetSize(WoWReforgedDalaranShields__powerGenerators) == 0 + return BlzGroupGetSize(WoWReforgedDalaranShields___powerGenerators) == 0 endfunction function GroupAddDalaranShields takes group destGroup returns nothing - call GroupAddGroup(WoWReforgedDalaranShields__powerGenerators, destGroup) + call GroupAddGroup(WoWReforgedDalaranShields___powerGenerators, destGroup) endfunction @@ -23194,14 +23194,14 @@ endfunction endfunction function GetDependencyEquivalents takes integer id returns integer - return LoadInteger(WoWReforgedDependencyEquivalents___h, id, 0) + return LoadInteger(WoWReforgedDependencyEquivalents__h, id, 0) endfunction function AddDependencyEquivalentsSingle takes integer id,integer other,boolean primary returns nothing - local integer d= (LoadInteger(WoWReforgedDependencyEquivalents___h, (id), 0)) // INLINED!! + local integer d= (LoadInteger(WoWReforgedDependencyEquivalents__h, (id), 0)) // INLINED!! if ( d == 0 ) then set d=s__DependencyEquivalents__allocate() - call SaveInteger(WoWReforgedDependencyEquivalents___h, id, 0, d) + call SaveInteger(WoWReforgedDependencyEquivalents__h, id, 0, d) endif set s__DependencyEquivalents_primary[d]=primary set s___DependencyEquivalents_ids[s__DependencyEquivalents_ids[d]+s__DependencyEquivalents_count[d]]=other @@ -23214,7 +23214,7 @@ function AddDependencyEquivalents takes integer id,integer other returns nothing endfunction function IsDependencyEquivalent takes integer id,integer other returns boolean - local integer d= (LoadInteger(WoWReforgedDependencyEquivalents___h, (id), 0)) // INLINED!! + local integer d= (LoadInteger(WoWReforgedDependencyEquivalents__h, (id), 0)) // INLINED!! if ( d != 0 ) then return s__DependencyEquivalents_contains(d,other) endif @@ -23223,12 +23223,12 @@ function IsDependencyEquivalent takes integer id,integer other returns boolean endfunction function GetPrimaryDependencyEquivalent takes integer id returns integer - local integer d= (LoadInteger(WoWReforgedDependencyEquivalents___h, (id), 0)) // INLINED!! + local integer d= (LoadInteger(WoWReforgedDependencyEquivalents__h, (id), 0)) // INLINED!! local integer i= 0 if ( d != 0 and not s__DependencyEquivalents_primary[d] and s__DependencyEquivalents_count[d] > 0 ) then loop exitwhen ( i >= s__DependencyEquivalents_count[d] ) - if ( s__DependencyEquivalents_primary[(LoadInteger(WoWReforgedDependencyEquivalents___h, (s___DependencyEquivalents_ids[s__DependencyEquivalents_ids[d]+i]), 0))] ) then // INLINED!! + if ( s__DependencyEquivalents_primary[(LoadInteger(WoWReforgedDependencyEquivalents__h, (s___DependencyEquivalents_ids[s__DependencyEquivalents_ids[d]+i]), 0))] ) then // INLINED!! return s___DependencyEquivalents_ids[s__DependencyEquivalents_ids[d]+i] endif set i=i + 1 @@ -23238,7 +23238,7 @@ function GetPrimaryDependencyEquivalent takes integer id returns integer return id endfunction -function WoWReforgedDependencyEquivalents___Init takes nothing returns nothing +function WoWReforgedDependencyEquivalents__Init takes nothing returns nothing // Clan call AddDependencyEquivalents(CLAN_HALL , CLAN_HALL_KING_CASTLE) call AddDependencyEquivalents(CLAN_HALL , CLAN_HALL_MANSION) @@ -23358,24 +23358,24 @@ endfunction //library WoWReforgedElevator: -function WoWReforgedElevator__GetElevator takes unit building returns destructable - return LoadDestructableHandle(WoWReforgedElevator__h, GetHandleId(building), 0) +function WoWReforgedElevator___GetElevator takes unit building returns destructable + return LoadDestructableHandle(WoWReforgedElevator___h, GetHandleId(building), 0) endfunction -function WoWReforgedElevator__TriggerConditionConstructionFinished takes nothing returns boolean +function WoWReforgedElevator___TriggerConditionConstructionFinished takes nothing returns boolean local unit building= GetConstructedStructure() if ( GetUnitTypeId(building) == ELEVATOR ) then - call SaveDestructableHandle(WoWReforgedElevator__h, GetHandleId(building), 0, CreateDestructable(ELEVATOR_DESTRUCTABLE, GetUnitX(building), GetUnitY(building), 0.0, 1.0, 0)) - call SetDestructableInvulnerable((LoadDestructableHandle(WoWReforgedElevator__h, GetHandleId((building)), 0)), true) // INLINED!! + call SaveDestructableHandle(WoWReforgedElevator___h, GetHandleId(building), 0, CreateDestructable(ELEVATOR_DESTRUCTABLE, GetUnitX(building), GetUnitY(building), 0.0, 1.0, 0)) + call SetDestructableInvulnerable((LoadDestructableHandle(WoWReforgedElevator___h, GetHandleId((building)), 0)), true) // INLINED!! endif set building=null return false endfunction -function WoWReforgedElevator__TriggerConditionSell takes nothing returns boolean +function WoWReforgedElevator___TriggerConditionSell takes nothing returns boolean local unit shop= GetSellingUnit() local player owner= GetOwningPlayer(shop) - local destructable elevator= (LoadDestructableHandle(WoWReforgedElevator__h, GetHandleId((shop)), 0)) // INLINED!! + local destructable elevator= (LoadDestructableHandle(WoWReforgedElevator___h, GetHandleId((shop)), 0)) // INLINED!! local unit action= GetSoldUnit() local integer actionType= GetUnitTypeId(action) if ( GetUnitTypeId(shop) == ELEVATOR ) then @@ -23402,27 +23402,27 @@ function WoWReforgedElevator__TriggerConditionSell takes nothing returns boolean return false endfunction -function WoWReforgedElevator__TriggerConditionDeath takes nothing returns boolean +function WoWReforgedElevator___TriggerConditionDeath takes nothing returns boolean local unit dyingUnit= GetDyingUnit() - local destructable elevator= (LoadDestructableHandle(WoWReforgedElevator__h, GetHandleId((dyingUnit)), 0)) // INLINED!! + local destructable elevator= (LoadDestructableHandle(WoWReforgedElevator___h, GetHandleId((dyingUnit)), 0)) // INLINED!! if ( GetUnitTypeId(dyingUnit) == ELEVATOR ) then call RemoveDestructable(elevator) - call FlushChildHashtable(WoWReforgedElevator__h, GetHandleId(dyingUnit)) + call FlushChildHashtable(WoWReforgedElevator___h, GetHandleId(dyingUnit)) endif set dyingUnit=null set elevator=null return false endfunction -function WoWReforgedElevator__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedElevator__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedElevator__constructionTrigger, Condition(function WoWReforgedElevator__TriggerConditionConstructionFinished)) +function WoWReforgedElevator___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedElevator___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedElevator___constructionTrigger, Condition(function WoWReforgedElevator___TriggerConditionConstructionFinished)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedElevator__sellTrigger, EVENT_PLAYER_UNIT_SELL) - call TriggerAddCondition(WoWReforgedElevator__sellTrigger, Condition(function WoWReforgedElevator__TriggerConditionSell)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedElevator___sellTrigger, EVENT_PLAYER_UNIT_SELL) + call TriggerAddCondition(WoWReforgedElevator___sellTrigger, Condition(function WoWReforgedElevator___TriggerConditionSell)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedElevator__deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedElevator__deathTrigger, Condition(function WoWReforgedElevator__TriggerConditionDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedElevator___deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedElevator___deathTrigger, Condition(function WoWReforgedElevator___TriggerConditionDeath)) endfunction @@ -23430,15 +23430,15 @@ endfunction //library WoWReforgedFarmer: -function WoWReforgedFarmer__FilterIsWaterSupply takes nothing returns boolean - return GetUnitTypeId(GetFilterUnit()) == WATER_SUPPLY and GetOwningPlayer(GetFilterUnit()) == WoWReforgedFarmer__owner +function WoWReforgedFarmer___FilterIsWaterSupply takes nothing returns boolean + return GetUnitTypeId(GetFilterUnit()) == WATER_SUPPLY and GetOwningPlayer(GetFilterUnit()) == WoWReforgedFarmer___owner endfunction function ApplySeedChargesToLastCreatedItem takes nothing returns nothing local group g= CreateGroup() local item i= GetLastCreatedItem() - set WoWReforgedFarmer__owner=GetOwningPlayer(GetTriggerUnit()) - call GroupEnumUnitsInRange(g, GetItemX(i), GetItemY(i), 400.0, WoWReforgedFarmer__f) + set WoWReforgedFarmer___owner=GetOwningPlayer(GetTriggerUnit()) + call GroupEnumUnitsInRange(g, GetItemX(i), GetItemY(i), 400.0, WoWReforgedFarmer___f) call SetItemCharges(i, 1 + BlzGroupGetSize(g)) call GroupClear(g) call DestroyGroup(g) @@ -23446,8 +23446,8 @@ function ApplySeedChargesToLastCreatedItem takes nothing returns nothing set i=null endfunction -function WoWReforgedFarmer__Init takes nothing returns nothing - set WoWReforgedFarmer__f=Filter(function WoWReforgedFarmer__FilterIsWaterSupply) +function WoWReforgedFarmer___Init takes nothing returns nothing + set WoWReforgedFarmer___f=Filter(function WoWReforgedFarmer___FilterIsWaterSupply) endfunction @@ -23532,7 +23532,7 @@ endfunction //library WoWReforgedFlamethrower: -function WoWReforgedFlamethrower__RemoveFlamethrowerCharge takes unit caster returns boolean +function WoWReforgedFlamethrower___RemoveFlamethrowerCharge takes unit caster returns boolean local item slotItem= null local integer i= 0 loop @@ -23552,7 +23552,7 @@ function WoWReforgedFlamethrower__RemoveFlamethrowerCharge takes unit caster ret return false endfunction -function WoWReforgedFlamethrower__RemoveFlamethrowerMana takes unit caster returns boolean +function WoWReforgedFlamethrower___RemoveFlamethrowerMana takes unit caster returns boolean local real currentMana= GetUnitState(caster, UNIT_STATE_MANA) if ( currentMana > WoWReforgedFlamethrower_HERO_MANA_COST ) then call SetUnitState(caster, UNIT_STATE_MANA, currentMana - WoWReforgedFlamethrower_HERO_MANA_COST) @@ -23561,56 +23561,56 @@ function WoWReforgedFlamethrower__RemoveFlamethrowerMana takes unit caster retur return false endfunction -function WoWReforgedFlamethrower__PolarProjectionX takes real x,real angle,real distance returns real +function WoWReforgedFlamethrower___PolarProjectionX takes real x,real angle,real distance returns real return x + distance * Cos(angle * bj_DEGTORAD) endfunction -function WoWReforgedFlamethrower__PolarProjectionY takes real y,real angle,real distance returns real +function WoWReforgedFlamethrower___PolarProjectionY takes real y,real angle,real distance returns real return y + distance * Sin(angle * bj_DEGTORAD) endfunction -function WoWReforgedFlamethrower__HasNoCasters takes nothing returns boolean - return BlzGroupGetSize(WoWReforgedFlamethrower__casters) == 0 and BlzGroupGetSize(WoWReforgedFlamethrower__heroCasters) == 0 +function WoWReforgedFlamethrower___HasNoCasters takes nothing returns boolean + return BlzGroupGetSize(WoWReforgedFlamethrower___casters) == 0 and BlzGroupGetSize(WoWReforgedFlamethrower___heroCasters) == 0 endfunction -function WoWReforgedFlamethrower__RemoveEffects takes nothing returns nothing +function WoWReforgedFlamethrower___RemoveEffects takes nothing returns nothing local integer i= 0 loop - exitwhen ( i == WoWReforgedFlamethrower__effectsCounter ) - call DestroyEffect(WoWReforgedFlamethrower__effects[i]) - set WoWReforgedFlamethrower__effects[i]=null + exitwhen ( i == WoWReforgedFlamethrower___effectsCounter ) + call DestroyEffect(WoWReforgedFlamethrower___effects[i]) + set WoWReforgedFlamethrower___effects[i]=null set i=i + 1 endloop - set WoWReforgedFlamethrower__effectsCounter=0 + set WoWReforgedFlamethrower___effectsCounter=0 endfunction -function WoWReforgedFlamethrower__CheckToStopTimer takes nothing returns nothing - if ( (BlzGroupGetSize(WoWReforgedFlamethrower__casters) == 0 and BlzGroupGetSize(WoWReforgedFlamethrower__heroCasters) == 0) ) then // INLINED!! - call PauseTimer(WoWReforgedFlamethrower__t) - set WoWReforgedFlamethrower__timerOff=true - call WoWReforgedFlamethrower__RemoveEffects() +function WoWReforgedFlamethrower___CheckToStopTimer takes nothing returns nothing + if ( (BlzGroupGetSize(WoWReforgedFlamethrower___casters) == 0 and BlzGroupGetSize(WoWReforgedFlamethrower___heroCasters) == 0) ) then // INLINED!! + call PauseTimer(WoWReforgedFlamethrower___t) + set WoWReforgedFlamethrower___timerOff=true + call WoWReforgedFlamethrower___RemoveEffects() endif endfunction -function WoWReforgedFlamethrower__TimerFunctionFire takes nothing returns nothing +function WoWReforgedFlamethrower___TimerFunctionFire takes nothing returns nothing local unit caster= null local real face= 0.0 local unit dummy= null - local integer count= BlzGroupGetSize(WoWReforgedFlamethrower__casters) + local integer count= BlzGroupGetSize(WoWReforgedFlamethrower___casters) local group toRemove= CreateGroup() local integer i= 0 - call WoWReforgedFlamethrower__RemoveEffects() + call WoWReforgedFlamethrower___RemoveEffects() loop exitwhen ( i == count ) - set caster=BlzGroupUnitAt(WoWReforgedFlamethrower__casters, i) - if ( WoWReforgedFlamethrower__RemoveFlamethrowerCharge(caster) ) then + set caster=BlzGroupUnitAt(WoWReforgedFlamethrower___casters, i) + if ( WoWReforgedFlamethrower___RemoveFlamethrowerCharge(caster) ) then set face=GetUnitFacing(caster) - set dummy=CreateUnit(GetOwningPlayer(caster), WoWReforgedFlamethrower_DUMMY_UNIT_TYPE_ID, WoWReforgedFlamethrower__PolarProjectionX(GetUnitX(caster) , face , WoWReforgedFlamethrower_DISTANCE), WoWReforgedFlamethrower__PolarProjectionY(GetUnitY(caster) , face , WoWReforgedFlamethrower_DISTANCE), face) + set dummy=CreateUnit(GetOwningPlayer(caster), WoWReforgedFlamethrower_DUMMY_UNIT_TYPE_ID, WoWReforgedFlamethrower___PolarProjectionX(GetUnitX(caster) , face , WoWReforgedFlamethrower_DISTANCE), WoWReforgedFlamethrower___PolarProjectionY(GetUnitY(caster) , face , WoWReforgedFlamethrower_DISTANCE), face) call IssuePointOrder(dummy, "attackground", GetUnitX(dummy), GetUnitY(dummy)) call UnitApplyTimedLife(dummy, 0, WoWReforgedFlamethrower_SUMMON_DURATION) - set WoWReforgedFlamethrower__effects[WoWReforgedFlamethrower__effectsCounter]=AddSpecialEffectTarget(WoWReforgedFlamethrower_EFFECT_PATH, caster, WoWReforgedFlamethrower_EFFECT_ATTACHMENT_POINT) - call BlzSetSpecialEffectScale(WoWReforgedFlamethrower__effects[WoWReforgedFlamethrower__effectsCounter], WoWReforgedFlamethrower_EFFECT_SCALE) - set WoWReforgedFlamethrower__effectsCounter=WoWReforgedFlamethrower__effectsCounter + 1 + set WoWReforgedFlamethrower___effects[WoWReforgedFlamethrower___effectsCounter]=AddSpecialEffectTarget(WoWReforgedFlamethrower_EFFECT_PATH, caster, WoWReforgedFlamethrower_EFFECT_ATTACHMENT_POINT) + call BlzSetSpecialEffectScale(WoWReforgedFlamethrower___effects[WoWReforgedFlamethrower___effectsCounter], WoWReforgedFlamethrower_EFFECT_SCALE) + set WoWReforgedFlamethrower___effectsCounter=WoWReforgedFlamethrower___effectsCounter + 1 set dummy=null //call BJDebugMsg("Flamethrower damage.") else @@ -23619,24 +23619,24 @@ function WoWReforgedFlamethrower__TimerFunctionFire takes nothing returns nothin set caster=null set i=i + 1 endloop - call GroupRemoveGroup(toRemove, WoWReforgedFlamethrower__casters) + call GroupRemoveGroup(toRemove, WoWReforgedFlamethrower___casters) call GroupClear(toRemove) set i=0 - set count=BlzGroupGetSize(WoWReforgedFlamethrower__heroCasters) + set count=BlzGroupGetSize(WoWReforgedFlamethrower___heroCasters) loop exitwhen ( i == count ) - set caster=BlzGroupUnitAt(WoWReforgedFlamethrower__heroCasters, i) - if ( WoWReforgedFlamethrower__RemoveFlamethrowerMana(caster) ) then + set caster=BlzGroupUnitAt(WoWReforgedFlamethrower___heroCasters, i) + if ( WoWReforgedFlamethrower___RemoveFlamethrowerMana(caster) ) then set face=GetUnitFacing(caster) - set dummy=CreateUnit(GetOwningPlayer(caster), WoWReforgedFlamethrower_HERO_DUMMY_UNIT_TYPE_ID, WoWReforgedFlamethrower__PolarProjectionX(GetUnitX(caster) , face , WoWReforgedFlamethrower_DISTANCE), WoWReforgedFlamethrower__PolarProjectionY(GetUnitY(caster) , face , WoWReforgedFlamethrower_DISTANCE), face) + set dummy=CreateUnit(GetOwningPlayer(caster), WoWReforgedFlamethrower_HERO_DUMMY_UNIT_TYPE_ID, WoWReforgedFlamethrower___PolarProjectionX(GetUnitX(caster) , face , WoWReforgedFlamethrower_DISTANCE), WoWReforgedFlamethrower___PolarProjectionY(GetUnitY(caster) , face , WoWReforgedFlamethrower_DISTANCE), face) call SetUnitAbilityLevel(dummy, WoWReforgedFlamethrower_HERO_IMMOLATION_ABILITY_ID, GetUnitAbilityLevel(caster, WoWReforgedFlamethrower_HERO_ABILITY_ID)) call SetUnitAbilityLevel(dummy, WoWReforgedFlamethrower_HERO_BURNING_OIL_ABILITY_ID, GetUnitAbilityLevel(caster, WoWReforgedFlamethrower_HERO_ABILITY_ID)) call IssuePointOrder(dummy, "attackground", GetUnitX(dummy), GetUnitY(dummy)) call UnitApplyTimedLife(dummy, 0, WoWReforgedFlamethrower_SUMMON_DURATION) - set WoWReforgedFlamethrower__effects[WoWReforgedFlamethrower__effectsCounter]=AddSpecialEffectTarget(WoWReforgedFlamethrower_EFFECT_PATH, caster, WoWReforgedFlamethrower_EFFECT_ATTACHMENT_POINT) - call BlzSetSpecialEffectScale(WoWReforgedFlamethrower__effects[WoWReforgedFlamethrower__effectsCounter], WoWReforgedFlamethrower_EFFECT_SCALE) - set WoWReforgedFlamethrower__effectsCounter=WoWReforgedFlamethrower__effectsCounter + 1 + set WoWReforgedFlamethrower___effects[WoWReforgedFlamethrower___effectsCounter]=AddSpecialEffectTarget(WoWReforgedFlamethrower_EFFECT_PATH, caster, WoWReforgedFlamethrower_EFFECT_ATTACHMENT_POINT) + call BlzSetSpecialEffectScale(WoWReforgedFlamethrower___effects[WoWReforgedFlamethrower___effectsCounter], WoWReforgedFlamethrower_EFFECT_SCALE) + set WoWReforgedFlamethrower___effectsCounter=WoWReforgedFlamethrower___effectsCounter + 1 set dummy=null //call BJDebugMsg("Flamethrower damage.") else @@ -23645,9 +23645,9 @@ function WoWReforgedFlamethrower__TimerFunctionFire takes nothing returns nothin set caster=null set i=i + 1 endloop - call GroupRemoveGroup(toRemove, WoWReforgedFlamethrower__heroCasters) + call GroupRemoveGroup(toRemove, WoWReforgedFlamethrower___heroCasters) - call WoWReforgedFlamethrower__CheckToStopTimer() + call WoWReforgedFlamethrower___CheckToStopTimer() call GroupClear(toRemove) call DestroyGroup(toRemove) @@ -23655,51 +23655,51 @@ function WoWReforgedFlamethrower__TimerFunctionFire takes nothing returns nothin endfunction function ToggleFlamethrower takes unit caster returns boolean - if ( IsUnitInGroup(caster, WoWReforgedFlamethrower__casters) ) then + if ( IsUnitInGroup(caster, WoWReforgedFlamethrower___casters) ) then //call BJDebugMsg("Disable flamethrower.") - call GroupRemoveUnit(WoWReforgedFlamethrower__casters, caster) - call WoWReforgedFlamethrower__CheckToStopTimer() + call GroupRemoveUnit(WoWReforgedFlamethrower___casters, caster) + call WoWReforgedFlamethrower___CheckToStopTimer() return false endif - call GroupAddUnit(WoWReforgedFlamethrower__casters, caster) + call GroupAddUnit(WoWReforgedFlamethrower___casters, caster) //call BJDebugMsg("Enable flamethrower.") - if ( WoWReforgedFlamethrower__timerOff ) then - call WoWReforgedFlamethrower__TimerFunctionFire() - call TimerStart(WoWReforgedFlamethrower__t, WoWReforgedFlamethrower_DURATION, true, function WoWReforgedFlamethrower__TimerFunctionFire) - set WoWReforgedFlamethrower__timerOff=false + if ( WoWReforgedFlamethrower___timerOff ) then + call WoWReforgedFlamethrower___TimerFunctionFire() + call TimerStart(WoWReforgedFlamethrower___t, WoWReforgedFlamethrower_DURATION, true, function WoWReforgedFlamethrower___TimerFunctionFire) + set WoWReforgedFlamethrower___timerOff=false endif return true endfunction function ToggleFlamethrowerHero takes unit caster returns boolean - if ( IsUnitInGroup(caster, WoWReforgedFlamethrower__heroCasters) ) then + if ( IsUnitInGroup(caster, WoWReforgedFlamethrower___heroCasters) ) then //call BJDebugMsg("Disable flamethrower.") - call GroupRemoveUnit(WoWReforgedFlamethrower__heroCasters, caster) - call WoWReforgedFlamethrower__CheckToStopTimer() + call GroupRemoveUnit(WoWReforgedFlamethrower___heroCasters, caster) + call WoWReforgedFlamethrower___CheckToStopTimer() return false endif - call GroupAddUnit(WoWReforgedFlamethrower__heroCasters, caster) + call GroupAddUnit(WoWReforgedFlamethrower___heroCasters, caster) //call BJDebugMsg("Enable flamethrower.") - if ( WoWReforgedFlamethrower__timerOff ) then - call WoWReforgedFlamethrower__TimerFunctionFire() - call TimerStart(WoWReforgedFlamethrower__t, WoWReforgedFlamethrower_DURATION, true, function WoWReforgedFlamethrower__TimerFunctionFire) - set WoWReforgedFlamethrower__timerOff=false + if ( WoWReforgedFlamethrower___timerOff ) then + call WoWReforgedFlamethrower___TimerFunctionFire() + call TimerStart(WoWReforgedFlamethrower___t, WoWReforgedFlamethrower_DURATION, true, function WoWReforgedFlamethrower___TimerFunctionFire) + set WoWReforgedFlamethrower___timerOff=false endif return true endfunction -function WoWReforgedFlamethrower__RemoveUnitHook takes unit whichUnit returns nothing - if ( IsUnitInGroup(whichUnit, WoWReforgedFlamethrower__casters) ) then +function WoWReforgedFlamethrower___RemoveUnitHook takes unit whichUnit returns nothing + if ( IsUnitInGroup(whichUnit, WoWReforgedFlamethrower___casters) ) then call ToggleFlamethrower(whichUnit) endif - if ( IsUnitInGroup(whichUnit, WoWReforgedFlamethrower__heroCasters) ) then + if ( IsUnitInGroup(whichUnit, WoWReforgedFlamethrower___heroCasters) ) then call ToggleFlamethrowerHero(whichUnit) endif endfunction -//processed hook: hook RemoveUnit WoWReforgedFlamethrower__RemoveUnitHook +//processed hook: hook RemoveUnit WoWReforgedFlamethrower___RemoveUnitHook //library WoWReforgedFlamethrower ends @@ -23727,20 +23727,20 @@ function UpdateGaiaUnitForAllPlayers takes unit whichUnit returns nothing endfunction -function WoWReforgedGaia__ForGroupUpdateForPlayer takes nothing returns nothing - call UpdateGaiaUnitForPlayer(GetEnumUnit() , WoWReforgedGaia__tmpPlayer) +function WoWReforgedGaia___ForGroupUpdateForPlayer takes nothing returns nothing + call UpdateGaiaUnitForPlayer(GetEnumUnit() , WoWReforgedGaia___tmpPlayer) endfunction function UpdateAllGaiaUnitsForPlayer takes player whichPlayer returns nothing local group allUnits= GetUnitsOfPlayerAll(udg_Gaia) - set WoWReforgedGaia__tmpPlayer=whichPlayer - call ForGroup(allUnits, function WoWReforgedGaia__ForGroupUpdateForPlayer) + set WoWReforgedGaia___tmpPlayer=whichPlayer + call ForGroup(allUnits, function WoWReforgedGaia___ForGroupUpdateForPlayer) call GroupClear(allUnits) call DestroyGroup(allUnits) set allUnits=null endfunction -function WoWReforgedGaia__TriggerConditionUpdateFood takes nothing returns boolean +function WoWReforgedGaia___TriggerConditionUpdateFood takes nothing returns boolean local player owner= GetOwningPlayer(GetTriggerUnit()) if ( GetTriggerEventId() == EVENT_PLAYER_UNIT_SELL ) then set owner=GetOwningPlayer(GetSoldUnit()) @@ -23755,13 +23755,13 @@ function WoWReforgedGaia__TriggerConditionUpdateFood takes nothing returns boole return false endfunction -function WoWReforgedGaia__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia__updateFoodTriger, EVENT_PLAYER_UNIT_TRAIN_FINISH) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia__updateFoodTriger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia__updateFoodTriger, EVENT_PLAYER_UNIT_SELL) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia__updateFoodTriger, EVENT_PLAYER_UNIT_DEATH) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia__updateFoodTriger, EVENT_PLAYER_HERO_REVIVE_FINISH) - call TriggerAddCondition(WoWReforgedGaia__updateFoodTriger, Condition(function WoWReforgedGaia__TriggerConditionUpdateFood)) +function WoWReforgedGaia___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia___updateFoodTriger, EVENT_PLAYER_UNIT_TRAIN_FINISH) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia___updateFoodTriger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia___updateFoodTriger, EVENT_PLAYER_UNIT_SELL) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia___updateFoodTriger, EVENT_PLAYER_UNIT_DEATH) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedGaia___updateFoodTriger, EVENT_PLAYER_HERO_REVIVE_FINISH) + call TriggerAddCondition(WoWReforgedGaia___updateFoodTriger, Condition(function WoWReforgedGaia___TriggerConditionUpdateFood)) call TryInitRescuableTriggersBJ() endfunction @@ -23772,26 +23772,26 @@ endfunction function GetTrophyCounter takes nothing returns integer - return WoWReforgedHunter__trophyCounter + return WoWReforgedHunter___trophyCounter endfunction function GetTrophyUnitTypeId takes integer index returns integer - return WoWReforgedHunter__trophyUnitTypeIds[index] + return WoWReforgedHunter___trophyUnitTypeIds[index] endfunction function GetTrophyItemTypeId takes integer index returns integer - return WoWReforgedHunter__trophyItemTypeIds[index] + return WoWReforgedHunter___trophyItemTypeIds[index] endfunction function GetRandomTrophyItemTypeId takes nothing returns integer - return WoWReforgedHunter__trophyItemTypeIds[GetRandomInt(0, WoWReforgedHunter__trophyCounter - 1)] + return WoWReforgedHunter___trophyItemTypeIds[GetRandomInt(0, WoWReforgedHunter___trophyCounter - 1)] endfunction function IsCritter takes integer unitTypeId returns boolean local integer i= 0 loop - exitwhen ( i == WoWReforgedHunter__trophyCounter ) - if ( WoWReforgedHunter__trophyUnitTypeIds[i] == unitTypeId ) then + exitwhen ( i == WoWReforgedHunter___trophyCounter ) + if ( WoWReforgedHunter___trophyUnitTypeIds[i] == unitTypeId ) then return true endif set i=i + 1 @@ -23806,8 +23806,8 @@ endfunction function IsTrophy takes integer itemTypeId returns boolean local integer i= 0 loop - exitwhen ( i == WoWReforgedHunter__trophyCounter ) - if ( WoWReforgedHunter__trophyItemTypeIds[i] == itemTypeId ) then + exitwhen ( i == WoWReforgedHunter___trophyCounter ) + if ( WoWReforgedHunter___trophyItemTypeIds[i] == itemTypeId ) then return true endif set i=i + 1 @@ -23818,9 +23818,9 @@ endfunction function GetUnitTypeIdTrophy takes integer unitTypeId returns integer local integer i= 0 loop - exitwhen ( i == WoWReforgedHunter__trophyCounter ) - if ( WoWReforgedHunter__trophyUnitTypeIds[i] == unitTypeId ) then - return WoWReforgedHunter__trophyItemTypeIds[i] + exitwhen ( i == WoWReforgedHunter___trophyCounter ) + if ( WoWReforgedHunter___trophyUnitTypeIds[i] == unitTypeId ) then + return WoWReforgedHunter___trophyItemTypeIds[i] endif set i=i + 1 endloop @@ -23828,10 +23828,10 @@ function GetUnitTypeIdTrophy takes integer unitTypeId returns integer endfunction function AddTrophy takes integer unitTypeId,integer itemTypeId returns integer - local integer index= WoWReforgedHunter__trophyCounter - set WoWReforgedHunter__trophyUnitTypeIds[index]=unitTypeId - set WoWReforgedHunter__trophyItemTypeIds[index]=itemTypeId - set WoWReforgedHunter__trophyCounter=WoWReforgedHunter__trophyCounter + 1 + local integer index= WoWReforgedHunter___trophyCounter + set WoWReforgedHunter___trophyUnitTypeIds[index]=unitTypeId + set WoWReforgedHunter___trophyItemTypeIds[index]=itemTypeId + set WoWReforgedHunter___trophyCounter=WoWReforgedHunter___trophyCounter + 1 return index endfunction @@ -23858,19 +23858,19 @@ function DuplicateTrophies takes unit whichUnit returns nothing set slotItem=null set i=i + 1 endloop - call UnitDropItem(whichUnit, (WoWReforgedHunter__trophyItemTypeIds[GetRandomInt(0, WoWReforgedHunter__trophyCounter - 1)])) // INLINED!! - call UnitDropItem(whichUnit, (WoWReforgedHunter__trophyItemTypeIds[GetRandomInt(0, WoWReforgedHunter__trophyCounter - 1)])) // INLINED!! + call UnitDropItem(whichUnit, (WoWReforgedHunter___trophyItemTypeIds[GetRandomInt(0, WoWReforgedHunter___trophyCounter - 1)])) // INLINED!! + call UnitDropItem(whichUnit, (WoWReforgedHunter___trophyItemTypeIds[GetRandomInt(0, WoWReforgedHunter___trophyCounter - 1)])) // INLINED!! endfunction function TrophiesInfo takes player whichPlayer returns string local string msg= "Trophies: " local integer i= 0 loop - exitwhen ( i == WoWReforgedHunter__trophyCounter ) + exitwhen ( i == WoWReforgedHunter___trophyCounter ) if ( i > 0 ) then set msg=msg + ", " endif - set msg=msg + GetObjectName(WoWReforgedHunter__trophyItemTypeIds[i]) + " (" + GetObjectName(WoWReforgedHunter__trophyUnitTypeIds[i]) + ")" + set msg=msg + GetObjectName(WoWReforgedHunter___trophyItemTypeIds[i]) + " (" + GetObjectName(WoWReforgedHunter___trophyUnitTypeIds[i]) + ")" set i=i + 1 endloop return msg @@ -23882,7 +23882,7 @@ function TrackCittersAndTrophies takes unit caster returns nothing local integer max= 0 local unit u= null local player owner= GetOwningPlayer(caster) - call GroupEnumUnitsInRange(g, GetUnitX(caster), GetUnitY(caster), 512.0, WoWReforgedHunter__filterIsCritterWithTrophy) + call GroupEnumUnitsInRange(g, GetUnitX(caster), GetUnitY(caster), 512.0, WoWReforgedHunter___filterIsCritterWithTrophy) set max=BlzGroupGetSize(g) set i=0 loop @@ -23898,12 +23898,12 @@ function TrackCittersAndTrophies takes unit caster returns nothing set caster=null endfunction -function WoWReforgedHunter__IsCritterWithTrophy takes nothing returns boolean +function WoWReforgedHunter___IsCritterWithTrophy takes nothing returns boolean return (GetUnitTypeIdTrophy((GetUnitTypeId(GetFilterUnit()))) != 0) // INLINED!! endfunction -function WoWReforgedHunter__Init takes nothing returns nothing - set WoWReforgedHunter__filterIsCritterWithTrophy=Filter(function WoWReforgedHunter__IsCritterWithTrophy) +function WoWReforgedHunter___Init takes nothing returns nothing + set WoWReforgedHunter___filterIsCritterWithTrophy=Filter(function WoWReforgedHunter___IsCritterWithTrophy) call AddTrophy(STAG , ITEM_ANTLER) call AddTrophy(PIG , ITEM_PIG_SKIN) @@ -23936,27 +23936,27 @@ endfunction function AddRaceIcon takes integer whichRace,string icon returns nothing - set WoWReforgedIcons__raceIcons[whichRace]=icon + set WoWReforgedIcons___raceIcons[whichRace]=icon endfunction function GetIconByRace takes integer whichRace returns string - if ( whichRace == udg_RaceNone or WoWReforgedIcons__raceIcons[whichRace] == null or WoWReforgedIcons__raceIcons[whichRace] == "" ) then + if ( whichRace == udg_RaceNone or WoWReforgedIcons___raceIcons[whichRace] == null or WoWReforgedIcons___raceIcons[whichRace] == "" ) then return "ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp" endif - return WoWReforgedIcons__raceIcons[whichRace] + return WoWReforgedIcons___raceIcons[whichRace] endfunction function AddProfessionIcon takes integer profession,string icon returns nothing - set WoWReforgedIcons__professionIcons[profession]=icon + set WoWReforgedIcons___professionIcons[profession]=icon endfunction function GetIconByProfession takes integer profession returns string - if ( profession == udg_ProfessionNone or WoWReforgedIcons__professionIcons[profession] == null or WoWReforgedIcons__professionIcons[profession] == "" ) then + if ( profession == udg_ProfessionNone or WoWReforgedIcons___professionIcons[profession] == null or WoWReforgedIcons___professionIcons[profession] == "" ) then return "ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp" endif - return WoWReforgedIcons__professionIcons[profession] + return WoWReforgedIcons___professionIcons[profession] endfunction function AddUnitTypeIcon takes integer unitTypeId,string icon returns nothing @@ -24108,7 +24108,7 @@ endfunction //library WoWReforgedMapData ends //library WoWReforgedMarketplace: -function WoWReforgedMarketplace__IsMarketplace takes nothing returns boolean +function WoWReforgedMarketplace___IsMarketplace takes nothing returns boolean return GetUnitTypeId(GetFilterUnit()) == 'n0IW' endfunction @@ -24119,7 +24119,7 @@ function UpdateEachStockBuildingHook takes itemtype iType,integer iLevel returns set bj_stockPickedItemLevel=iLevel set g=CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedMarketplace__IsMarketplace)) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedMarketplace___IsMarketplace)) call ForGroup(g, function UpdateEachStockBuildingEnum) call DestroyGroup(g) set g=null @@ -24131,15 +24131,15 @@ endfunction //library WoWReforgedMarketplace ends //library WoWReforgedRailRoad: -function WoWReforgedRailRoad__PolarProjectionX takes real x,real angle,real distance returns real +function WoWReforgedRailRoad___PolarProjectionX takes real x,real angle,real distance returns real return x + distance * Cos(angle * bj_DEGTORAD) endfunction -function WoWReforgedRailRoad__PolarProjectionY takes real y,real angle,real distance returns real +function WoWReforgedRailRoad___PolarProjectionY takes real y,real angle,real distance returns real return y + distance * Sin(angle * bj_DEGTORAD) endfunction -function WoWReforgedRailRoad__FilterFunctionIsRailroad takes nothing returns boolean +function WoWReforgedRailRoad___FilterFunctionIsRailroad takes nothing returns boolean return IsUnitAliveBJ(GetFilterUnit()) and ( GetUnitTypeId(GetFilterUnit()) == 'o01N' or GetUnitTypeId(GetFilterUnit()) == 'o01K' or GetUnitTypeId(GetFilterUnit()) == 'o01H' ) endfunction @@ -24147,7 +24147,7 @@ function GetRailroad takes unit train,real angle returns unit local group whichGroup= CreateGroup() local unit result= null local unit first= null - call GroupEnumUnitsInRange(whichGroup, WoWReforgedRailRoad__PolarProjectionX(GetUnitX(train) , angle , 40.0), WoWReforgedRailRoad__PolarProjectionY(GetUnitY(train) , angle , 40.0), 200.0, Filter(function WoWReforgedRailRoad__FilterFunctionIsRailroad)) + call GroupEnumUnitsInRange(whichGroup, WoWReforgedRailRoad___PolarProjectionX(GetUnitX(train) , angle , 40.0), WoWReforgedRailRoad___PolarProjectionY(GetUnitY(train) , angle , 40.0), 200.0, Filter(function WoWReforgedRailRoad___FilterFunctionIsRailroad)) loop exitwhen ( result != null ) set first=FirstOfGroup(whichGroup) @@ -24178,31 +24178,31 @@ endfunction //library WoWReforgedRandomArtifacts: -function WoWReforgedRandomArtifacts__RegisterItemAbility takes integer abilityId returns nothing - set WoWReforgedRandomArtifacts__abilityIds[WoWReforgedRandomArtifacts__abilityIdsCounter]=abilityId - set WoWReforgedRandomArtifacts__abilityIdsCounter=WoWReforgedRandomArtifacts__abilityIdsCounter + 1 +function WoWReforgedRandomArtifacts___RegisterItemAbility takes integer abilityId returns nothing + set WoWReforgedRandomArtifacts___abilityIds[WoWReforgedRandomArtifacts___abilityIdsCounter]=abilityId + set WoWReforgedRandomArtifacts___abilityIdsCounter=WoWReforgedRandomArtifacts___abilityIdsCounter + 1 endfunction -function WoWReforgedRandomArtifacts__Init takes nothing returns nothing - call WoWReforgedRandomArtifacts__RegisterItemAbility('AIt6') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AIt9') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AId0') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AId4') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AId5') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AId7') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AIx1') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AIx2') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AIx3') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AIx4') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AI2m') - call WoWReforgedRandomArtifacts__RegisterItemAbility('AIl2') +function WoWReforgedRandomArtifacts___Init takes nothing returns nothing + call WoWReforgedRandomArtifacts___RegisterItemAbility('AIt6') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AIt9') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AId0') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AId4') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AId5') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AId7') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AIx1') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AIx2') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AIx3') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AIx4') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AI2m') + call WoWReforgedRandomArtifacts___RegisterItemAbility('AIl2') endfunction function RandomizeItemAbility takes item whichItem returns nothing if ( BlzGetItemAbilityByIndex(whichItem, 1) != null ) then call BlzItemRemoveAbility(whichItem, BlzGetAbilityId(BlzGetItemAbilityByIndex(whichItem, 1))) endif - call BlzItemAddAbility(whichItem, WoWReforgedRandomArtifacts__abilityIds[GetRandomInt(0, WoWReforgedRandomArtifacts__abilityIdsCounter - 1)]) + call BlzItemAddAbility(whichItem, WoWReforgedRandomArtifacts___abilityIds[GetRandomInt(0, WoWReforgedRandomArtifacts___abilityIdsCounter - 1)]) endfunction function InitialRandomizeItemAbility takes item whichItem returns nothing @@ -24215,20 +24215,20 @@ endfunction //library WoWReforgedRandomArtifacts ends //library WoWReforgedSleepingBag: -function WoWReforgedSleepingBag__FilterIsHero takes nothing returns boolean +function WoWReforgedSleepingBag___FilterIsHero takes nothing returns boolean return IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) endfunction -function WoWReforgedSleepingBag__HealHeroesEnum takes nothing returns nothing +function WoWReforgedSleepingBag___HealHeroesEnum takes nothing returns nothing call SetUnitLifePercentBJ(GetEnumUnit(), 100.0) call SetUnitManaPercentBJ(GetEnumUnit(), 100.0) endfunction function SleepingBag takes unit caster,real whatTime returns nothing local group heroes= CreateGroup() - call GroupEnumUnitsInRect(heroes, GetPlayableMapRect(), Filter(function WoWReforgedSleepingBag__FilterIsHero)) + call GroupEnumUnitsInRect(heroes, GetPlayableMapRect(), Filter(function WoWReforgedSleepingBag___FilterIsHero)) call SetTimeOfDay(whatTime) - call ForGroup(heroes, function WoWReforgedSleepingBag__HealHeroesEnum) + call ForGroup(heroes, function WoWReforgedSleepingBag___HealHeroesEnum) call GroupClear(heroes) call DestroyGroup(heroes) set heroes=null @@ -24319,7 +24319,7 @@ endfunction //library WoWReforgedTerrain ends //library WoWReforgedTinker: -function WoWReforgedTinker__PrintDebug takes unit hero returns nothing +function WoWReforgedTinker___PrintDebug takes unit hero returns nothing local integer clusterRocketsLevel= GetUnitAbilityLevel(hero, 'ANcs') local integer pocketFactoryLevel= GetUnitAbilityLevel(hero, 'ANsy') local integer roboGoblinLevel= GetUnitAbilityLevel(hero, 'ANrg') @@ -24387,10 +24387,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 @@ -24407,8 +24407,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 @@ -24428,43 +24428,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) @@ -24510,7 +24510,7 @@ function Challenge takes integer abilityId,unit caster,unit target returns nothi endif endfunction -function Challenge___TriggerConditionCast takes nothing returns boolean +function Challenge__TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == Challenge_ABILITY_ID ) then if ( GetSpellTargetUnit() != null ) then if ( not IsUnitAlly(GetSpellTargetUnit(), GetOwningPlayer(GetTriggerUnit())) ) then @@ -24529,9 +24529,9 @@ function Challenge___TriggerConditionCast takes nothing returns boolean return false endfunction -function Challenge___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(Challenge___castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(Challenge___castTrigger, Condition(function Challenge___TriggerConditionCast)) +function Challenge__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(Challenge__castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(Challenge__castTrigger, Condition(function Challenge__TriggerConditionCast)) endfunction @@ -25191,7 +25191,7 @@ endfunction //library Decay: -function Decay___FilterIsCorpse takes nothing returns boolean +function Decay__FilterIsCorpse takes nothing returns boolean return not IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and IsUnitDeadBJ(GetFilterUnit()) endfunction @@ -25204,7 +25204,7 @@ function Decay takes integer abilityId,unit caster,real x,real y,real range retu local boolean heroAbility= abilityId == Decay_ABILITY_ID call h__BJDebugMsg("Decay with range " + R2S(range)) call PingMinimap(x, y, 2.0) - call GroupEnumUnitsInRange(targets, x, y, range, Filter(function Decay___FilterIsCorpse)) + call GroupEnumUnitsInRange(targets, x, y, range, Filter(function Decay__FilterIsCorpse)) if ( BlzGroupGetSize(targets) > 0 ) then set i=0 set max=BlzGroupGetSize(targets) @@ -25231,7 +25231,7 @@ function Decay takes integer abilityId,unit caster,real x,real y,real range retu set targets=null endfunction -function Decay___TriggerConditionCast takes nothing returns boolean +function Decay__TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == Decay_ABILITY_ID ) then call h__BJDebugMsg(GetObjectName(GetSpellAbilityId()) + " with spell level " + I2S(GetUnitAbilityLevel(GetTriggerUnit(), GetSpellAbilityId())) + " and range " + R2S(BlzGetAbilityRealLevelField(BlzGetUnitAbility(GetTriggerUnit(), GetSpellAbilityId()), ABILITY_RLF_AREA_OF_EFFECT, GetUnitAbilityLevel(GetTriggerUnit(), GetSpellAbilityId())))) call Decay(GetSpellAbilityId() , GetTriggerUnit() , GetSpellTargetX() , GetSpellTargetY() , BlzGetAbilityRealLevelField(BlzGetUnitAbility(GetTriggerUnit(), GetSpellAbilityId()), ABILITY_RLF_AREA_OF_EFFECT, GetUnitAbilityLevel(GetTriggerUnit(), GetSpellAbilityId()))) @@ -25241,9 +25241,9 @@ function Decay___TriggerConditionCast takes nothing returns boolean return false endfunction -function Decay___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(Decay___castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(Decay___castTrigger, Condition(function Decay___TriggerConditionCast)) +function Decay__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(Decay__castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(Decay__castTrigger, Condition(function Decay__TriggerConditionCast)) endfunction @@ -25251,20 +25251,20 @@ endfunction //library ForestWord: -function ForestWord___FilterIsTree takes nothing returns boolean +function ForestWord__FilterIsTree takes nothing returns boolean return (IsTree(GetDestructableTypeId((GetFilterDestructable())))) // INLINED!! endfunction -function ForestWord___EnumRegrowTree takes nothing returns nothing - set ForestWord___tmpCounter=ForestWord___tmpCounter + 1 +function ForestWord__EnumRegrowTree takes nothing returns nothing + set ForestWord__tmpCounter=ForestWord__tmpCounter + 1 call SetDestructableLifePercentBJ(GetEnumDestructable(), 100.0) endfunction -function ForestWord___FilterIsAlly takes nothing returns boolean - return IsUnitAliveBJ(GetFilterUnit()) and not IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(ForestWord___tmpCaster)) and GetUnitAbilityLevel(GetFilterUnit(), 'Avul') == 0 and ( GetUnitState(GetFilterUnit(), UNIT_STATE_LIFE) < GetUnitState(GetFilterUnit(), UNIT_STATE_MAX_LIFE) or ( GetUnitState(GetFilterUnit(), UNIT_STATE_MANA) < GetUnitState(GetFilterUnit(), UNIT_STATE_MAX_MANA) ) ) +function ForestWord__FilterIsAlly takes nothing returns boolean + return IsUnitAliveBJ(GetFilterUnit()) and not IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(ForestWord__tmpCaster)) and GetUnitAbilityLevel(GetFilterUnit(), 'Avul') == 0 and ( GetUnitState(GetFilterUnit(), UNIT_STATE_LIFE) < GetUnitState(GetFilterUnit(), UNIT_STATE_MAX_LIFE) or ( GetUnitState(GetFilterUnit(), UNIT_STATE_MANA) < GetUnitState(GetFilterUnit(), UNIT_STATE_MAX_MANA) ) ) endfunction -function ForestWord___GetRectFromCircle takes real centerX,real centerY,real radius returns rect +function ForestWord__GetRectFromCircle takes real centerX,real centerY,real radius returns rect return Rect(centerX - radius, centerY - radius, centerX + radius, centerY + radius) endfunction @@ -25274,7 +25274,7 @@ function ForestWord takes unit caster,integer abilityId returns nothing local real x= GetUnitX(caster) local real y= GetUnitY(caster) local real range= 1500.0 - local rect r= ForestWord___GetRectFromCircle(x , y , range) + local rect r= ForestWord__GetRectFromCircle(x , y , range) local group targets= CreateGroup() local unit target= null local effect array effects @@ -25283,16 +25283,16 @@ function ForestWord takes unit caster,integer abilityId returns nothing local integer i= 0 local real life= 0.0 local real mana= 0.0 - set ForestWord___tmpCounter=0 - call EnumDestructablesInRect(r, Filter(function ForestWord___FilterIsTree), function ForestWord___EnumRegrowTree) + set ForestWord__tmpCounter=0 + call EnumDestructablesInRect(r, Filter(function ForestWord__FilterIsTree), function ForestWord__EnumRegrowTree) call RemoveRect(r) set r=null - if ( ForestWord___tmpCounter > 0 ) then - set life=RMinBJ(100.0, I2R(GetUnitAbilityLevel(caster, abilityId)) * I2R(ForestWord___tmpCounter) * 0.01) - set mana=RMinBJ(100.0, I2R(GetUnitAbilityLevel(caster, abilityId)) * I2R(ForestWord___tmpCounter) * 0.01) + if ( ForestWord__tmpCounter > 0 ) then + set life=RMinBJ(100.0, I2R(GetUnitAbilityLevel(caster, abilityId)) * I2R(ForestWord__tmpCounter) * 0.01) + set mana=RMinBJ(100.0, I2R(GetUnitAbilityLevel(caster, abilityId)) * I2R(ForestWord__tmpCounter) * 0.01) - call GroupEnumUnitsInRange(targets, x, y, range, Filter(function ForestWord___FilterIsAlly)) + call GroupEnumUnitsInRange(targets, x, y, range, Filter(function ForestWord__FilterIsAlly)) set max=BlzGroupGetSize(targets) if ( max > 0 ) then loop @@ -25321,18 +25321,18 @@ function ForestWord takes unit caster,integer abilityId returns nothing set owner=null endfunction -function ForestWord___TriggerConditionCast takes nothing returns boolean +function ForestWord__TriggerConditionCast takes nothing returns boolean return GetSpellAbilityId() == ForestWord_ABILITY_ID endfunction -function ForestWord___TriggerActionCast takes nothing returns nothing +function ForestWord__TriggerActionCast takes nothing returns nothing call ForestWord(GetTriggerUnit() , GetSpellAbilityId()) endfunction -function ForestWord___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(ForestWord___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(ForestWord___castTrigger, Condition(function ForestWord___TriggerConditionCast)) - call TriggerAddAction(ForestWord___castTrigger, function ForestWord___TriggerActionCast) +function ForestWord__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(ForestWord__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(ForestWord__castTrigger, Condition(function ForestWord__TriggerConditionCast)) + call TriggerAddAction(ForestWord__castTrigger, function ForestWord__TriggerActionCast) endfunction @@ -26300,33 +26300,33 @@ function AddMassSpell takes integer dummyAbilityId,string dummyAbilityOrder,filt endfunction function RegisterMassSpell takes integer abilityId,integer massSpell returns nothing - call SaveInteger(MassSpell___h, abilityId, 0, massSpell) + call SaveInteger(MassSpell__h, abilityId, 0, massSpell) endfunction function GetMassSpellFilterCaster takes nothing returns unit - return MassSpell___filterCaster + return MassSpell__filterCaster endfunction function GetMassSpellFilterAbilityId takes nothing returns integer - return MassSpell___filterAbilityId + return MassSpell__filterAbilityId endfunction -function MassSpell___LoadMassSpell takes integer abilityId returns integer - return LoadInteger(MassSpell___h, abilityId, 0) +function MassSpell__LoadMassSpell takes integer abilityId returns integer + return LoadInteger(MassSpell__h, abilityId, 0) endfunction -function MassSpell___TriggerConditionMassSpell takes nothing returns boolean - local integer s= (LoadInteger(MassSpell___h, (GetSpellAbilityId()), 0)) // INLINED!! +function MassSpell__TriggerConditionMassSpell takes nothing returns boolean + local integer s= (LoadInteger(MassSpell__h, (GetSpellAbilityId()), 0)) // INLINED!! return s != 0 endfunction -function MassSpell___RemoveUnitEnum takes nothing returns nothing +function MassSpell__RemoveUnitEnum takes nothing returns nothing call h__RemoveUnit(GetEnumUnit()) endfunction -function MassSpell___TriggerActionMassSpell takes nothing returns nothing +function MassSpell__TriggerActionMassSpell takes nothing returns nothing local integer abilityId= GetSpellAbilityId() - local integer s= (LoadInteger(MassSpell___h, (abilityId), 0)) // INLINED!! + local integer s= (LoadInteger(MassSpell__h, (abilityId), 0)) // INLINED!! local group targets= CreateGroup() local group dummies= CreateGroup() local integer max= 0 @@ -26338,8 +26338,8 @@ function MassSpell___TriggerActionMassSpell takes nothing returns nothing local unit dummy= null local unit target= null local boolean hasTargets= false - set MassSpell___filterCaster=caster - set MassSpell___filterAbilityId=abilityId + set MassSpell__filterCaster=caster + set MassSpell__filterAbilityId=abilityId call GroupEnumUnitsInRange(targets, GetSpellTargetX(), GetSpellTargetY(), radius, s__MassSpell_filter[s]) set max=BlzGroupGetSize(targets) set hasTargets=max == 0 @@ -26365,7 +26365,7 @@ function MassSpell___TriggerActionMassSpell takes nothing returns nothing set targets=null if ( hasTargets ) then call TriggerSleepAction(MassSpell_DUMMY_REMOVAL_DELAY) - call ForGroup(dummies, function MassSpell___RemoveUnitEnum) + call ForGroup(dummies, function MassSpell__RemoveUnitEnum) call GroupClear(dummies) endif call DestroyGroup(dummies) @@ -26374,10 +26374,10 @@ function MassSpell___TriggerActionMassSpell takes nothing returns nothing set caster=null endfunction -function MassSpell___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(MassSpell___channelTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(MassSpell___channelTrigger, Condition(function MassSpell___TriggerConditionMassSpell)) - call TriggerAddAction(MassSpell___channelTrigger, function MassSpell___TriggerActionMassSpell) +function MassSpell__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(MassSpell__channelTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(MassSpell__channelTrigger, Condition(function MassSpell__TriggerConditionMassSpell)) + call TriggerAddAction(MassSpell__channelTrigger, function MassSpell__TriggerActionMassSpell) endfunction @@ -26408,43 +26408,43 @@ endfunction function AddNotAllowedPlayerForMindControl takes player whichPlayer returns nothing - call ForceAddPlayer(MindControl___notAllowedPlayers, whichPlayer) + call ForceAddPlayer(MindControl__notAllowedPlayers, whichPlayer) endfunction function ClearNotAllowedPlayerForMindControl takes nothing returns nothing - call ForceClear(MindControl___notAllowedPlayers) + call ForceClear(MindControl__notAllowedPlayers) endfunction -function MindControl___SharedAlliance takes player source,player target,boolean value returns nothing +function MindControl__SharedAlliance takes player source,player target,boolean value returns nothing call SetPlayerAlliance(source, target, ALLIANCE_SHARED_CONTROL, value) call SetPlayerAlliance(source, target, ALLIANCE_SHARED_ADVANCED_CONTROL, value) call SetPlayerAlliance(source, target, ALLIANCE_SHARED_SPELLS, value) endfunction -function MindControl___TimerFunctionExpire takes nothing returns nothing +function MindControl__TimerFunctionExpire takes nothing returns nothing local timer t= GetExpiredTimer() local integer handleId= GetHandleId(t) - local player owner= LoadPlayerHandle(MindControl___h, handleId, 0) - local player targetOwner= LoadPlayerHandle(MindControl___h, handleId, 1) - call MindControl___SharedAlliance(targetOwner , owner , false) + local player owner= LoadPlayerHandle(MindControl__h, handleId, 0) + local player targetOwner= LoadPlayerHandle(MindControl__h, handleId, 1) + call MindControl__SharedAlliance(targetOwner , owner , false) set owner=null set targetOwner=null call PauseTimer(t) - call FlushChildHashtable(MindControl___h, handleId) + call FlushChildHashtable(MindControl__h, handleId) call DestroyTimer(t) set t=null endfunction -function MindControl___MindControlEx takes unit caster,unit target returns nothing +function MindControl__MindControlEx takes unit caster,unit target returns nothing local player owner= GetOwningPlayer(caster) local player targetOwner= GetOwningPlayer(target) local timer t= CreateTimer() local integer handleId= GetHandleId(t) local real duration= 15.0 + I2R(GetUnitAbilityLevel(caster, MindControl_ABILITY_ID)) * 5.0 - call MindControl___SharedAlliance(targetOwner , owner , true) - call SavePlayerHandle(MindControl___h, handleId, 0, owner) - call SavePlayerHandle(MindControl___h, handleId, 1, targetOwner) - call TimerStart(t, duration, false, function MindControl___TimerFunctionExpire) + call MindControl__SharedAlliance(targetOwner , owner , true) + call SavePlayerHandle(MindControl__h, handleId, 0, owner) + call SavePlayerHandle(MindControl__h, handleId, 1, targetOwner) + call TimerStart(t, duration, false, function MindControl__TimerFunctionExpire) set owner=null set targetOwner=null endfunction @@ -26453,8 +26453,8 @@ function MindControl takes unit caster,unit target returns nothing local player owner= GetOwningPlayer(caster) local player targetOwner= GetOwningPlayer(target) if ( not IsUnitAlly(target, owner) ) then - if ( not IsPlayerInForce(targetOwner, MindControl___notAllowedPlayers) ) then - call MindControl___MindControlEx(caster , target) + if ( not IsPlayerInForce(targetOwner, MindControl__notAllowedPlayers) ) then + call MindControl__MindControlEx(caster , target) else call SimError(owner , "Owner " + GetPlayerName(targetOwner) + " is not allowed.") call IssueImmediateOrder(caster, "stop") @@ -26467,16 +26467,16 @@ function MindControl takes unit caster,unit target returns nothing set targetOwner=null endfunction -function MindControl___TriggerConditionCast takes nothing returns boolean +function MindControl__TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == MindControl_ABILITY_ID ) then call MindControl(GetTriggerUnit() , GetSpellTargetUnit()) endif return false endfunction -function MindControl___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(MindControl___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(MindControl___castTrigger, Condition(function MindControl___TriggerConditionCast)) +function MindControl__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(MindControl__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(MindControl__castTrigger, Condition(function MindControl__TriggerConditionCast)) endfunction @@ -27176,19 +27176,19 @@ endfunction //library ReduceFood: -function ReduceFood___EnableFoodCost takes unit target returns nothing - local timer t= LoadTimerHandle(ReduceFood___h, GetHandleId(target), 0) +function ReduceFood__EnableFoodCost takes unit target returns nothing + local timer t= LoadTimerHandle(ReduceFood__h, GetHandleId(target), 0) call SetUnitUseFood(target, true) - call GroupRemoveUnit(ReduceFood___targets, target) + call GroupRemoveUnit(ReduceFood__targets, target) call UnitRemoveAbility(target, ReduceFood_BUFF_ABILITY_ID) - call FlushChildHashtable(ReduceFood___h, GetHandleId(t)) + call FlushChildHashtable(ReduceFood__h, GetHandleId(t)) call PauseTimer(t) call DestroyTimer(t) - call FlushChildHashtable(ReduceFood___h, GetHandleId(target)) + call FlushChildHashtable(ReduceFood__h, GetHandleId(target)) endfunction -function ReduceFood___TimerFunctionEnableFoodCost takes nothing returns nothing - call ReduceFood___EnableFoodCost(LoadUnitHandle(ReduceFood___h, GetHandleId(GetExpiredTimer()), 0)) +function ReduceFood__TimerFunctionEnableFoodCost takes nothing returns nothing + call ReduceFood__EnableFoodCost(LoadUnitHandle(ReduceFood__h, GetHandleId(GetExpiredTimer()), 0)) endfunction function ReduceFood takes unit caster,integer abilityId,unit target returns nothing @@ -27199,18 +27199,18 @@ function ReduceFood takes unit caster,integer abilityId,unit target returns noth if ( GetUnitFoodUsed(target) <= maxFoodCost ) then call SetUnitUseFood(target, false) - if ( not IsUnitInGroup(target, ReduceFood___targets) ) then - call GroupAddUnit(ReduceFood___targets, target) + if ( not IsUnitInGroup(target, ReduceFood__targets) ) then + call GroupAddUnit(ReduceFood__targets, target) call UnitAddAbility(target, ReduceFood_BUFF_ABILITY_ID) set t=CreateTimer() - call SaveTimerHandle(ReduceFood___h, GetHandleId(target), 0, t) - call SaveUnitHandle(ReduceFood___h, GetHandleId(t), 0, target) + call SaveTimerHandle(ReduceFood__h, GetHandleId(target), 0, t) + call SaveUnitHandle(ReduceFood__h, GetHandleId(t), 0, target) else - set t=LoadTimerHandle(ReduceFood___h, GetHandleId(target), 0) + set t=LoadTimerHandle(ReduceFood__h, GetHandleId(target), 0) call PauseTimer(t) endif - call TimerStart(t, 40.0 + ( I2R(GetUnitAbilityLevel(caster, abilityId)) * 5.0 ), false, function ReduceFood___TimerFunctionEnableFoodCost) + call TimerStart(t, 40.0 + ( I2R(GetUnitAbilityLevel(caster, abilityId)) * 5.0 ), false, function ReduceFood__TimerFunctionEnableFoodCost) else call IssueImmediateOrder(caster, "stop") call SimError(owner , "Maximum food cost of target is too high.") @@ -27218,7 +27218,7 @@ function ReduceFood takes unit caster,integer abilityId,unit target returns noth else if ( not IsUnitType(target, UNIT_TYPE_MAGIC_IMMUNE) ) then if ( GetUnitAbilityLevel(target, ReduceFood_BUFF_ABILITY_ID) > 0 ) then - call ReduceFood___EnableFoodCost(target) + call ReduceFood__EnableFoodCost(target) else call IssueImmediateOrder(caster, "stop") call SimError(owner , "Target has no disabled food cost.") @@ -28940,19 +28940,19 @@ endfunction //library Stupidity: -function Stupidity___EnableGainingXP takes unit target returns nothing - local timer t= LoadTimerHandle(Stupidity___h, GetHandleId(target), 0) +function Stupidity__EnableGainingXP takes unit target returns nothing + local timer t= LoadTimerHandle(Stupidity__h, GetHandleId(target), 0) call SuspendHeroXP(target, false) - call GroupRemoveUnit(Stupidity___targets, target) + call GroupRemoveUnit(Stupidity__targets, target) call UnitRemoveAbility(target, Stupidity_BUFF_ABILITY_ID) - call FlushChildHashtable(Stupidity___h, GetHandleId(t)) + call FlushChildHashtable(Stupidity__h, GetHandleId(t)) call PauseTimer(t) call DestroyTimer(t) - call FlushChildHashtable(Stupidity___h, GetHandleId(target)) + call FlushChildHashtable(Stupidity__h, GetHandleId(target)) endfunction -function Stupidity___TimerFunctionEnableGainingXP takes nothing returns nothing - call Stupidity___EnableGainingXP(LoadUnitHandle(Stupidity___h, GetHandleId(GetExpiredTimer()), 0)) +function Stupidity__TimerFunctionEnableGainingXP takes nothing returns nothing + call Stupidity__EnableGainingXP(LoadUnitHandle(Stupidity__h, GetHandleId(GetExpiredTimer()), 0)) endfunction function Stupidity takes unit caster,integer abilityId,unit target returns nothing @@ -28964,18 +28964,18 @@ function Stupidity takes unit caster,integer abilityId,unit target returns nothi if ( not IsSuspendedXP(target) ) then call SuspendHeroXP(target, true) - if ( not IsUnitInGroup(target, Stupidity___targets) ) then - call GroupAddUnit(Stupidity___targets, target) + if ( not IsUnitInGroup(target, Stupidity__targets) ) then + call GroupAddUnit(Stupidity__targets, target) call UnitAddAbility(target, Stupidity_BUFF_ABILITY_ID) set t=CreateTimer() - call SaveTimerHandle(Stupidity___h, GetHandleId(target), 0, t) - call SaveUnitHandle(Stupidity___h, GetHandleId(t), 0, target) + call SaveTimerHandle(Stupidity__h, GetHandleId(target), 0, t) + call SaveUnitHandle(Stupidity__h, GetHandleId(t), 0, target) else - set t=LoadTimerHandle(Stupidity___h, GetHandleId(target), 0) + set t=LoadTimerHandle(Stupidity__h, GetHandleId(target), 0) call PauseTimer(t) endif - call TimerStart(t, 5.0 * ( I2R(GetUnitAbilityLevel(caster, abilityId)) * 5.0 ), false, function Stupidity___TimerFunctionEnableGainingXP) + call TimerStart(t, 5.0 * ( I2R(GetUnitAbilityLevel(caster, abilityId)) * 5.0 ), false, function Stupidity__TimerFunctionEnableGainingXP) else call IssueImmediateOrder(caster, "stop") call SimError(owner , "Target has disabled gaining XP.") @@ -31390,33 +31390,33 @@ function GetBanInfo takes nothing returns string local string message= "Bans:\n" local integer i= 0 loop - exitwhen ( i == WoWReforgedBan__banCount ) + exitwhen ( i == WoWReforgedBan___banCount ) if ( i > 0 ) then set message=message + "\n" endif - set message=message + WoWReforgedBan__bans[i] + " - " + WoWReforgedBan__bansReasons[i] + set message=message + WoWReforgedBan___bans[i] + " - " + WoWReforgedBan___bansReasons[i] set i=i + 1 endloop return message endfunction function AddBan takes string account,string reason returns integer - local integer index= WoWReforgedBan__banCount - set WoWReforgedBan__bans[index]=account - set WoWReforgedBan__bansReasons[index]=reason - set WoWReforgedBan__banCount=WoWReforgedBan__banCount + 1 + local integer index= WoWReforgedBan___banCount + set WoWReforgedBan___bans[index]=account + set WoWReforgedBan___bansReasons[index]=reason + set WoWReforgedBan___banCount=WoWReforgedBan___banCount + 1 return index endfunction function GetBan takes integer index returns string - return WoWReforgedBan__bans[index] + return WoWReforgedBan___bans[index] endfunction function GetBanIndex takes string account returns integer local integer i= 0 loop - exitwhen ( i == WoWReforgedBan__banCount ) - if ( (WoWReforgedBan__bans[(i)]) == account ) then // INLINED!! + exitwhen ( i == WoWReforgedBan___banCount ) + if ( (WoWReforgedBan___bans[(i)]) == account ) then // INLINED!! return i endif set i=i + 1 @@ -31424,23 +31424,23 @@ function GetBanIndex takes string account returns integer return - 1 endfunction -function WoWReforgedBan__ForGroupCheckBan takes nothing returns nothing +function WoWReforgedBan___ForGroupCheckBan takes nothing returns nothing local player p= GetEnumPlayer() local string playerName= GetPlayerName(p) local integer index= GetBanIndex(playerName) if ( index != - 1 ) then - call CustomDefeatBJ(p, "Banned!|nReason: " + WoWReforgedBan__bansReasons[index]) - call h__DisplayTextToForce(GetPlayersAll(), playerName + " was kicked from the game for being banned with the reason: " + WoWReforgedBan__bansReasons[index]) + call CustomDefeatBJ(p, "Banned!|nReason: " + WoWReforgedBan___bansReasons[index]) + call h__DisplayTextToForce(GetPlayersAll(), playerName + " was kicked from the game for being banned with the reason: " + WoWReforgedBan___bansReasons[index]) endif set p=null endfunction -function WoWReforgedBan__Init takes nothing returns nothing +function WoWReforgedBan___Init takes nothing returns nothing local force whichForce= CreateForce() call ForceAddPlayingUserPlayers(whichForce) call AddBan("WorldEditX" , "Spamming and killing allies.") - call ForForce(whichForce, function WoWReforgedBan__ForGroupCheckBan) + call ForForce(whichForce, function WoWReforgedBan___ForGroupCheckBan) call ForceClear(whichForce) call DestroyForce(whichForce) set whichForce=null @@ -31451,7 +31451,7 @@ endfunction //library WoWReforgedCombiner: -function WoWReforgedCombiner___InspectItem takes player whichPlayer,item whichItem returns nothing +function WoWReforgedCombiner__InspectItem takes player whichPlayer,item whichItem returns nothing local string msg= GetItemName(whichItem) + ", Level " + I2S(GetItemLevel(whichItem)) local integer i= 0 loop @@ -31464,7 +31464,7 @@ function WoWReforgedCombiner___InspectItem takes player whichPlayer,item whichIt call h__DisplayTimedTextToPlayer(whichPlayer, 0.0, 0.0, 6.0, msg) endfunction -function WoWReforgedCombiner___ItemUnusedAbilities takes item whichItem returns integer +function WoWReforgedCombiner__ItemUnusedAbilities takes item whichItem returns integer local integer counter= 0 local integer i= 0 loop @@ -31477,7 +31477,7 @@ function WoWReforgedCombiner___ItemUnusedAbilities takes item whichItem returns return counter endfunction -function WoWReforgedCombiner___GetMaxTransferItemLevel takes unit hero returns integer +function WoWReforgedCombiner__GetMaxTransferItemLevel takes unit hero returns integer local item slotItem= null local integer result= 0 local integer i= 0 @@ -31501,13 +31501,13 @@ function WoWReforgedCombiner___GetMaxTransferItemLevel takes unit hero returns i return result endfunction -function WoWReforgedCombiner___MarkItem takes unit caster,item whichItem,integer abilityIndex returns nothing +function WoWReforgedCombiner__MarkItem takes unit caster,item whichItem,integer abilityIndex returns nothing local integer abilityId= BlzGetAbilityId(BlzGetItemAbilityByIndex(whichItem, abilityIndex)) if ( not IsItemInvulnerable(whichItem) ) then - if ( WoWReforgedCombiner___ItemUnusedAbilities(whichItem) > 0 ) then + if ( WoWReforgedCombiner__ItemUnusedAbilities(whichItem) > 0 ) then if ( abilityId != 0 ) then - call SaveItemHandle(WoWReforgedCombiner___h, GetHandleId(caster), 0, whichItem) - call SaveInteger(WoWReforgedCombiner___h, GetHandleId(caster), 1, abilityIndex) + call SaveItemHandle(WoWReforgedCombiner__h, GetHandleId(caster), 0, whichItem) + call SaveInteger(WoWReforgedCombiner__h, GetHandleId(caster), 1, abilityIndex) call h__DisplayTimedTextToPlayer(GetOwningPlayer(caster), 0.0, 0.0, 6.0, "Marked ability " + GetObjectName(abilityId)) else call SimError(GetOwningPlayer(caster) , "Target item has no ability at index " + I2S(abilityIndex + 1) + ".") @@ -31520,12 +31520,12 @@ function WoWReforgedCombiner___MarkItem takes unit caster,item whichItem,integer endif endfunction -function WoWReforgedCombiner___TransferItemAbilityEx takes unit caster,item sourceItem,integer abilityIndex,item targetItem,integer maxLevel returns nothing +function WoWReforgedCombiner__TransferItemAbilityEx takes unit caster,item sourceItem,integer abilityIndex,item targetItem,integer maxLevel returns nothing local integer abilityId= BlzGetAbilityId(BlzGetItemAbilityByIndex(sourceItem, abilityIndex)) if ( UnitHasItem(caster, sourceItem) ) then if ( GetItemLevel(sourceItem) <= maxLevel ) then if ( BlzGetItemAbilityByIndex(sourceItem, abilityIndex) != null ) then - if ( WoWReforgedCombiner___ItemUnusedAbilities(targetItem) > 0 ) then + if ( WoWReforgedCombiner__ItemUnusedAbilities(targetItem) > 0 ) then if ( ( GetItemCharges(sourceItem) == 0 and GetItemCharges(targetItem) == 0 ) or ( GetItemCharges(sourceItem) > 0 and GetItemCharges(targetItem) > 0 ) ) then call BlzItemAddAbility(targetItem, abilityId) call BlzItemRemoveAbility(sourceItem, abilityId) @@ -31547,47 +31547,47 @@ function WoWReforgedCombiner___TransferItemAbilityEx takes unit caster,item sour endif endfunction -function WoWReforgedCombiner___TransferItemAbility takes unit caster,item targetItem,integer maxLevel returns nothing - local item sourceItem= LoadItemHandle(WoWReforgedCombiner___h, GetHandleId(caster), 0) - local integer abilityIndex= LoadInteger(WoWReforgedCombiner___h, GetHandleId(caster), 1) +function WoWReforgedCombiner__TransferItemAbility takes unit caster,item targetItem,integer maxLevel returns nothing + local item sourceItem= LoadItemHandle(WoWReforgedCombiner__h, GetHandleId(caster), 0) + local integer abilityIndex= LoadInteger(WoWReforgedCombiner__h, GetHandleId(caster), 1) if ( sourceItem != null ) then - call WoWReforgedCombiner___TransferItemAbilityEx(caster , sourceItem , abilityIndex , targetItem , maxLevel) + call WoWReforgedCombiner__TransferItemAbilityEx(caster , sourceItem , abilityIndex , targetItem , maxLevel) set sourceItem=null else call SimError(GetOwningPlayer(caster) , "No marked source item.") endif endfunction -function WoWReforgedCombiner___TriggerConditionCast takes nothing returns boolean +function WoWReforgedCombiner__TriggerConditionCast takes nothing returns boolean local integer abilityId= GetSpellAbilityId() local unit caster= GetTriggerUnit() - if ( abilityId == WoWReforgedCombiner___ABILITY_ID_INSPECT ) then - call WoWReforgedCombiner___InspectItem(GetOwningPlayer(caster) , GetSpellTargetItem()) - elseif ( abilityId == WoWReforgedCombiner___ABILITY_ID_MARK_1 ) then - call WoWReforgedCombiner___MarkItem(caster , GetSpellTargetItem() , 0) - elseif ( abilityId == WoWReforgedCombiner___ABILITY_ID_MARK_2 ) then - call WoWReforgedCombiner___MarkItem(caster , GetSpellTargetItem() , 1) - elseif ( abilityId == WoWReforgedCombiner___ABILITY_ID_MARK_3 ) then - call WoWReforgedCombiner___MarkItem(caster , GetSpellTargetItem() , 2) - elseif ( abilityId == WoWReforgedCombiner___ABILITY_ID_MARK_4 ) then - call WoWReforgedCombiner___MarkItem(caster , GetSpellTargetItem() , 3) - elseif ( abilityId == WoWReforgedCombiner___ABILITY_ID_TRANSFER ) then - call WoWReforgedCombiner___TransferItemAbility(caster , GetSpellTargetItem() , WoWReforgedCombiner___GetMaxTransferItemLevel(caster)) + if ( abilityId == WoWReforgedCombiner__ABILITY_ID_INSPECT ) then + call WoWReforgedCombiner__InspectItem(GetOwningPlayer(caster) , GetSpellTargetItem()) + elseif ( abilityId == WoWReforgedCombiner__ABILITY_ID_MARK_1 ) then + call WoWReforgedCombiner__MarkItem(caster , GetSpellTargetItem() , 0) + elseif ( abilityId == WoWReforgedCombiner__ABILITY_ID_MARK_2 ) then + call WoWReforgedCombiner__MarkItem(caster , GetSpellTargetItem() , 1) + elseif ( abilityId == WoWReforgedCombiner__ABILITY_ID_MARK_3 ) then + call WoWReforgedCombiner__MarkItem(caster , GetSpellTargetItem() , 2) + elseif ( abilityId == WoWReforgedCombiner__ABILITY_ID_MARK_4 ) then + call WoWReforgedCombiner__MarkItem(caster , GetSpellTargetItem() , 3) + elseif ( abilityId == WoWReforgedCombiner__ABILITY_ID_TRANSFER ) then + call WoWReforgedCombiner__TransferItemAbility(caster , GetSpellTargetItem() , WoWReforgedCombiner__GetMaxTransferItemLevel(caster)) endif set caster=null return false endfunction -function WoWReforgedCombiner___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedCombiner___castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(WoWReforgedCombiner___castTrigger, Condition(function WoWReforgedCombiner___TriggerConditionCast)) +function WoWReforgedCombiner__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedCombiner__castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(WoWReforgedCombiner__castTrigger, Condition(function WoWReforgedCombiner__TriggerConditionCast)) endfunction -function WoWReforgedCombiner___RemoveUnitHook takes unit whichUnit returns nothing - call FlushChildHashtable(WoWReforgedCombiner___h, GetHandleId(whichUnit)) +function WoWReforgedCombiner__RemoveUnitHook takes unit whichUnit returns nothing + call FlushChildHashtable(WoWReforgedCombiner__h, GetHandleId(whichUnit)) endfunction -//processed hook: hook RemoveUnit WoWReforgedCombiner___RemoveUnitHook +//processed hook: hook RemoveUnit WoWReforgedCombiner__RemoveUnitHook //library WoWReforgedCombiner ends @@ -33404,7 +33404,7 @@ endfunction //library WoWReforgedFel ends //library WoWReforgedFisherman: -function WoWReforgedFisherman__ShowFishFloatingText takes unit hero,item whichItem returns nothing +function WoWReforgedFisherman___ShowFishFloatingText takes unit hero,item whichItem returns nothing local force whichForce= CreateForce() call ForceAddPlayer(whichForce, GetOwningPlayer(hero)) call ShowFadingTextTagForForce((whichForce ) , ( "+" + I2S(GetItemCharges(whichItem)) + " " + GetItemName(whichItem) ) , 0.025 , (( GetUnitX(hero) )*1.0) , (( GetUnitY(hero) )*1.0) , ( 0 ) , ( 0 ) , ( 0 ) , ( 0) , 0.03 , 1.0 , 2.0) // INLINED!! @@ -33413,7 +33413,7 @@ function WoWReforgedFisherman__ShowFishFloatingText takes unit hero,item whichIt set whichForce=null endfunction -function WoWReforgedFisherman__ShowNoFishFloatingText takes unit hero returns nothing +function WoWReforgedFisherman___ShowNoFishFloatingText takes unit hero returns nothing local force whichForce= CreateForce() call ForceAddPlayer(whichForce, GetOwningPlayer(hero)) call ShowFadingTextTagForForce((whichForce ) , ( "No fish!" ) , 0.025 , (( GetUnitX(hero) )*1.0) , (( GetUnitY(hero) )*1.0) , ( 0 ) , ( 0 ) , ( 0 ) , ( 0) , 0.03 , 1.0 , 2.0) // INLINED!! @@ -33430,11 +33430,11 @@ function CreateFishForFishingRod takes unit hero returns item call SetItemCharges(whichItem, GetItemCharges(whichItem) + GetLuckRandomInt(hero , 2 , 6)) endif - call WoWReforgedFisherman__ShowFishFloatingText(hero , whichItem) + call WoWReforgedFisherman___ShowFishFloatingText(hero , whichItem) return whichItem else - call WoWReforgedFisherman__ShowNoFishFloatingText(hero) + call WoWReforgedFisherman___ShowNoFishFloatingText(hero) endif return null @@ -33461,57 +33461,57 @@ endfunction function AddInfoQuestWoWReforged takes nothing returns nothing - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest endfunction -function WoWReforgedInfoQuests__AddInfoQuest takes nothing returns integer - local integer index= WoWReforgedInfoQuests__questsMax - set WoWReforgedInfoQuests__questId[index]=WoWReforgedInfoQuests__tmpTitle - set WoWReforgedInfoQuests__questIcon[index]=WoWReforgedInfoQuests__tmpIconPath - set WoWReforgedInfoQuests__questTitle[index]=WoWReforgedInfoQuests__tmpTitle - set WoWReforgedInfoQuests__questDescription[index]=WoWReforgedInfoQuests__tmpDescription - set WoWReforgedInfoQuests__questsMax=WoWReforgedInfoQuests__questsMax + 1 +function WoWReforgedInfoQuests___AddInfoQuest takes nothing returns integer + local integer index= WoWReforgedInfoQuests___questsMax + set WoWReforgedInfoQuests___questId[index]=WoWReforgedInfoQuests___tmpTitle + set WoWReforgedInfoQuests___questIcon[index]=WoWReforgedInfoQuests___tmpIconPath + set WoWReforgedInfoQuests___questTitle[index]=WoWReforgedInfoQuests___tmpTitle + set WoWReforgedInfoQuests___questDescription[index]=WoWReforgedInfoQuests___tmpDescription + set WoWReforgedInfoQuests___questsMax=WoWReforgedInfoQuests___questsMax + 1 return index endfunction function GetInfoQuestsMax takes nothing returns integer - return WoWReforgedInfoQuests__questsMax + return WoWReforgedInfoQuests___questsMax endfunction function GetInfoQuestHandle takes integer q returns quest - return WoWReforgedInfoQuests__questHandle[q] + return WoWReforgedInfoQuests___questHandle[q] endfunction function GetInfoQuestId takes integer q returns string - return WoWReforgedInfoQuests__questId[q] + return WoWReforgedInfoQuests___questId[q] endfunction function GetInfoQuestIcon takes integer q returns string - return WoWReforgedInfoQuests__questIcon[q] + return WoWReforgedInfoQuests___questIcon[q] endfunction function GetInfoQuestTitle takes integer q returns string - return WoWReforgedInfoQuests__questTitle[q] + return WoWReforgedInfoQuests___questTitle[q] endfunction function GetInfoQuestDescription takes integer q returns string - return WoWReforgedInfoQuests__questDescription[q] + return WoWReforgedInfoQuests___questDescription[q] endfunction -function WoWReforgedInfoQuests__CreateQuestBJHook takes integer questType,string title,string description,string iconPath returns nothing +function WoWReforgedInfoQuests___CreateQuestBJHook takes integer questType,string title,string description,string iconPath returns nothing local boolean required= ( questType == bj_QUESTTYPE_REQ_DISCOVERED ) or ( questType == bj_QUESTTYPE_REQ_UNDISCOVERED ) if ( required ) then - set WoWReforgedInfoQuests__tmpIconPath=iconPath - set WoWReforgedInfoQuests__tmpTitle=GetLocalizedString(title) - set WoWReforgedInfoQuests__tmpDescription=GetLocalizedString(description) // Barade: this leads some how to a cut off string on the website + set WoWReforgedInfoQuests___tmpIconPath=iconPath + set WoWReforgedInfoQuests___tmpTitle=GetLocalizedString(title) + set WoWReforgedInfoQuests___tmpDescription=GetLocalizedString(description) // Barade: this leads some how to a cut off string on the website - call WoWReforgedInfoQuests__AddInfoQuest() + call WoWReforgedInfoQuests___AddInfoQuest() endif endfunction -//processed hook: hook CreateQuestBJ WoWReforgedInfoQuests__CreateQuestBJHook +//processed hook: hook CreateQuestBJ WoWReforgedInfoQuests___CreateQuestBJHook //library WoWReforgedInfoQuests ends @@ -33519,45 +33519,45 @@ endfunction function GetLearnableSkillMax takes nothing returns integer - return WoWReforgedLearnableSkills___learnableSkillCounter + return WoWReforgedLearnableSkills__learnableSkillCounter endfunction function IsLearnableSkillValid takes integer index returns boolean - return index >= 0 and index < WoWReforgedLearnableSkills___learnableSkillCounter + return index >= 0 and index < WoWReforgedLearnableSkills__learnableSkillCounter endfunction function GetLearnableSkillLearnItemTypeId takes integer index returns integer - return WoWReforgedLearnableSkills___learnableSkillLearnItemTypeId[index] + return WoWReforgedLearnableSkills__learnableSkillLearnItemTypeId[index] endfunction function GetLearnableSkillLearnAbilityId takes integer index returns integer - return WoWReforgedLearnableSkills___learnableSkillLearnAbilityId[index] + return WoWReforgedLearnableSkills__learnableSkillLearnAbilityId[index] endfunction function GetLearnableSkillAbilityId takes integer index returns integer - return WoWReforgedLearnableSkills___learnableSkillAbilityId[index] + return WoWReforgedLearnableSkills__learnableSkillAbilityId[index] endfunction function GetLearnableSkillIconAbilityId takes integer index returns integer - return WoWReforgedLearnableSkills___learnableSkillIconAbilityId[index] + return WoWReforgedLearnableSkills__learnableSkillIconAbilityId[index] endfunction function GetLearnableSkillForbidEquipmentBag takes integer index returns boolean - return WoWReforgedLearnableSkills___learnableSkillForbidEquipmentBag[index] + return WoWReforgedLearnableSkills__learnableSkillForbidEquipmentBag[index] endfunction function GetLearnableSkillSlot takes integer index returns integer - return WoWReforgedLearnableSkills___learnableSkillSlot[index] + return WoWReforgedLearnableSkills__learnableSkillSlot[index] endfunction function GetRandomLearnableSkillIndex takes integer unitTypeId,integer slot returns integer local integer i= 0 - local integer max= (WoWReforgedLearnableSkills___learnableSkillCounter) // INLINED!! + local integer max= (WoWReforgedLearnableSkills__learnableSkillCounter) // INLINED!! local integer array indices local integer indicesCounter= 0 loop exitwhen ( i == max ) - if ( (WoWReforgedLearnableSkills___learnableSkillSlot[(i)]) == slot and ( not (WoWReforgedLearnableSkills___learnableSkillForbidEquipmentBag[(i)]) or unitTypeId != EQUIPMENT_BAG ) ) then // INLINED!! + if ( (WoWReforgedLearnableSkills__learnableSkillSlot[(i)]) == slot and ( not (WoWReforgedLearnableSkills__learnableSkillForbidEquipmentBag[(i)]) or unitTypeId != EQUIPMENT_BAG ) ) then // INLINED!! set indices[indicesCounter]=i set indicesCounter=indicesCounter + 1 endif @@ -33571,14 +33571,14 @@ function GetRandomLearnableSkillIndex takes integer unitTypeId,integer slot retu endfunction function AddLearnableSkillEx takes integer learnItemTypeId,integer learnAbilityId,integer abilityId,integer iconAbilityId,integer slot,boolean forbidEquipmentBag returns integer - local integer index= WoWReforgedLearnableSkills___learnableSkillCounter - set WoWReforgedLearnableSkills___learnableSkillLearnItemTypeId[index]=learnItemTypeId - set WoWReforgedLearnableSkills___learnableSkillLearnAbilityId[index]=learnAbilityId - set WoWReforgedLearnableSkills___learnableSkillAbilityId[index]=abilityId - set WoWReforgedLearnableSkills___learnableSkillIconAbilityId[index]=iconAbilityId - set WoWReforgedLearnableSkills___learnableSkillSlot[index]=slot - set WoWReforgedLearnableSkills___learnableSkillForbidEquipmentBag[index]=forbidEquipmentBag - set WoWReforgedLearnableSkills___learnableSkillCounter=WoWReforgedLearnableSkills___learnableSkillCounter + 1 + local integer index= WoWReforgedLearnableSkills__learnableSkillCounter + set WoWReforgedLearnableSkills__learnableSkillLearnItemTypeId[index]=learnItemTypeId + set WoWReforgedLearnableSkills__learnableSkillLearnAbilityId[index]=learnAbilityId + set WoWReforgedLearnableSkills__learnableSkillAbilityId[index]=abilityId + set WoWReforgedLearnableSkills__learnableSkillIconAbilityId[index]=iconAbilityId + set WoWReforgedLearnableSkills__learnableSkillSlot[index]=slot + set WoWReforgedLearnableSkills__learnableSkillForbidEquipmentBag[index]=forbidEquipmentBag + set WoWReforgedLearnableSkills__learnableSkillCounter=WoWReforgedLearnableSkills__learnableSkillCounter + 1 return index endfunction @@ -33590,7 +33590,7 @@ function AddLearnableSkill takes nothing returns integer endfunction function AddLearnableSkillToHero takes unit hero,integer index returns nothing - local integer abilityId= (WoWReforgedLearnableSkills___learnableSkillLearnAbilityId[(index)]) // INLINED!! + local integer abilityId= (WoWReforgedLearnableSkills__learnableSkillLearnAbilityId[(index)]) // INLINED!! if ( GetUnitAbilityLevel(hero, abilityId) == 0 ) then call UnitAddAbility(hero, abilityId) call BlzUnitHideAbility(hero, abilityId, true) @@ -33601,8 +33601,8 @@ endfunction function GetLearnableSkillByLearnItemTypeId takes integer itemTypeId returns integer local integer i= 0 loop - exitwhen ( i == WoWReforgedLearnableSkills___learnableSkillCounter ) - if ( (WoWReforgedLearnableSkills___learnableSkillLearnItemTypeId[(i)]) == itemTypeId ) then // INLINED!! + exitwhen ( i == WoWReforgedLearnableSkills__learnableSkillCounter ) + if ( (WoWReforgedLearnableSkills__learnableSkillLearnItemTypeId[(i)]) == itemTypeId ) then // INLINED!! return i endif set i=i + 1 @@ -33613,8 +33613,8 @@ endfunction function GetLearnableSkillByAbilityId takes integer abilityId returns integer local integer i= 0 loop - exitwhen ( i == WoWReforgedLearnableSkills___learnableSkillCounter ) - if ( (WoWReforgedLearnableSkills___learnableSkillAbilityId[(i)]) == abilityId ) then // INLINED!! + exitwhen ( i == WoWReforgedLearnableSkills__learnableSkillCounter ) + if ( (WoWReforgedLearnableSkills__learnableSkillAbilityId[(i)]) == abilityId ) then // INLINED!! return i endif set i=i + 1 @@ -33625,9 +33625,9 @@ endfunction function ResetLearnableSkillsForHero takes unit hero,integer slot returns nothing local integer i= 0 loop - exitwhen ( i == WoWReforgedLearnableSkills___learnableSkillCounter ) - if ( (WoWReforgedLearnableSkills___learnableSkillSlot[(i)]) == slot ) then // INLINED!! - call UnitRemoveAbility(hero, (WoWReforgedLearnableSkills___learnableSkillLearnAbilityId[(i)])) // INLINED!! + exitwhen ( i == WoWReforgedLearnableSkills__learnableSkillCounter ) + if ( (WoWReforgedLearnableSkills__learnableSkillSlot[(i)]) == slot ) then // INLINED!! + call UnitRemoveAbility(hero, (WoWReforgedLearnableSkills__learnableSkillLearnAbilityId[(i)])) // INLINED!! endif set i=i + 1 endloop @@ -33636,8 +33636,8 @@ endfunction function ResetAllLearnableSkillsForHero takes unit hero returns nothing local integer i= 0 loop - exitwhen ( i == WoWReforgedLearnableSkills___learnableSkillCounter ) - call UnitRemoveAbility(hero, (WoWReforgedLearnableSkills___learnableSkillLearnAbilityId[(i)])) // INLINED!! + exitwhen ( i == WoWReforgedLearnableSkills__learnableSkillCounter ) + call UnitRemoveAbility(hero, (WoWReforgedLearnableSkills__learnableSkillLearnAbilityId[(i)])) // INLINED!! set i=i + 1 endloop endfunction @@ -33646,8 +33646,8 @@ function CountLearnableSkills takes integer slot returns integer local integer result= 0 local integer i= 0 loop - exitwhen ( i == WoWReforgedLearnableSkills___learnableSkillCounter ) - if ( slot == - 1 or (WoWReforgedLearnableSkills___learnableSkillSlot[(i)]) == slot ) then // INLINED!! + exitwhen ( i == WoWReforgedLearnableSkills__learnableSkillCounter ) + if ( slot == - 1 or (WoWReforgedLearnableSkills__learnableSkillSlot[(i)]) == slot ) then // INLINED!! set result=result + 1 endif set i=i + 1 @@ -33659,10 +33659,10 @@ function RemoveAllLearnableSkillIconAbilities takes unit hero returns nothing local integer i= 0 //call BJDebugMsg("Remove icon abilities.") loop - exitwhen ( i == WoWReforgedLearnableSkills___learnableSkillCounter ) - if ( (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(i)]) != 0 and GetUnitAbilityLevel(hero, (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(i)])) > 0 ) then // INLINED!! + exitwhen ( i == WoWReforgedLearnableSkills__learnableSkillCounter ) + if ( (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(i)]) != 0 and GetUnitAbilityLevel(hero, (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(i)])) > 0 ) then // INLINED!! //call BJDebugMsg("remove icon ability " + GetObjectName(GetLearnableSkillIconAbilityId(i))) - call UnitRemoveAbility(hero, (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(i)])) // INLINED!! + call UnitRemoveAbility(hero, (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(i)])) // INLINED!! endif set i=i + 1 endloop @@ -33677,15 +33677,15 @@ function HideAllLearnableSkillIconAbilities takes unit hero,boolean hide returns set str="Show" endif loop - exitwhen ( i >= WoWReforgedLearnableSkills___learnableSkillCounter ) - if ( (WoWReforgedLearnableSkills___learnableSkillSlot[(i)]) == 4 ) then // INLINED!! - if ( (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(i)]) != 0 ) then // INLINED!! - if ( GetUnitAbilityLevel(hero, (WoWReforgedLearnableSkills___learnableSkillAbilityId[(i)])) > 0 ) then // INLINED!! + exitwhen ( i >= WoWReforgedLearnableSkills__learnableSkillCounter ) + if ( (WoWReforgedLearnableSkills__learnableSkillSlot[(i)]) == 4 ) then // INLINED!! + if ( (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(i)]) != 0 ) then // INLINED!! + if ( GetUnitAbilityLevel(hero, (WoWReforgedLearnableSkills__learnableSkillAbilityId[(i)])) > 0 ) then // INLINED!! //if (not hide) then // readding fixes the icon position - call UnitRemoveAbility(hero, (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(i)])) // INLINED!! - call UnitAddAbility(hero, (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(i)])) // INLINED!! - call SetUnitAbilityLevel(hero, (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(i)]), GetUnitAbilityLevel(hero, (WoWReforgedLearnableSkills___learnableSkillAbilityId[(i)]))) // INLINED!! + call UnitRemoveAbility(hero, (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(i)])) // INLINED!! + call UnitAddAbility(hero, (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(i)])) // INLINED!! + call SetUnitAbilityLevel(hero, (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(i)]), GetUnitAbilityLevel(hero, (WoWReforgedLearnableSkills__learnableSkillAbilityId[(i)]))) // INLINED!! //else // call BlzUnitHideAbility(hero, GetLearnableSkillIconAbilityId(i), hide) //endif @@ -33703,15 +33703,15 @@ function HideAllLearnableSkillIconAbilities takes unit hero,boolean hide returns endloop endfunction -function WoWReforgedLearnableSkills___TriggerConditionLearn takes nothing returns boolean +function WoWReforgedLearnableSkills__TriggerConditionLearn takes nothing returns boolean local integer index= GetLearnableSkillByAbilityId(GetLearnedSkill()) - if ( index != - 1 and (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(index)]) != 0 ) then // INLINED!! + if ( index != - 1 and (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(index)]) != 0 ) then // INLINED!! //call BJDebugMsg("Add icon ability " + GetObjectName(GetLearnableSkillIconAbilityId(index))) - if ( GetUnitAbilityLevel(GetTriggerUnit(), (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(index)])) == 0 ) then // INLINED!! - call UnitAddAbility(GetTriggerUnit(), (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(index)])) // INLINED!! + if ( GetUnitAbilityLevel(GetTriggerUnit(), (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(index)])) == 0 ) then // INLINED!! + call UnitAddAbility(GetTriggerUnit(), (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(index)])) // INLINED!! endif - call SetUnitAbilityLevel(GetTriggerUnit(), (WoWReforgedLearnableSkills___learnableSkillIconAbilityId[(index)]), GetUnitAbilityLevel(GetTriggerUnit(), GetLearnedSkill())) // INLINED!! + call SetUnitAbilityLevel(GetTriggerUnit(), (WoWReforgedLearnableSkills__learnableSkillIconAbilityId[(index)]), GetUnitAbilityLevel(GetTriggerUnit(), GetLearnedSkill())) // INLINED!! //call BJDebugMsg("Level " + I2S(GetUnitAbilityLevel(GetTriggerUnit(), GetLearnedSkill()))) endif @@ -33721,7 +33721,7 @@ function WoWReforgedLearnableSkills___TriggerConditionLearn takes nothing return return true endfunction -function WoWReforgedLearnableSkills___TriggerActionLearn takes nothing returns nothing +function WoWReforgedLearnableSkills__TriggerActionLearn takes nothing returns nothing local unit hero= GetTriggerUnit() // wait for hiding/unhiding and the skill point to be spent call TriggerSleepAction(0.03) @@ -33733,27 +33733,27 @@ function WoWReforgedLearnableSkills___TriggerActionLearn takes nothing returns n set hero=null endfunction -function WoWReforgedLearnableSkills___TriggerConditionUnlearn takes nothing returns boolean +function WoWReforgedLearnableSkills__TriggerConditionUnlearn takes nothing returns boolean call RemoveAllLearnableSkillIconAbilities((HeroUtils__unskilledHero)) // INLINED!! return false endfunction -function WoWReforgedLearnableSkills___FilterIsHero takes nothing returns boolean +function WoWReforgedLearnableSkills__FilterIsHero takes nothing returns boolean return IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) endfunction -function WoWReforgedLearnableSkills___ForGroupLearn takes nothing returns nothing +function WoWReforgedLearnableSkills__ForGroupLearn takes nothing returns nothing local unit hero= GetEnumUnit() call HideAllLearnableSkillIconAbilities(hero , GetHeroSkillPoints(hero) > 0 or GetHeroLevel(hero) < MAX_HERO_LEVEL) set hero=null endfunction -function WoWReforgedLearnableSkills___TimerFunctionLearn takes nothing returns nothing +function WoWReforgedLearnableSkills__TimerFunctionLearn takes nothing returns nothing local timer t= GetExpiredTimer() local group heroes= CreateGroup() - call GroupEnumUnitsInRect(heroes, GetPlayableMapRect(), Filter(function WoWReforgedLearnableSkills___FilterIsHero)) - call ForGroup(heroes, function WoWReforgedLearnableSkills___ForGroupLearn) + call GroupEnumUnitsInRect(heroes, GetPlayableMapRect(), Filter(function WoWReforgedLearnableSkills__FilterIsHero)) + call ForGroup(heroes, function WoWReforgedLearnableSkills__ForGroupLearn) call GroupClear(heroes) call DestroyGroup(heroes) set heroes=null @@ -33762,15 +33762,15 @@ function WoWReforgedLearnableSkills___TimerFunctionLearn takes nothing returns n set t=null endfunction -function WoWReforgedLearnableSkills___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkills___learnTrigger, EVENT_PLAYER_HERO_SKILL) - call TriggerAddCondition(WoWReforgedLearnableSkills___learnTrigger, Condition(function WoWReforgedLearnableSkills___TriggerConditionLearn)) - call TriggerAddAction(WoWReforgedLearnableSkills___learnTrigger, function WoWReforgedLearnableSkills___TriggerActionLearn) +function WoWReforgedLearnableSkills__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkills__learnTrigger, EVENT_PLAYER_HERO_SKILL) + call TriggerAddCondition(WoWReforgedLearnableSkills__learnTrigger, Condition(function WoWReforgedLearnableSkills__TriggerConditionLearn)) + call TriggerAddAction(WoWReforgedLearnableSkills__learnTrigger, function WoWReforgedLearnableSkills__TriggerActionLearn) - call TriggerRegisterHeroUnskillEvent(WoWReforgedLearnableSkills___unlearnTrigger) - call TriggerAddCondition(WoWReforgedLearnableSkills___unlearnTrigger, Condition(function WoWReforgedLearnableSkills___TriggerConditionUnlearn)) + call TriggerRegisterHeroUnskillEvent(WoWReforgedLearnableSkills__unlearnTrigger) + call TriggerAddCondition(WoWReforgedLearnableSkills__unlearnTrigger, Condition(function WoWReforgedLearnableSkills__TriggerConditionUnlearn)) - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedLearnableSkills___TimerFunctionLearn) + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedLearnableSkills__TimerFunctionLearn) endfunction @@ -33936,76 +33936,76 @@ endfunction //library WoWReforgedQuests: -function WoWReforgedQuests__AddQuestWoWReforged takes nothing returns integer - local integer index= WoWReforgedQuests__questsMax - set WoWReforgedQuests__questId[index]=udg_TmpString - set WoWReforgedQuests__questIcon[index]=WoWReforgedQuests__tmpIconPath - set WoWReforgedQuests__questTitle[index]=WoWReforgedQuests__tmpTitle - set WoWReforgedQuests__questDescription[index]=WoWReforgedQuests__tmpDescription - set WoWReforgedQuests__questNpc[index]=udg_TmpUnit - set WoWReforgedQuests__questReward[index]=udg_TmpItemTypeId - set WoWReforgedQuests__questRequirement[index]=WoWReforgedQuests__tmpRequirement - set WoWReforgedQuests__questsMax=WoWReforgedQuests__questsMax + 1 +function WoWReforgedQuests___AddQuestWoWReforged takes nothing returns integer + local integer index= WoWReforgedQuests___questsMax + set WoWReforgedQuests___questId[index]=udg_TmpString + set WoWReforgedQuests___questIcon[index]=WoWReforgedQuests___tmpIconPath + set WoWReforgedQuests___questTitle[index]=WoWReforgedQuests___tmpTitle + set WoWReforgedQuests___questDescription[index]=WoWReforgedQuests___tmpDescription + set WoWReforgedQuests___questNpc[index]=udg_TmpUnit + set WoWReforgedQuests___questReward[index]=udg_TmpItemTypeId + set WoWReforgedQuests___questRequirement[index]=WoWReforgedQuests___tmpRequirement + set WoWReforgedQuests___questsMax=WoWReforgedQuests___questsMax + 1 return index endfunction function GetQuestsMax takes nothing returns integer - return WoWReforgedQuests__questsMax + return WoWReforgedQuests___questsMax endfunction function GetQuestId takes integer q returns string - return WoWReforgedQuests__questId[q] + return WoWReforgedQuests___questId[q] endfunction function GetQuestIcon takes integer q returns string - return WoWReforgedQuests__questIcon[q] + return WoWReforgedQuests___questIcon[q] endfunction function GetQuestTitle takes integer q returns string - return WoWReforgedQuests__questTitle[q] + return WoWReforgedQuests___questTitle[q] endfunction function GetQuestDescription takes integer q returns string - return WoWReforgedQuests__questDescription[q] + return WoWReforgedQuests___questDescription[q] endfunction function GetQuestNpc takes integer q returns unit - return WoWReforgedQuests__questNpc[q] + return WoWReforgedQuests___questNpc[q] endfunction function GetQuestReward takes integer q returns integer - return WoWReforgedQuests__questReward[q] + return WoWReforgedQuests___questReward[q] endfunction function GetQuestRequirement takes integer q returns integer - return WoWReforgedQuests__questRequirement[q] + return WoWReforgedQuests___questRequirement[q] endfunction function SetQuestRequirementToLast takes nothing returns nothing - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! endfunction function SetQuestNoRequirement takes nothing returns nothing - set WoWReforgedQuests__tmpRequirement=- 1 + set WoWReforgedQuests___tmpRequirement=- 1 endfunction -function WoWReforgedQuests__CreateQuestBJHook takes integer questType,string title,string description,string iconPath returns nothing +function WoWReforgedQuests___CreateQuestBJHook takes integer questType,string title,string description,string iconPath returns nothing local boolean required= ( questType == bj_QUESTTYPE_REQ_DISCOVERED ) or ( questType == bj_QUESTTYPE_REQ_UNDISCOVERED ) if ( not required ) then - set WoWReforgedQuests__tmpIconPath=iconPath - set WoWReforgedQuests__tmpTitle=GetLocalizedString(title) - set WoWReforgedQuests__tmpDescription=GetLocalizedString(description) // Barade: this leads some how to a cut off string on the website + set WoWReforgedQuests___tmpIconPath=iconPath + set WoWReforgedQuests___tmpTitle=GetLocalizedString(title) + set WoWReforgedQuests___tmpDescription=GetLocalizedString(description) // Barade: this leads some how to a cut off string on the website - call WoWReforgedQuests__AddQuestWoWReforged() + call WoWReforgedQuests___AddQuestWoWReforged() endif endfunction -//processed hook: hook CreateQuestBJ WoWReforgedQuests__CreateQuestBJHook +//processed hook: hook CreateQuestBJ WoWReforgedQuests___CreateQuestBJHook function ShowQuestRewards takes player whichPlayer returns nothing - local integer max= (WoWReforgedQuests__questsMax) // INLINED!! + local integer max= (WoWReforgedQuests___questsMax) // INLINED!! local string message= "" local integer i= 0 loop @@ -34013,7 +34013,7 @@ function ShowQuestRewards takes player whichPlayer returns nothing if ( i > 0 ) then set message=message + ", " endif - set message=message + (WoWReforgedQuests__questTitle[(i)]) + ": " + GetObjectName((WoWReforgedQuests__questReward[(i)])) // INLINED!! + set message=message + (WoWReforgedQuests___questTitle[(i)]) + ": " + GetObjectName((WoWReforgedQuests___questReward[(i)])) // INLINED!! set i=i + 1 endloop call h__DisplayTimedTextToPlayer(whichPlayer, 0.0, 0.0, 15.0, message) @@ -34052,13 +34052,13 @@ endfunction //library WoWReforgedTextTag: -function WoWReforgedTextTag__ForFunctionShowTextTag takes nothing returns nothing - if ( WoWReforgedTextTag__tmpPlayer == GetLocalPlayer() ) then - call SetTextTagVisibility((TextTagUtils__enumTextTag), WoWReforgedTextTag__tmpShow) // INLINED!! +function WoWReforgedTextTag___ForFunctionShowTextTag takes nothing returns nothing + if ( WoWReforgedTextTag___tmpPlayer == GetLocalPlayer() ) then + call SetTextTagVisibility((TextTagUtils__enumTextTag), WoWReforgedTextTag___tmpShow) // INLINED!! endif endfunction -function WoWReforgedTextTag__ShowPlayerSelectionTextTags takes player whichPlayer returns nothing +function WoWReforgedTextTag___ShowPlayerSelectionTextTags takes player whichPlayer returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) @@ -34075,11 +34075,11 @@ function WoWReforgedTextTag__ShowPlayerSelectionTextTags takes player whichPlaye endfunction function ShowAllTextTagsForPlayer takes player whichPlayer,boolean show returns nothing - set WoWReforgedTextTag__tmpPlayer=whichPlayer - set WoWReforgedTextTag__tmpShow=show - call ForAllTextTags(function WoWReforgedTextTag__ForFunctionShowTextTag) + set WoWReforgedTextTag___tmpPlayer=whichPlayer + set WoWReforgedTextTag___tmpShow=show + call ForAllTextTags(function WoWReforgedTextTag___ForFunctionShowTextTag) if ( show ) then - call WoWReforgedTextTag__ShowPlayerSelectionTextTags(whichPlayer) + call WoWReforgedTextTag___ShowPlayerSelectionTextTags(whichPlayer) endif endfunction @@ -34088,7 +34088,7 @@ endfunction //library WoWReforgedTreeUtils: -function WoWReforgedTreeUtils___Init takes nothing returns nothing +function WoWReforgedTreeUtils__Init takes nothing returns nothing call AddTree(EASTERN_TREE_WALL_1) call AddTree(CARROT_TREE_WALL_1) call AddTree(CARROT_TREE_WALL_2) @@ -34310,13 +34310,13 @@ endfunction function StopDrainResources takes unit caster returns boolean local integer handleId= 0 - if ( IsUnitInGroup(caster, DrainResources___casters) ) then - call GroupRemoveUnit(DrainResources___casters, caster) + if ( IsUnitInGroup(caster, DrainResources__casters) ) then + call GroupRemoveUnit(DrainResources__casters, caster) set handleId=GetHandleId(caster) - call DestroyLightning(LoadLightningHandle(DrainResources___h, handleId, 1)) - call FlushChildHashtable(DrainResources___h, handleId) - if ( BlzGroupGetSize(DrainResources___casters) == 0 ) then - call PauseTimer(DrainResources___t) + call DestroyLightning(LoadLightningHandle(DrainResources__h, handleId, 1)) + call FlushChildHashtable(DrainResources__h, handleId) + if ( BlzGroupGetSize(DrainResources__casters) == 0 ) then + call PauseTimer(DrainResources__t) endif return true endif @@ -34324,17 +34324,17 @@ function StopDrainResources takes unit caster returns boolean return false endfunction -function DrainResources___IsDrainedResource takes integer index returns boolean +function DrainResources__IsDrainedResource takes integer index returns boolean local integer r= (s__Resource_resources[(index)]) // INLINED!! return r != Resources_GOLD and r != Resources_LUMBER and r != Resources_FOOD and r != Resources_FOOD_MAX endfunction -function DrainResources___Heal takes unit caster,integer amount returns nothing +function DrainResources__Heal takes unit caster,integer amount returns nothing call SetUnitLifeBJ(caster, RMinBJ(GetUnitState(caster, UNIT_STATE_LIFE) + I2R(amount), GetUnitState(caster, UNIT_STATE_MAX_LIFE))) call SetUnitManaBJ(caster, RMinBJ(GetUnitState(caster, UNIT_STATE_MANA) + I2R(amount), GetUnitState(caster, UNIT_STATE_MAX_MANA))) endfunction -function DrainResources___TimerFunctionDrainResources takes nothing returns nothing +function DrainResources__TimerFunctionDrainResources takes nothing returns nothing local unit caster= null local integer casterHandleId= 0 local unit target= null @@ -34349,17 +34349,17 @@ function DrainResources___TimerFunctionDrainResources takes nothing returns noth local integer j= 0 local integer i= 0 loop - exitwhen ( i == BlzGroupGetSize(DrainResources___casters) ) - set caster=BlzGroupUnitAt(DrainResources___casters, i) + exitwhen ( i == BlzGroupGetSize(DrainResources__casters) ) + set caster=BlzGroupUnitAt(DrainResources__casters, i) set owner=GetOwningPlayer(caster) set casterHandleId=GetHandleId(caster) - set target=LoadUnitHandle(DrainResources___h, casterHandleId, 0) + set target=LoadUnitHandle(DrainResources__h, casterHandleId, 0) if ( target == null ) then - set targetTree=LoadDestructableHandle(DrainResources___h, casterHandleId, 0) + set targetTree=LoadDestructableHandle(DrainResources__h, casterHandleId, 0) endif - set abilityId=LoadInteger(DrainResources___h, casterHandleId, 3) + set abilityId=LoadInteger(DrainResources__h, casterHandleId, 3) set atLeastOneResource=false if ( abilityId == DrainResources_ABILITY_ID ) then set spellDrainedAmount=1 + 3 * GetUnitAbilityLevel(caster, abilityId) @@ -34372,7 +34372,7 @@ function DrainResources___TimerFunctionDrainResources takes nothing returns noth if ( drainedAmount > 0 ) then call AddResourceAmount(target, drainedAmount * - 1) call AdjustPlayerStateBJ(drainedAmount, owner, PLAYER_STATE_RESOURCE_GOLD) - call DrainResources___Heal(caster , drainedAmount) + call DrainResources__Heal(caster , drainedAmount) set atLeastOneResource=true endif @@ -34380,13 +34380,13 @@ function DrainResources___TimerFunctionDrainResources takes nothing returns noth set j=0 loop exitwhen ( j == maxResources ) - if ( DrainResources___IsDrainedResource(j) ) then + if ( DrainResources__IsDrainedResource(j) ) then set r=(s__Resource_resources[(j)]) // INLINED!! set drainedAmount=IMinBJ(spellDrainedAmount, (LoadInteger(Resources__h, GetHandleId((target )), Resources__Index2D(( r) , Resources__KEY_RESOURCE , Resources__KEY_MAX)))) // INLINED!! if ( drainedAmount > 0 ) then call SetUnitResource(target , r , (LoadInteger(Resources__h, GetHandleId((target )), Resources__Index2D(( r) , Resources__KEY_RESOURCE , Resources__KEY_MAX))) - drainedAmount) // INLINED!! call SetPlayerResource(owner , r , GetPlayerResource(owner , r) + drainedAmount) - call DrainResources___Heal(caster , drainedAmount) + call DrainResources__Heal(caster , drainedAmount) set atLeastOneResource=true endif endif @@ -34397,7 +34397,7 @@ function DrainResources___TimerFunctionDrainResources takes nothing returns noth if ( drainedAmount > 0 ) then call SetDestructableLife(targetTree, GetDestructableLife(targetTree) - I2R(drainedAmount)) call AdjustPlayerStateBJ(drainedAmount, owner, PLAYER_STATE_RESOURCE_LUMBER) - call DrainResources___Heal(caster , drainedAmount) + call DrainResources__Heal(caster , drainedAmount) set atLeastOneResource=true endif endif @@ -34414,7 +34414,7 @@ function DrainResources___TimerFunctionDrainResources takes nothing returns noth endloop endfunction -function DrainResources___TargetHasCustomResources takes unit target returns boolean +function DrainResources__TargetHasCustomResources takes unit target returns boolean local integer r= 0 local integer maxResources= (s__Resource_resourcesCount) // INLINED!! local integer j= 0 @@ -34431,14 +34431,14 @@ endfunction function DrainResources takes integer abilityId,unit caster,unit target returns nothing local integer handleId= 0 - if ( GetResourceAmount(target) > 0 or DrainResources___TargetHasCustomResources(target) ) then - call GroupAddUnit(DrainResources___casters, caster) + if ( GetResourceAmount(target) > 0 or DrainResources__TargetHasCustomResources(target) ) then + call GroupAddUnit(DrainResources__casters, caster) set handleId=GetHandleId(caster) - call SaveUnitHandle(DrainResources___h, handleId, 0, target) - call SaveLightningHandle(DrainResources___h, handleId, 1, AddLightning("DRAB", true, GetUnitX(caster), GetUnitY(caster), GetUnitX(target), GetUnitY(target))) - call SaveInteger(DrainResources___h, handleId, 3, abilityId) - if ( BlzGroupGetSize(DrainResources___casters) == 1 ) then - call TimerStart(DrainResources___t, DrainResources_TIMER_INTERVAL, true, function DrainResources___TimerFunctionDrainResources) + call SaveUnitHandle(DrainResources__h, handleId, 0, target) + call SaveLightningHandle(DrainResources__h, handleId, 1, AddLightning("DRAB", true, GetUnitX(caster), GetUnitY(caster), GetUnitX(target), GetUnitY(target))) + call SaveInteger(DrainResources__h, handleId, 3, abilityId) + if ( BlzGroupGetSize(DrainResources__casters) == 1 ) then + call TimerStart(DrainResources__t, DrainResources_TIMER_INTERVAL, true, function DrainResources__TimerFunctionDrainResources) endif else call IssueImmediateOrder(caster, "stop") @@ -34449,13 +34449,13 @@ endfunction function DrainResourcesTree takes integer abilityId,unit caster,destructable target returns nothing local integer handleId= 0 if ( (IsTree(GetDestructableTypeId((target)))) ) then // INLINED!! - call GroupAddUnit(DrainResources___casters, caster) + call GroupAddUnit(DrainResources__casters, caster) set handleId=GetHandleId(caster) - call SaveDestructableHandle(DrainResources___h, handleId, 0, target) - call SaveLightningHandle(DrainResources___h, handleId, 1, AddLightning("DRAB", true, GetUnitX(caster), GetUnitY(caster), GetDestructableX(target), GetDestructableY(target))) - call SaveInteger(DrainResources___h, handleId, 3, abilityId) - if ( BlzGroupGetSize(DrainResources___casters) == 1 ) then - call TimerStart(DrainResources___t, DrainResources_TIMER_INTERVAL, true, function DrainResources___TimerFunctionDrainResources) + call SaveDestructableHandle(DrainResources__h, handleId, 0, target) + call SaveLightningHandle(DrainResources__h, handleId, 1, AddLightning("DRAB", true, GetUnitX(caster), GetUnitY(caster), GetDestructableX(target), GetDestructableY(target))) + call SaveInteger(DrainResources__h, handleId, 3, abilityId) + if ( BlzGroupGetSize(DrainResources__casters) == 1 ) then + call TimerStart(DrainResources__t, DrainResources_TIMER_INTERVAL, true, function DrainResources__TimerFunctionDrainResources) endif else call IssueImmediateOrder(caster, "stop") @@ -34463,7 +34463,7 @@ function DrainResourcesTree takes integer abilityId,unit caster,destructable tar endif endfunction -function DrainResources___TriggerConditionCast takes nothing returns boolean +function DrainResources__TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == DrainResources_ABILITY_ID or GetSpellAbilityId() == DrainResources_ABILITY_ID_ITEM ) then if ( GetSpellTargetUnit() != null ) then call DrainResources(GetSpellAbilityId() , GetTriggerUnit() , GetSpellTargetUnit()) @@ -34476,22 +34476,22 @@ function DrainResources___TriggerConditionCast takes nothing returns boolean return false endfunction -function DrainResources___TriggerConditionStop takes nothing returns boolean - if ( IsUnitInGroup(GetTriggerUnit(), DrainResources___casters) ) then +function DrainResources__TriggerConditionStop takes nothing returns boolean + if ( IsUnitInGroup(GetTriggerUnit(), DrainResources__casters) ) then call StopDrainResources(GetTriggerUnit()) endif return false endfunction -function DrainResources___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(DrainResources___castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(DrainResources___castTrigger, Condition(function DrainResources___TriggerConditionCast)) +function DrainResources__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(DrainResources__castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(DrainResources__castTrigger, Condition(function DrainResources__TriggerConditionCast)) - call TriggerRegisterAnyUnitEventBJ(DrainResources___stopTrigger, EVENT_PLAYER_UNIT_ISSUED_ORDER) - call TriggerRegisterAnyUnitEventBJ(DrainResources___stopTrigger, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER) - call TriggerRegisterAnyUnitEventBJ(DrainResources___stopTrigger, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER) - call TriggerRegisterAnyUnitEventBJ(DrainResources___stopTrigger, EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER) - call TriggerAddCondition(DrainResources___stopTrigger, Condition(function DrainResources___TriggerConditionStop)) + call TriggerRegisterAnyUnitEventBJ(DrainResources__stopTrigger, EVENT_PLAYER_UNIT_ISSUED_ORDER) + call TriggerRegisterAnyUnitEventBJ(DrainResources__stopTrigger, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER) + call TriggerRegisterAnyUnitEventBJ(DrainResources__stopTrigger, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER) + call TriggerRegisterAnyUnitEventBJ(DrainResources__stopTrigger, EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER) + call TriggerAddCondition(DrainResources__stopTrigger, Condition(function DrainResources__TriggerConditionStop)) endfunction @@ -34990,30 +34990,30 @@ endfunction function AddMaxHpResearchAbsolute takes integer id,integer maxHpBase,integer maxHpLevel returns integer local integer this= s__R__allocate() - local integer index= MaxHpResearch___researchesCounter + local integer index= MaxHpResearch__researchesCounter set s__R_id[this]=id set s__R_maxHpBase[this]=maxHpBase set s__R_maxHpLevel[this]=maxHpLevel set s__R_isPercentage[this]=false - set MaxHpResearch___researches[index]=this - set MaxHpResearch___researchesCounter=MaxHpResearch___researchesCounter + 1 + set MaxHpResearch__researches[index]=this + set MaxHpResearch__researchesCounter=MaxHpResearch__researchesCounter + 1 return this endfunction function AddMaxHpResearchPercentage takes integer id,real percentageBase,real percentageLevel returns integer local integer this= s__R__allocate() - local integer index= MaxHpResearch___researchesCounter + local integer index= MaxHpResearch__researchesCounter set s__R_id[this]=id set s__R_percentageBase[this]=percentageBase set s__R_percentageLevel[this]=percentageLevel set s__R_isPercentage[this]=true - set MaxHpResearch___researches[index]=this - set MaxHpResearch___researchesCounter=MaxHpResearch___researchesCounter + 1 + set MaxHpResearch__researches[index]=this + set MaxHpResearch__researchesCounter=MaxHpResearch__researchesCounter + 1 return this endfunction @@ -35050,8 +35050,8 @@ endfunction function ApplyAllMaxHpResearches takes unit whichUnit,player previousOwner returns nothing local integer i= 0 loop - exitwhen ( i == MaxHpResearch___researchesCounter ) - call ApplyMaxHpResearch(whichUnit , MaxHpResearch___researches[i] , previousOwner) + exitwhen ( i == MaxHpResearch__researchesCounter ) + call ApplyMaxHpResearch(whichUnit , MaxHpResearch__researches[i] , previousOwner) set i=i + 1 endloop endfunction @@ -35059,25 +35059,25 @@ endfunction function GetMaxHpResearch takes integer id returns integer local integer i= 0 loop - exitwhen ( i == MaxHpResearch___researchesCounter ) - if ( s__R_id[MaxHpResearch___researches[i]] == id ) then - return MaxHpResearch___researches[i] + exitwhen ( i == MaxHpResearch__researchesCounter ) + if ( s__R_id[MaxHpResearch__researches[i]] == id ) then + return MaxHpResearch__researches[i] endif set i=i + 1 endloop return 0 endfunction -function MaxHpResearch___FilterIsAffectedUnit takes nothing returns boolean - return UnitHasMaxHpResearch(GetFilterUnit() , s__R_id[MaxHpResearch___filterResearch]) +function MaxHpResearch__FilterIsAffectedUnit takes nothing returns boolean + return UnitHasMaxHpResearch(GetFilterUnit() , s__R_id[MaxHpResearch__filterResearch]) endfunction function ApplyMaxHpResearchesToAllUnits takes player whichPlayer,integer research returns nothing local group g= CreateGroup() local integer i= 0 local integer max= 0 - set MaxHpResearch___filterResearch=research - call GroupEnumUnitsOfPlayer(g, whichPlayer, Filter(function MaxHpResearch___FilterIsAffectedUnit)) + set MaxHpResearch__filterResearch=research + call GroupEnumUnitsOfPlayer(g, whichPlayer, Filter(function MaxHpResearch__FilterIsAffectedUnit)) set max=BlzGroupGetSize(g) loop exitwhen ( i == max ) @@ -35089,27 +35089,27 @@ function ApplyMaxHpResearchesToAllUnits takes player whichPlayer,integer researc set g=null endfunction -function MaxHpResearch___TriggerConditionTrain takes nothing returns boolean +function MaxHpResearch__TriggerConditionTrain takes nothing returns boolean call ApplyAllMaxHpResearches(GetTrainedUnit() , null) return false endfunction -function MaxHpResearch___TriggerConditionSummon takes nothing returns boolean +function MaxHpResearch__TriggerConditionSummon takes nothing returns boolean call ApplyAllMaxHpResearches(GetSummonedUnit() , null) return false endfunction -function MaxHpResearch___TriggerConditionSell takes nothing returns boolean +function MaxHpResearch__TriggerConditionSell takes nothing returns boolean call ApplyAllMaxHpResearches(GetSoldUnit() , null) return false endfunction -function MaxHpResearch___TriggerConditionChangeOwner takes nothing returns boolean +function MaxHpResearch__TriggerConditionChangeOwner takes nothing returns boolean call ApplyAllMaxHpResearches(GetTriggerUnit() , GetChangingUnitPrevOwner()) return false endfunction -function MaxHpResearch___TriggerConditionResearch takes nothing returns boolean +function MaxHpResearch__TriggerConditionResearch takes nothing returns boolean local integer r= GetMaxHpResearch(GetResearched()) if ( r != 0 ) then call ApplyMaxHpResearchesToAllUnits(GetOwningPlayer(GetTriggerUnit()) , r) @@ -35117,29 +35117,29 @@ function MaxHpResearch___TriggerConditionResearch takes nothing returns boolean return false endfunction -function MaxHpResearch___TriggerConditionUpgrade takes nothing returns boolean +function MaxHpResearch__TriggerConditionUpgrade takes nothing returns boolean call ApplyAllMaxHpResearches(GetTriggerUnit() , null) return false endfunction -function MaxHpResearch___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(MaxHpResearch___trainTrigger, EVENT_PLAYER_UNIT_TRAIN_FINISH) - call TriggerAddCondition(MaxHpResearch___trainTrigger, Condition(function MaxHpResearch___TriggerConditionTrain)) +function MaxHpResearch__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(MaxHpResearch__trainTrigger, EVENT_PLAYER_UNIT_TRAIN_FINISH) + call TriggerAddCondition(MaxHpResearch__trainTrigger, Condition(function MaxHpResearch__TriggerConditionTrain)) - call TriggerRegisterAnyUnitEventBJ(MaxHpResearch___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(MaxHpResearch___summonTrigger, Condition(function MaxHpResearch___TriggerConditionSummon)) + call TriggerRegisterAnyUnitEventBJ(MaxHpResearch__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(MaxHpResearch__summonTrigger, Condition(function MaxHpResearch__TriggerConditionSummon)) - call TriggerRegisterAnyUnitEventBJ(MaxHpResearch___sellTrigger, EVENT_PLAYER_UNIT_SELL) - call TriggerAddCondition(MaxHpResearch___sellTrigger, Condition(function MaxHpResearch___TriggerConditionSell)) + call TriggerRegisterAnyUnitEventBJ(MaxHpResearch__sellTrigger, EVENT_PLAYER_UNIT_SELL) + call TriggerAddCondition(MaxHpResearch__sellTrigger, Condition(function MaxHpResearch__TriggerConditionSell)) - call TriggerRegisterAnyUnitEventBJ(MaxHpResearch___changeOwnerTrigger, EVENT_PLAYER_UNIT_CHANGE_OWNER) - call TriggerAddCondition(MaxHpResearch___changeOwnerTrigger, Condition(function MaxHpResearch___TriggerConditionChangeOwner)) + call TriggerRegisterAnyUnitEventBJ(MaxHpResearch__changeOwnerTrigger, EVENT_PLAYER_UNIT_CHANGE_OWNER) + call TriggerAddCondition(MaxHpResearch__changeOwnerTrigger, Condition(function MaxHpResearch__TriggerConditionChangeOwner)) - call TriggerRegisterAnyUnitEventBJ(MaxHpResearch___researchTrigger, EVENT_PLAYER_UNIT_RESEARCH_FINISH) - call TriggerAddCondition(MaxHpResearch___researchTrigger, Condition(function MaxHpResearch___TriggerConditionResearch)) + call TriggerRegisterAnyUnitEventBJ(MaxHpResearch__researchTrigger, EVENT_PLAYER_UNIT_RESEARCH_FINISH) + call TriggerAddCondition(MaxHpResearch__researchTrigger, Condition(function MaxHpResearch__TriggerConditionResearch)) - call TriggerRegisterAnyUnitEventBJ(MaxHpResearch___upgradeTrigger, EVENT_PLAYER_UNIT_UPGRADE_FINISH) - call TriggerAddCondition(MaxHpResearch___upgradeTrigger, Condition(function MaxHpResearch___TriggerConditionUpgrade)) + call TriggerRegisterAnyUnitEventBJ(MaxHpResearch__upgradeTrigger, EVENT_PLAYER_UNIT_UPGRADE_FINISH) + call TriggerAddCondition(MaxHpResearch__upgradeTrigger, Condition(function MaxHpResearch__TriggerConditionUpgrade)) endfunction @@ -37016,7 +37016,7 @@ endfunction function onDestHit takes integer kb,destructable hit returns nothing if GetDestructableTypeId(hit) == 'LTex' then call s__Knockback_deallocate(kb) - call DestroyEffect(AddSpecialEffect(Push___EXPLOSION_EFFECT, GetDestructableX(hit), GetDestructableY(hit))) + call DestroyEffect(AddSpecialEffect(Push__EXPLOSION_EFFECT, GetDestructableX(hit), GetDestructableY(hit))) call KillDestructable(hit) call UnitDamagePoint(s__Knockback_caster[kb], 0.15, 175., GetDestructableX(hit), GetDestructableY(hit), 150.00, false, true, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_FIRE, null) call RemoveDestructable(hit) @@ -37035,11 +37035,11 @@ endfunction local real angle= ( Atan2(( GetUnitY(s__Knockback_target[kb]) - GetUnitY(hit) ), ( GetUnitX(s__Knockback_target[kb]) - GetUnitX(hit) )) - 180 ) * bj_RADTODEG call UnitDamageTarget(s__Knockback_caster[kb], hit, 7.5, false, true, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC, null) if not s__Knockback_isUnitKnockedBack(hit) then - call s__Knockback_create(s__Knockback_caster[kb] , hit , s__Knockback_distance[kb] * 0.5 , s__Knockback_duration[kb] * 0.5 , angle , Push___FireBallKnockbackType) + call s__Knockback_create(s__Knockback_caster[kb] , hit , s__Knockback_distance[kb] * 0.5 , s__Knockback_duration[kb] * 0.5 , angle , Push__FireBallKnockbackType) endif endfunction - function Push___FilterTargets takes nothing returns boolean + function Push__FilterTargets takes nothing returns boolean return IsUnitAliveBJ(GetFilterUnit()) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_FLYING) endfunction @@ -37053,14 +37053,14 @@ endfunction local real angle= 0.0 local integer i= 0 local integer targetCounter= 0 - call GroupEnumUnitsInRange(targets, x, y, 900.0, Filter(function Push___FilterTargets)) + call GroupEnumUnitsInRange(targets, x, y, 900.0, Filter(function Push__FilterTargets)) loop exitwhen ( i == BlzGroupGetSize(targets) ) set target=BlzGroupUnitAt(targets, i) if ( IsUnitEnemy(target, casterOwner) ) then set targetLoc=GetUnitLoc(target) set angle=AngleBetweenPoints(casterLoc, targetLoc) - call s__Knockback_addSpecialEffect(s__Knockback_create(caster , target , 500. , 1.5 , angle , Push___FireBallKnockbackType),Push___EFFECT , "origin") + call s__Knockback_addSpecialEffect(s__Knockback_create(caster , target , 500. , 1.5 , angle , Push__FireBallKnockbackType),Push__EFFECT , "origin") call RemoveLocation(targetLoc) set targetLoc=null set targetCounter=targetCounter + 1 @@ -37081,11 +37081,11 @@ endfunction endfunction //init - function Push___onInit takes nothing returns nothing - set Push___FireBallKnockbackType=s__KnockbackType__allocate() - set s__KnockbackType_onDestructableHitAction[Push___FireBallKnockbackType]=(1) - set s__KnockbackType_onUnitHitAction[Push___FireBallKnockbackType]=(1) - set s__KnockbackType_filterFunc[Push___FireBallKnockbackType]=(1) + function Push__onInit takes nothing returns nothing + set Push__FireBallKnockbackType=s__KnockbackType__allocate() + set s__KnockbackType_onDestructableHitAction[Push__FireBallKnockbackType]=(1) + set s__KnockbackType_onUnitHitAction[Push__FireBallKnockbackType]=(1) + set s__KnockbackType_filterFunc[Push__FireBallKnockbackType]=(1) endfunction @@ -38421,36 +38421,36 @@ endfunction function GetTauntsCount takes nothing returns integer - return Taunts___TauntsCount + return Taunts__TauntsCount endfunction function GetTauntChatCommand takes integer taunt returns string - return Taunts___TauntChatCommands[taunt] + return Taunts__TauntChatCommands[taunt] endfunction function GetTauntText takes integer taunt returns string - return Taunts___TauntTexts[taunt] + return Taunts__TauntTexts[taunt] endfunction function GetTauntSound takes integer taunt returns sound - return Taunts___TauntSounds[taunt] + return Taunts__TauntSounds[taunt] endfunction function SetPlayerTauntsEnabled takes player whichPlayer,boolean enabled returns nothing - set Taunts___TauntsEnabled[GetPlayerId(whichPlayer)]=enabled + set Taunts__TauntsEnabled[GetPlayerId(whichPlayer)]=enabled endfunction function IsPlayerTauntsEnabled takes player whichPlayer returns boolean - return Taunts___TauntsEnabled[GetPlayerId(whichPlayer)] + 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!! + local integer max= (Taunts__TauntsCount) // INLINED!! loop exitwhen ( i == max ) - set text=text + ", " + (Taunts___TauntChatCommands[(i)]) // INLINED!! + set text=text + ", " + (Taunts__TauntChatCommands[(i)]) // INLINED!! set i=i + 1 endloop return text @@ -38462,9 +38462,9 @@ function PlayPlayerTaunt takes player whichPlayer,integer taunt returns nothing loop exitwhen ( i == bj_MAX_PLAYERS ) set slotPlayer=Player(i) - if ( (Taunts___TauntsEnabled[GetPlayerId((slotPlayer))]) ) then // INLINED!! + if ( (Taunts__TauntsEnabled[GetPlayerId((slotPlayer))]) ) then // INLINED!! if ( slotPlayer == GetLocalPlayer() ) then - call StartSound((Taunts___TauntSounds[(taunt)])) // INLINED!! + call StartSound((Taunts__TauntSounds[(taunt)])) // INLINED!! endif endif set slotPlayer=null @@ -38472,29 +38472,29 @@ function PlayPlayerTaunt takes player whichPlayer,integer taunt returns nothing 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!! + 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) +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 + 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 +function Taunts__AddQuestItemSpecific takes string description returns nothing call CreateQuestItem(bj_lastCreatedQuest , (description)) // INLINED!! @@ -38505,35 +38505,35 @@ 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!! + local integer max= (Taunts__TauntsCount) // INLINED!! - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // 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!! + 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!! +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!! +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 +function Taunts__TriggerConditionTaunts takes nothing returns boolean local string msg= "Taunts (disabled): " - if ( (Taunts___TauntsEnabled[GetPlayerId((GetTriggerPlayer()))]) ) then // INLINED!! + if ( (Taunts__TauntsEnabled[GetPlayerId((GetTriggerPlayer()))]) ) then // INLINED!! set msg="Taunts (enabled): " endif set msg=msg + GetTauntsChatCommands() @@ -38541,19 +38541,19 @@ function Taunts___TriggerConditionTaunts takes nothing returns boolean return false endfunction -function Taunts___Init takes nothing returns nothing +function Taunts__Init takes nothing returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) - set Taunts___TauntsEnabled[i]=true + 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)) + 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 @@ -41581,7 +41581,7 @@ function AddVersion takes string v returns nothing local string description= "All changes of " + v + "." call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, v, description, "ReplaceableTextures\\CommandButtons\\BTNEngineeringUpgrade.blp") set WoWReforgedChangeLog___versionQuests[WoWReforgedChangeLog___versionQuestsCounter]=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call QuestSetTitleHook(GetLastCreatedQuestBJ() , v) call QuestSetDescriptionHook(GetLastCreatedQuestBJ() , description) set WoWReforgedChangeLog___versionQuestsCounter=WoWReforgedChangeLog___versionQuestsCounter + 1 @@ -45973,22 +45973,22 @@ endfunction //library WoWReforgedDayNightCycleEffects: -function WoWReforgedDayNightCycleEffects__AddDestructableEx takes integer id,boolean hide,real hideDelay returns nothing - set WoWReforgedDayNightCycleEffects__destructableIds[WoWReforgedDayNightCycleEffects__destructableIdsCounter]=id - set WoWReforgedDayNightCycleEffects__destructableHide[WoWReforgedDayNightCycleEffects__destructableIdsCounter]=hide - set WoWReforgedDayNightCycleEffects__destructableHideDelay[WoWReforgedDayNightCycleEffects__destructableIdsCounter]=hideDelay - set WoWReforgedDayNightCycleEffects__destructableIdsCounter=WoWReforgedDayNightCycleEffects__destructableIdsCounter + 1 +function WoWReforgedDayNightCycleEffects___AddDestructableEx takes integer id,boolean hide,real hideDelay returns nothing + set WoWReforgedDayNightCycleEffects___destructableIds[WoWReforgedDayNightCycleEffects___destructableIdsCounter]=id + set WoWReforgedDayNightCycleEffects___destructableHide[WoWReforgedDayNightCycleEffects___destructableIdsCounter]=hide + set WoWReforgedDayNightCycleEffects___destructableHideDelay[WoWReforgedDayNightCycleEffects___destructableIdsCounter]=hideDelay + set WoWReforgedDayNightCycleEffects___destructableIdsCounter=WoWReforgedDayNightCycleEffects___destructableIdsCounter + 1 endfunction -function WoWReforgedDayNightCycleEffects__AddDestructable takes integer id returns nothing - call WoWReforgedDayNightCycleEffects__AddDestructableEx(id , false , 0.0) +function WoWReforgedDayNightCycleEffects___AddDestructable takes integer id returns nothing + call WoWReforgedDayNightCycleEffects___AddDestructableEx(id , false , 0.0) endfunction -function WoWReforgedDayNightCycleEffects__GetDestructableIndex takes integer id returns integer +function WoWReforgedDayNightCycleEffects___GetDestructableIndex takes integer id returns integer local integer i= 0 loop - exitwhen ( i >= WoWReforgedDayNightCycleEffects__destructableIdsCounter ) - if ( WoWReforgedDayNightCycleEffects__destructableIds[i] == id ) then + exitwhen ( i >= WoWReforgedDayNightCycleEffects___destructableIdsCounter ) + if ( WoWReforgedDayNightCycleEffects___destructableIds[i] == id ) then return i endif set i=i + 1 @@ -45996,97 +45996,97 @@ function WoWReforgedDayNightCycleEffects__GetDestructableIndex takes integer id return - 1 endfunction -function WoWReforgedDayNightCycleEffects__FilterIsDayNightDestructable takes nothing returns boolean - return WoWReforgedDayNightCycleEffects__GetDestructableIndex(GetDestructableTypeId(GetFilterDestructable())) != - 1 +function WoWReforgedDayNightCycleEffects___FilterIsDayNightDestructable takes nothing returns boolean + return WoWReforgedDayNightCycleEffects___GetDestructableIndex(GetDestructableTypeId(GetFilterDestructable())) != - 1 endfunction -function WoWReforgedDayNightCycleEffects__EnumDestructableDayEffect takes nothing returns nothing - local integer index= WoWReforgedDayNightCycleEffects__GetDestructableIndex(GetDestructableTypeId(GetEnumDestructable())) - if ( WoWReforgedDayNightCycleEffects__destructableHide[index] ) then +function WoWReforgedDayNightCycleEffects___EnumDestructableDayEffect takes nothing returns nothing + local integer index= WoWReforgedDayNightCycleEffects___GetDestructableIndex(GetDestructableTypeId(GetEnumDestructable())) + if ( WoWReforgedDayNightCycleEffects___destructableHide[index] ) then call ShowDestructable(GetEnumDestructable(), true) endif call SetDestructableAnimation(GetEnumDestructable(), "Stand") endfunction -function WoWReforgedDayNightCycleEffects__EnumDestructableNightEffect takes nothing returns nothing - local integer index= WoWReforgedDayNightCycleEffects__GetDestructableIndex(GetDestructableTypeId(GetEnumDestructable())) +function WoWReforgedDayNightCycleEffects___EnumDestructableNightEffect takes nothing returns nothing + local integer index= WoWReforgedDayNightCycleEffects___GetDestructableIndex(GetDestructableTypeId(GetEnumDestructable())) call SetDestructableAnimation(GetEnumDestructable(), "Death") - if ( WoWReforgedDayNightCycleEffects__destructableHide[index] ) then - call TriggerSleepAction(WoWReforgedDayNightCycleEffects__destructableHideDelay[index]) + if ( WoWReforgedDayNightCycleEffects___destructableHide[index] ) then + call TriggerSleepAction(WoWReforgedDayNightCycleEffects___destructableHideDelay[index]) call ShowDestructable(GetEnumDestructable(), false) endif endfunction -function WoWReforgedDayNightCycleEffects__AddDoodadEx takes integer id,string dayAnimName,string nightAnimName returns nothing - set WoWReforgedDayNightCycleEffects__doodadIds[WoWReforgedDayNightCycleEffects__doodadIdsCounter]=id - set WoWReforgedDayNightCycleEffects__doodadDayAnimNames[WoWReforgedDayNightCycleEffects__doodadIdsCounter]=dayAnimName - set WoWReforgedDayNightCycleEffects__doodadNightAnimNames[WoWReforgedDayNightCycleEffects__doodadIdsCounter]=nightAnimName - set WoWReforgedDayNightCycleEffects__doodadIdsCounter=WoWReforgedDayNightCycleEffects__doodadIdsCounter + 1 +function WoWReforgedDayNightCycleEffects___AddDoodadEx takes integer id,string dayAnimName,string nightAnimName returns nothing + set WoWReforgedDayNightCycleEffects___doodadIds[WoWReforgedDayNightCycleEffects___doodadIdsCounter]=id + set WoWReforgedDayNightCycleEffects___doodadDayAnimNames[WoWReforgedDayNightCycleEffects___doodadIdsCounter]=dayAnimName + set WoWReforgedDayNightCycleEffects___doodadNightAnimNames[WoWReforgedDayNightCycleEffects___doodadIdsCounter]=nightAnimName + set WoWReforgedDayNightCycleEffects___doodadIdsCounter=WoWReforgedDayNightCycleEffects___doodadIdsCounter + 1 endfunction -function WoWReforgedDayNightCycleEffects__AddDoodad takes integer id returns nothing - call WoWReforgedDayNightCycleEffects__AddDoodadEx(id , "Death" , "Stand") +function WoWReforgedDayNightCycleEffects___AddDoodad takes integer id returns nothing + call WoWReforgedDayNightCycleEffects___AddDoodadEx(id , "Death" , "Stand") endfunction -function WoWReforgedDayNightCycleEffects__PlayDoodadAnimations takes boolean day returns nothing +function WoWReforgedDayNightCycleEffects___PlayDoodadAnimations takes boolean day returns nothing local integer i= 0 loop - exitwhen ( i >= WoWReforgedDayNightCycleEffects__doodadIdsCounter ) + exitwhen ( i >= WoWReforgedDayNightCycleEffects___doodadIdsCounter ) if ( day ) then - call SetDoodadAnimationRect(GetPlayableMapRect(), WoWReforgedDayNightCycleEffects__doodadIds[i], WoWReforgedDayNightCycleEffects__doodadDayAnimNames[i], false) + call SetDoodadAnimationRect(GetPlayableMapRect(), WoWReforgedDayNightCycleEffects___doodadIds[i], WoWReforgedDayNightCycleEffects___doodadDayAnimNames[i], false) else - call SetDoodadAnimationRect(GetPlayableMapRect(), WoWReforgedDayNightCycleEffects__doodadIds[i], WoWReforgedDayNightCycleEffects__doodadNightAnimNames[i], false) + call SetDoodadAnimationRect(GetPlayableMapRect(), WoWReforgedDayNightCycleEffects___doodadIds[i], WoWReforgedDayNightCycleEffects___doodadNightAnimNames[i], false) endif set i=i + 1 endloop endfunction -function WoWReforgedDayNightCycleEffects__DayEffects takes nothing returns nothing - if ( IsDay() and not WoWReforgedDayNightCycleEffects__effectsIsDaytime ) then - set WoWReforgedDayNightCycleEffects__effectsIsDaytime=true +function WoWReforgedDayNightCycleEffects___DayEffects takes nothing returns nothing + if ( IsDay() and not WoWReforgedDayNightCycleEffects___effectsIsDaytime ) then + set WoWReforgedDayNightCycleEffects___effectsIsDaytime=true - call WoWReforgedDayNightCycleEffects__PlayDoodadAnimations(true) - call EnumDestructablesInRect(GetPlayableMapRect(), WoWReforgedDayNightCycleEffects__filter, function WoWReforgedDayNightCycleEffects__EnumDestructableDayEffect) + call WoWReforgedDayNightCycleEffects___PlayDoodadAnimations(true) + call EnumDestructablesInRect(GetPlayableMapRect(), WoWReforgedDayNightCycleEffects___filter, function WoWReforgedDayNightCycleEffects___EnumDestructableDayEffect) endif endfunction -function WoWReforgedDayNightCycleEffects__NightEffects takes nothing returns nothing +function WoWReforgedDayNightCycleEffects___NightEffects takes nothing returns nothing local real ToD= GetTimeOfDay() - if ( IsNight() and WoWReforgedDayNightCycleEffects__effectsIsDaytime ) then - set WoWReforgedDayNightCycleEffects__effectsIsDaytime=false + if ( IsNight() and WoWReforgedDayNightCycleEffects___effectsIsDaytime ) then + set WoWReforgedDayNightCycleEffects___effectsIsDaytime=false - call WoWReforgedDayNightCycleEffects__PlayDoodadAnimations(false) - call EnumDestructablesInRect(GetPlayableMapRect(), WoWReforgedDayNightCycleEffects__filter, function WoWReforgedDayNightCycleEffects__EnumDestructableNightEffect) + call WoWReforgedDayNightCycleEffects___PlayDoodadAnimations(false) + call EnumDestructablesInRect(GetPlayableMapRect(), WoWReforgedDayNightCycleEffects___filter, function WoWReforgedDayNightCycleEffects___EnumDestructableNightEffect) endif endfunction -function WoWReforgedDayNightCycleEffects__Init takes nothing returns nothing - set WoWReforgedDayNightCycleEffects__filter=Filter(function WoWReforgedDayNightCycleEffects__FilterIsDayNightDestructable) +function WoWReforgedDayNightCycleEffects___Init takes nothing returns nothing + set WoWReforgedDayNightCycleEffects___filter=Filter(function WoWReforgedDayNightCycleEffects___FilterIsDayNightDestructable) //call TriggerAddAction(bj_dncSoundsDay, function DayEffects) //call TriggerAddAction(bj_dncSoundsNight, function NightEffects) // Set up triggers to respond to changes from day to night or vice-versa. - set WoWReforgedDayNightCycleEffects__dayEffectsTrigger=CreateTrigger() - call TriggerRegisterGameStateEvent(WoWReforgedDayNightCycleEffects__dayEffectsTrigger, GAME_STATE_TIME_OF_DAY, GREATER_THAN_OR_EQUAL, bj_TOD_DAWN) - call TriggerRegisterGameStateEvent(WoWReforgedDayNightCycleEffects__dayEffectsTrigger, GAME_STATE_TIME_OF_DAY, LESS_THAN, bj_TOD_DUSK) - call TriggerAddAction(WoWReforgedDayNightCycleEffects__dayEffectsTrigger, function WoWReforgedDayNightCycleEffects__DayEffects) + set WoWReforgedDayNightCycleEffects___dayEffectsTrigger=CreateTrigger() + call TriggerRegisterGameStateEvent(WoWReforgedDayNightCycleEffects___dayEffectsTrigger, GAME_STATE_TIME_OF_DAY, GREATER_THAN_OR_EQUAL, bj_TOD_DAWN) + call TriggerRegisterGameStateEvent(WoWReforgedDayNightCycleEffects___dayEffectsTrigger, GAME_STATE_TIME_OF_DAY, LESS_THAN, bj_TOD_DUSK) + call TriggerAddAction(WoWReforgedDayNightCycleEffects___dayEffectsTrigger, function WoWReforgedDayNightCycleEffects___DayEffects) - set WoWReforgedDayNightCycleEffects__nightEffectsTrigger=CreateTrigger() - call TriggerRegisterGameStateEvent(WoWReforgedDayNightCycleEffects__nightEffectsTrigger, GAME_STATE_TIME_OF_DAY, LESS_THAN, bj_TOD_DAWN) - call TriggerRegisterGameStateEvent(WoWReforgedDayNightCycleEffects__nightEffectsTrigger, GAME_STATE_TIME_OF_DAY, GREATER_THAN_OR_EQUAL, bj_TOD_DUSK) - call TriggerAddAction(WoWReforgedDayNightCycleEffects__nightEffectsTrigger, function WoWReforgedDayNightCycleEffects__NightEffects) + set WoWReforgedDayNightCycleEffects___nightEffectsTrigger=CreateTrigger() + call TriggerRegisterGameStateEvent(WoWReforgedDayNightCycleEffects___nightEffectsTrigger, GAME_STATE_TIME_OF_DAY, LESS_THAN, bj_TOD_DAWN) + call TriggerRegisterGameStateEvent(WoWReforgedDayNightCycleEffects___nightEffectsTrigger, GAME_STATE_TIME_OF_DAY, GREATER_THAN_OR_EQUAL, bj_TOD_DUSK) + call TriggerAddAction(WoWReforgedDayNightCycleEffects___nightEffectsTrigger, function WoWReforgedDayNightCycleEffects___NightEffects) //call AddDestructable() - call WoWReforgedDayNightCycleEffects__AddDoodadEx(('YOlp') , "Death" , "Stand") // Post Lantern Cityscape // INLINED!! - call WoWReforgedDayNightCycleEffects__AddDoodadEx(('LOlp') , "Death" , "Stand") // Post Lantern Lordaeron Summer // INLINED!! - call WoWReforgedDayNightCycleEffects__AddDoodadEx(('LObz') , "Death" , "Stand") // Brazier Glowing Loraderon Summer // INLINED!! - call WoWReforgedDayNightCycleEffects__AddDoodadEx(('LOtz') , "Death" , "Stand") // Torch Glowing Lordaeron Summer // INLINED!! - call WoWReforgedDayNightCycleEffects__AddDoodadEx(('ZObz') , "Death" , "Stand") // Brazier Ruins // INLINED!! - call WoWReforgedDayNightCycleEffects__AddDestructableEx('D00F' , true , 2.167) // Fireflies - call WoWReforgedDayNightCycleEffects__AddDoodadEx('AOgs' , "Stand" , "Stand Alternate") // Statue Guardian of Aszune - call WoWReforgedDayNightCycleEffects__AddDoodadEx('AOks' , "Stand" , "Stand Alternate") // Statue Keeper + call WoWReforgedDayNightCycleEffects___AddDoodadEx(('YOlp') , "Death" , "Stand") // Post Lantern Cityscape // INLINED!! + call WoWReforgedDayNightCycleEffects___AddDoodadEx(('LOlp') , "Death" , "Stand") // Post Lantern Lordaeron Summer // INLINED!! + call WoWReforgedDayNightCycleEffects___AddDoodadEx(('LObz') , "Death" , "Stand") // Brazier Glowing Loraderon Summer // INLINED!! + call WoWReforgedDayNightCycleEffects___AddDoodadEx(('LOtz') , "Death" , "Stand") // Torch Glowing Lordaeron Summer // INLINED!! + call WoWReforgedDayNightCycleEffects___AddDoodadEx(('ZObz') , "Death" , "Stand") // Brazier Ruins // INLINED!! + call WoWReforgedDayNightCycleEffects___AddDestructableEx('D00F' , true , 2.167) // Fireflies + call WoWReforgedDayNightCycleEffects___AddDoodadEx('AOgs' , "Stand" , "Stand Alternate") // Statue Guardian of Aszune + call WoWReforgedDayNightCycleEffects___AddDoodadEx('AOks' , "Stand" , "Stand Alternate") // Statue Keeper endfunction @@ -46095,19 +46095,19 @@ endfunction function GetHeroLearnedSkillEx takes integer sourceHandleId,integer slot returns integer - return LoadInteger(WoWReforgedHeroSkills___h, sourceHandleId, slot) + return LoadInteger(WoWReforgedHeroSkills__h, sourceHandleId, slot) endfunction function GetHeroLearnedSkill takes unit hero,integer slot returns integer - return (LoadInteger(WoWReforgedHeroSkills___h, (GetHandleId(hero) ), ( slot))) // INLINED!! + return (LoadInteger(WoWReforgedHeroSkills__h, (GetHandleId(hero) ), ( slot))) // INLINED!! endfunction function GetHeroLearnedSkillLevelEx takes integer sourceHandleId,integer slot returns integer - return LoadInteger(WoWReforgedHeroSkills___h2, sourceHandleId, slot) + return LoadInteger(WoWReforgedHeroSkills__h2, sourceHandleId, slot) endfunction function GetHeroLearnedSkillLevel takes unit hero,integer slot returns integer - return (LoadInteger(WoWReforgedHeroSkills___h2, (GetHandleId(hero) ), ( slot))) // INLINED!! + return (LoadInteger(WoWReforgedHeroSkills__h2, (GetHandleId(hero) ), ( slot))) // INLINED!! endfunction function IsCustomizableAttributesHero takes integer unitTypeId returns boolean @@ -46181,7 +46181,7 @@ endfunction function ApplyHeroLearnedSkillEx takes unit hero,integer sourceHandleId,integer slot,integer level returns boolean local integer unitTypeId= GetUnitTypeId(hero) - local integer abilityId= (LoadInteger(WoWReforgedHeroSkills___h, (sourceHandleId ), ( slot))) // INLINED!! + local integer abilityId= (LoadInteger(WoWReforgedHeroSkills__h, (sourceHandleId ), ( slot))) // INLINED!! local integer index= - 1 //call BJDebugMsg("Restoring ability " + GetObjectName(abilityId) + " with level " + I2S(level) + " for slot " + I2S(slot)) if ( abilityId != 0 ) then @@ -46218,58 +46218,58 @@ function ApplyHeroLearnedSkillEx takes unit hero,integer sourceHandleId,integer endfunction function ApplyHeroLearnedSkill takes unit hero,integer sourceHandleId,integer slot returns boolean - local integer level= (LoadInteger(WoWReforgedHeroSkills___h2, (sourceHandleId ), ( slot))) // INLINED!! + local integer level= (LoadInteger(WoWReforgedHeroSkills__h2, (sourceHandleId ), ( slot))) // INLINED!! return ApplyHeroLearnedSkillEx(hero , sourceHandleId , slot , level) endfunction function EnableLearnEvents takes nothing returns nothing - call EnableTrigger(WoWReforgedHeroSkills___learnTrigger) + call EnableTrigger(WoWReforgedHeroSkills__learnTrigger) endfunction function DisableLearnEvents takes nothing returns nothing - call DisableTrigger(WoWReforgedHeroSkills___learnTrigger) + call DisableTrigger(WoWReforgedHeroSkills__learnTrigger) endfunction function EnableUnlearnEvents takes nothing returns nothing - call EnableTrigger(WoWReforgedHeroSkills___unlearnTrigger) + call EnableTrigger(WoWReforgedHeroSkills__unlearnTrigger) endfunction function DisableUnlearnEvents takes nothing returns nothing - call DisableTrigger(WoWReforgedHeroSkills___unlearnTrigger) + call DisableTrigger(WoWReforgedHeroSkills__unlearnTrigger) endfunction function ApplyAllHeroLearnedSkills takes unit hero,integer sourceHandleId returns nothing local integer i= 0 - call DisableTrigger(WoWReforgedHeroSkills___unlearnTrigger) // INLINED!! + call DisableTrigger(WoWReforgedHeroSkills__unlearnTrigger) // INLINED!! call UnskillHero(hero) loop exitwhen ( i == RESKILL_MAX_SLOTS ) call ApplyHeroLearnedSkill(hero , sourceHandleId , i) set i=i + 1 endloop - call EnableTrigger(WoWReforgedHeroSkills___unlearnTrigger) // INLINED!! + call EnableTrigger(WoWReforgedHeroSkills__unlearnTrigger) // INLINED!! endfunction function ApplyAllHeroLearnedSkillsMax takes unit hero,integer sourceHandleId returns nothing local integer i= 0 - call DisableTrigger(WoWReforgedHeroSkills___unlearnTrigger) // INLINED!! + call DisableTrigger(WoWReforgedHeroSkills__unlearnTrigger) // INLINED!! call UnskillHero(hero) loop exitwhen ( i == RESKILL_MAX_SLOTS ) call ApplyHeroLearnedSkillEx(hero , sourceHandleId , i , MAX_HERO_SPELL_LEVEL) set i=i + 1 endloop - call EnableTrigger(WoWReforgedHeroSkills___unlearnTrigger) // INLINED!! + call EnableTrigger(WoWReforgedHeroSkills__unlearnTrigger) // INLINED!! endfunction function ResetHeroLearnedSkills takes integer sourceHandleId returns nothing - call FlushChildHashtable(WoWReforgedHeroSkills___h, sourceHandleId) - call FlushChildHashtable(WoWReforgedHeroSkills___h2, sourceHandleId) + call FlushChildHashtable(WoWReforgedHeroSkills__h, sourceHandleId) + call FlushChildHashtable(WoWReforgedHeroSkills__h2, sourceHandleId) endfunction function SetHeroLearnedSkillAbilityId takes integer sourceHandleId,integer slot,integer abilityId returns nothing - call SaveInteger(WoWReforgedHeroSkills___h, sourceHandleId, slot, abilityId) + call SaveInteger(WoWReforgedHeroSkills__h, sourceHandleId, slot, abilityId) endfunction function HasNoHeroAbilityWithCooldown takes unit hero returns boolean @@ -46277,7 +46277,7 @@ function HasNoHeroAbilityWithCooldown takes unit hero returns boolean local integer i= 0 loop exitwhen ( i == RESKILL_MAX_SLOTS ) - set abilityId=(LoadInteger(WoWReforgedHeroSkills___h, (GetHandleId((hero )) ), ( ( i)))) // INLINED!! + set abilityId=(LoadInteger(WoWReforgedHeroSkills__h, (GetHandleId((hero )) ), ( ( i)))) // INLINED!! if ( abilityId != 0 and BlzGetUnitAbilityCooldownRemaining(hero, abilityId) > 0.0 ) then return false endif @@ -46291,7 +46291,7 @@ function RandomizeHeroSkill takes unit hero returns boolean local integer index= - 1 local integer i= 0 if ( HasNoHeroAbilityWithCooldown(hero) ) then - call DisableTrigger(WoWReforgedHeroSkills___unlearnTrigger) // INLINED!! + call DisableTrigger(WoWReforgedHeroSkills__unlearnTrigger) // INLINED!! call UnskillHero(hero) call ResetAllLearnableSkillsForHero(hero) call RemoveAllLearnableSkillIconAbilities(hero) @@ -46301,11 +46301,11 @@ function RandomizeHeroSkill takes unit hero returns boolean set index=GetRandomLearnableSkillIndex(unitTypeId , i) if ( index != - 1 ) then call AddLearnableSkillToHero(hero , index) - call SaveInteger(WoWReforgedHeroSkills___h, (GetHandleId(hero) ), ( i ), ( (WoWReforgedLearnableSkills___learnableSkillAbilityId[(index)]))) // INLINED!! + call SaveInteger(WoWReforgedHeroSkills__h, (GetHandleId(hero) ), ( i ), ( (WoWReforgedLearnableSkills__learnableSkillAbilityId[(index)]))) // INLINED!! endif set i=i + 1 endloop - call EnableTrigger(WoWReforgedHeroSkills___unlearnTrigger) // INLINED!! + call EnableTrigger(WoWReforgedHeroSkills__unlearnTrigger) // INLINED!! if ( GetHeroLevel(hero) >= MAX_HERO_LEVEL ) then call ApplyAllHeroLearnedSkillsMax(hero , GetHandleId(hero)) @@ -46318,7 +46318,7 @@ function RandomizeHeroSkill takes unit hero returns boolean return false endfunction -function WoWReforgedHeroSkills___TriggerActionLearn takes nothing returns nothing +function WoWReforgedHeroSkills__TriggerActionLearn takes nothing returns nothing local unit hero= GetTriggerUnit() local integer skill= GetLearnedSkill() local integer slot= BlzGetAbilityIntegerField(BlzGetUnitAbility(hero, skill), ABILITY_IF_BUTTON_POSITION_NORMAL_X) @@ -46326,17 +46326,17 @@ function WoWReforgedHeroSkills___TriggerActionLearn takes nothing returns nothin if ( y < 2 ) then set slot=4 endif - call SaveInteger(WoWReforgedHeroSkills___h, GetHandleId(hero), slot, skill) - call SaveInteger(WoWReforgedHeroSkills___h2, GetHandleId(hero), slot, GetUnitAbilityLevel(hero, skill)) + call SaveInteger(WoWReforgedHeroSkills__h, GetHandleId(hero), slot, skill) + call SaveInteger(WoWReforgedHeroSkills__h2, GetHandleId(hero), slot, GetUnitAbilityLevel(hero, skill)) //call BJDebugMsg("Learning ability " + GetObjectName(skill) + " with level " + I2S(GetUnitAbilityLevel(hero, skill)) + " for slot " + I2S(slot) + " with Y " + I2S(y)) set hero=null endfunction -function WoWReforgedHeroSkills___TriggerActionUnlearn takes nothing returns nothing +function WoWReforgedHeroSkills__TriggerActionUnlearn takes nothing returns nothing call ResetHeroLearnedSkills(GetHandleId((HeroUtils__unskilledHero))) // INLINED!! endfunction -function WoWReforgedHeroSkills___TimerFunctionLearn takes nothing returns nothing +function WoWReforgedHeroSkills__TimerFunctionLearn takes nothing returns nothing local timer t= GetExpiredTimer() // TODO Save all hero skills call PauseTimer(t) @@ -46344,14 +46344,14 @@ function WoWReforgedHeroSkills___TimerFunctionLearn takes nothing returns nothin set t=null endfunction -function WoWReforgedHeroSkills___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroSkills___learnTrigger, EVENT_PLAYER_HERO_SKILL) - call TriggerAddAction(WoWReforgedHeroSkills___learnTrigger, function WoWReforgedHeroSkills___TriggerActionLearn) +function WoWReforgedHeroSkills__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroSkills__learnTrigger, EVENT_PLAYER_HERO_SKILL) + call TriggerAddAction(WoWReforgedHeroSkills__learnTrigger, function WoWReforgedHeroSkills__TriggerActionLearn) - call TriggerRegisterHeroUnskillEvent(WoWReforgedHeroSkills___unlearnTrigger) - call TriggerAddAction(WoWReforgedHeroSkills___unlearnTrigger, function WoWReforgedHeroSkills___TriggerActionUnlearn) + call TriggerRegisterHeroUnskillEvent(WoWReforgedHeroSkills__unlearnTrigger) + call TriggerAddAction(WoWReforgedHeroSkills__unlearnTrigger, function WoWReforgedHeroSkills__TriggerActionUnlearn) - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedHeroSkills___TimerFunctionLearn) + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedHeroSkills__TimerFunctionLearn) endfunction @@ -46360,14 +46360,14 @@ endfunction function GetRandomOreItemTypeId takes nothing returns integer - return WoWReforgedMiner__oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner__oreItemTypeIdsCounter - 1)] + return WoWReforgedMiner___oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner___oreItemTypeIdsCounter - 1)] endfunction function IsOre takes integer itemTypeId returns boolean local integer i= 0 loop - exitwhen ( i == WoWReforgedMiner__oreItemTypeIdsCounter ) - if ( itemTypeId == WoWReforgedMiner__oreItemTypeIds[i] ) then + exitwhen ( i == WoWReforgedMiner___oreItemTypeIdsCounter ) + if ( itemTypeId == WoWReforgedMiner___oreItemTypeIds[i] ) then return true endif set i=i + 1 @@ -46376,19 +46376,19 @@ function IsOre takes integer itemTypeId returns boolean endfunction function AddOreItemTypeId takes integer itemTypeId returns nothing - set WoWReforgedMiner__oreItemTypeIds[WoWReforgedMiner__oreItemTypeIdsCounter]=itemTypeId - set WoWReforgedMiner__oreItemTypeIdsCounter=WoWReforgedMiner__oreItemTypeIdsCounter + 1 + set WoWReforgedMiner___oreItemTypeIds[WoWReforgedMiner___oreItemTypeIdsCounter]=itemTypeId + set WoWReforgedMiner___oreItemTypeIdsCounter=WoWReforgedMiner___oreItemTypeIdsCounter + 1 endfunction function GetRandomGemItemTypeId takes nothing returns integer - return WoWReforgedMiner__gemItemTypeIds[GetRandomInt(0, WoWReforgedMiner__gemItemTypeIdsCounter - 1)] + return WoWReforgedMiner___gemItemTypeIds[GetRandomInt(0, WoWReforgedMiner___gemItemTypeIdsCounter - 1)] endfunction function IsGem takes integer itemTypeId returns boolean local integer i= 0 loop - exitwhen ( i == WoWReforgedMiner__gemItemTypeIdsCounter ) - if ( itemTypeId == WoWReforgedMiner__gemItemTypeIds[i] ) then + exitwhen ( i == WoWReforgedMiner___gemItemTypeIdsCounter ) + if ( itemTypeId == WoWReforgedMiner___gemItemTypeIds[i] ) then return true endif set i=i + 1 @@ -46397,29 +46397,29 @@ function IsGem takes integer itemTypeId returns boolean endfunction function AddGemItemTypeId takes integer itemTypeId returns nothing - set WoWReforgedMiner__gemItemTypeIds[WoWReforgedMiner__gemItemTypeIdsCounter]=itemTypeId - set WoWReforgedMiner__gemItemTypeIdsCounter=WoWReforgedMiner__gemItemTypeIdsCounter + 1 + set WoWReforgedMiner___gemItemTypeIds[WoWReforgedMiner___gemItemTypeIdsCounter]=itemTypeId + set WoWReforgedMiner___gemItemTypeIdsCounter=WoWReforgedMiner___gemItemTypeIdsCounter + 1 endfunction function GetRandomMineralResource takes nothing returns integer - return WoWReforgedMiner__mineralResources[GetRandomInt(0, WoWReforgedMiner__mineralResourcesCounter - 1)] + return WoWReforgedMiner___mineralResources[GetRandomInt(0, WoWReforgedMiner___mineralResourcesCounter - 1)] endfunction function AddMineralResource takes integer resource returns nothing - set WoWReforgedMiner__mineralResources[WoWReforgedMiner__mineralResourcesCounter]=resource - set WoWReforgedMiner__mineralResourcesCounter=WoWReforgedMiner__mineralResourcesCounter + 1 + set WoWReforgedMiner___mineralResources[WoWReforgedMiner___mineralResourcesCounter]=resource + set WoWReforgedMiner___mineralResourcesCounter=WoWReforgedMiner___mineralResourcesCounter + 1 endfunction function AddMinerMine takes unit mine returns nothing - call AddMineEx(mine , (WoWReforgedMiner__mineralResources[GetRandomInt(0, WoWReforgedMiner__mineralResourcesCounter - 1)]) , GetRandomInt(200, 1500)) // INLINED!! + call AddMineEx(mine , (WoWReforgedMiner___mineralResources[GetRandomInt(0, WoWReforgedMiner___mineralResourcesCounter - 1)]) , GetRandomInt(200, 1500)) // INLINED!! endfunction function AddWorkerMiner takes unit worker returns nothing local integer i= 0 call AddWorker(worker) loop - exitwhen ( i == WoWReforgedMiner__mineralResourcesCounter ) - call AddResourceToWorker(worker , WoWReforgedMiner__mineralResources[i] , 'A1PM' , "heal" , 'A1PN' , "spies" , 'A1PO' , "robogoblin" , 200 , 20 , "gold") + exitwhen ( i == WoWReforgedMiner___mineralResourcesCounter ) + call AddResourceToWorker(worker , WoWReforgedMiner___mineralResources[i] , 'A1PM' , "heal" , 'A1PN' , "spies" , 'A1PO' , "robogoblin" , 200 , 20 , "gold") set i=i + 1 endloop endfunction @@ -46524,7 +46524,7 @@ endfunction //library WoWReforgedNpcs ends //library WoWReforgedPagedButtonsConfig: -function WoWReforgedPagedButtonsConfig___Init takes nothing returns nothing +function WoWReforgedPagedButtonsConfig__Init takes nothing returns nothing call SetPagedButtonsConfigHeroCostsDefault(0 , 0) endfunction @@ -46536,8 +46536,8 @@ endfunction function IsGoldItem takes integer itemTypeId returns boolean local integer i= 0 loop - exitwhen ( i == WoWReforgedProspector__goldItemTypeIdsCounter ) - if ( itemTypeId == WoWReforgedProspector__goldItemTypeIds[i] ) then + exitwhen ( i == WoWReforgedProspector___goldItemTypeIdsCounter ) + if ( itemTypeId == WoWReforgedProspector___goldItemTypeIds[i] ) then return true endif set i=i + 1 @@ -46546,8 +46546,8 @@ function IsGoldItem takes integer itemTypeId returns boolean endfunction function AddGoldItemTypeId takes integer itemTypeId returns nothing - set WoWReforgedProspector__goldItemTypeIds[WoWReforgedProspector__goldItemTypeIdsCounter]=itemTypeId - set WoWReforgedProspector__goldItemTypeIdsCounter=WoWReforgedProspector__goldItemTypeIdsCounter + 1 + set WoWReforgedProspector___goldItemTypeIds[WoWReforgedProspector___goldItemTypeIdsCounter]=itemTypeId + set WoWReforgedProspector___goldItemTypeIdsCounter=WoWReforgedProspector___goldItemTypeIdsCounter + 1 endfunction function ProspectorPickup takes unit hero,item whichItem returns nothing @@ -46557,7 +46557,7 @@ function ProspectorPickup takes unit hero,item whichItem returns nothing endif endfunction -function WoWReforgedProspector__Init takes nothing returns nothing +function WoWReforgedProspector___Init takes nothing returns nothing call AddGoldItemTypeId(ITEM_ORE_GOLD) call AddGoldItemTypeId(ITEM_GOLD_BARS) call AddGoldItemTypeId(ITEM_GOLD_COINS) @@ -51612,49 +51612,49 @@ endfunction -function Tunnel___IsLoaded takes unit whichUnit returns boolean - return IsUnitInGroup(whichUnit, Tunnel___loaded) +function Tunnel__IsLoaded takes unit whichUnit returns boolean + return IsUnitInGroup(whichUnit, Tunnel__loaded) endfunction -function Tunnel___IsCopy takes unit whichUnit returns boolean - return IsUnitInGroup(whichUnit, Tunnel___copies) +function Tunnel__IsCopy takes unit whichUnit returns boolean + return IsUnitInGroup(whichUnit, Tunnel__copies) endfunction -function Tunnel___IsCopyOf takes unit whichUnit,unit source returns boolean - return LoadUnitHandle(Tunnel___h, GetHandleId(whichUnit), Tunnel___KEY_SOURCE) == source +function Tunnel__IsCopyOf takes unit whichUnit,unit source returns boolean + return LoadUnitHandle(Tunnel__h, GetHandleId(whichUnit), Tunnel__KEY_SOURCE) == source endfunction -function Tunnel___GetCopySource takes unit whichUnit returns unit - return LoadUnitHandle(Tunnel___h, GetHandleId(whichUnit), Tunnel___KEY_SOURCE) +function Tunnel__GetCopySource takes unit whichUnit returns unit + return LoadUnitHandle(Tunnel__h, GetHandleId(whichUnit), Tunnel__KEY_SOURCE) endfunction -function Tunnel___GetTunnel takes unit whichUnit returns unit - return LoadUnitHandle(Tunnel___h, GetHandleId(whichUnit), Tunnel___KEY_TUNNEL) +function Tunnel__GetTunnel takes unit whichUnit returns unit + return LoadUnitHandle(Tunnel__h, GetHandleId(whichUnit), Tunnel__KEY_TUNNEL) endfunction -function Tunnel___MoveToUnloadPosition takes unit whichUnit returns nothing +function Tunnel__MoveToUnloadPosition takes unit whichUnit returns nothing local integer handleId= GetHandleId(whichUnit) - if ( HaveSavedReal(Tunnel___h, handleId, Tunnel___KEY_X) ) then - call SetUnitX(whichUnit, LoadReal(Tunnel___h, handleId, Tunnel___KEY_X)) - call SetUnitY(whichUnit, LoadReal(Tunnel___h, handleId, Tunnel___KEY_Y)) + if ( HaveSavedReal(Tunnel__h, handleId, Tunnel__KEY_X) ) then + call SetUnitX(whichUnit, LoadReal(Tunnel__h, handleId, Tunnel__KEY_X)) + call SetUnitY(whichUnit, LoadReal(Tunnel__h, handleId, Tunnel__KEY_Y)) endif endfunction -function Tunnel___SetUnloadPosition takes unit whichUnit,real x,real y returns nothing +function Tunnel__SetUnloadPosition takes unit whichUnit,real x,real y returns nothing local integer handleId= GetHandleId(whichUnit) - call SaveReal(Tunnel___h, handleId, Tunnel___KEY_X, x) - call SaveReal(Tunnel___h, handleId, Tunnel___KEY_Y, y) + call SaveReal(Tunnel__h, handleId, Tunnel__KEY_X, x) + call SaveReal(Tunnel__h, handleId, Tunnel__KEY_Y, y) endfunction -function Tunnel___CopyUnit takes unit whichUnit,real x,real y,real face returns unit +function Tunnel__CopyUnit takes unit whichUnit,real x,real y,real face returns unit local unit copy= CreateUnit(GetOwningPlayer(whichUnit), GetUnitTypeId(whichUnit), x, y, face) call SetUnitUseFood(copy, false) call SetUnitInvulnerable(copy, true) if ( IsUnitType(copy, UNIT_TYPE_HERO) ) then call BlzSetUnitBooleanField(copy, UNIT_BF_HERO_HIDE_HERO_INTERFACE_ICON, true) endif - call GroupAddUnit(Tunnel___copies, copy) - call SaveUnitHandle(Tunnel___h, GetHandleId(copy), Tunnel___KEY_SOURCE, whichUnit) + call GroupAddUnit(Tunnel__copies, copy) + call SaveUnitHandle(Tunnel__h, GetHandleId(copy), Tunnel__KEY_SOURCE, whichUnit) return copy endfunction @@ -51672,11 +51672,11 @@ function IsUnitTunnel takes unit whichUnit returns boolean return IsTunnel(GetUnitTypeId(whichUnit)) endfunction -function Tunnel___FilterIsDifferentTunnel takes nothing returns boolean - return (IsTunnel(GetUnitTypeId((GetFilterUnit())))) and (LoadUnitHandle(Tunnel___h, GetHandleId((Tunnel___tmpUnit)), Tunnel___KEY_TUNNEL)) != GetFilterUnit() // INLINED!! +function Tunnel__FilterIsDifferentTunnel takes nothing returns boolean + return (IsTunnel(GetUnitTypeId((GetFilterUnit())))) and (LoadUnitHandle(Tunnel__h, GetHandleId((Tunnel__tmpUnit)), Tunnel__KEY_TUNNEL)) != GetFilterUnit() // INLINED!! endfunction -function Tunnel___CreateCopies takes unit whichUnit returns nothing +function Tunnel__CreateCopies takes unit whichUnit returns nothing local player owner= GetOwningPlayer(whichUnit) local group tunnels= CreateGroup() local unit tunnel= null @@ -51685,8 +51685,8 @@ function Tunnel___CreateCopies takes unit whichUnit returns nothing local real x= 0.0 local real y= 0.0 local real face= 0.0 - set Tunnel___tmpUnit=whichUnit - call GroupEnumUnitsOfPlayer(tunnels, GetOwningPlayer(whichUnit), Filter(function Tunnel___FilterIsDifferentTunnel)) + set Tunnel__tmpUnit=whichUnit + call GroupEnumUnitsOfPlayer(tunnels, GetOwningPlayer(whichUnit), Filter(function Tunnel__FilterIsDifferentTunnel)) set max=BlzGroupGetSize(tunnels) set i=0 loop @@ -51696,7 +51696,7 @@ function Tunnel___CreateCopies takes unit whichUnit returns nothing set x=GetUnitX(tunnel) set y=GetUnitY(tunnel) set face=GetUnitFacing(tunnel) - call BlzQueueTargetOrderById(tunnel, OrderId("load"), Tunnel___CopyUnit(whichUnit , x , y , face)) + call BlzQueueTargetOrderById(tunnel, OrderId("load"), Tunnel__CopyUnit(whichUnit , x , y , face)) //call IssueTargetOrder(tunnel, "load", CopyUnit(whichUnit, x, y, face)) endif set i=i + 1 @@ -51707,19 +51707,19 @@ function Tunnel___CreateCopies takes unit whichUnit returns nothing set owner=null endfunction -function Tunnel___CreateExistingCopies takes unit tunnel returns nothing +function Tunnel__CreateExistingCopies takes unit tunnel returns nothing local player owner= GetOwningPlayer(tunnel) local real x= GetUnitX(tunnel) local real y= GetUnitY(tunnel) local real face= GetUnitFacing(tunnel) local unit u= null local integer i= 0 - local integer max= BlzGroupGetSize(Tunnel___loaded) + local integer max= BlzGroupGetSize(Tunnel__loaded) loop exitwhen ( i == max ) - set u=BlzGroupUnitAt(Tunnel___loaded, i) + set u=BlzGroupUnitAt(Tunnel__loaded, i) if ( GetOwningPlayer(u) == owner ) then - call IssueTargetOrder(tunnel, "load", Tunnel___CopyUnit(u , x , y , face)) + call IssueTargetOrder(tunnel, "load", Tunnel__CopyUnit(u , x , y , face)) endif set u=null set i=i + 1 @@ -51727,29 +51727,29 @@ function Tunnel___CreateExistingCopies takes unit tunnel returns nothing set owner=null endfunction -function Tunnel___ForGroupClearCopy takes nothing returns nothing - if ( (LoadUnitHandle(Tunnel___h, GetHandleId((GetEnumUnit() )), Tunnel___KEY_SOURCE) == ( Tunnel___tmpUnit)) ) then // INLINED!! - call GroupRemoveUnit(Tunnel___copies, GetEnumUnit()) - call FlushChildHashtable(Tunnel___h, GetHandleId(GetEnumUnit())) +function Tunnel__ForGroupClearCopy takes nothing returns nothing + if ( (LoadUnitHandle(Tunnel__h, GetHandleId((GetEnumUnit() )), Tunnel__KEY_SOURCE) == ( Tunnel__tmpUnit)) ) then // INLINED!! + call GroupRemoveUnit(Tunnel__copies, GetEnumUnit()) + call FlushChildHashtable(Tunnel__h, GetHandleId(GetEnumUnit())) call ShowUnit(GetEnumUnit(), false) call h__RemoveUnit(GetEnumUnit()) endif endfunction -function Tunnel___ClearCopies takes unit source returns nothing - set Tunnel___tmpUnit=source - call ForGroup(Tunnel___copies, function Tunnel___ForGroupClearCopy) +function Tunnel__ClearCopies takes unit source returns nothing + set Tunnel__tmpUnit=source + call ForGroup(Tunnel__copies, function Tunnel__ForGroupClearCopy) endfunction -function Tunnel___FilterIsTunnel takes nothing returns boolean +function Tunnel__FilterIsTunnel takes nothing returns boolean return (IsTunnel(GetUnitTypeId((GetFilterUnit())))) // INLINED!! endfunction -function Tunnel___GetSelectedTunnel takes player whichPlayer returns unit +function Tunnel__GetSelectedTunnel takes player whichPlayer returns unit local group tunnels= CreateGroup() local unit tunnel= null call SyncSelections() - call GroupEnumUnitsSelected(tunnels, whichPlayer, Filter(function Tunnel___FilterIsTunnel)) + call GroupEnumUnitsSelected(tunnels, whichPlayer, Filter(function Tunnel__FilterIsTunnel)) set tunnel=FirstOfGroup(tunnels) call GroupClear(tunnels) call DestroyGroup(tunnels) @@ -51762,10 +51762,10 @@ function GetNextTunnel takes player whichPlayer returns unit local unit tunnel= null local integer i= 0 local integer max= 0 - local unit selectedTunnel= Tunnel___GetSelectedTunnel(whichPlayer) + local unit selectedTunnel= Tunnel__GetSelectedTunnel(whichPlayer) local boolean foundSelectedTunnel= false local boolean foundNewTunnel= false - call GroupEnumUnitsOfPlayer(tunnels, whichPlayer, Filter(function Tunnel___FilterIsTunnel)) + call GroupEnumUnitsOfPlayer(tunnels, whichPlayer, Filter(function Tunnel__FilterIsTunnel)) set max=BlzGroupGetSize(tunnels) set i=0 loop @@ -51790,92 +51790,92 @@ function GetNextTunnel takes player whichPlayer returns unit return selectedTunnel endfunction -function Tunnel___TriggerConditionLoad takes nothing returns boolean +function Tunnel__TriggerConditionLoad takes nothing returns boolean local unit transportUnit= GetTransportUnit() local unit loadedUnit= GetLoadedUnit() - if ( (IsUnitInGroup((loadedUnit), Tunnel___copies)) ) then // INLINED!! + if ( (IsUnitInGroup((loadedUnit), Tunnel__copies)) ) then // INLINED!! call UnitAddAbility(loadedUnit, Tunnel_REGENERATION_ABILITY_ID) - call SaveUnitHandle(Tunnel___h, GetHandleId(loadedUnit), Tunnel___KEY_TUNNEL, transportUnit) + call SaveUnitHandle(Tunnel__h, GetHandleId(loadedUnit), Tunnel__KEY_TUNNEL, transportUnit) elseif ( (IsTunnel(GetUnitTypeId((transportUnit)))) ) then // INLINED!! call UnitAddAbility(loadedUnit, Tunnel_REGENERATION_ABILITY_ID) - call SaveUnitHandle(Tunnel___h, GetHandleId(loadedUnit), Tunnel___KEY_TUNNEL, transportUnit) - call GroupAddUnit(Tunnel___loaded, loadedUnit) - call Tunnel___CreateCopies(loadedUnit) + call SaveUnitHandle(Tunnel__h, GetHandleId(loadedUnit), Tunnel__KEY_TUNNEL, transportUnit) + call GroupAddUnit(Tunnel__loaded, loadedUnit) + call Tunnel__CreateCopies(loadedUnit) endif set transportUnit=null set loadedUnit=null return false endfunction -function Tunnel___TriggerFunctionUnload takes nothing returns nothing +function Tunnel__TriggerFunctionUnload takes nothing returns nothing local unit eventUnit= (UnitEventEx__eventUnit) // INLINED!! local unit source= null - if ( (IsUnitInGroup((eventUnit), Tunnel___loaded)) ) then // INLINED!! + if ( (IsUnitInGroup((eventUnit), Tunnel__loaded)) ) then // INLINED!! call UnitRemoveAbility(eventUnit, Tunnel_REGENERATION_ABILITY_ID) - call Tunnel___MoveToUnloadPosition(eventUnit) - call Tunnel___ClearCopies(eventUnit) - call GroupRemoveUnit(Tunnel___loaded, eventUnit) - call FlushChildHashtable(Tunnel___h, GetHandleId(eventUnit)) - elseif ( (IsUnitInGroup((eventUnit), Tunnel___copies)) ) then // INLINED!! + call Tunnel__MoveToUnloadPosition(eventUnit) + call Tunnel__ClearCopies(eventUnit) + call GroupRemoveUnit(Tunnel__loaded, eventUnit) + call FlushChildHashtable(Tunnel__h, GetHandleId(eventUnit)) + elseif ( (IsUnitInGroup((eventUnit), Tunnel__copies)) ) then // INLINED!! call UnitRemoveAbility(eventUnit, Tunnel_REGENERATION_ABILITY_ID) - set source=(LoadUnitHandle(Tunnel___h, GetHandleId((eventUnit)), Tunnel___KEY_SOURCE)) // INLINED!! - call Tunnel___SetUnloadPosition(source , GetUnitX(eventUnit) , GetUnitY(eventUnit)) - call IssueTargetOrder((LoadUnitHandle(Tunnel___h, GetHandleId((source)), Tunnel___KEY_TUNNEL)), "unload", source) // INLINED!! - call Tunnel___ClearCopies(eventUnit) + set source=(LoadUnitHandle(Tunnel__h, GetHandleId((eventUnit)), Tunnel__KEY_SOURCE)) // INLINED!! + call Tunnel__SetUnloadPosition(source , GetUnitX(eventUnit) , GetUnitY(eventUnit)) + call IssueTargetOrder((LoadUnitHandle(Tunnel__h, GetHandleId((source)), Tunnel__KEY_TUNNEL)), "unload", source) // INLINED!! + call Tunnel__ClearCopies(eventUnit) endif set eventUnit=null endfunction -function Tunnel___TriggerConditionConstructed takes nothing returns boolean +function Tunnel__TriggerConditionConstructed takes nothing returns boolean local unit building= GetConstructedStructure() if ( (IsTunnel(GetUnitTypeId((building)))) ) then // INLINED!! - call Tunnel___CreateExistingCopies(building) + call Tunnel__CreateExistingCopies(building) endif set building=null return false endfunction -function Tunnel___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(Tunnel___loadTrigger, EVENT_PLAYER_UNIT_LOADED) - call TriggerAddCondition(Tunnel___loadTrigger, Condition(function Tunnel___TriggerConditionLoad)) +function Tunnel__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(Tunnel__loadTrigger, EVENT_PLAYER_UNIT_LOADED) + call TriggerAddCondition(Tunnel__loadTrigger, Condition(function Tunnel__TriggerConditionLoad)) -call RegisterIndexNativeEvent(bj_MAX_PLAYER_SLOTS , (EVENT_ON_CARGO_UNLOAD ) , ( function Tunnel___TriggerFunctionUnload)) // INLINED!! +call RegisterIndexNativeEvent(bj_MAX_PLAYER_SLOTS , (EVENT_ON_CARGO_UNLOAD ) , ( function Tunnel__TriggerFunctionUnload)) // INLINED!! - call TriggerRegisterAnyUnitEventBJ(Tunnel___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(Tunnel___constructionTrigger, Condition(function Tunnel___TriggerConditionConstructed)) + call TriggerRegisterAnyUnitEventBJ(Tunnel__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(Tunnel__constructionTrigger, Condition(function Tunnel__TriggerConditionConstructed)) endfunction -function Tunnel___RemoveUnitHook takes unit whichUnit returns nothing - call GroupRemoveUnit(Tunnel___loaded, whichUnit) - call GroupRemoveUnit(Tunnel___copies, whichUnit) - call FlushChildHashtable(Tunnel___h, GetHandleId(whichUnit)) +function Tunnel__RemoveUnitHook takes unit whichUnit returns nothing + call GroupRemoveUnit(Tunnel__loaded, whichUnit) + call GroupRemoveUnit(Tunnel__copies, whichUnit) + call FlushChildHashtable(Tunnel__h, GetHandleId(whichUnit)) endfunction -//processed hook: hook RemoveUnit Tunnel___RemoveUnitHook +//processed hook: hook RemoveUnit Tunnel__RemoveUnitHook //library Tunnel ends //library WoWReforgedCritters: -function WoWReforgedCritters___FilterFunctionIsCritter takes nothing returns boolean +function WoWReforgedCritters__FilterFunctionIsCritter takes nothing returns boolean return IsCritter(GetUnitTypeId(GetFilterUnit())) endfunction -function WoWReforgedCritters___UnitAddRespawnUnitEnum takes nothing returns nothing +function WoWReforgedCritters__UnitAddRespawnUnitEnum takes nothing returns nothing call AddRespawnUnit(GetEnumUnit()) endfunction -function WoWReforgedCritters___AddAllCrittersAsSingleUnitRespawns takes nothing returns nothing +function WoWReforgedCritters__AddAllCrittersAsSingleUnitRespawns takes nothing returns nothing local group critters= CreateGroup() - call GroupEnumUnitsInRect(critters, GetPlayableMapRect(), Filter(function WoWReforgedCritters___FilterFunctionIsCritter)) - call ForGroup(critters, function WoWReforgedCritters___UnitAddRespawnUnitEnum) + call GroupEnumUnitsInRect(critters, GetPlayableMapRect(), Filter(function WoWReforgedCritters__FilterFunctionIsCritter)) + call ForGroup(critters, function WoWReforgedCritters__UnitAddRespawnUnitEnum) call GroupClear(critters) call DestroyGroup(critters) set critters=null endfunction -function WoWReforgedCritters___Init takes nothing returns nothing - call TriggerAddAction(OnStartGame__startGameTrigger, (function WoWReforgedCritters___AddAllCrittersAsSingleUnitRespawns)) // INLINED!! +function WoWReforgedCritters__Init takes nothing returns nothing + call TriggerAddAction(OnStartGame__startGameTrigger, (function WoWReforgedCritters__AddAllCrittersAsSingleUnitRespawns)) // INLINED!! endfunction @@ -51911,35 +51911,35 @@ endfunction function AddLevel takes string name,integer itemTypeId,string mapName returns integer - local integer index= WoWReforgedLevels___levelCounter - set WoWReforgedLevels___levelName[index]=name - set WoWReforgedLevels___levelItemTypeId[index]=itemTypeId - set WoWReforgedLevels___levelMapName[index]=mapName - set WoWReforgedLevels___levelCounter=WoWReforgedLevels___levelCounter + 1 + local integer index= WoWReforgedLevels__levelCounter + set WoWReforgedLevels__levelName[index]=name + set WoWReforgedLevels__levelItemTypeId[index]=itemTypeId + set WoWReforgedLevels__levelMapName[index]=mapName + set WoWReforgedLevels__levelCounter=WoWReforgedLevels__levelCounter + 1 return index endfunction function GetLevelName takes integer level returns string - return WoWReforgedLevels___levelName[level] + return WoWReforgedLevels__levelName[level] endfunction function GetLevelItemTypeId takes integer level returns integer - return WoWReforgedLevels___levelItemTypeId[level] + return WoWReforgedLevels__levelItemTypeId[level] endfunction function GetLevelMapName takes integer level returns string - return WoWReforgedLevels___levelMapName[level] + return WoWReforgedLevels__levelMapName[level] endfunction function GetMaxLevels takes nothing returns integer - return WoWReforgedLevels___levelCounter + return WoWReforgedLevels__levelCounter endfunction function GetLevelByItemTypeId takes integer itemTypeId returns integer local integer i= 0 loop - exitwhen ( i >= (WoWReforgedLevels___levelCounter) ) // INLINED!! - if ( (WoWReforgedLevels___levelItemTypeId[(i)]) == itemTypeId ) then // INLINED!! + exitwhen ( i >= (WoWReforgedLevels__levelCounter) ) // INLINED!! + if ( (WoWReforgedLevels__levelItemTypeId[(i)]) == itemTypeId ) then // INLINED!! return i endif set i=i + 1 @@ -51948,8 +51948,8 @@ function GetLevelByItemTypeId takes integer itemTypeId returns integer endfunction function ChangeToLevel takes player whichPlayer,integer level returns nothing - if ( (WoWReforgedLevels___levelName[(level)]) != ("AZ") ) then // INLINED!! - call sc__MapChanger_changeMap((WoWReforgedLevels___levelMapName[(level)])) // INLINED!! + if ( (WoWReforgedLevels__levelName[(level)]) != ("AZ") ) then // INLINED!! + call sc__MapChanger_changeMap((WoWReforgedLevels__levelMapName[(level)])) // INLINED!! else call h__QuestMessageBJ(bj_FORCE_PLAYER[GetPlayerId(whichPlayer)], bj_QUESTMESSAGE_HINT, "You are in this level.") endif @@ -51960,13 +51960,13 @@ function AddLevelPortal takes unit portal returns nothing call EnablePagedButtons(portal) set i=0 loop - exitwhen ( i >= (WoWReforgedLevels___levelCounter) ) // INLINED!! -call AddPagedButtonsId((portal ) , ( (WoWReforgedLevels___levelItemTypeId[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! + exitwhen ( i >= (WoWReforgedLevels__levelCounter) ) // INLINED!! +call AddPagedButtonsId((portal ) , ( (WoWReforgedLevels__levelItemTypeId[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! set i=i + 1 endloop endfunction -function WoWReforgedLevels___TriggerConditionSell takes nothing returns boolean +function WoWReforgedLevels__TriggerConditionSell takes nothing returns boolean local integer level= GetLevelByItemTypeId(GetItemTypeId(GetSoldItem())) if ( level != - 1 ) then call ChangeToLevel(GetOwningPlayer(GetBuyingUnit()) , level) @@ -51974,13 +51974,13 @@ function WoWReforgedLevels___TriggerConditionSell takes nothing returns boolean return false endfunction -function WoWReforgedLevels___ForGroupAddLevelPortal takes nothing returns nothing +function WoWReforgedLevels__ForGroupAddLevelPortal takes nothing returns nothing call AddLevelPortal(GetEnumUnit()) endfunction -function WoWReforgedLevels___TimerFunctionAddLevelPortals takes nothing returns nothing +function WoWReforgedLevels__TimerFunctionAddLevelPortals takes nothing returns nothing local group g= GetUnitsOfTypeIdAll(LEVEL_PORTAL) - call ForGroupBJ(g, function WoWReforgedLevels___ForGroupAddLevelPortal) + call ForGroupBJ(g, function WoWReforgedLevels__ForGroupAddLevelPortal) call GroupClear(g) call DestroyGroup(g) set g=null @@ -51989,17 +51989,17 @@ function WoWReforgedLevels___TimerFunctionAddLevelPortals takes nothing returns call DestroyTimer(GetExpiredTimer()) endfunction -function WoWReforgedLevels___Init takes nothing returns nothing +function WoWReforgedLevels__Init takes nothing returns nothing call AddLevel("AZ" , 'I0T0' , "wowr") // Azeroth call AddLevel("EC" , 'I0SZ' , "wowr_elvenclan") // Elven Clan call AddLevel("OT" , 'I12N' , "wowr_orgrimmar_tunnels") // Orgrimmar Tunnels call AddLevel("FW" , 'I148' , "wowr_felwood") // Felwood call AddLevel("AV" , 'I14B' , "wowr_ashenvale") // Ashenvale - call TriggerRegisterAnyUnitEventBJ(WoWReforgedLevels___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedLevels___sellTrigger, Condition(function WoWReforgedLevels___TriggerConditionSell)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedLevels__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedLevels__sellTrigger, Condition(function WoWReforgedLevels__TriggerConditionSell)) - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedLevels___TimerFunctionAddLevelPortals) + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedLevels__TimerFunctionAddLevelPortals) endfunction @@ -52052,25 +52052,25 @@ function ReplaceRandomCorpse takes unit whichUnit returns unit return u endfunction -function WoWReforgedRandomCorpse__FilterIsRandomCorpse takes nothing returns boolean +function WoWReforgedRandomCorpse___FilterIsRandomCorpse takes nothing returns boolean return ((GetUnitTypeId((GetFilterUnit()))) == WoWReforgedRandomCorpse_UNIT_TYPE_ID) // INLINED!! endfunction -function WoWReforgedRandomCorpse__ReplaceRandomCorpseEnum takes nothing returns nothing +function WoWReforgedRandomCorpse___ReplaceRandomCorpseEnum takes nothing returns nothing call ReplaceRandomCorpse(GetEnumUnit()) endfunction -function WoWReforgedRandomCorpse__ReplaceAllRandomCorpses takes nothing returns nothing +function WoWReforgedRandomCorpse___ReplaceAllRandomCorpses takes nothing returns nothing local group g= CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedRandomCorpse__FilterIsRandomCorpse)) - call ForGroup(g, function WoWReforgedRandomCorpse__ReplaceRandomCorpseEnum) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedRandomCorpse___FilterIsRandomCorpse)) + call ForGroup(g, function WoWReforgedRandomCorpse___ReplaceRandomCorpseEnum) call GroupClear(g) call DestroyGroup(g) set g=null endfunction -function WoWReforgedRandomCorpse__Init takes nothing returns nothing - call TriggerAddAction(OnStartGame__startGameTrigger, (function WoWReforgedRandomCorpse__ReplaceAllRandomCorpses)) // INLINED!! +function WoWReforgedRandomCorpse___Init takes nothing returns nothing + call TriggerAddAction(OnStartGame__startGameTrigger, (function WoWReforgedRandomCorpse___ReplaceAllRandomCorpses)) // INLINED!! endfunction @@ -52078,7 +52078,7 @@ endfunction //library WoWReforgedTaunts: function AddTauntWoWReforged takes nothing returns nothing - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! endfunction @@ -52100,39 +52100,39 @@ endfunction function RemoveAllWitchHutAbilities takes unit whichUnit returns nothing local integer i= 0 loop - exitwhen ( i >= WoWReforgedWitchHut__unitTypeIdsCounter ) - call UnitRemoveAbility(whichUnit, WoWReforgedWitchHut__abilityIds[i]) + exitwhen ( i >= WoWReforgedWitchHut___unitTypeIdsCounter ) + call UnitRemoveAbility(whichUnit, WoWReforgedWitchHut___abilityIds[i]) set i=i + 1 endloop endfunction function EnableWitchHut takes unit whichUnit returns nothing local integer i= 0 - call GroupAddUnit(WoWReforgedWitchHut__witchHuts, whichUnit) + call GroupAddUnit(WoWReforgedWitchHut___witchHuts, whichUnit) call EnablePagedButtons(whichUnit) call AddPagedButtonsId((whichUnit ) , ( WoWReforgedWitchHut_UNIT_TYPE_REMOVE_ABILITIES) , PagedButtons_BUTTON_TYPE_UNIT) // INLINED!! loop - exitwhen ( i >= WoWReforgedWitchHut__unitTypeIdsCounter ) -call AddPagedButtonsId((whichUnit ) , ( WoWReforgedWitchHut__unitTypeIds[i]) , PagedButtons_BUTTON_TYPE_UNIT) // INLINED!! + exitwhen ( i >= WoWReforgedWitchHut___unitTypeIdsCounter ) +call AddPagedButtonsId((whichUnit ) , ( WoWReforgedWitchHut___unitTypeIds[i]) , PagedButtons_BUTTON_TYPE_UNIT) // INLINED!! set i=i + 1 endloop endfunction function IsWitchHut takes unit whichUnit returns boolean - return IsUnitInGroup(whichUnit, WoWReforgedWitchHut__witchHuts) + return IsUnitInGroup(whichUnit, WoWReforgedWitchHut___witchHuts) endfunction function DisableWitchHut takes unit whichUnit returns nothing - call GroupRemoveUnit(WoWReforgedWitchHut__witchHuts, whichUnit) + call GroupRemoveUnit(WoWReforgedWitchHut___witchHuts, whichUnit) call DisablePagedButtons(whichUnit) endfunction function AddWitchHutAbility takes integer abilityId,integer unitTypeId returns integer - local integer index= WoWReforgedWitchHut__unitTypeIdsCounter - call SaveInteger(WoWReforgedWitchHut__h, unitTypeId, 0, abilityId) - set WoWReforgedWitchHut__abilityIds[index]=abilityId - set WoWReforgedWitchHut__unitTypeIds[index]=unitTypeId - set WoWReforgedWitchHut__unitTypeIdsCounter=index + 1 + local integer index= WoWReforgedWitchHut___unitTypeIdsCounter + call SaveInteger(WoWReforgedWitchHut___h, unitTypeId, 0, abilityId) + set WoWReforgedWitchHut___abilityIds[index]=abilityId + set WoWReforgedWitchHut___unitTypeIds[index]=unitTypeId + set WoWReforgedWitchHut___unitTypeIdsCounter=index + 1 return index endfunction @@ -52141,25 +52141,25 @@ function AddWoWReforgedWitchHutAbility takes nothing returns nothing call AddWitchHutAbility(udg_TmpAbilityCode , udg_TmpUnitType) endfunction -function WoWReforgedWitchHut__TriggerConditionConstructFinish takes nothing returns boolean +function WoWReforgedWitchHut___TriggerConditionConstructFinish takes nothing returns boolean if ( GetUnitTypeId(GetConstructedStructure()) == WoWReforgedWitchHut_UNIT_TYPE ) then call EnableWitchHut(GetConstructedStructure()) endif return false endfunction -function WoWReforgedWitchHut__TriggerConditionConstructDeath takes nothing returns boolean - if ( (IsUnitInGroup((GetTriggerUnit()), WoWReforgedWitchHut__witchHuts)) ) then // INLINED!! +function WoWReforgedWitchHut___TriggerConditionConstructDeath takes nothing returns boolean + if ( (IsUnitInGroup((GetTriggerUnit()), WoWReforgedWitchHut___witchHuts)) ) then // INLINED!! call DisableWitchHut(GetTriggerUnit()) endif return false endfunction -function WoWReforgedWitchHut__TriggerConditionSell takes nothing returns boolean +function WoWReforgedWitchHut___TriggerConditionSell takes nothing returns boolean local integer soldUnitTypeId= GetUnitTypeId(GetSoldUnit()) local integer abilityId= 0 - if ( (IsUnitInGroup((GetSellingUnit()), WoWReforgedWitchHut__witchHuts)) ) then // INLINED!! - set abilityId=LoadInteger(WoWReforgedWitchHut__h, soldUnitTypeId, 0) + if ( (IsUnitInGroup((GetSellingUnit()), WoWReforgedWitchHut___witchHuts)) ) then // INLINED!! + set abilityId=LoadInteger(WoWReforgedWitchHut___h, soldUnitTypeId, 0) if ( soldUnitTypeId == WoWReforgedWitchHut_UNIT_TYPE_REMOVE_ABILITIES ) then call RemoveAllWitchHutAbilities(GetBuyingUnit()) call h__DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()), 0.0, 0.0, 4.0, "Removed all added abilities from " + GetUnitName(GetBuyingUnit()) + ".") @@ -52172,24 +52172,24 @@ function WoWReforgedWitchHut__TriggerConditionSell takes nothing returns boolean return false endfunction -function WoWReforgedWitchHut__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedWitchHut__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedWitchHut__constructionTrigger, Condition(function WoWReforgedWitchHut__TriggerConditionConstructFinish)) +function WoWReforgedWitchHut___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedWitchHut___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedWitchHut___constructionTrigger, Condition(function WoWReforgedWitchHut___TriggerConditionConstructFinish)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedWitchHut__deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedWitchHut__deathTrigger, Condition(function WoWReforgedWitchHut__TriggerConditionConstructDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedWitchHut___deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedWitchHut___deathTrigger, Condition(function WoWReforgedWitchHut___TriggerConditionConstructDeath)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedWitchHut__sellTrigger, EVENT_PLAYER_UNIT_SELL) - call TriggerAddCondition(WoWReforgedWitchHut__sellTrigger, Condition(function WoWReforgedWitchHut__TriggerConditionSell)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedWitchHut___sellTrigger, EVENT_PLAYER_UNIT_SELL) + call TriggerAddCondition(WoWReforgedWitchHut___sellTrigger, Condition(function WoWReforgedWitchHut___TriggerConditionSell)) endfunction -function WoWReforgedWitchHut__HookRemoveUnit takes unit whichUnit returns nothing - if ( (IsUnitInGroup((whichUnit), WoWReforgedWitchHut__witchHuts)) ) then // INLINED!! +function WoWReforgedWitchHut___HookRemoveUnit takes unit whichUnit returns nothing + if ( (IsUnitInGroup((whichUnit), WoWReforgedWitchHut___witchHuts)) ) then // INLINED!! call DisableWitchHut(whichUnit) endif endfunction -//processed hook: hook RemoveUnit WoWReforgedWitchHut__HookRemoveUnit +//processed hook: hook RemoveUnit WoWReforgedWitchHut___HookRemoveUnit //library WoWReforgedWitchHut ends @@ -52597,8 +52597,8 @@ endfunction //library Demoralize: -function Demoralize___FiterIsTarget takes nothing returns boolean - return IsUnitAliveBJ(GetFilterUnit()) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitAlly(GetFilterUnit(), Demoralize___tmpPlayer) +function Demoralize__FiterIsTarget takes nothing returns boolean + return IsUnitAliveBJ(GetFilterUnit()) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitAlly(GetFilterUnit(), Demoralize__tmpPlayer) endfunction function Demoralize takes unit caster returns nothing @@ -52612,8 +52612,8 @@ function Demoralize takes unit caster returns nothing local real x= 0.0 local real y= 0.0 local real facing= 0.0 - set Demoralize___tmpPlayer=GetOwningPlayer(caster) - call GroupEnumUnitsInRange(targets, GetUnitX(caster), GetUnitY(caster), 512.0, Filter(function Demoralize___FiterIsTarget)) + set Demoralize__tmpPlayer=GetOwningPlayer(caster) + call GroupEnumUnitsInRange(targets, GetUnitX(caster), GetUnitY(caster), 512.0, Filter(function Demoralize__FiterIsTarget)) set max=BlzGroupGetSize(targets) if ( max > 0 ) then set i=0 @@ -52634,25 +52634,25 @@ function Demoralize takes unit caster returns nothing set i=i + 1 endloop else - call SimError(Demoralize___tmpPlayer , "No targets.") + call SimError(Demoralize__tmpPlayer , "No targets.") call IssueImmediateOrder(caster, "stop") endif - set Demoralize___tmpPlayer=null + set Demoralize__tmpPlayer=null call GroupClear(targets) call DestroyGroup(targets) set targets=null endfunction -function Demoralize___TriggerConditionCast takes nothing returns boolean +function Demoralize__TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == Demoralize_ABILITY_ID ) then call Demoralize(GetTriggerUnit()) endif return false endfunction -function Demoralize___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(Demoralize___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(Demoralize___castTrigger, Condition(function Demoralize___TriggerConditionCast)) +function Demoralize__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(Demoralize__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(Demoralize__castTrigger, Condition(function Demoralize__TriggerConditionCast)) endfunction @@ -52660,8 +52660,8 @@ endfunction //library HolyNova: -function HolyNova___FilterIsEnemyInRange takes nothing returns boolean - return IsUnitAliveBJ(GetFilterUnit()) and ( IsUnitType(GetFilterUnit(), UNIT_TYPE_UNDEAD) and not IsUnitAlly(GetFilterUnit(), GetOwningPlayer(HolyNova___tmpCaster)) and GetOwningPlayer(GetFilterUnit()) != GetOwningPlayer(HolyNova___tmpCaster) and GetUnitAbilityLevel(GetFilterUnit(), 'Avul') == 0 ) or ( not IsUnitType(GetFilterUnit(), UNIT_TYPE_UNDEAD) and ( IsUnitAlly(GetFilterUnit(), GetOwningPlayer(HolyNova___tmpCaster)) or GetOwningPlayer(GetFilterUnit()) == GetOwningPlayer(HolyNova___tmpCaster) ) and GetUnitState(GetFilterUnit(), UNIT_STATE_LIFE) < GetUnitState(GetFilterUnit(), UNIT_STATE_MAX_LIFE) ) +function HolyNova__FilterIsEnemyInRange takes nothing returns boolean + return IsUnitAliveBJ(GetFilterUnit()) and ( IsUnitType(GetFilterUnit(), UNIT_TYPE_UNDEAD) and not IsUnitAlly(GetFilterUnit(), GetOwningPlayer(HolyNova__tmpCaster)) and GetOwningPlayer(GetFilterUnit()) != GetOwningPlayer(HolyNova__tmpCaster) and GetUnitAbilityLevel(GetFilterUnit(), 'Avul') == 0 ) or ( not IsUnitType(GetFilterUnit(), UNIT_TYPE_UNDEAD) and ( IsUnitAlly(GetFilterUnit(), GetOwningPlayer(HolyNova__tmpCaster)) or GetOwningPlayer(GetFilterUnit()) == GetOwningPlayer(HolyNova__tmpCaster) ) and GetUnitState(GetFilterUnit(), UNIT_STATE_LIFE) < GetUnitState(GetFilterUnit(), UNIT_STATE_MAX_LIFE) ) endfunction function HolyNova takes unit caster,integer abilityId returns nothing @@ -52674,7 +52674,7 @@ function HolyNova takes unit caster,integer abilityId returns nothing local effect casterEffect local integer max= 0 local integer i= 0 - call GroupEnumUnitsInRange(targets, GetUnitX(caster), GetUnitY(caster), 900.0, Filter(function HolyNova___FilterIsEnemyInRange)) + call GroupEnumUnitsInRange(targets, GetUnitX(caster), GetUnitY(caster), 900.0, Filter(function HolyNova__FilterIsEnemyInRange)) set max=BlzGroupGetSize(targets) if ( max > 0 ) then set casterEffect=AddSpecialEffectTarget("war3mapImported\\Holy Nova.mdx", caster, "origin") @@ -52708,18 +52708,18 @@ function HolyNova takes unit caster,integer abilityId returns nothing set owner=null endfunction -function HolyNova___TriggerConditionCast takes nothing returns boolean +function HolyNova__TriggerConditionCast takes nothing returns boolean return GetSpellAbilityId() == HolyNova_ABILITY_ID or GetSpellAbilityId() == HolyNova_ABILITY_ID_2 endfunction -function HolyNova___TriggerActionCast takes nothing returns nothing +function HolyNova__TriggerActionCast takes nothing returns nothing call HolyNova(GetTriggerUnit() , GetSpellAbilityId()) endfunction -function HolyNova___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(HolyNova___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(HolyNova___castTrigger, Condition(function HolyNova___TriggerConditionCast)) - call TriggerAddAction(HolyNova___castTrigger, function HolyNova___TriggerActionCast) +function HolyNova__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(HolyNova__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(HolyNova__castTrigger, Condition(function HolyNova__TriggerConditionCast)) + call TriggerAddAction(HolyNova__castTrigger, function HolyNova__TriggerActionCast) endfunction @@ -52727,31 +52727,31 @@ endfunction //library MassDevour: -function MassDevour___MassDevourClearTarget takes unit target returns nothing +function MassDevour__MassDevourClearTarget takes unit target returns nothing local integer handleId= GetHandleId(target) - call FlushChildHashtable(MassDevour___h, handleId) + call FlushChildHashtable(MassDevour__h, handleId) endfunction -function MassDevour___MassDevourClearCaster takes unit caster returns nothing +function MassDevour__MassDevourClearCaster takes unit caster returns nothing local integer handleId= GetHandleId(caster) - local group d= LoadGroupHandle(MassDevour___h, handleId, MassDevour___KEY_DUMMIES) + local group d= LoadGroupHandle(MassDevour__h, handleId, MassDevour__KEY_DUMMIES) if ( d != null ) then call GroupClear(d) call DestroyGroup(d) endif - call FlushChildHashtable(MassDevour___h, handleId) + call FlushChildHashtable(MassDevour__h, handleId) endfunction -function MassDevour___MassDevourFilter takes nothing returns boolean +function MassDevour__MassDevourFilter takes nothing returns boolean local unit filterUnit= GetFilterUnit() local integer level= GetUnitLevel(filterUnit) - local integer maxLevel= GetUnitAbilityLevel(MassDevour___c, MassDevour___ABILITY_ID) * 5 - local boolean result= level <= maxLevel and not IsUnitAlly(filterUnit, MassDevour___owner) and not IsUnitDeadBJ(filterUnit) and not IsUnitType(filterUnit, UNIT_TYPE_STRUCTURE) and not IsUnitType(filterUnit, UNIT_TYPE_MAGIC_IMMUNE) + local integer maxLevel= GetUnitAbilityLevel(MassDevour__c, MassDevour__ABILITY_ID) * 5 + local boolean result= level <= maxLevel and not IsUnitAlly(filterUnit, MassDevour__owner) and not IsUnitDeadBJ(filterUnit) and not IsUnitType(filterUnit, UNIT_TYPE_STRUCTURE) and not IsUnitType(filterUnit, UNIT_TYPE_MAGIC_IMMUNE) set filterUnit=null return result endfunction -function MassDevour___ForGroupDevour takes nothing returns nothing +function MassDevour__ForGroupDevour takes nothing returns nothing local unit target= GetEnumUnit() local real x= GetUnitX(target) local real y= GetUnitY(target) @@ -52759,28 +52759,28 @@ function MassDevour___ForGroupDevour takes nothing returns nothing local real dummyX= PolarProjectionX(GetUnitX(target) , 60.0 , facing) local real dummyY= PolarProjectionY(GetUnitY(target) , 60.0 , facing) local real dummyFacing= AngleBetweenCoordinatesDeg(x , y , dummyX , dummyY) - local unit dummy= CreateUnit(MassDevour___owner, MassDevour___DUMMY_ID, dummyX, dummyY, dummyFacing) - local integer abilityLevel= GetUnitAbilityLevel(MassDevour___c, MassDevour___ABILITY_ID) + local unit dummy= CreateUnit(MassDevour__owner, MassDevour__DUMMY_ID, dummyX, dummyY, dummyFacing) + local integer abilityLevel= GetUnitAbilityLevel(MassDevour__c, MassDevour__ABILITY_ID) //call BJDebugMsg("Caster " + GetUnitName(c) + " with ability level " + I2S(abilityLevel) + " for dummy " + GetUnitName(dummy) + " to target " + GetUnitName(target)) - call UnitAddAbility(dummy, MassDevour___DUMMY_DEVOUR_ABILITY_ID) - call UnitAddAbility(dummy, MassDevour___DUMMY_DEVOUR_CARGO_ABILITY_ID) + call UnitAddAbility(dummy, MassDevour__DUMMY_DEVOUR_ABILITY_ID) + call UnitAddAbility(dummy, MassDevour__DUMMY_DEVOUR_CARGO_ABILITY_ID) //call BJDebugMsg("Dummy 1 " + GetUnitName(dummy)) - call UnitMakeAbilityPermanent(dummy, true, MassDevour___DUMMY_DEVOUR_ABILITY_ID) - call UnitMakeAbilityPermanent(dummy, true, MassDevour___DUMMY_DEVOUR_CARGO_ABILITY_ID) + call UnitMakeAbilityPermanent(dummy, true, MassDevour__DUMMY_DEVOUR_ABILITY_ID) + call UnitMakeAbilityPermanent(dummy, true, MassDevour__DUMMY_DEVOUR_CARGO_ABILITY_ID) //call BJDebugMsg("Dummy 2 " + GetUnitName(dummy)) - call SetUnitAbilityLevel(dummy, MassDevour___DUMMY_DEVOUR_ABILITY_ID, abilityLevel) - call SetUnitAbilityLevel(dummy, MassDevour___DUMMY_DEVOUR_CARGO_ABILITY_ID, abilityLevel) + call SetUnitAbilityLevel(dummy, MassDevour__DUMMY_DEVOUR_ABILITY_ID, abilityLevel) + call SetUnitAbilityLevel(dummy, MassDevour__DUMMY_DEVOUR_CARGO_ABILITY_ID, abilityLevel) //call BJDebugMsg("Dummy 3 " + GetUnitName(dummy)) call SetUnitInvulnerable(dummy, true) //call SelectUnit(dummy, true) //call BJDebugMsg("After invulnerable") call ShowUnit(dummy, false) //call BJDebugMsg("Dummy 4 " + GetUnitName(dummy)) - call GroupAddUnit(MassDevour___dummies, dummy) - call SaveUnitHandle(MassDevour___h, GetHandleId(dummy), MassDevour___KEY_CASTER, MassDevour___c) + call GroupAddUnit(MassDevour__dummies, dummy) + call SaveUnitHandle(MassDevour__h, GetHandleId(dummy), MassDevour__KEY_CASTER, MassDevour__c) //call BJDebugMsg("Dummy 5 " + GetUnitName(dummy)) //call BJDebugMsg("Before issuing") - call IssueTargetOrder(dummy, MassDevour___DUMMY_DEVOUR_ORDER, target) + call IssueTargetOrder(dummy, MassDevour__DUMMY_DEVOUR_ORDER, target) //call BJDebugMsg("Dummy 6 " + GetUnitName(dummy)) //call BJDebugMsg("After issuing") set dummy=null @@ -52788,110 +52788,110 @@ function MassDevour___ForGroupDevour takes nothing returns nothing endfunction -function MassDevour___ForGroupMassDevourCasterDies takes nothing returns nothing +function MassDevour__ForGroupMassDevourCasterDies takes nothing returns nothing local unit dummy= GetEnumUnit() - call SetUnitX(dummy, GetUnitX(MassDevour___tmpCaster)) - call SetUnitY(dummy, GetUnitY(MassDevour___tmpCaster)) + call SetUnitX(dummy, GetUnitX(MassDevour__tmpCaster)) + call SetUnitY(dummy, GetUnitY(MassDevour__tmpCaster)) call SetUnitInvulnerable(dummy, false) call KillUnit(dummy) call h__RemoveUnit(dummy) set dummy=null endfunction -function MassDevour___CastMassDevour takes unit caster,real x,real y returns nothing - local group d= LoadGroupHandle(MassDevour___h, GetHandleId(caster), MassDevour___KEY_DUMMIES) - local group l__MassDevour___targets= CreateGroup() - set MassDevour___owner=GetOwningPlayer(caster) - set MassDevour___c=caster - call GroupEnumUnitsInRange(l__MassDevour___targets, x, y, MassDevour___RANGE, Filter(function MassDevour___MassDevourFilter)) +function MassDevour__CastMassDevour takes unit caster,real x,real y returns nothing + local group d= LoadGroupHandle(MassDevour__h, GetHandleId(caster), MassDevour__KEY_DUMMIES) + local group l__MassDevour__targets= CreateGroup() + set MassDevour__owner=GetOwningPlayer(caster) + set MassDevour__c=caster + call GroupEnumUnitsInRange(l__MassDevour__targets, x, y, MassDevour__RANGE, Filter(function MassDevour__MassDevourFilter)) - if ( BlzGroupGetSize(l__MassDevour___targets) > 0 ) then + if ( BlzGroupGetSize(l__MassDevour__targets) > 0 ) then if ( d == null ) then - set MassDevour___dummies=CreateGroup() + set MassDevour__dummies=CreateGroup() else - set MassDevour___dummies=d + set MassDevour__dummies=d endif - call ForGroup(l__MassDevour___targets, function MassDevour___ForGroupDevour) - call SaveGroupHandle(MassDevour___h, GetHandleId(caster), MassDevour___KEY_DUMMIES, MassDevour___dummies) - call GroupAddUnit(MassDevour___casters, caster) + call ForGroup(l__MassDevour__targets, function MassDevour__ForGroupDevour) + call SaveGroupHandle(MassDevour__h, GetHandleId(caster), MassDevour__KEY_DUMMIES, MassDevour__dummies) + call GroupAddUnit(MassDevour__casters, caster) else call IssueImmediateOrder(caster, "stop") - call SimError(MassDevour___owner , "No targets.") + call SimError(MassDevour__owner , "No targets.") endif - call GroupClear(l__MassDevour___targets) - call DestroyGroup(l__MassDevour___targets) - set l__MassDevour___targets=null + call GroupClear(l__MassDevour__targets) + call DestroyGroup(l__MassDevour__targets) + set l__MassDevour__targets=null endfunction -function MassDevour___TriggerConditionCast takes nothing returns boolean - return GetSpellAbilityId() == MassDevour___ABILITY_ID +function MassDevour__TriggerConditionCast takes nothing returns boolean + return GetSpellAbilityId() == MassDevour__ABILITY_ID endfunction -function MassDevour___TriggerActionCast takes nothing returns nothing - call MassDevour___CastMassDevour(GetTriggerUnit() , GetSpellTargetX() , GetSpellTargetY()) +function MassDevour__TriggerActionCast takes nothing returns nothing + call MassDevour__CastMassDevour(GetTriggerUnit() , GetSpellTargetX() , GetSpellTargetY()) endfunction -function MassDevour___TriggerConditionDeathCaster takes nothing returns boolean - return IsUnitInGroup(GetTriggerUnit(), MassDevour___casters) +function MassDevour__TriggerConditionDeathCaster takes nothing returns boolean + return IsUnitInGroup(GetTriggerUnit(), MassDevour__casters) endfunction -function MassDevour___TriggerActionDeathCaster takes nothing returns nothing - local group d= LoadGroupHandle(MassDevour___h, GetHandleId(GetTriggerUnit()), MassDevour___KEY_DUMMIES) - set MassDevour___tmpCaster=GetTriggerUnit() - call ForGroup(d, function MassDevour___ForGroupMassDevourCasterDies) +function MassDevour__TriggerActionDeathCaster takes nothing returns nothing + local group d= LoadGroupHandle(MassDevour__h, GetHandleId(GetTriggerUnit()), MassDevour__KEY_DUMMIES) + set MassDevour__tmpCaster=GetTriggerUnit() + call ForGroup(d, function MassDevour__ForGroupMassDevourCasterDies) call GroupClear(d) call DestroyGroup(d) - call GroupRemoveUnit(MassDevour___casters, GetTriggerUnit()) - call MassDevour___MassDevourClearCaster(GetTriggerUnit()) + call GroupRemoveUnit(MassDevour__casters, GetTriggerUnit()) + call MassDevour__MassDevourClearCaster(GetTriggerUnit()) set d=null endfunction -function MassDevour___TriggerConditionDeathTarget takes nothing returns boolean - return IsUnitInGroup(GetTriggerUnit(), MassDevour___targets) +function MassDevour__TriggerConditionDeathTarget takes nothing returns boolean + return IsUnitInGroup(GetTriggerUnit(), MassDevour__targets) endfunction -function MassDevour___TriggerActionDeathTarget takes nothing returns nothing +function MassDevour__TriggerActionDeathTarget takes nothing returns nothing local unit target= GetTriggerUnit() - local unit caster= LoadUnitHandle(MassDevour___h, GetHandleId(target), MassDevour___KEY_CASTER) - local unit dummy= LoadUnitHandle(MassDevour___h, GetHandleId(target), MassDevour___KEY_DUMMY) - local group d= LoadGroupHandle(MassDevour___h, GetHandleId(caster), MassDevour___KEY_DUMMIES) + local unit caster= LoadUnitHandle(MassDevour__h, GetHandleId(target), MassDevour__KEY_CASTER) + local unit dummy= LoadUnitHandle(MassDevour__h, GetHandleId(target), MassDevour__KEY_DUMMY) + local group d= LoadGroupHandle(MassDevour__h, GetHandleId(caster), MassDevour__KEY_DUMMIES) call GroupRemoveUnit(d, dummy) call SetUnitInvulnerable(dummy, false) call KillUnit(dummy) call h__RemoveUnit(dummy) set dummy=null - call GroupRemoveUnit(MassDevour___targets, target) - call MassDevour___MassDevourClearTarget(target) + call GroupRemoveUnit(MassDevour__targets, target) + call MassDevour__MassDevourClearTarget(target) if ( BlzGroupGetSize(d) == 0 ) then - call GroupRemoveUnit(MassDevour___casters, target) - call MassDevour___MassDevourClearCaster(target) + call GroupRemoveUnit(MassDevour__casters, target) + call MassDevour__MassDevourClearCaster(target) endif set target=null set d=null endfunction -function MassDevour___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(MassDevour___castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(MassDevour___castTrigger, Condition(function MassDevour___TriggerConditionCast)) - call TriggerAddAction(MassDevour___castTrigger, function MassDevour___TriggerActionCast) +function MassDevour__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(MassDevour__castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(MassDevour__castTrigger, Condition(function MassDevour__TriggerConditionCast)) + call TriggerAddAction(MassDevour__castTrigger, function MassDevour__TriggerActionCast) - call TriggerRegisterAnyUnitEventBJ(MassDevour___deathTriggerCaster, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(MassDevour___deathTriggerCaster, Condition(function MassDevour___TriggerConditionDeathCaster)) - call TriggerAddAction(MassDevour___deathTriggerCaster, function MassDevour___TriggerActionDeathCaster) + call TriggerRegisterAnyUnitEventBJ(MassDevour__deathTriggerCaster, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(MassDevour__deathTriggerCaster, Condition(function MassDevour__TriggerConditionDeathCaster)) + call TriggerAddAction(MassDevour__deathTriggerCaster, function MassDevour__TriggerActionDeathCaster) - call TriggerRegisterAnyUnitEventBJ(MassDevour___deathTriggerTarget, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(MassDevour___deathTriggerTarget, Condition(function MassDevour___TriggerConditionDeathTarget)) - call TriggerAddAction(MassDevour___deathTriggerTarget, function MassDevour___TriggerActionDeathTarget) + call TriggerRegisterAnyUnitEventBJ(MassDevour__deathTriggerTarget, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(MassDevour__deathTriggerTarget, Condition(function MassDevour__TriggerConditionDeathTarget)) + call TriggerAddAction(MassDevour__deathTriggerTarget, function MassDevour__TriggerActionDeathTarget) endfunction -function MassDevour___RemoveUnitMassDevour takes unit whichUnit returns nothing - call GroupRemoveUnit(MassDevour___targets, whichUnit) - call GroupRemoveUnit(MassDevour___casters, whichUnit) - call MassDevour___MassDevourClearTarget(whichUnit) - call MassDevour___MassDevourClearCaster(whichUnit) +function MassDevour__RemoveUnitMassDevour takes unit whichUnit returns nothing + call GroupRemoveUnit(MassDevour__targets, whichUnit) + call GroupRemoveUnit(MassDevour__casters, whichUnit) + call MassDevour__MassDevourClearTarget(whichUnit) + call MassDevour__MassDevourClearCaster(whichUnit) endfunction -//processed hook: hook RemoveUnit MassDevour___RemoveUnitMassDevour +//processed hook: hook RemoveUnit MassDevour__RemoveUnitMassDevour //library MassDevour ends @@ -53345,15 +53345,15 @@ endfunction //library Parry: -function Parry___TimerFunctionExpires takes nothing returns nothing +function Parry__TimerFunctionExpires takes nothing returns nothing local timer t= GetExpiredTimer() local integer handleId= GetHandleId(t) - local unit caster= LoadUnitHandle(Parry___h, handleId, 0) + local unit caster= LoadUnitHandle(Parry__h, handleId, 0) - call GroupRemoveUnit(Parry___casters, caster) + call GroupRemoveUnit(Parry__casters, caster) call UnitRemoveAbility(caster, Parry_BUFF_ABILITY_ID) - call FlushChildHashtable(Parry___h, handleId) + call FlushChildHashtable(Parry__h, handleId) call PauseTimer(t) call DestroyTimer(t) set t=null @@ -53361,31 +53361,31 @@ endfunction function Parry takes unit caster returns nothing local integer handleId= GetHandleId(caster) - local timer t= LoadTimerHandle(Parry___h, handleId, 0) + local timer t= LoadTimerHandle(Parry__h, handleId, 0) local real duration= 1.0 + I2R(GetUnitAbilityLevel(caster, Parry_ABILITY_ID)) * 0.5 - call GroupAddUnit(Parry___casters, caster) + call GroupAddUnit(Parry__casters, caster) call UnitAddAbility(caster, Parry_BUFF_ABILITY_ID) if ( t == null ) then set t=CreateTimer() endif - call TimerStart(t, duration, false, function Parry___TimerFunctionExpires) - call SaveTimerHandle(Parry___h, handleId, 0, t) + call TimerStart(t, duration, false, function Parry__TimerFunctionExpires) + call SaveTimerHandle(Parry__h, handleId, 0, t) set handleId=GetHandleId(t) - call SaveUnitHandle(Parry___h, handleId, 0, caster) + call SaveUnitHandle(Parry__h, handleId, 0, caster) set t=null endfunction -function Parry___TriggerConditionCast takes nothing returns boolean +function Parry__TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == Parry_ABILITY_ID ) then call Parry(GetTriggerUnit()) endif return false endfunction -function Parry___TriggerConditionAttack takes nothing returns boolean +function Parry__TriggerConditionAttack takes nothing returns boolean local real x= GetUnitX(GetTriggerUnit()) local real y= GetUnitY(GetTriggerUnit()) - if ( IsUnitInGroup(GetTriggerUnit(), Parry___casters) ) then + if ( IsUnitInGroup(GetTriggerUnit(), Parry__casters) ) then call BlzUnitInterruptAttack(GetAttacker()) call ShowFadingTextTagForForce(bj_FORCE_PLAYER[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] , "Parry!" , 0.025 , x , y , 255 , 0 , 0 , 255 , 0.04 , 2.0 , 5.0) call ShowFadingTextTagForForce(bj_FORCE_PLAYER[GetPlayerId(GetOwningPlayer(GetAttacker()))] , "Parry!" , 0.025 , x , y , 255 , 0 , 0 , 255 , 0.04 , 2.0 , 5.0) @@ -53393,62 +53393,62 @@ function Parry___TriggerConditionAttack takes nothing returns boolean return false endfunction -function Parry___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(Parry___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(Parry___castTrigger, Condition(function Parry___TriggerConditionCast)) - call TriggerRegisterAnyUnitEventBJ(Parry___attackTrigger, EVENT_PLAYER_UNIT_ATTACKED) - call TriggerAddCondition(Parry___attackTrigger, Condition(function Parry___TriggerConditionAttack)) +function Parry__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(Parry__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(Parry__castTrigger, Condition(function Parry__TriggerConditionCast)) + call TriggerRegisterAnyUnitEventBJ(Parry__attackTrigger, EVENT_PLAYER_UNIT_ATTACKED) + call TriggerAddCondition(Parry__attackTrigger, Condition(function Parry__TriggerConditionAttack)) endfunction -function Parry___StopEffect takes unit whichUnit returns nothing +function Parry__StopEffect takes unit whichUnit returns nothing local integer handleId= GetHandleId(whichUnit) - local timer t= LoadTimerHandle(Parry___h, handleId, 0) - call FlushChildHashtable(Parry___h, GetHandleId(t)) + local timer t= LoadTimerHandle(Parry__h, handleId, 0) + call FlushChildHashtable(Parry__h, GetHandleId(t)) call PauseTimer(t) call DestroyTimer(t) - call FlushChildHashtable(Parry___h, handleId) - call GroupRemoveUnit(Parry___casters, whichUnit) + call FlushChildHashtable(Parry__h, handleId) + call GroupRemoveUnit(Parry__casters, whichUnit) endfunction -function Parry___RemoveUnitHook takes unit whichUnit returns nothing - if ( IsUnitInGroup(whichUnit, Parry___casters) ) then - call Parry___StopEffect(whichUnit) +function Parry__RemoveUnitHook takes unit whichUnit returns nothing + if ( IsUnitInGroup(whichUnit, Parry__casters) ) then + call Parry__StopEffect(whichUnit) endif endfunction -//processed hook: hook RemoveUnit Parry___RemoveUnitHook +//processed hook: hook RemoveUnit Parry__RemoveUnitHook //library Parry ends //library PhoenixEgg: -function PhoenixEgg___TimerFunctionExpires takes nothing returns nothing +function PhoenixEgg__TimerFunctionExpires takes nothing returns nothing local timer t= GetExpiredTimer() local integer handleId= GetHandleId(t) - local unit egg= LoadUnitHandle(PhoenixEgg___h, handleId, 0) - local unit hero= LoadUnitHandle(PhoenixEgg___h, handleId, 1) + local unit egg= LoadUnitHandle(PhoenixEgg__h, handleId, 0) + local unit hero= LoadUnitHandle(PhoenixEgg__h, handleId, 1) call ReviveHero(hero, GetUnitX(egg), GetUnitY(egg), true) call KillUnit(egg) - call GroupRemoveUnit(PhoenixEgg___eggs, egg) + call GroupRemoveUnit(PhoenixEgg__eggs, egg) - call FlushChildHashtable(PhoenixEgg___h, handleId) + call FlushChildHashtable(PhoenixEgg__h, handleId) call PauseTimer(t) call DestroyTimer(t) set t=null endfunction -function PhoenixEgg___StopEffect takes unit egg returns nothing +function PhoenixEgg__StopEffect takes unit egg returns nothing local integer handleId= GetHandleId(egg) - local timer t= LoadTimerHandle(PhoenixEgg___h, handleId, 0) - call FlushChildHashtable(PhoenixEgg___h, GetHandleId(t)) + local timer t= LoadTimerHandle(PhoenixEgg__h, handleId, 0) + call FlushChildHashtable(PhoenixEgg__h, GetHandleId(t)) call PauseTimer(t) call DestroyTimer(t) - call FlushChildHashtable(PhoenixEgg___h, handleId) - call GroupRemoveUnit(PhoenixEgg___eggs, egg) + call FlushChildHashtable(PhoenixEgg__h, handleId) + call GroupRemoveUnit(PhoenixEgg__eggs, egg) endfunction function GetPhoenixEggAbilityId takes unit hero returns integer @@ -53463,21 +53463,21 @@ endfunction function PhoenixEgg takes unit hero,unit egg returns nothing local integer handleId= GetHandleId(egg) - local timer t= LoadTimerHandle(PhoenixEgg___h, handleId, 0) + local timer t= LoadTimerHandle(PhoenixEgg__h, handleId, 0) local real duration= 20.0 - I2R(GetPhoenixEggAbilityId(hero)) * 1.0 - call GroupAddUnit(PhoenixEgg___eggs, egg) + call GroupAddUnit(PhoenixEgg__eggs, egg) if ( t == null ) then set t=CreateTimer() endif - call TimerStart(t, duration, false, function PhoenixEgg___TimerFunctionExpires) - call SaveTimerHandle(PhoenixEgg___h, handleId, 0, t) + call TimerStart(t, duration, false, function PhoenixEgg__TimerFunctionExpires) + call SaveTimerHandle(PhoenixEgg__h, handleId, 0, t) set handleId=GetHandleId(t) - call SaveUnitHandle(PhoenixEgg___h, handleId, 0, egg) - call SaveUnitHandle(PhoenixEgg___h, handleId, 1, hero) + call SaveUnitHandle(PhoenixEgg__h, handleId, 0, egg) + call SaveUnitHandle(PhoenixEgg__h, handleId, 1, hero) set t=null endfunction -function PhoenixEgg___TriggerConditionSummon takes nothing returns boolean +function PhoenixEgg__TriggerConditionSummon takes nothing returns boolean //call BJDebugMsg(GetUnitName(GetSummoningUnit()) + " summons " + GetUnitName(GetSummonedUnit())) if ( GetUnitTypeId(GetSummonedUnit()) == PhoenixEgg_UNIT_TYPE_ID and IsUnitType(GetSummoningUnit(), UNIT_TYPE_HERO) ) then //call BJDebugMsg(GetUnitName(GetSummoningUnit()) + " summons " + GetUnitName(GetSummonedUnit())) @@ -53486,27 +53486,27 @@ function PhoenixEgg___TriggerConditionSummon takes nothing returns boolean return false endfunction -function PhoenixEgg___TriggerConditionDeath takes nothing returns boolean - if ( IsUnitInGroup(GetTriggerUnit(), PhoenixEgg___eggs) ) then - call PhoenixEgg___StopEffect(GetTriggerUnit()) +function PhoenixEgg__TriggerConditionDeath takes nothing returns boolean + if ( IsUnitInGroup(GetTriggerUnit(), PhoenixEgg__eggs) ) then + call PhoenixEgg__StopEffect(GetTriggerUnit()) endif return false endfunction -function PhoenixEgg___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(PhoenixEgg___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(PhoenixEgg___summonTrigger, Condition(function PhoenixEgg___TriggerConditionSummon)) - call TriggerRegisterAnyUnitEventBJ(PhoenixEgg___deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(PhoenixEgg___deathTrigger, Condition(function PhoenixEgg___TriggerConditionDeath)) +function PhoenixEgg__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(PhoenixEgg__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(PhoenixEgg__summonTrigger, Condition(function PhoenixEgg__TriggerConditionSummon)) + call TriggerRegisterAnyUnitEventBJ(PhoenixEgg__deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(PhoenixEgg__deathTrigger, Condition(function PhoenixEgg__TriggerConditionDeath)) endfunction -function PhoenixEgg___RemoveUnitHook takes unit whichUnit returns nothing - if ( IsUnitInGroup(whichUnit, PhoenixEgg___eggs) ) then - call PhoenixEgg___StopEffect(whichUnit) +function PhoenixEgg__RemoveUnitHook takes unit whichUnit returns nothing + if ( IsUnitInGroup(whichUnit, PhoenixEgg__eggs) ) then + call PhoenixEgg__StopEffect(whichUnit) endif endfunction -//processed hook: hook RemoveUnit PhoenixEgg___RemoveUnitHook +//processed hook: hook RemoveUnit PhoenixEgg__RemoveUnitHook //library PhoenixEgg ends @@ -53526,12 +53526,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])) @@ -53549,8 +53549,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 @@ -53558,7 +53558,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 @@ -53566,7 +53566,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 @@ -53651,8 +53651,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 @@ -53664,49 +53664,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 @@ -54480,18 +54480,18 @@ function SummonWall takes unit caster,real targetX,real targetY returns nothing set owner=null endfunction -function SummonWall___TriggerConditionCast takes nothing returns boolean +function SummonWall__TriggerConditionCast takes nothing returns boolean return GetSpellAbilityId() == SummonWall_ABILITY_ID endfunction -function SummonWall___TriggerActionCast takes nothing returns nothing +function SummonWall__TriggerActionCast takes nothing returns nothing call SummonWall(GetTriggerUnit() , GetSpellTargetX() , GetSpellTargetY()) endfunction -function SummonWall___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(SummonWall___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(SummonWall___castTrigger, Condition(function SummonWall___TriggerConditionCast)) - call TriggerAddAction(SummonWall___castTrigger, function SummonWall___TriggerActionCast) +function SummonWall__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(SummonWall__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(SummonWall__castTrigger, Condition(function SummonWall__TriggerConditionCast)) + call TriggerAddAction(SummonWall__castTrigger, function SummonWall__TriggerActionCast) endfunction @@ -54499,24 +54499,24 @@ endfunction //library TailSwipe: -function TailSwipe___onUnitHit takes integer kb,unit hit returns nothing +function TailSwipe__onUnitHit takes integer kb,unit hit returns nothing if ( not IsUnitAlly(hit, GetOwningPlayer(s__Knockback_caster[kb])) ) then call UnitDamageTarget(s__Knockback_caster[kb], hit, GetUnitAbilityLevel(s__Knockback_caster[kb], TailSwipe_ABILITY_ID) * 100.0, true, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL, WEAPON_TYPE_WHOKNOWS) endif endfunction -function TailSwipe___onDestructableHit takes integer kb,destructable hit returns nothing +function TailSwipe__onDestructableHit takes integer kb,destructable hit returns nothing if ( (IsTree(GetDestructableTypeId((hit)))) ) then // INLINED!! call KillDestructable(hit) endif endfunction -function TailSwipe___filterFunction takes integer kb,unit enum returns boolean +function TailSwipe__filterFunction takes integer kb,unit enum returns boolean return not IsUnitAlly(enum, GetOwningPlayer(s__Knockback_caster[kb])) endfunction -function TailSwipe___FiterIsTarget takes nothing returns boolean - return IsUnitAliveBJ(GetFilterUnit()) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitAlly(GetFilterUnit(), TailSwipe___tmpPlayer) +function TailSwipe__FiterIsTarget takes nothing returns boolean + return IsUnitAliveBJ(GetFilterUnit()) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitAlly(GetFilterUnit(), TailSwipe__tmpPlayer) endfunction function TailSwipe takes unit caster returns nothing @@ -54525,8 +54525,8 @@ function TailSwipe takes unit caster returns nothing local integer max= 0 local real distance= 20.0 + GetUnitAbilityLevel(caster, TailSwipe_ABILITY_ID) * 20.0 local unit target= null - set TailSwipe___tmpPlayer=GetOwningPlayer(caster) - call GroupEnumUnitsInRange(targets, GetUnitX(caster), GetUnitY(caster), 512.0, Filter(function TailSwipe___FiterIsTarget)) + set TailSwipe__tmpPlayer=GetOwningPlayer(caster) + call GroupEnumUnitsInRange(targets, GetUnitX(caster), GetUnitY(caster), 512.0, Filter(function TailSwipe__FiterIsTarget)) set max=BlzGroupGetSize(targets) if ( max > 0 ) then set i=0 @@ -54538,25 +54538,25 @@ function TailSwipe takes unit caster returns nothing set i=i + 1 endloop else - call SimError(TailSwipe___tmpPlayer , "No targets.") + call SimError(TailSwipe__tmpPlayer , "No targets.") call IssueImmediateOrder(caster, "stop") endif - set TailSwipe___tmpPlayer=null + set TailSwipe__tmpPlayer=null call GroupClear(targets) call DestroyGroup(targets) set targets=null endfunction -function TailSwipe___TriggerConditionCast takes nothing returns boolean +function TailSwipe__TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == TailSwipe_ABILITY_ID ) then call TailSwipe(GetTriggerUnit()) endif return false endfunction -function TailSwipe___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(TailSwipe___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(TailSwipe___castTrigger, Condition(function TailSwipe___TriggerConditionCast)) +function TailSwipe__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(TailSwipe__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(TailSwipe__castTrigger, Condition(function TailSwipe__TriggerConditionCast)) set TailSwipe_kbType=s__KnockbackType__allocate() set s__KnockbackType_onUnitHitAction[TailSwipe_kbType]=(2) @@ -54569,65 +54569,65 @@ endfunction //library Telekinesis: -function Telekinesis___GetMaxDistance takes unit caster returns real - if ( GetUnitAbilityLevel(caster, Telekinesis___ABILITY_ID) > 0 ) then - return Telekinesis___MAX_DISTANCE + GetUnitAbilityLevel(caster, Telekinesis___ABILITY_ID) * 100.0 +function Telekinesis__GetMaxDistance takes unit caster returns real + if ( GetUnitAbilityLevel(caster, Telekinesis__ABILITY_ID) > 0 ) then + return Telekinesis__MAX_DISTANCE + GetUnitAbilityLevel(caster, Telekinesis__ABILITY_ID) * 100.0 endif return 1200.0 endfunction -function Telekinesis___TelekinesisHasTarget takes unit caster returns boolean - return HaveSavedHandle(Telekinesis___h, GetHandleId(caster), Telekinesis___KEY_TARGET) +function Telekinesis__TelekinesisHasTarget takes unit caster returns boolean + return HaveSavedHandle(Telekinesis__h, GetHandleId(caster), Telekinesis__KEY_TARGET) endfunction -function Telekinesis___TelekinesisSaveUnitTarget takes unit caster,unit target returns nothing +function Telekinesis__TelekinesisSaveUnitTarget takes unit caster,unit target returns nothing local integer handleId= GetHandleId(caster) - call SaveUnitHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET, target) - call SaveInteger(Telekinesis___h, handleId, Telekinesis___KEY_TARGET_TYPE, Telekinesis___TARGET_TYPE_UNIT) - call UnitAddAbility(target, Telekinesis___BUFF_ABILITY_ID) + call SaveUnitHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET, target) + call SaveInteger(Telekinesis__h, handleId, Telekinesis__KEY_TARGET_TYPE, Telekinesis__TARGET_TYPE_UNIT) + call UnitAddAbility(target, Telekinesis__BUFF_ABILITY_ID) //call BJDebugMsg("Target is " + GetUnitName(target)) endfunction -function Telekinesis___TelekinesisSaveItemTarget takes unit caster,item target returns nothing +function Telekinesis__TelekinesisSaveItemTarget takes unit caster,item target returns nothing local integer handleId= GetHandleId(caster) - call SaveItemHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET, target) - call SaveInteger(Telekinesis___h, handleId, Telekinesis___KEY_TARGET_TYPE, Telekinesis___TARGET_TYPE_ITEM) + call SaveItemHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET, target) + call SaveInteger(Telekinesis__h, handleId, Telekinesis__KEY_TARGET_TYPE, Telekinesis__TARGET_TYPE_ITEM) endfunction -function Telekinesis___TelekinesisSaveDestructableTarget takes unit caster,destructable target returns nothing +function Telekinesis__TelekinesisSaveDestructableTarget takes unit caster,destructable target returns nothing local integer handleId= GetHandleId(caster) - call SaveDestructableHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET, target) - call SaveInteger(Telekinesis___h, handleId, Telekinesis___KEY_TARGET_TYPE, Telekinesis___TARGET_TYPE_DESTRUCTABLE) + call SaveDestructableHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET, target) + call SaveInteger(Telekinesis__h, handleId, Telekinesis__KEY_TARGET_TYPE, Telekinesis__TARGET_TYPE_DESTRUCTABLE) endfunction -function Telekinesis___TelekinesisClearTarget takes unit caster returns nothing +function Telekinesis__TelekinesisClearTarget takes unit caster returns nothing local integer handleId= GetHandleId(caster) - call FlushChildHashtable(Telekinesis___h, handleId) + call FlushChildHashtable(Telekinesis__h, handleId) endfunction -function Telekinesis___IsTelekinesisTargetValid takes unit caster returns boolean +function Telekinesis__IsTelekinesisTargetValid takes unit caster returns boolean local integer handleId= GetHandleId(caster) - local integer targetType= LoadInteger(Telekinesis___h, handleId, Telekinesis___KEY_TARGET_TYPE) - local real maxDistance= Telekinesis___GetMaxDistance(caster) + local integer targetType= LoadInteger(Telekinesis__h, handleId, Telekinesis__KEY_TARGET_TYPE) + local real maxDistance= Telekinesis__GetMaxDistance(caster) local unit targetUnit= null local item targetItem= null local destructable targetDestructable= null - if ( targetType == Telekinesis___TARGET_TYPE_UNIT ) then - set targetUnit=LoadUnitHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET) + if ( targetType == Telekinesis__TARGET_TYPE_UNIT ) then + set targetUnit=LoadUnitHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET) return DistanceBetweenUnits(caster , targetUnit) <= maxDistance - elseif ( targetType == Telekinesis___TARGET_TYPE_ITEM ) then - set targetItem=LoadItemHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET) + elseif ( targetType == Telekinesis__TARGET_TYPE_ITEM ) then + set targetItem=LoadItemHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET) return DistanceBetweenUnitAndItem(caster , targetItem) <= maxDistance - elseif ( targetType == Telekinesis___TARGET_TYPE_DESTRUCTABLE ) then - set targetDestructable=LoadDestructableHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET) + elseif ( targetType == Telekinesis__TARGET_TYPE_DESTRUCTABLE ) then + set targetDestructable=LoadDestructableHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET) return DistanceBetweenUnitAndDestructable(caster , targetDestructable) <= maxDistance endif return false endfunction -function Telekinesis___MoveDestructable takes destructable d,real x,real y,real face,real scale,integer variation returns destructable +function Telekinesis__MoveDestructable takes destructable d,real x,real y,real face,real scale,integer variation returns destructable local integer typeId= GetDestructableTypeId(d) local real life= GetDestructableLife(d) local destructable t= null @@ -54637,59 +54637,59 @@ function Telekinesis___MoveDestructable takes destructable d,real x,real y,real return t endfunction -function Telekinesis___TelekinesisMoveTargetTo takes unit caster,real x,real y returns nothing +function Telekinesis__TelekinesisMoveTargetTo takes unit caster,real x,real y returns nothing local integer handleId= GetHandleId(caster) - local integer targetType= LoadInteger(Telekinesis___h, handleId, Telekinesis___KEY_TARGET_TYPE) + local integer targetType= LoadInteger(Telekinesis__h, handleId, Telekinesis__KEY_TARGET_TYPE) local unit targetUnit= null local item targetItem= null local destructable targetDestructable= null local integer targetDestructableTypeId= 0 local real targetDestructableLife= 0.0 - if ( targetType == Telekinesis___TARGET_TYPE_UNIT ) then - set targetUnit=LoadUnitHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET) + if ( targetType == Telekinesis__TARGET_TYPE_UNIT ) then + set targetUnit=LoadUnitHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET) call SetUnitX(targetUnit, x) call SetUnitY(targetUnit, y) - call UnitRemoveAbility(targetUnit, Telekinesis___BUFF_ABILITY_ID) + call UnitRemoveAbility(targetUnit, Telekinesis__BUFF_ABILITY_ID) //call BJDebugMsg("Move target: " + GetUnitName(targetUnit)) set targetUnit=null - elseif ( targetType == Telekinesis___TARGET_TYPE_ITEM ) then - set targetItem=LoadItemHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET) + elseif ( targetType == Telekinesis__TARGET_TYPE_ITEM ) then + set targetItem=LoadItemHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET) call SetItemPosition(targetItem, x, y) set targetItem=null - elseif ( targetType == Telekinesis___TARGET_TYPE_DESTRUCTABLE ) then - set targetDestructable=LoadDestructableHandle(Telekinesis___h, handleId, Telekinesis___KEY_TARGET) - call Telekinesis___MoveDestructable(targetDestructable , x , y , GetRandomDirectionDeg() , 1.0 , 0) + elseif ( targetType == Telekinesis__TARGET_TYPE_DESTRUCTABLE ) then + set targetDestructable=LoadDestructableHandle(Telekinesis__h, handleId, Telekinesis__KEY_TARGET) + call Telekinesis__MoveDestructable(targetDestructable , x , y , GetRandomDirectionDeg() , 1.0 , 0) set targetDestructable=null endif endfunction -function Telekinesis___TimerFunctionResetAbilityCooldown takes nothing returns nothing +function Telekinesis__TimerFunctionResetAbilityCooldown takes nothing returns nothing local timer t= GetExpiredTimer() local integer handleId= GetHandleId(t) - local unit caster= LoadUnitHandle(Telekinesis___h, handleId, 0) - if ( not IsUnitInGroup(caster, Telekinesis___casters) ) then + local unit caster= LoadUnitHandle(Telekinesis__h, handleId, 0) + if ( not IsUnitInGroup(caster, Telekinesis__casters) ) then //call BJDebugMsg("Reset cooldown for " + GetUnitName(caster)) - call BlzEndUnitAbilityCooldown(caster, Telekinesis___ABILITY_ID) - call BlzEndUnitAbilityCooldown(caster, Telekinesis___ITEM_ABILITY_ID) + call BlzEndUnitAbilityCooldown(caster, Telekinesis__ABILITY_ID) + call BlzEndUnitAbilityCooldown(caster, Telekinesis__ITEM_ABILITY_ID) endif - call FlushChildHashtable(Telekinesis___h, handleId) + call FlushChildHashtable(Telekinesis__h, handleId) call PauseTimer(t) call DestroyTimer(t) set t=null endfunction -function Telekinesis___ResetAbilityCooldown takes unit caster returns nothing +function Telekinesis__ResetAbilityCooldown takes unit caster returns nothing local timer t= CreateTimer() - call GroupRemoveUnit(Telekinesis___casters, caster) - call SaveUnitHandle(Telekinesis___h, GetHandleId(t), 0, caster) - call TimerStart(t, 1.0, false, function Telekinesis___TimerFunctionResetAbilityCooldown) + call GroupRemoveUnit(Telekinesis__casters, caster) + call SaveUnitHandle(Telekinesis__h, GetHandleId(t), 0, caster) + call TimerStart(t, 1.0, false, function Telekinesis__TimerFunctionResetAbilityCooldown) endfunction -function Telekinesis___CastTelekinesisOnUnit takes unit caster,unit target returns nothing +function Telekinesis__CastTelekinesisOnUnit takes unit caster,unit target returns nothing if ( not IsUnitType(target, UNIT_TYPE_MAGIC_IMMUNE) ) then if ( GetUnitAbilityLevel(target, 'Avul') == 0 ) then - call Telekinesis___TelekinesisSaveUnitTarget(caster , target) - call Telekinesis___ResetAbilityCooldown(caster) + call Telekinesis__TelekinesisSaveUnitTarget(caster , target) + call Telekinesis__ResetAbilityCooldown(caster) else call IssueImmediateOrder(caster, "stop") call SimError(GetOwningPlayer(caster) , "Target is spell invulnerable.") @@ -54700,24 +54700,24 @@ function Telekinesis___CastTelekinesisOnUnit takes unit caster,unit target retur endif endfunction -function Telekinesis___CastTelekinesisOnItem takes unit caster,item target returns nothing - call Telekinesis___TelekinesisSaveItemTarget(caster , target) - call Telekinesis___ResetAbilityCooldown(caster) +function Telekinesis__CastTelekinesisOnItem takes unit caster,item target returns nothing + call Telekinesis__TelekinesisSaveItemTarget(caster , target) + call Telekinesis__ResetAbilityCooldown(caster) endfunction -function Telekinesis___CastTelekinesisOnDestructable takes unit caster,destructable target returns nothing - call Telekinesis___TelekinesisSaveDestructableTarget(caster , target) - call Telekinesis___ResetAbilityCooldown(caster) +function Telekinesis__CastTelekinesisOnDestructable takes unit caster,destructable target returns nothing + call Telekinesis__TelekinesisSaveDestructableTarget(caster , target) + call Telekinesis__ResetAbilityCooldown(caster) endfunction -function Telekinesis___CastTelekinesisOnPoint takes unit caster,real x,real y returns nothing - if ( (HaveSavedHandle(Telekinesis___h, GetHandleId((caster)), Telekinesis___KEY_TARGET)) ) then // INLINED!! - if ( Telekinesis___IsTelekinesisTargetValid(caster) ) then - call GroupRemoveUnit(Telekinesis___casters, caster) - call Telekinesis___TelekinesisMoveTargetTo(caster , x , y) - call Telekinesis___TelekinesisClearTarget(caster) +function Telekinesis__CastTelekinesisOnPoint takes unit caster,real x,real y returns nothing + if ( (HaveSavedHandle(Telekinesis__h, GetHandleId((caster)), Telekinesis__KEY_TARGET)) ) then // INLINED!! + if ( Telekinesis__IsTelekinesisTargetValid(caster) ) then + call GroupRemoveUnit(Telekinesis__casters, caster) + call Telekinesis__TelekinesisMoveTargetTo(caster , x , y) + call Telekinesis__TelekinesisClearTarget(caster) else - call Telekinesis___TelekinesisClearTarget(caster) + call Telekinesis__TelekinesisClearTarget(caster) call IssueImmediateOrder(caster, "stop") call SimError(GetOwningPlayer(caster) , "Invalid target.") endif @@ -54727,40 +54727,40 @@ function Telekinesis___CastTelekinesisOnPoint takes unit caster,real x,real y re endif endfunction -function Telekinesis___CastTelekinesis takes nothing returns nothing +function Telekinesis__CastTelekinesis takes nothing returns nothing if ( GetSpellTargetUnit() != null ) then - call Telekinesis___CastTelekinesisOnUnit(GetTriggerUnit() , GetSpellTargetUnit()) + call Telekinesis__CastTelekinesisOnUnit(GetTriggerUnit() , GetSpellTargetUnit()) elseif ( GetSpellTargetItem() != null ) then - call Telekinesis___CastTelekinesisOnItem(GetTriggerUnit() , GetSpellTargetItem()) + call Telekinesis__CastTelekinesisOnItem(GetTriggerUnit() , GetSpellTargetItem()) elseif ( GetSpellTargetDestructable() != null ) then - call Telekinesis___CastTelekinesisOnDestructable(GetTriggerUnit() , GetSpellTargetDestructable()) + call Telekinesis__CastTelekinesisOnDestructable(GetTriggerUnit() , GetSpellTargetDestructable()) else - call Telekinesis___CastTelekinesisOnPoint(GetTriggerUnit() , GetSpellTargetX() , GetSpellTargetY()) + call Telekinesis__CastTelekinesisOnPoint(GetTriggerUnit() , GetSpellTargetX() , GetSpellTargetY()) endif endfunction -function Telekinesis___TriggerConditionCast takes nothing returns boolean +function Telekinesis__TriggerConditionCast takes nothing returns boolean local integer abilityId= GetSpellAbilityId() - return abilityId == Telekinesis___ABILITY_ID or abilityId == Telekinesis___ITEM_ABILITY_ID + return abilityId == Telekinesis__ABILITY_ID or abilityId == Telekinesis__ITEM_ABILITY_ID endfunction -function Telekinesis___TriggerActionCast takes nothing returns nothing - call Telekinesis___CastTelekinesis() +function Telekinesis__TriggerActionCast takes nothing returns nothing + call Telekinesis__CastTelekinesis() endfunction -function Telekinesis___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(Telekinesis___castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(Telekinesis___castTrigger, Condition(function Telekinesis___TriggerConditionCast)) - call TriggerAddAction(Telekinesis___castTrigger, function Telekinesis___TriggerActionCast) +function Telekinesis__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(Telekinesis__castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(Telekinesis__castTrigger, Condition(function Telekinesis__TriggerConditionCast)) + call TriggerAddAction(Telekinesis__castTrigger, function Telekinesis__TriggerActionCast) endfunction -function Telekinesis___RemoveUnitTelekinesis takes unit whichUnit returns nothing - call GroupRemoveUnit(Telekinesis___casters, whichUnit) - call Telekinesis___TelekinesisClearTarget(whichUnit) +function Telekinesis__RemoveUnitTelekinesis takes unit whichUnit returns nothing + call GroupRemoveUnit(Telekinesis__casters, whichUnit) + call Telekinesis__TelekinesisClearTarget(whichUnit) endfunction -//processed hook: hook RemoveUnit Telekinesis___RemoveUnitTelekinesis +//processed hook: hook RemoveUnit Telekinesis__RemoveUnitTelekinesis //library Telekinesis ends @@ -54829,24 +54829,24 @@ endfunction function GetProfessionsMax takes nothing returns integer - return WoWReforgedProfessions___professionsCounter + return WoWReforgedProfessions__professionsCounter endfunction function GetProfession takes integer index returns integer - return WoWReforgedProfessions___professions[index] + return WoWReforgedProfessions__professions[index] endfunction function GetProfessionName takes integer index returns string - local integer p= (WoWReforgedProfessions___professions[(index)]) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(index)]) // INLINED!! return GetObjectName(s__Profession_itemTypeId[p]) endfunction function AddProfession takes nothing returns nothing local integer p= s__Profession__allocate() - local integer index= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer index= (WoWReforgedProfessions__professionsCounter) // INLINED!! local integer i= 0 - set WoWReforgedProfessions___professions[index]=p + set WoWReforgedProfessions__professions[index]=p set s__Profession_itemTypeId[p]=udg_TmpItemTypeId set s__Profession_bookItemTypeId[p]=udg_TmpItemTypeId2 @@ -54862,10 +54862,10 @@ function AddProfession takes nothing returns nothing set udg_LastAddedProfession=index - set WoWReforgedProfessions___tmpRankCounter=PROFESSION_RANK_NOVICE + set WoWReforgedProfessions__tmpRankCounter=PROFESSION_RANK_NOVICE - set WoWReforgedProfessions___professionsCounter=WoWReforgedProfessions___professionsCounter + 1 - set udg_Max_Berufe=WoWReforgedProfessions___professionsCounter + set WoWReforgedProfessions__professionsCounter=WoWReforgedProfessions__professionsCounter + 1 + set udg_Max_Berufe=WoWReforgedProfessions__professionsCounter // for adding the items set udg_TmpInteger=1 @@ -54873,7 +54873,7 @@ function AddProfession takes nothing returns nothing endfunction function GetProfessionByTavernItemTypeId takes integer tavernItemTypeId returns integer - local integer max= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer max= (WoWReforgedProfessions__professionsCounter) // INLINED!! local integer i= 0 loop exitwhen ( i == max ) @@ -54886,21 +54886,21 @@ function GetProfessionByTavernItemTypeId takes integer tavernItemTypeId returns endfunction function AddProfessionRank takes nothing returns nothing - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) endfunction function AddProfessionCrafted takes integer itemTypeId,integer unitTypeId,integer charges,boolean onCast,integer abilityId returns nothing - local integer index= IMaxBJ(0, (WoWReforgedProfessions___professionsCounter) - 1) // INLINED!! - local integer p= (WoWReforgedProfessions___professions[(index)]) // INLINED!! - local integer rank= IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter) + local integer index= IMaxBJ(0, (WoWReforgedProfessions__professionsCounter) - 1) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(index)]) // INLINED!! + local integer rank= IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter) local integer r= s___Profession_ranks[s__Profession_ranks[p]+rank] local integer index2= s__Rank_craftedItemsCount[r] if ( rank == PROFESSION_RANK_NOVICE and index2 == 0 ) then if ( itemTypeId != 0 ) then - set WoWReforgedIcons__professionIcons[(index )]=( BlzGetAbilityIcon(itemTypeId)) // INLINED!! + set WoWReforgedIcons___professionIcons[(index )]=( BlzGetAbilityIcon(itemTypeId)) // INLINED!! elseif ( unitTypeId != 0 ) then - set WoWReforgedIcons__professionIcons[(index )]=( BlzGetAbilityIcon(unitTypeId)) // INLINED!! + set WoWReforgedIcons___professionIcons[(index )]=( BlzGetAbilityIcon(unitTypeId)) // INLINED!! endif endif @@ -54927,37 +54927,37 @@ function AddProfessionCraftedUnit takes nothing returns nothing endfunction function GetProfessionItemTypeId takes integer index returns integer - local integer p= (WoWReforgedProfessions___professions[(index)]) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(index)]) // INLINED!! return s__Profession_itemTypeId[p] endfunction function GetProfessionBookItemTypeId takes integer index returns integer - local integer p= (WoWReforgedProfessions___professions[(index)]) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(index)]) // INLINED!! return s__Profession_bookItemTypeId[p] endfunction function GetProfessionCraftedItem takes integer i,integer rank,integer j returns integer - local integer p= (WoWReforgedProfessions___professions[(i)]) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(i)]) // INLINED!! return s___Rank_craftedItems[s__Rank_craftedItems[s___Profession_ranks[s__Profession_ranks[p]+rank]]+j] endfunction function GetProfessionCraftedUnit takes integer i,integer rank,integer j returns integer - local integer p= (WoWReforgedProfessions___professions[(i)]) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(i)]) // INLINED!! return s___Rank_craftedUnits[s__Rank_craftedUnits[s___Profession_ranks[s__Profession_ranks[p]+rank]]+j] endfunction function GetProfessionCraftedCount takes integer i,integer rank,integer j returns integer - local integer p= (WoWReforgedProfessions___professions[(i)]) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(i)]) // INLINED!! return s___Rank_craftedCount[s__Rank_craftedCount[s___Profession_ranks[s__Profession_ranks[p]+rank]]+j] endfunction function GetProfessionCraftedOnCast takes integer i,integer rank,integer j returns boolean - local integer p= (WoWReforgedProfessions___professions[(i)]) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(i)]) // INLINED!! return s___Rank_craftedOnCast[s__Rank_craftedOnCast[s___Profession_ranks[s__Profession_ranks[p]+rank]]+j] endfunction function GetProfessionCraftedItemsCount takes integer i,integer rank returns integer - local integer p= (WoWReforgedProfessions___professions[(i)]) // INLINED!! + local integer p= (WoWReforgedProfessions__professions[(i)]) // INLINED!! return s__Rank_craftedItemsCount[s___Profession_ranks[s__Profession_ranks[p]+rank]] endfunction @@ -55309,7 +55309,7 @@ function GetObjectProfession takes integer objectId returns integer local integer j= 0 local integer i= 0 local integer k= 0 - local integer max= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer max= (WoWReforgedProfessions__professionsCounter) // INLINED!! loop exitwhen ( i >= max ) if ( udg_ProfessionItemType[i] == objectId ) then @@ -55337,7 +55337,7 @@ function ProfessionBonusCharges takes unit hero returns integer return GetHeroLevel(hero) / 15 endfunction -function WoWReforgedProfessions___CraftUnits takes unit hero,integer unitTypeId,integer charges returns nothing +function WoWReforgedProfessions__CraftUnits takes unit hero,integer unitTypeId,integer charges returns nothing local player owner= GetOwningPlayer(hero) local real x= GetUnitX(hero) local real y= GetUnitY(hero) @@ -55351,7 +55351,7 @@ function WoWReforgedProfessions___CraftUnits takes unit hero,integer unitTypeId, set owner=null endfunction -function WoWReforgedProfessions___CraftItems takes unit hero,integer itemTypeId,integer charges returns nothing +function WoWReforgedProfessions__CraftItems takes unit hero,integer itemTypeId,integer charges returns nothing local item whichItem= CreateItem(itemTypeId, GetUnitX(hero), GetUnitY(hero)) // set charges before adding the item to the hero to avoid stacking before setting charges if ( GetItemCharges(whichItem) > 0 or charges > 1 ) then @@ -55361,14 +55361,14 @@ function WoWReforgedProfessions___CraftItems takes unit hero,integer itemTypeId, set whichItem=null endfunction -function WoWReforgedProfessions___GetProfessionIndexByAbilityId takes integer abilityId returns integer +function WoWReforgedProfessions__GetProfessionIndexByAbilityId takes integer abilityId returns integer local integer j= 0 local integer i= 0 local integer profession= 0 - local integer max= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer max= (WoWReforgedProfessions__professionsCounter) // INLINED!! loop exitwhen ( i >= max ) - set profession=(WoWReforgedProfessions___professions[(i)]) // INLINED!! + set profession=(WoWReforgedProfessions__professions[(i)]) // INLINED!! set j=0 loop exitwhen ( j == PROFESSION_RANK_MAX ) @@ -55382,14 +55382,14 @@ function WoWReforgedProfessions___GetProfessionIndexByAbilityId takes integer ab return - 1 endfunction -function WoWReforgedProfessions___GetProfessionRankByAbilityId takes integer abilityId returns integer +function WoWReforgedProfessions__GetProfessionRankByAbilityId takes integer abilityId returns integer local integer j= 0 local integer i= 0 local integer profession= 0 - local integer max= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer max= (WoWReforgedProfessions__professionsCounter) // INLINED!! loop exitwhen ( i >= max ) - set profession=(WoWReforgedProfessions___professions[(i)]) // INLINED!! + set profession=(WoWReforgedProfessions__professions[(i)]) // INLINED!! set j=0 loop exitwhen ( j == PROFESSION_RANK_MAX ) @@ -55406,7 +55406,7 @@ endfunction function ProfessionCraftUnits takes unit hero,integer abilityId,integer unitTypeId,integer count returns nothing local real cooldown= RMaxBJ(5.0, BlzGetAbilityRealLevelField(BlzGetUnitAbility(hero, abilityId), ABILITY_RLF_COOLDOWN, 0) - I2R(GetHeroLevel(hero))) local force allies= GetAlliesWithSharedControl(GetOwningPlayer(hero)) - call WoWReforgedProfessions___CraftUnits(hero , unitTypeId , count) + call WoWReforgedProfessions__CraftUnits(hero , unitTypeId , count) call ShowFadingTextTagForForce((allies ) , ( "+" + I2S((GetHeroLevel((hero)) / 15)) + "|nCooldown: " + I2S(R2I(cooldown)) + "s" ) , 0.025 , (( GetUnitX(hero) )*1.0) , (( GetUnitY(hero) )*1.0) , ( 0 ) , ( 0 ) , ( 255 ) , ( 0) , 0.03 , 1.0 , 2.0) // INLINED!! // sleep is required since the shared spell book cooldown apparently triggers after some sleep call TriggerSleepAction(0.1) @@ -55420,7 +55420,7 @@ endfunction function ProfessionCraftItems takes unit hero,integer abilityId,integer itemTypeId,integer count returns nothing local real cooldown= RMaxBJ(5.0, BlzGetAbilityRealLevelField(BlzGetUnitAbility(hero, abilityId), ABILITY_RLF_COOLDOWN, 0) - I2R(GetHeroLevel(hero))) local force allies= GetAlliesWithSharedControl(GetOwningPlayer(hero)) - call WoWReforgedProfessions___CraftItems(hero , itemTypeId , count) + call WoWReforgedProfessions__CraftItems(hero , itemTypeId , count) call ShowFadingTextTagForForce((allies ) , ( "+" + I2S((GetHeroLevel((hero)) / 15)) + "|nCooldown: " + I2S(R2I(cooldown)) + "s" ) , 0.025 , (( GetUnitX(hero) )*1.0) , (( GetUnitY(hero) )*1.0) , ( 0 ) , ( 0 ) , ( 255 ) , ( 0) , 0.03 , 1.0 , 2.0) // INLINED!! // sleep is required since the shared spell book cooldown apparently triggers after some sleep call TriggerSleepAction(0.1) @@ -55431,11 +55431,11 @@ function ProfessionCraftItems takes unit hero,integer abilityId,integer itemType set allies=null endfunction -function WoWReforgedProfessions___CastCraft takes unit hero,integer abilityId,integer index returns nothing - local integer p= (WoWReforgedProfessions___professions[(index)]) // INLINED!! +function WoWReforgedProfessions__CastCraft takes unit hero,integer abilityId,integer index returns nothing + local integer p= (WoWReforgedProfessions__professions[(index)]) // INLINED!! local integer i= 0 local integer index2= 0 - local integer rank= WoWReforgedProfessions___GetProfessionRankByAbilityId(abilityId) + local integer rank= WoWReforgedProfessions__GetProfessionRankByAbilityId(abilityId) local integer max= GetProfessionCraftedItemsCount(index , rank) //call BJDebugMsg("Craft " + I2S(max) + " IDs.") loop @@ -55451,17 +55451,17 @@ function WoWReforgedProfessions___CastCraft takes unit hero,integer abilityId,in endloop endfunction -function WoWReforgedProfessions___TriggerActionCast takes nothing returns nothing +function WoWReforgedProfessions__TriggerActionCast takes nothing returns nothing local integer abilityId= GetSpellAbilityId() - local integer index= WoWReforgedProfessions___GetProfessionIndexByAbilityId(abilityId) + local integer index= WoWReforgedProfessions__GetProfessionIndexByAbilityId(abilityId) if ( index != - 1 ) then - call WoWReforgedProfessions___CastCraft(GetTriggerUnit() , abilityId , index) + call WoWReforgedProfessions__CastCraft(GetTriggerUnit() , abilityId , index) endif endfunction -function WoWReforgedProfessions___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedProfessions___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddAction(WoWReforgedProfessions___castTrigger, function WoWReforgedProfessions___TriggerActionCast) +function WoWReforgedProfessions__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedProfessions__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddAction(WoWReforgedProfessions__castTrigger, function WoWReforgedProfessions__TriggerActionCast) endfunction @@ -55496,12 +55496,12 @@ endfunction function AddTradingPostResource takes integer resource,integer buyUnitTypeId,integer sellUnitTypeId returns nothing - local integer r= s__WoWReforgedTradingPosts__TradingPostResource__allocate() - set s__WoWReforgedTradingPosts__TradingPostResource_resource[r]=resource - set s__WoWReforgedTradingPosts__TradingPostResource_buyUnitTypeId[r]=buyUnitTypeId - set s__WoWReforgedTradingPosts__TradingPostResource_sellUnitTypeId[r]=sellUnitTypeId - set WoWReforgedTradingPosts__tradingPostResource[WoWReforgedTradingPosts__tradingPostResourceCount]=r - set WoWReforgedTradingPosts__tradingPostResourceCount=WoWReforgedTradingPosts__tradingPostResourceCount + 1 + local integer r= s__WoWReforgedTradingPosts___TradingPostResource__allocate() + set s__WoWReforgedTradingPosts___TradingPostResource_resource[r]=resource + set s__WoWReforgedTradingPosts___TradingPostResource_buyUnitTypeId[r]=buyUnitTypeId + set s__WoWReforgedTradingPosts___TradingPostResource_sellUnitTypeId[r]=sellUnitTypeId + set WoWReforgedTradingPosts___tradingPostResource[WoWReforgedTradingPosts___tradingPostResourceCount]=r + set WoWReforgedTradingPosts___tradingPostResourceCount=WoWReforgedTradingPosts___tradingPostResourceCount + 1 endfunction function AddTradingPostResourceWoWReforged takes nothing returns nothing @@ -55514,10 +55514,10 @@ function AddResourcesShop takes unit shop returns nothing call EnablePagedButtons(shop) call SetPagedButtonsSlotsPerPage(shop , 4) // 12 - Cancel Button, 2 Page Buttons, Rally Point, Pack Horse and research loop - exitwhen ( i == WoWReforgedTradingPosts__tradingPostResourceCount ) - set r=WoWReforgedTradingPosts__tradingPostResource[i] -call AddPagedButtonsId((shop ) , ( s__WoWReforgedTradingPosts__TradingPostResource_buyUnitTypeId[r]) , PagedButtons_BUTTON_TYPE_UNIT) // Buy 100 // INLINED!! -call AddPagedButtonsId((shop ) , ( s__WoWReforgedTradingPosts__TradingPostResource_sellUnitTypeId[r]) , PagedButtons_BUTTON_TYPE_UNIT) // Sell 100 // INLINED!! + exitwhen ( i == WoWReforgedTradingPosts___tradingPostResourceCount ) + set r=WoWReforgedTradingPosts___tradingPostResource[i] +call AddPagedButtonsId((shop ) , ( s__WoWReforgedTradingPosts___TradingPostResource_buyUnitTypeId[r]) , PagedButtons_BUTTON_TYPE_UNIT) // Buy 100 // INLINED!! +call AddPagedButtonsId((shop ) , ( s__WoWReforgedTradingPosts___TradingPostResource_sellUnitTypeId[r]) , PagedButtons_BUTTON_TYPE_UNIT) // Sell 100 // INLINED!! set i=i + 1 endloop endfunction @@ -55528,15 +55528,15 @@ function TradingPostSellsUnit takes unit tradingPost,unit soldUnit returns nothi local integer r= 0 local integer i= 0 loop - exitwhen ( i == WoWReforgedTradingPosts__tradingPostResourceCount ) - set r=WoWReforgedTradingPosts__tradingPostResource[i] - if ( unitTypeId == s__WoWReforgedTradingPosts__TradingPostResource_buyUnitTypeId[r] ) then // Buy 100 - call AddPlayerResource(owner , s__WoWReforgedTradingPosts__TradingPostResource_resource[r] , 100) + exitwhen ( i == WoWReforgedTradingPosts___tradingPostResourceCount ) + set r=WoWReforgedTradingPosts___tradingPostResource[i] + if ( unitTypeId == s__WoWReforgedTradingPosts___TradingPostResource_buyUnitTypeId[r] ) then // Buy 100 + call AddPlayerResource(owner , s__WoWReforgedTradingPosts___TradingPostResource_resource[r] , 100) call h__RemoveUnit(soldUnit) exitwhen ( true ) - elseif ( unitTypeId == s__WoWReforgedTradingPosts__TradingPostResource_sellUnitTypeId[r] ) then // Sell 100 - if ( ExchangePlayerResource(owner , s__WoWReforgedTradingPosts__TradingPostResource_resource[r] , Resources_GOLD , 100) == 0 ) then - call SimError(owner , "No " + (s__Resource_name[(s__WoWReforgedTradingPosts__TradingPostResource_resource[r])]) + ".") // INLINED!! + elseif ( unitTypeId == s__WoWReforgedTradingPosts___TradingPostResource_sellUnitTypeId[r] ) then // Sell 100 + if ( ExchangePlayerResource(owner , s__WoWReforgedTradingPosts___TradingPostResource_resource[r] , Resources_GOLD , 100) == 0 ) then + call SimError(owner , "No " + (s__Resource_name[(s__WoWReforgedTradingPosts___TradingPostResource_resource[r])]) + ".") // INLINED!! endif call h__RemoveUnit(soldUnit) exitwhen ( true ) @@ -55546,7 +55546,7 @@ function TradingPostSellsUnit takes unit tradingPost,unit soldUnit returns nothi set owner=null endfunction -function WoWReforgedTradingPosts__TriggerConditionGather takes nothing returns boolean +function WoWReforgedTradingPosts___TriggerConditionGather takes nothing returns boolean local integer playerId= GetPlayerId(GetOwningPlayer((Resources__triggerWorker))) // INLINED!! if ( udg_TradingPostGoldExchange[playerId] ) then call CustomBountyFadingText((Resources__triggerWorker) , Resources_GOLD , (Resources__triggerResourceAmount)) // INLINED!! @@ -55555,9 +55555,9 @@ function WoWReforgedTradingPosts__TriggerConditionGather takes nothing returns b return false endfunction -function WoWReforgedTradingPosts__Init takes nothing returns nothing - call TriggerRegisterGatherEvent(WoWReforgedTradingPosts__gatherTrigger) - call TriggerAddCondition(WoWReforgedTradingPosts__gatherTrigger, Condition(function WoWReforgedTradingPosts__TriggerConditionGather)) +function WoWReforgedTradingPosts___Init takes nothing returns nothing + call TriggerRegisterGatherEvent(WoWReforgedTradingPosts___gatherTrigger) + call TriggerAddCondition(WoWReforgedTradingPosts___gatherTrigger, Condition(function WoWReforgedTradingPosts___TriggerConditionGather)) endfunction @@ -56398,7 +56398,7 @@ endfunction function AddProfessionBooksShop takes unit shop returns nothing local integer i= 0 - local integer max= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer max= (WoWReforgedProfessions__professionsCounter) // INLINED!! call EnablePagedButtons(shop) loop exitwhen ( i == max ) @@ -56407,31 +56407,31 @@ call AddPagedButtonsId((shop ) , ( udg_ProfessionItemType[i]) , PagedButtons_BUT endloop endfunction -function WoWReforgedProfessionBooksShop__FilterIsProfessionBooksShop takes nothing returns boolean +function WoWReforgedProfessionBooksShop___FilterIsProfessionBooksShop takes nothing returns boolean return GetUnitTypeId(GetFilterUnit()) == PROFESSION_BOOKS_SHOP endfunction -function WoWReforgedProfessionBooksShop__ForGroupAddProfessionBooksShop takes nothing returns nothing +function WoWReforgedProfessionBooksShop___ForGroupAddProfessionBooksShop takes nothing returns nothing call AddProfessionBooksShop(GetEnumUnit()) endfunction function AddAllProfessionBooksShops takes nothing returns nothing local group shops= CreateGroup() - call GroupEnumUnitsInRect(shops, GetPlayableMapRect(), Filter(function WoWReforgedProfessionBooksShop__FilterIsProfessionBooksShop)) - call ForGroup(shops, function WoWReforgedProfessionBooksShop__ForGroupAddProfessionBooksShop) + call GroupEnumUnitsInRect(shops, GetPlayableMapRect(), Filter(function WoWReforgedProfessionBooksShop___FilterIsProfessionBooksShop)) + call ForGroup(shops, function WoWReforgedProfessionBooksShop___ForGroupAddProfessionBooksShop) call GroupClear(shops) call DestroyGroup(shops) set shops=null endfunction -function WoWReforgedProfessionBooksShop__TimerFunctionAddAllProfessionBooksShop takes nothing returns nothing +function WoWReforgedProfessionBooksShop___TimerFunctionAddAllProfessionBooksShop takes nothing returns nothing call AddAllProfessionBooksShops() call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) endfunction -function WoWReforgedProfessionBooksShop__Init takes nothing returns nothing - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedProfessionBooksShop__TimerFunctionAddAllProfessionBooksShop) +function WoWReforgedProfessionBooksShop___Init takes nothing returns nothing + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedProfessionBooksShop___TimerFunctionAddAllProfessionBooksShop) endfunction @@ -56784,7 +56784,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 @@ -56804,8 +56804,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 @@ -56877,26 +56877,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) @@ -56906,33 +56906,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() @@ -56944,86 +56944,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 @@ -57046,14 +57046,14 @@ endfunction function GetRandomFoodItemTypeId takes nothing returns integer - return WowReforgedCook__foodItemTypeIds[GetRandomInt(0, WowReforgedCook__foodItemTypeIdsCounter - 1)] + return WowReforgedCook___foodItemTypeIds[GetRandomInt(0, WowReforgedCook___foodItemTypeIdsCounter - 1)] endfunction function IsFood takes integer itemTypeId returns boolean local integer i= 0 loop - exitwhen ( i == WowReforgedCook__foodItemTypeIdsCounter ) - if ( itemTypeId == WowReforgedCook__foodItemTypeIds[i] ) then + exitwhen ( i == WowReforgedCook___foodItemTypeIdsCounter ) + if ( itemTypeId == WowReforgedCook___foodItemTypeIds[i] ) then return true endif set i=i + 1 @@ -57062,8 +57062,8 @@ function IsFood takes integer itemTypeId returns boolean endfunction function AddFoodItemTypeId takes integer itemTypeId returns nothing - set WowReforgedCook__foodItemTypeIds[WowReforgedCook__foodItemTypeIdsCounter]=itemTypeId - set WowReforgedCook__foodItemTypeIdsCounter=WowReforgedCook__foodItemTypeIdsCounter + 1 + set WowReforgedCook___foodItemTypeIds[WowReforgedCook___foodItemTypeIdsCounter]=itemTypeId + set WowReforgedCook___foodItemTypeIdsCounter=WowReforgedCook___foodItemTypeIdsCounter + 1 endfunction function AddCookFirePit takes unit whichUnit returns nothing @@ -57114,7 +57114,7 @@ function IsItemTypeIdCookingRecipe takes integer itemTypeId returns boolean return false endfunction -function WowReforgedCook__ShowRecipesFloatingText takes unit hero,item whichItem,integer recipes returns nothing +function WowReforgedCook___ShowRecipesFloatingText takes unit hero,item whichItem,integer recipes returns nothing local force whichForce= CreateForce() call ForceAddPlayer(whichForce, GetOwningPlayer(hero)) call ShowFadingTextTagForForce((whichForce ) , ( "+" + I2S(recipes) + " " + GetItemName(whichItem) ) , 0.025 , (( GetUnitX(hero) )*1.0) , (( GetUnitY(hero) )*1.0) , ( 0 ) , ( 0 ) , ( 0 ) , ( 0) , 0.03 , 1.0 , 2.0) // INLINED!! @@ -57131,7 +57131,7 @@ function CraftItemCook takes unit crafter,item whichItem returns nothing //call BJDebugMsg("Is cooking recipe") call SetItemCharges(whichItem, GetItemCharges(whichItem) + recipes) call RemoveAllItemsOfTypeId(crafter , ITEM_TYPE_ID_RECIPE) - call WowReforgedCook__ShowRecipesFloatingText(crafter , whichItem , recipes) + call WowReforgedCook___ShowRecipesFloatingText(crafter , whichItem , recipes) else //call BJDebugMsg("Is no cooking recipe") endif @@ -57147,7 +57147,7 @@ function CookCutKitchenKnife takes unit hero,item whichItem returns nothing endif endfunction -function WowReforgedCook__Init takes nothing returns nothing +function WowReforgedCook___Init takes nothing returns nothing call AddFoodItemTypeId(ITEM_TYPE_ID_GARLIC) call AddFoodItemTypeId(ITEM_TYPE_ID_BANANA) call AddFoodItemTypeId(ITEM_TYPE_ID_ORANGE) @@ -57160,7 +57160,7 @@ endfunction //library WoWReforgedUtils: -function WoWReforgedUtils___IsTownHallFilter takes nothing returns boolean +function WoWReforgedUtils__IsTownHallFilter takes nothing returns boolean return IsUnitType(GetFilterUnit(), UNIT_TYPE_TOWNHALL) and IsUnitAliveBJ(GetFilterUnit()) endfunction @@ -57195,7 +57195,7 @@ endfunction function SelectNextTownHall takes player whichPlayer returns unit local group halls= CreateGroup() local unit result= null - call GroupEnumUnitsOfPlayer(halls, whichPlayer, Filter(function WoWReforgedUtils___IsTownHallFilter)) + call GroupEnumUnitsOfPlayer(halls, whichPlayer, Filter(function WoWReforgedUtils__IsTownHallFilter)) set result=GetNextUnitToSelect(halls , whichPlayer) call GroupClear(halls) call DestroyGroup(halls) @@ -57227,16 +57227,16 @@ endfunction function IsInSinglePlayer takes nothing returns boolean // cache it to avoid too many calls since it won't change during the game - if ( not WoWReforgedUtils___initialized ) then + if ( not WoWReforgedUtils__initialized ) then //return CountPlayersInForceBJ(GetPlayersMatching(Condition(function FilterPlayerFunctionUsedUser))) == 1 // https://www.hiveworkshop.com/threads/how-to-detect-single-player.161490/ // https://www.hiveworkshop.com/threads/how-to-detect-single-player.161490/#post-1512734 // Even works when all players except one have left the game: - set WoWReforgedUtils___isInSinglePlayer=ReloadGameCachesFromDisk() - set WoWReforgedUtils___initialized=true + set WoWReforgedUtils__isInSinglePlayer=ReloadGameCachesFromDisk() + set WoWReforgedUtils__initialized=true endif - return WoWReforgedUtils___isInSinglePlayer + return WoWReforgedUtils__isInSinglePlayer endfunction function GetUnitBaseLevel takes unit whichUnit returns integer @@ -57740,17 +57740,17 @@ function IsHauntedGoldMine takes integer unitTypeId returns boolean return false endfunction -function WoWReforgedUtils___FilterFunctionIsHauntedGoldMine takes nothing returns boolean +function WoWReforgedUtils__FilterFunctionIsHauntedGoldMine takes nothing returns boolean return IsHauntedGoldMine(GetUnitTypeId(GetFilterUnit())) endfunction -function WoWReforgedUtils___ForFunctionKillUnit takes nothing returns nothing +function WoWReforgedUtils__ForFunctionKillUnit takes nothing returns nothing call KillUnit(GetEnumUnit()) endfunction function KillAllHauntedGoldMines takes player whichPlayer returns nothing set bj_wantDestroyGroup=true - call ForGroupBJ(GetUnitsOfPlayerMatching(whichPlayer, Filter(function WoWReforgedUtils___FilterFunctionIsHauntedGoldMine)), function WoWReforgedUtils___ForFunctionKillUnit) + call ForGroupBJ(GetUnitsOfPlayerMatching(whichPlayer, Filter(function WoWReforgedUtils__FilterFunctionIsHauntedGoldMine)), function WoWReforgedUtils__ForFunctionKillUnit) endfunction function EnumLivingTreeDestructablesInCircleFilter takes nothing returns boolean @@ -57830,15 +57830,15 @@ function AddWoWReforgedTinyBuildingItem takes nothing returns nothing endfunction -function WoWReforgedUtils___FilterIsGivableUnit takes nothing returns boolean - return GetOwningPlayer(GetFilterUnit()) == WoWReforgedUtils___tmpPlayer and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_PEON) and GetUnitAbilityLevel(GetFilterUnit(), 'Avul') <= 0 +function WoWReforgedUtils__FilterIsGivableUnit takes nothing returns boolean + return GetOwningPlayer(GetFilterUnit()) == WoWReforgedUtils__tmpPlayer and not IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) and not IsUnitType(GetFilterUnit(), UNIT_TYPE_PEON) and GetUnitAbilityLevel(GetFilterUnit(), 'Avul') <= 0 endfunction function UpdateGiveUnitsForPlayer takes player whichPlayer,real x,real y returns nothing local integer playerId= GetConvertedPlayerId(whichPlayer) - set WoWReforgedUtils___tmpPlayer=whichPlayer + set WoWReforgedUtils__tmpPlayer=whichPlayer call GroupClear(udg_GivenUnitsToFreelancer[playerId]) - call GroupEnumUnitsInRange(udg_GivenUnitsToFreelancer[playerId], x, y, 512.0, Filter(function WoWReforgedUtils___FilterIsGivableUnit)) + call GroupEnumUnitsInRange(udg_GivenUnitsToFreelancer[playerId], x, y, 512.0, Filter(function WoWReforgedUtils__FilterIsGivableUnit)) endfunction function InitTmpLocations takes nothing returns nothing @@ -57938,9 +57938,9 @@ function AddWoWReforgedAura takes nothing returns nothing call AddAura(udg_TmpAbilityCode , udg_TmpAbilityCode2 , udg_TmpAbilityCode3 , auraFilterFunc , udg_TmpReal , udg_TmpBoolean , udg_TmpInteger , udg_TmpReal2 , udg_TmpInteger2 , udg_TmpReal3) endfunction -function WoWReforgedUtils___FilterFunctionMassSpell takes nothing returns boolean - local unit caster= (MassSpell___filterCaster) // INLINED!! - local integer abilityId= (MassSpell___filterAbilityId) // INLINED!! +function WoWReforgedUtils__FilterFunctionMassSpell takes nothing returns boolean + local unit caster= (MassSpell__filterCaster) // INLINED!! + local integer abilityId= (MassSpell__filterAbilityId) // INLINED!! local unit u= GetFilterUnit() local boolean result= false if ( abilityId == 'A1WL' ) then // Mass Inner Fire @@ -57956,12 +57956,12 @@ function WoWReforgedUtils___FilterFunctionMassSpell takes nothing returns boolea endfunction function AddWoWReforgedMassSpell takes nothing returns nothing - local integer s= AddMassSpell(udg_TmpAbilityCode , udg_TmpString , Filter(function WoWReforgedUtils___FilterFunctionMassSpell)) + local integer s= AddMassSpell(udg_TmpAbilityCode , udg_TmpString , Filter(function WoWReforgedUtils__FilterFunctionMassSpell)) if ( udg_TmpAbilityCode2 != 0 ) then - call SaveInteger(MassSpell___h, (udg_TmpAbilityCode2 ), 0, ( s)) // INLINED!! + call SaveInteger(MassSpell__h, (udg_TmpAbilityCode2 ), 0, ( s)) // INLINED!! endif if ( udg_TmpAbilityCode3 != 0 ) then - call SaveInteger(MassSpell___h, (udg_TmpAbilityCode3 ), 0, ( s)) // INLINED!! + call SaveInteger(MassSpell__h, (udg_TmpAbilityCode3 ), 0, ( s)) // INLINED!! endif set udg_TmpAbilityCode2=0 @@ -58035,18 +58035,18 @@ function DisplayUnitRespawnInfo takes unit whichUnit,player whichPlayer returns call h__DisplayTimedTextToPlayer(whichPlayer, 0.0, 0.0, 6.0, "Unit respawn index: " + I2S(unitIndex) + "\nUnit group index: " + I2S(groupIndex)) endfunction -function WoWReforgedUtils___TriggerConditionLevel takes nothing returns boolean +function WoWReforgedUtils__TriggerConditionLevel takes nothing returns boolean if ( GetHeroLevel(GetTriggerUnit()) == MAX_HERO_LEVEL ) then call AutoSkillHero(GetTriggerUnit()) endif return false endfunction -function WoWReforgedUtils___Init takes nothing returns nothing +function WoWReforgedUtils__Init takes nothing returns nothing set udg_DB=InitHashtable() - call TriggerRegisterAnyUnitEventBJ(WoWReforgedUtils___levelTrigger, EVENT_PLAYER_HERO_LEVEL) - call TriggerAddCondition(WoWReforgedUtils___levelTrigger, Condition(function WoWReforgedUtils___TriggerConditionLevel)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedUtils__levelTrigger, EVENT_PLAYER_HERO_LEVEL) + call TriggerAddCondition(WoWReforgedUtils__levelTrigger, Condition(function WoWReforgedUtils__TriggerConditionLevel)) endfunction @@ -58542,23 +58542,23 @@ endfunction //library SpellsMeteorKnockbackType: -function SpellsMeteorKnockbackType__onUnitHit takes integer kb,unit hit returns nothing +function SpellsMeteorKnockbackType___onUnitHit takes integer kb,unit hit returns nothing //if (not IsUnitAlly(hit, GetOwningPlayer(kb.caster))) then //call UnitDamageTarget(kb.caster, hit, GetUnitAbilityLevel(kb.caster, 'A0W7') * 100.0, true, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL, WEAPON_TYPE_WHOKNOWS) //endif endfunction -function SpellsMeteorKnockbackType__onDestructableHit takes integer kb,destructable hit returns nothing +function SpellsMeteorKnockbackType___onDestructableHit takes integer kb,destructable hit returns nothing if ( (IsTree(GetDestructableTypeId((hit)))) ) then // INLINED!! call KillDestructable(hit) endif endfunction -function SpellsMeteorKnockbackType__filterFunction takes integer kb,unit enum returns boolean +function SpellsMeteorKnockbackType___filterFunction takes integer kb,unit enum returns boolean return not IsUnitAlly(enum, GetOwningPlayer(s__Knockback_caster[kb])) endfunction -function SpellsMeteorKnockbackType__Init takes nothing returns nothing +function SpellsMeteorKnockbackType___Init takes nothing returns nothing set SpellsMeteorKnockbackType_kbType=s__KnockbackType__allocate() set s__KnockbackType_onUnitHitAction[SpellsMeteorKnockbackType_kbType]=(3) set s__KnockbackType_onDestructableHitAction[SpellsMeteorKnockbackType_kbType]=(3) @@ -59380,7 +59380,7 @@ endfunction //library WoWReforgedEvolution ends //library WoWReforgedHeroes: -function WoWReforgedHeroes___AddHeroPagedButtonsConfig takes integer id,string modelPath returns nothing +function WoWReforgedHeroes__AddHeroPagedButtonsConfig takes integer id,string modelPath returns nothing call AddPagedButtonsConfigHero(id , 0 , 0 , 1 , 1 , 0 , 0 , modelPath) endfunction @@ -59569,7 +59569,7 @@ function Knockback_KillTree takes nothing returns nothing endfunction -function WoWReforgedKnockbackSimple__Loop takes nothing returns nothing +function WoWReforgedKnockbackSimple___Loop takes nothing returns nothing local integer knock local integer i= 0 local real x @@ -59578,25 +59578,25 @@ function WoWReforgedKnockbackSimple__Loop takes nothing returns nothing loop exitwhen i >= Total set knock=ar[i] - set x=GetUnitX(s__WoWReforgedKnockbackSimple__KnockbackS_target[knock]) + s__WoWReforgedKnockbackSimple__KnockbackS_d1[knock] * s__WoWReforgedKnockbackSimple__KnockbackS_cos[knock] - set y=GetUnitY(s__WoWReforgedKnockbackSimple__KnockbackS_target[knock]) + s__WoWReforgedKnockbackSimple__KnockbackS_d1[knock] * s__WoWReforgedKnockbackSimple__KnockbackS_sin[knock] - if s__WoWReforgedKnockbackSimple__KnockbackS_r[knock] != 0 then - set r=Rect(x - s__WoWReforgedKnockbackSimple__KnockbackS_r[knock], y - s__WoWReforgedKnockbackSimple__KnockbackS_r[knock], x + s__WoWReforgedKnockbackSimple__KnockbackS_r[knock], y + s__WoWReforgedKnockbackSimple__KnockbackS_r[knock]) + set x=GetUnitX(s__WoWReforgedKnockbackSimple___KnockbackS_target[knock]) + s__WoWReforgedKnockbackSimple___KnockbackS_d1[knock] * s__WoWReforgedKnockbackSimple___KnockbackS_cos[knock] + set y=GetUnitY(s__WoWReforgedKnockbackSimple___KnockbackS_target[knock]) + s__WoWReforgedKnockbackSimple___KnockbackS_d1[knock] * s__WoWReforgedKnockbackSimple___KnockbackS_sin[knock] + if s__WoWReforgedKnockbackSimple___KnockbackS_r[knock] != 0 then + set r=Rect(x - s__WoWReforgedKnockbackSimple___KnockbackS_r[knock], y - s__WoWReforgedKnockbackSimple___KnockbackS_r[knock], x + s__WoWReforgedKnockbackSimple___KnockbackS_r[knock], y + s__WoWReforgedKnockbackSimple___KnockbackS_r[knock]) call EnumDestructablesInRect(r, filter, function Knockback_KillTree) call RemoveRect(r) endif if CheckPathability(x , y) then - call SetUnitX(s__WoWReforgedKnockbackSimple__KnockbackS_target[knock], x) - call SetUnitY(s__WoWReforgedKnockbackSimple__KnockbackS_target[knock], y) - call DestroyEffect(AddSpecialEffectTargetUnitBJ(s__WoWReforgedKnockbackSimple__KnockbackS_attachmentPoint[knock], s__WoWReforgedKnockbackSimple__KnockbackS_target[knock], s__WoWReforgedKnockbackSimple__KnockbackS_efect[knock])) + call SetUnitX(s__WoWReforgedKnockbackSimple___KnockbackS_target[knock], x) + call SetUnitY(s__WoWReforgedKnockbackSimple___KnockbackS_target[knock], y) + call DestroyEffect(AddSpecialEffectTargetUnitBJ(s__WoWReforgedKnockbackSimple___KnockbackS_attachmentPoint[knock], s__WoWReforgedKnockbackSimple___KnockbackS_target[knock], s__WoWReforgedKnockbackSimple___KnockbackS_efect[knock])) endif - set s__WoWReforgedKnockbackSimple__KnockbackS_d1[knock]=s__WoWReforgedKnockbackSimple__KnockbackS_d1[knock] - s__WoWReforgedKnockbackSimple__KnockbackS_d2[knock] - if s__WoWReforgedKnockbackSimple__KnockbackS_d1[knock] <= 0 or not CheckPathability(x , y) then + set s__WoWReforgedKnockbackSimple___KnockbackS_d1[knock]=s__WoWReforgedKnockbackSimple___KnockbackS_d1[knock] - s__WoWReforgedKnockbackSimple___KnockbackS_d2[knock] + if s__WoWReforgedKnockbackSimple___KnockbackS_d1[knock] <= 0 or not CheckPathability(x , y) then set ar[i]=ar[Total - 1] set Total=Total - 1 - call PauseUnit(s__WoWReforgedKnockbackSimple__KnockbackS_target[knock], false) - call GroupRemoveUnit(knockbackTargets, s__WoWReforgedKnockbackSimple__KnockbackS_target[knock]) - call s__WoWReforgedKnockbackSimple__KnockbackS_deallocate(knock) + call PauseUnit(s__WoWReforgedKnockbackSimple___KnockbackS_target[knock], false) + call GroupRemoveUnit(knockbackTargets, s__WoWReforgedKnockbackSimple___KnockbackS_target[knock]) + call s__WoWReforgedKnockbackSimple___KnockbackS_deallocate(knock) endif set i=i + 1 endloop @@ -59607,19 +59607,19 @@ function WoWReforgedKnockbackSimple__Loop takes nothing returns nothing endfunction function KnockbackUnitSimple takes unit target,real distance,real angle,real duration,real radius,string efect,string attachmentPoint returns nothing - local integer kd= s__WoWReforgedKnockbackSimple__KnockbackS__allocate() + local integer kd= s__WoWReforgedKnockbackSimple___KnockbackS__allocate() local integer q= R2I(duration / Interval) - set s__WoWReforgedKnockbackSimple__KnockbackS_target[kd]=target - set s__WoWReforgedKnockbackSimple__KnockbackS_d1[kd]=2 * distance / ( q + 1 ) - set s__WoWReforgedKnockbackSimple__KnockbackS_d2[kd]=s__WoWReforgedKnockbackSimple__KnockbackS_d1[kd] / q - set s__WoWReforgedKnockbackSimple__KnockbackS_cos[kd]=Cos(angle * bj_DEGTORAD) - set s__WoWReforgedKnockbackSimple__KnockbackS_sin[kd]=Sin(angle * bj_DEGTORAD) - set s__WoWReforgedKnockbackSimple__KnockbackS_r[kd]=radius - set s__WoWReforgedKnockbackSimple__KnockbackS_efect[kd]=efect - set s__WoWReforgedKnockbackSimple__KnockbackS_attachmentPoint[kd]=attachmentPoint + set s__WoWReforgedKnockbackSimple___KnockbackS_target[kd]=target + set s__WoWReforgedKnockbackSimple___KnockbackS_d1[kd]=2 * distance / ( q + 1 ) + set s__WoWReforgedKnockbackSimple___KnockbackS_d2[kd]=s__WoWReforgedKnockbackSimple___KnockbackS_d1[kd] / q + set s__WoWReforgedKnockbackSimple___KnockbackS_cos[kd]=Cos(angle * bj_DEGTORAD) + set s__WoWReforgedKnockbackSimple___KnockbackS_sin[kd]=Sin(angle * bj_DEGTORAD) + set s__WoWReforgedKnockbackSimple___KnockbackS_r[kd]=radius + set s__WoWReforgedKnockbackSimple___KnockbackS_efect[kd]=efect + set s__WoWReforgedKnockbackSimple___KnockbackS_attachmentPoint[kd]=attachmentPoint call PauseUnit(target, true) if Total == 0 then - call TimerStart(Timer, Interval, true, function WoWReforgedKnockbackSimple__Loop) + call TimerStart(Timer, Interval, true, function WoWReforgedKnockbackSimple___Loop) endif set ar[Total]=kd set Total=Total + 1 @@ -59634,7 +59634,7 @@ function IsUnitKnockbackTarget takes unit whichUnit returns boolean return IsUnitInGroup(whichUnit, knockbackTargets) endfunction -function WoWReforgedKnockbackSimple__Init takes nothing returns nothing +function WoWReforgedKnockbackSimple___Init takes nothing returns nothing set knockbackTargets=CreateGroup() set It=CreateItem('ciri', 0, 0) set filter=Filter(function Knockback_TreeFilter) @@ -59646,7 +59646,7 @@ endfunction function GetSkillShopCooldownTimer takes player whichPlayer,integer slot returns timer - return WoWReforgedLearnableSkillsShop___cooldownTimer[Index2D(GetPlayerId(whichPlayer) , slot , RESKILL_MAX_SLOTS)] + return WoWReforgedLearnableSkillsShop__cooldownTimer[Index2D(GetPlayerId(whichPlayer) , slot , RESKILL_MAX_SLOTS)] endfunction function GetSkillSlotFromShopType takes integer unitTypeId returns integer @@ -59666,9 +59666,9 @@ function GetSkillSlotFromShopType takes integer unitTypeId returns integer return - 1 endfunction -function WoWReforgedLearnableSkillsShop___AddLearnableSkillsToShop takes unit shop returns nothing +function WoWReforgedLearnableSkillsShop__AddLearnableSkillsToShop takes unit shop returns nothing local integer slot= GetSkillSlotFromShopType(GetUnitTypeId(shop)) - local integer max= (WoWReforgedLearnableSkills___learnableSkillCounter) // INLINED!! + local integer max= (WoWReforgedLearnableSkills__learnableSkillCounter) // INLINED!! local integer currentSlot= - 1 local integer i= 0 //call BJDebugMsg("Before enabling shop " + GetUnitName(shop) + " with " + I2S(max) + " total learnable skills.") @@ -59676,12 +59676,12 @@ function WoWReforgedLearnableSkillsShop___AddLearnableSkillsToShop takes unit sh call SetPagedButtonsSlotsPerPage(shop , 9) loop exitwhen ( i >= max ) - if ( slot == - 1 or (WoWReforgedLearnableSkills___learnableSkillSlot[(i)]) == slot ) then // INLINED!! - if ( slot == - 1 and ( currentSlot == - 1 or currentSlot != (WoWReforgedLearnableSkills___learnableSkillSlot[(i)]) ) ) then // INLINED!! + if ( slot == - 1 or (WoWReforgedLearnableSkills__learnableSkillSlot[(i)]) == slot ) then // INLINED!! + if ( slot == - 1 and ( currentSlot == - 1 or currentSlot != (WoWReforgedLearnableSkills__learnableSkillSlot[(i)]) ) ) then // INLINED!! call NextPagedButtonsPage(shop , "Slot " + I2S(slot + 1)) endif - set currentSlot=(WoWReforgedLearnableSkills___learnableSkillSlot[(i)]) // INLINED!! -call AddPagedButtonsId((shop ) , ( (WoWReforgedLearnableSkills___learnableSkillLearnItemTypeId[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! + set currentSlot=(WoWReforgedLearnableSkills__learnableSkillSlot[(i)]) // INLINED!! +call AddPagedButtonsId((shop ) , ( (WoWReforgedLearnableSkills__learnableSkillLearnItemTypeId[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! endif //call BJDebugMsg("Skill " + I2S(i)) // Stops at 189 set i=i + 1 @@ -59699,7 +59699,7 @@ function IsAllowedToReskillEquipmentBag takes player whichPlayer returns boolean return GetHeroLevel1(whichPlayer) >= RESKILL_HERO_LEVEL or udg_VIPOnForPlayer[GetConvertedPlayerId(whichPlayer)] or udg_UnlockedAll endfunction -function WoWReforgedLearnableSkillsShop___TriggerAction1SellItem takes nothing returns nothing +function WoWReforgedLearnableSkillsShop__TriggerAction1SellItem takes nothing returns nothing local unit shop= GetSellingUnit() local integer slot= GetSkillSlotFromShopType(GetUnitTypeId(shop)) local unit hero= GetBuyingUnit() @@ -59710,19 +59710,19 @@ function WoWReforgedLearnableSkillsShop___TriggerAction1SellItem takes nothing r local integer index= GetLearnableSkillByLearnItemTypeId(itemTypeId) if ( index != - 1 ) then if ( ( ((unitTypeId) == EQUIPMENT_BAG) and IsAllowedToReskillEquipmentBag(owner) ) or ( not ((unitTypeId) == EQUIPMENT_BAG) and IsReskillableHero(unitTypeId) ) ) then // INLINED!! - if ( not ((GetUnitTypeId(hero)) == EQUIPMENT_BAG) or not (WoWReforgedLearnableSkills___learnableSkillForbidEquipmentBag[(index)]) ) then // INLINED!! - if ( RectContainsUnit(gg_rct_Player_Selection, hero) or TimerGetRemaining((WoWReforgedLearnableSkillsShop___cooldownTimer[Index2D(GetPlayerId((owner )) , ( (WoWReforgedLearnableSkills___learnableSkillSlot[(index)])) , RESKILL_MAX_SLOTS)])) <= 0.0 ) then // INLINED!! - call DisableTrigger(WoWReforgedHeroSkills___unlearnTrigger) // INLINED!! + if ( not ((GetUnitTypeId(hero)) == EQUIPMENT_BAG) or not (WoWReforgedLearnableSkills__learnableSkillForbidEquipmentBag[(index)]) ) then // INLINED!! + if ( RectContainsUnit(gg_rct_Player_Selection, hero) or TimerGetRemaining((WoWReforgedLearnableSkillsShop__cooldownTimer[Index2D(GetPlayerId((owner )) , ( (WoWReforgedLearnableSkills__learnableSkillSlot[(index)])) , RESKILL_MAX_SLOTS)])) <= 0.0 ) then // INLINED!! + call DisableTrigger(WoWReforgedHeroSkills__unlearnTrigger) // INLINED!! call UnskillHero(hero) - call ResetLearnableSkillsForHero(hero , (WoWReforgedLearnableSkills___learnableSkillSlot[(index)])) // INLINED!! + call ResetLearnableSkillsForHero(hero , (WoWReforgedLearnableSkills__learnableSkillSlot[(index)])) // INLINED!! call AddLearnableSkillToHero(hero , index) - call EnableTrigger(WoWReforgedHeroSkills___unlearnTrigger) // INLINED!! + call EnableTrigger(WoWReforgedHeroSkills__unlearnTrigger) // INLINED!! call ApplyAllHeroLearnedSkills(hero , GetHandleId(hero)) // TODO Get the ability IDs before learning. - call h__DisplayTextToPlayer(owner, 0.0, 0.0, "Added ability " + GetObjectName((WoWReforgedLearnableSkills___learnableSkillAbilityId[(index)]))) // INLINED!! + call h__DisplayTextToPlayer(owner, 0.0, 0.0, "Added ability " + GetObjectName((WoWReforgedLearnableSkills__learnableSkillAbilityId[(index)]))) // INLINED!! // cooldown is annoying //call TimerStart(GetSkillShopCooldownTimer(owner, GetLearnableSkillSlot(index)), 60.0, false, null) else - call SimError(owner , "Wait " + FormatTime(TimerGetRemaining((WoWReforgedLearnableSkillsShop___cooldownTimer[Index2D(GetPlayerId((owner )) , ( (WoWReforgedLearnableSkills___learnableSkillSlot[(index)])) , RESKILL_MAX_SLOTS)]))) + " until you can learn another skill from slot " + I2S(slot + 1) + ".") // INLINED!! + call SimError(owner , "Wait " + FormatTime(TimerGetRemaining((WoWReforgedLearnableSkillsShop__cooldownTimer[Index2D(GetPlayerId((owner )) , ( (WoWReforgedLearnableSkills__learnableSkillSlot[(index)])) , RESKILL_MAX_SLOTS)]))) + " until you can learn another skill from slot " + I2S(slot + 1) + ".") // INLINED!! endif else call SimError(owner , "This spell is not allowed for Equipment Backpacks.") @@ -59738,21 +59738,21 @@ function WoWReforgedLearnableSkillsShop___TriggerAction1SellItem takes nothing r set owner=null endfunction -function WoWReforgedLearnableSkillsShop___TriggerConditionConstructed takes nothing returns boolean +function WoWReforgedLearnableSkillsShop__TriggerConditionConstructed takes nothing returns boolean if ( GetUnitTypeId(GetTriggerUnit()) == SPELL_BOOK ) then - call WoWReforgedLearnableSkillsShop___AddLearnableSkillsToShop(GetConstructedStructure()) + call WoWReforgedLearnableSkillsShop__AddLearnableSkillsToShop(GetConstructedStructure()) endif return false endfunction -function WoWReforgedLearnableSkillsShop___TriggerConditionSummoned takes nothing returns boolean +function WoWReforgedLearnableSkillsShop__TriggerConditionSummoned takes nothing returns boolean if ( GetUnitTypeId(GetSummonedUnit()) == SPELL_BOOK ) then - call WoWReforgedLearnableSkillsShop___AddLearnableSkillsToShop(GetSummonedUnit()) + call WoWReforgedLearnableSkillsShop__AddLearnableSkillsToShop(GetSummonedUnit()) endif return false endfunction -function WoWReforgedLearnableSkillsShop___TriggerConditionDeath takes nothing returns boolean +function WoWReforgedLearnableSkillsShop__TriggerConditionDeath takes nothing returns boolean if ( GetUnitTypeId(GetTriggerUnit()) == SPELL_BOOK ) then // TODO Disable shop manually? //call ClearSkillsShop(GetTriggerUnit()) @@ -59760,20 +59760,20 @@ function WoWReforgedLearnableSkillsShop___TriggerConditionDeath takes nothing re return false endfunction -function WoWReforgedLearnableSkillsShop___ForGroupEnableShop takes nothing returns nothing - call WoWReforgedLearnableSkillsShop___AddLearnableSkillsToShop(GetEnumUnit()) +function WoWReforgedLearnableSkillsShop__ForGroupEnableShop takes nothing returns nothing + call WoWReforgedLearnableSkillsShop__AddLearnableSkillsToShop(GetEnumUnit()) endfunction -function WoWReforgedLearnableSkillsShop___FilterBuilding takes nothing returns boolean +function WoWReforgedLearnableSkillsShop__FilterBuilding takes nothing returns boolean local integer unitTypeId= GetUnitTypeId(GetFilterUnit()) return unitTypeId == HERO_SPELLS_SLOT_1 or unitTypeId == HERO_SPELLS_SLOT_2 or unitTypeId == HERO_SPELLS_SLOT_3 or unitTypeId == HERO_SPELLS_SLOT_4 or unitTypeId == HERO_SPELLS_SLOT_5 endfunction -function WoWReforgedLearnableSkillsShop___UpdateAllShops takes nothing returns nothing +function WoWReforgedLearnableSkillsShop__UpdateAllShops takes nothing returns nothing local group g= CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedLearnableSkillsShop___FilterBuilding)) - call ForGroup(g, function WoWReforgedLearnableSkillsShop___ForGroupEnableShop) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedLearnableSkillsShop__FilterBuilding)) + call ForGroup(g, function WoWReforgedLearnableSkillsShop__ForGroupEnableShop) call GroupClear(g) call DestroyGroup(g) @@ -59785,7 +59785,7 @@ function WoWReforgedLearnableSkillsShop___UpdateAllShops takes nothing returns n call DestroyTimer(GetExpiredTimer()) endfunction -function WoWReforgedLearnableSkillsShop___Init takes nothing returns nothing +function WoWReforgedLearnableSkillsShop__Init takes nothing returns nothing local integer j= 0 local integer i= 0 loop @@ -59793,24 +59793,24 @@ function WoWReforgedLearnableSkillsShop___Init takes nothing returns nothing set j=0 loop exitwhen ( j >= 5 ) - set WoWReforgedLearnableSkillsShop___cooldownTimer[Index2D(i , j , 5)]=CreateTimer() + set WoWReforgedLearnableSkillsShop__cooldownTimer[Index2D(i , j , 5)]=CreateTimer() set j=j + 1 endloop set i=i + 1 endloop - call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkillsShop___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddAction(WoWReforgedLearnableSkillsShop___sellTrigger, function WoWReforgedLearnableSkillsShop___TriggerAction1SellItem) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkillsShop__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddAction(WoWReforgedLearnableSkillsShop__sellTrigger, function WoWReforgedLearnableSkillsShop__TriggerAction1SellItem) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkillsShop___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedLearnableSkillsShop___constructionTrigger, Condition(function WoWReforgedLearnableSkillsShop___TriggerConditionConstructed)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkillsShop__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedLearnableSkillsShop__constructionTrigger, Condition(function WoWReforgedLearnableSkillsShop__TriggerConditionConstructed)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkillsShop___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(WoWReforgedLearnableSkillsShop___summonTrigger, Condition(function WoWReforgedLearnableSkillsShop___TriggerConditionSummoned)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkillsShop__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(WoWReforgedLearnableSkillsShop__summonTrigger, Condition(function WoWReforgedLearnableSkillsShop__TriggerConditionSummoned)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkillsShop___deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedLearnableSkillsShop___deathTrigger, Condition(function WoWReforgedLearnableSkillsShop___TriggerConditionDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedLearnableSkillsShop__deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedLearnableSkillsShop__deathTrigger, Condition(function WoWReforgedLearnableSkillsShop__TriggerConditionDeath)) - call TimerStart(CreateTimer(), 2.0, false, function WoWReforgedLearnableSkillsShop___UpdateAllShops) + call TimerStart(CreateTimer(), 2.0, false, function WoWReforgedLearnableSkillsShop__UpdateAllShops) endfunction @@ -59977,8 +59977,8 @@ endfunction // clear all old entries before set s__MapChanger_m_saveGamesCounter=0 loop - exitwhen ( i == (WoWReforgedLevels___levelCounter) ) // INLINED!! - set levelName=(WoWReforgedLevels___levelName[(i)]) // INLINED!! + exitwhen ( i == (WoWReforgedLevels__levelCounter) ) // INLINED!! + set levelName=(WoWReforgedLevels__levelName[(i)]) // INLINED!! if ( HaveStoredBoolean(cache, "ZoneSaveGames", levelName) ) then if ( s__MapChanger_getZoneNameIndex(levelName) == - 1 ) then call s__MapChanger_addZoneName(levelName) @@ -60216,8 +60216,8 @@ endfunction call RemoveSaveDirectory(s__MapChanger_temporaryFolder) set i=0 loop - exitwhen ( i == (WoWReforgedLevels___levelCounter) ) // INLINED!! - set levelName=(WoWReforgedLevels___levelName[(i)]) // INLINED!! + exitwhen ( i == (WoWReforgedLevels__levelCounter) ) // INLINED!! + set levelName=(WoWReforgedLevels__levelName[(i)]) // INLINED!! set zoneSaveGame=(s__MapChanger_saveGamePath(s__MapChanger_m_currentSaveGame , (levelName))) // INLINED!! if ( (s__MapChanger_getZoneNameIndex((levelName)) != - 1) and SaveGameExists(zoneSaveGame) ) then // INLINED!! set zoneTargetSaveGame=(s__MapChanger_saveGamePath("" , (levelName))) // INLINED!! @@ -60241,8 +60241,8 @@ endfunction call RemoveSaveDirectory(s__MapChanger_saveGameFolder(GetSaveBasicFilename())) // Copy savegames for all zones into the new directory. Consider that every map needs ALL zones therefore. Disable unused zones in the map. loop - exitwhen ( i == (WoWReforgedLevels___levelCounter) ) // INLINED!! - set levelName=(WoWReforgedLevels___levelName[(i)]) // INLINED!! + exitwhen ( i == (WoWReforgedLevels__levelCounter) ) // INLINED!! + set levelName=(WoWReforgedLevels__levelName[(i)]) // INLINED!! set zoneSaveGame=(s__MapChanger_saveGamePath("" , (levelName))) // INLINED!! if ( (s__MapChanger_getZoneNameIndex((levelName)) != - 1) and SaveGameExists(zoneSaveGame) ) then // INLINED!! set zoneTargetSaveGame=s__MapChanger_saveGamePath(GetSaveBasicFilename() , levelName) @@ -60295,7 +60295,7 @@ endfunction //library WoWReforgedProfessionsTavern: -function WoWReforgedProfessionsTavern___AddProfessionsTavern takes unit tavern returns nothing +function WoWReforgedProfessionsTavern__AddProfessionsTavern takes unit tavern returns nothing local integer i= 0 call EnablePagedButtons(tavern) call SetPagedButtonsSlotsPerPage(tavern , 10) @@ -60304,19 +60304,19 @@ call AddPagedButtonsId((tavern ) , ( ITEM_TYPE_RANDOM_PROFESSION) , PagedButtons set i=0 loop - exitwhen ( i >= (WoWReforgedProfessions___professionsCounter) ) // INLINED!! + exitwhen ( i >= (WoWReforgedProfessions__professionsCounter) ) // INLINED!! call AddPagedButtonsId((tavern ) , ( GetProfessionItemTypeId(i)) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! set i=i + 1 endloop call SetPagedButtonsPage(tavern , 0) endfunction -function WoWReforgedProfessionsTavern___ForGroupAddProfessionsTavern takes nothing returns nothing - call WoWReforgedProfessionsTavern___AddProfessionsTavern(GetEnumUnit()) +function WoWReforgedProfessionsTavern__ForGroupAddProfessionsTavern takes nothing returns nothing + call WoWReforgedProfessionsTavern__AddProfessionsTavern(GetEnumUnit()) endfunction -function WoWReforgedProfessionsTavern___TimerFunctionAddProfessionsTaverns takes nothing returns nothing - call ForGroupBJ(GetUnitsOfTypeIdAll(PROFESSIONS_TAVERN), function WoWReforgedProfessionsTavern___ForGroupAddProfessionsTavern) +function WoWReforgedProfessionsTavern__TimerFunctionAddProfessionsTaverns takes nothing returns nothing + call ForGroupBJ(GetUnitsOfTypeIdAll(PROFESSIONS_TAVERN), function WoWReforgedProfessionsTavern__ForGroupAddProfessionsTavern) call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) @@ -60331,7 +60331,7 @@ function SelectRandomProfession takes unit buyingUnit,unit tavern returns nothin local integer page= 0 local integer index= 0 local integer i= 1 - local integer max= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer max= (WoWReforgedProfessions__professionsCounter) // INLINED!! loop exitwhen ( i >= max ) set id=GetProfessionItemTypeId(i) @@ -60355,7 +60355,7 @@ function SelectRandomProfession takes unit buyingUnit,unit tavern returns nothin set owner=null endfunction -function WoWReforgedProfessionsTavern___TriggerConditionSellItem takes nothing returns boolean +function WoWReforgedProfessionsTavern__TriggerConditionSellItem takes nothing returns boolean if ( GetItemTypeId(GetSoldItem()) == ITEM_TYPE_RANDOM_PROFESSION ) then call SelectRandomProfession(GetBuyingUnit() , GetTriggerUnit()) call h__RemoveItem(GetSoldItem()) @@ -60363,11 +60363,11 @@ function WoWReforgedProfessionsTavern___TriggerConditionSellItem takes nothing r return false endfunction -function WoWReforgedProfessionsTavern___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedProfessionsTavern___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedProfessionsTavern___sellTrigger, Condition(function WoWReforgedProfessionsTavern___TriggerConditionSellItem)) +function WoWReforgedProfessionsTavern__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedProfessionsTavern__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedProfessionsTavern__sellTrigger, Condition(function WoWReforgedProfessionsTavern__TriggerConditionSellItem)) - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedProfessionsTavern___TimerFunctionAddProfessionsTaverns) + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedProfessionsTavern__TimerFunctionAddProfessionsTaverns) endfunction @@ -60385,7 +60385,7 @@ function IsUnitResurrectionStone takes unit whichUnit returns boolean endfunction function GetResurrectionStoneFromUnit takes unit whichUnit returns integer - return LoadInteger(WoWReforgedResurrectionStone__h, GetHandleId(whichUnit), 0) + return LoadInteger(WoWReforgedResurrectionStone___h, GetHandleId(whichUnit), 0) endfunction function ResurrectionStoneHasHeroOfPlayer takes integer r,player whichPlayer returns boolean @@ -60410,8 +60410,8 @@ function DeactivateResurrectionStone takes player whichPlayer,integer heroIndex local integer playerId= GetPlayerId(whichPlayer) local integer index= Index2D(playerId , heroIndex , MAX_HEROES) local unit hero= GetPlayerHeroByIndex(whichPlayer , heroIndex) - if ( WoWReforgedResurrectionStone__heroResurrectionStones[index] != 0 ) then - set r=WoWReforgedResurrectionStone__heroResurrectionStones[index] + if ( WoWReforgedResurrectionStone___heroResurrectionStones[index] != 0 ) then + set r=WoWReforgedResurrectionStone___heroResurrectionStones[index] call GroupRemoveUnit(s__ResurrectionStone_g[r], hero) if ( not ResurrectionStoneHasHeroOfPlayer(r , whichPlayer) ) then call UnitShareVision(s__ResurrectionStone_u[r], whichPlayer, false) @@ -60424,14 +60424,14 @@ function DeactivateResurrectionStone takes player whichPlayer,integer heroIndex set hero=null endfunction -function WoWReforgedResurrectionStone__TriggerConditionActivate takes nothing returns boolean - local integer r= LoadInteger(WoWReforgedResurrectionStone__h, GetHandleId(GetTriggeringTrigger()), 0) +function WoWReforgedResurrectionStone___TriggerConditionActivate takes nothing returns boolean + local integer r= LoadInteger(WoWReforgedResurrectionStone___h, GetHandleId(GetTriggeringTrigger()), 0) return s__ResurrectionStone_u[r] == GetSellingUnit() endfunction -function WoWReforgedResurrectionStone__TriggerActionActivate takes nothing returns nothing - local integer r= LoadInteger(WoWReforgedResurrectionStone__h, GetHandleId(GetTriggeringTrigger()), 0) +function WoWReforgedResurrectionStone___TriggerActionActivate takes nothing returns nothing + local integer r= LoadInteger(WoWReforgedResurrectionStone___h, GetHandleId(GetTriggeringTrigger()), 0) local unit hero= GetBuyingUnit() local player owner= GetOwningPlayer(hero) local integer playerId= GetPlayerId(owner) @@ -60442,7 +60442,7 @@ function WoWReforgedResurrectionStone__TriggerActionActivate takes nothing retur if ( itemTypeId == ITEM_ACTIVATE_RESURRECTION_STONE ) then if ( IsPlayerHero(hero) ) then set index=Index2D(playerId , GetPlayerHeroIndex(owner , hero) , MAX_HEROES) - if ( WoWReforgedResurrectionStone__heroResurrectionStones[index] != 0 ) then + if ( WoWReforgedResurrectionStone___heroResurrectionStones[index] != 0 ) then call GroupRemoveUnit(s__ResurrectionStone_g[r], hero) if ( not ResurrectionStoneHasHeroOfPlayer(r , owner) ) then call UnitShareVision(s__ResurrectionStone_u[r], owner, false) @@ -60452,7 +60452,7 @@ function WoWReforgedResurrectionStone__TriggerActionActivate takes nothing retur endif endif call GroupAddUnit(s__ResurrectionStone_g[r], hero) - set WoWReforgedResurrectionStone__heroResurrectionStones[index]=r + set WoWReforgedResurrectionStone___heroResurrectionStones[index]=r call UnitShareVision(s__ResurrectionStone_u[r], owner, true) call SetUnitAnimation(s__ResurrectionStone_u[r], "stand alternate") set e=AddSpecialEffect("Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl", GetUnitX(s__ResurrectionStone_u[r]), GetUnitY(s__ResurrectionStone_u[r])) @@ -60485,10 +60485,10 @@ function AddResurrectionStone takes unit u,rect revivalRect,real facing returns set s__ResurrectionStone_revivalRect[r]=revivalRect set s__ResurrectionStone_facing[r]=facing call TriggerRegisterAnyUnitEventBJ(s__ResurrectionStone_activationTrigger[r], EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(s__ResurrectionStone_activationTrigger[r], Condition(function WoWReforgedResurrectionStone__TriggerConditionActivate)) - call TriggerAddAction(s__ResurrectionStone_activationTrigger[r], function WoWReforgedResurrectionStone__TriggerActionActivate) - call SaveInteger(WoWReforgedResurrectionStone__h, GetHandleId(s__ResurrectionStone_activationTrigger[r]), 0, r) - call SaveInteger(WoWReforgedResurrectionStone__h, GetHandleId(u), 0, r) + call TriggerAddCondition(s__ResurrectionStone_activationTrigger[r], Condition(function WoWReforgedResurrectionStone___TriggerConditionActivate)) + call TriggerAddAction(s__ResurrectionStone_activationTrigger[r], function WoWReforgedResurrectionStone___TriggerActionActivate) + call SaveInteger(WoWReforgedResurrectionStone___h, GetHandleId(s__ResurrectionStone_activationTrigger[r]), 0, r) + call SaveInteger(WoWReforgedResurrectionStone___h, GetHandleId(u), 0, r) return r endfunction @@ -60497,11 +60497,11 @@ function AddResurrectionStoneWoWReforged takes nothing returns nothing call AddResurrectionStone(udg_TmpUnit , udg_TmpRect , udg_TmpReal) endfunction -function WoWReforgedResurrectionStone__TimerFunctionResurrect takes nothing returns nothing - local integer index= LoadInteger(WoWReforgedResurrectionStone__h, GetHandleId(GetExpiredTimer()), 0) - local integer playerId= LoadInteger(WoWReforgedResurrectionStone__h, GetHandleId(GetExpiredTimer()), 1) - local integer i= LoadInteger(WoWReforgedResurrectionStone__h, GetHandleId(GetExpiredTimer()), 2) - local integer r= WoWReforgedResurrectionStone__heroResurrectionStones[index] +function WoWReforgedResurrectionStone___TimerFunctionResurrect takes nothing returns nothing + local integer index= LoadInteger(WoWReforgedResurrectionStone___h, GetHandleId(GetExpiredTimer()), 0) + local integer playerId= LoadInteger(WoWReforgedResurrectionStone___h, GetHandleId(GetExpiredTimer()), 1) + local integer i= LoadInteger(WoWReforgedResurrectionStone___h, GetHandleId(GetExpiredTimer()), 2) + local integer r= WoWReforgedResurrectionStone___heroResurrectionStones[index] local real x= GetRectCenterX(s__ResurrectionStone_revivalRect[r]) local real y= GetRectCenterY(s__ResurrectionStone_revivalRect[r]) local unit hero= GetPlayerHeroByIndex(Player(playerId) , i) @@ -60511,15 +60511,15 @@ function WoWReforgedResurrectionStone__TimerFunctionResurrect takes nothing retu call SetUnitAnimation(s__ResurrectionStone_u[r], "stand alternate") endfunction -function WoWReforgedResurrectionStone__TriggerConditionDeath takes nothing returns boolean +function WoWReforgedResurrectionStone___TriggerConditionDeath takes nothing returns boolean local player owner= GetOwningPlayer(GetTriggerUnit()) local integer r= 0 local integer index= 0 if ( IsPlayerHero(GetTriggerUnit()) ) then set index=Index2D(GetPlayerId(owner) , GetPlayerHeroIndex(owner , GetTriggerUnit()) , MAX_HEROES) - set r=WoWReforgedResurrectionStone__heroResurrectionStones[index] + set r=WoWReforgedResurrectionStone___heroResurrectionStones[index] if ( r != 0 ) then - call TimerStart(WoWReforgedResurrectionStone__heroResurrectionTimers[index], RESURRECTION_TIME, false, function WoWReforgedResurrectionStone__TimerFunctionResurrect) + call TimerStart(WoWReforgedResurrectionStone___heroResurrectionTimers[index], RESURRECTION_TIME, false, function WoWReforgedResurrectionStone___TimerFunctionResurrect) call SetUnitAnimation(s__ResurrectionStone_u[r], "stand work") endif endif @@ -60527,14 +60527,14 @@ function WoWReforgedResurrectionStone__TriggerConditionDeath takes nothing retur return false endfunction -function WoWReforgedResurrectionStone__TriggerConditionReviveStart takes nothing returns boolean +function WoWReforgedResurrectionStone___TriggerConditionReviveStart takes nothing returns boolean local player owner= GetOwningPlayer(GetRevivingUnit()) local integer r= 0 local integer index= 0 if ( IsPlayerHero(GetRevivingUnit()) ) then set index=Index2D(GetPlayerId(GetOwningPlayer(GetRevivingUnit())) , GetPlayerHeroIndex(owner , GetRevivingUnit()) , MAX_HEROES) - call PauseTimer(WoWReforgedResurrectionStone__heroResurrectionTimers[index]) - set r=WoWReforgedResurrectionStone__heroResurrectionStones[index] + call PauseTimer(WoWReforgedResurrectionStone___heroResurrectionTimers[index]) + set r=WoWReforgedResurrectionStone___heroResurrectionStones[index] if ( r != 0 ) then call SetUnitAnimation(s__ResurrectionStone_u[r], "stand alternate") endif @@ -60543,7 +60543,7 @@ function WoWReforgedResurrectionStone__TriggerConditionReviveStart takes nothing return false endfunction -function WoWReforgedResurrectionStone__TriggerConditionChat takes nothing returns boolean +function WoWReforgedResurrectionStone___TriggerConditionChat takes nothing returns boolean local string msg= GetEventPlayerChatString() if ( msg == "-noresurrect" ) then if ( (udg_Hero[GetPlayerId((GetTriggerPlayer()))]) != null ) then // INLINED!! @@ -60577,7 +60577,7 @@ function WoWReforgedResurrectionStone__TriggerConditionChat takes nothing return return false endfunction -function WoWReforgedResurrectionStone__Init takes nothing returns nothing +function WoWReforgedResurrectionStone___Init takes nothing returns nothing local integer i= 0 local integer j= 0 local integer index= 0 @@ -60589,28 +60589,28 @@ function WoWReforgedResurrectionStone__Init takes nothing returns nothing loop exitwhen ( j == MAX_HEROES ) set index=Index2D(i , j , MAX_HEROES) - set WoWReforgedResurrectionStone__heroResurrectionTimers[index]=CreateTimer() - call SaveInteger(WoWReforgedResurrectionStone__h, GetHandleId(WoWReforgedResurrectionStone__heroResurrectionTimers[index]), 0, index) - call SaveInteger(WoWReforgedResurrectionStone__h, GetHandleId(WoWReforgedResurrectionStone__heroResurrectionTimers[index]), 1, i) - call SaveInteger(WoWReforgedResurrectionStone__h, GetHandleId(WoWReforgedResurrectionStone__heroResurrectionTimers[index]), 2, j) - set WoWReforgedResurrectionStone__heroResurrectionStones[index]=0 + set WoWReforgedResurrectionStone___heroResurrectionTimers[index]=CreateTimer() + call SaveInteger(WoWReforgedResurrectionStone___h, GetHandleId(WoWReforgedResurrectionStone___heroResurrectionTimers[index]), 0, index) + call SaveInteger(WoWReforgedResurrectionStone___h, GetHandleId(WoWReforgedResurrectionStone___heroResurrectionTimers[index]), 1, i) + call SaveInteger(WoWReforgedResurrectionStone___h, GetHandleId(WoWReforgedResurrectionStone___heroResurrectionTimers[index]), 2, j) + set WoWReforgedResurrectionStone___heroResurrectionStones[index]=0 set j=j + 1 endloop - call TriggerRegisterPlayerChatEvent(WoWReforgedResurrectionStone__chatTrigger, slotPlayer, "-noresurrect", true) - call TriggerRegisterPlayerChatEvent(WoWReforgedResurrectionStone__chatTrigger, slotPlayer, "-noresurrect1", true) - call TriggerRegisterPlayerChatEvent(WoWReforgedResurrectionStone__chatTrigger, slotPlayer, "-noresurrect2", true) - call TriggerRegisterPlayerChatEvent(WoWReforgedResurrectionStone__chatTrigger, slotPlayer, "-noresurrect3", true) + call TriggerRegisterPlayerChatEvent(WoWReforgedResurrectionStone___chatTrigger, slotPlayer, "-noresurrect", true) + call TriggerRegisterPlayerChatEvent(WoWReforgedResurrectionStone___chatTrigger, slotPlayer, "-noresurrect1", true) + call TriggerRegisterPlayerChatEvent(WoWReforgedResurrectionStone___chatTrigger, slotPlayer, "-noresurrect2", true) + call TriggerRegisterPlayerChatEvent(WoWReforgedResurrectionStone___chatTrigger, slotPlayer, "-noresurrect3", true) set slotPlayer=null set i=i + 1 endloop - call TriggerRegisterAnyUnitEventBJ(WoWReforgedResurrectionStone__deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedResurrectionStone__deathTrigger, Condition(function WoWReforgedResurrectionStone__TriggerConditionDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedResurrectionStone___deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedResurrectionStone___deathTrigger, Condition(function WoWReforgedResurrectionStone___TriggerConditionDeath)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedResurrectionStone__reviveTrigger, EVENT_PLAYER_HERO_REVIVE_START) - call TriggerAddCondition(WoWReforgedResurrectionStone__reviveTrigger, Condition(function WoWReforgedResurrectionStone__TriggerConditionReviveStart)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedResurrectionStone___reviveTrigger, EVENT_PLAYER_HERO_REVIVE_START) + call TriggerAddCondition(WoWReforgedResurrectionStone___reviveTrigger, Condition(function WoWReforgedResurrectionStone___TriggerConditionReviveStart)) - call TriggerAddCondition(WoWReforgedResurrectionStone__chatTrigger, Condition(function WoWReforgedResurrectionStone__TriggerConditionChat)) + call TriggerAddCondition(WoWReforgedResurrectionStone___chatTrigger, Condition(function WoWReforgedResurrectionStone___TriggerConditionChat)) endfunction @@ -60619,23 +60619,23 @@ endfunction function GetMaxSkins takes nothing returns integer - return WoWReforgedSkins___skinCounter + return WoWReforgedSkins__skinCounter endfunction function AddSkin takes integer itemTypeId,integer unitTypeId returns integer - local integer index= WoWReforgedSkins___skinCounter - set WoWReforgedSkins___skinItemTypeId[index]=itemTypeId - set WoWReforgedSkins___skinUnitTypeId[index]=unitTypeId - set WoWReforgedSkins___skinCounter=WoWReforgedSkins___skinCounter + 1 + local integer index= WoWReforgedSkins__skinCounter + set WoWReforgedSkins__skinItemTypeId[index]=itemTypeId + set WoWReforgedSkins__skinUnitTypeId[index]=unitTypeId + set WoWReforgedSkins__skinCounter=WoWReforgedSkins__skinCounter + 1 return index endfunction function GetSkinItemTypeId takes integer index returns integer - return WoWReforgedSkins___skinItemTypeId[index] + return WoWReforgedSkins__skinItemTypeId[index] endfunction function GetSkinUnitTypeId takes integer index returns integer - return WoWReforgedSkins___skinUnitTypeId[index] + return WoWReforgedSkins__skinUnitTypeId[index] endfunction function AddSkinWoWReforged takes nothing returns integer @@ -60646,8 +60646,8 @@ function GetSkinByItemTypeId takes integer itemTypeId returns integer local integer result= - 1 local integer i= 0 loop - exitwhen ( i == WoWReforgedSkins___skinCounter ) - if ( WoWReforgedSkins___skinItemTypeId[i] == itemTypeId ) then + exitwhen ( i == WoWReforgedSkins__skinCounter ) + if ( WoWReforgedSkins__skinItemTypeId[i] == itemTypeId ) then return i endif set i=i + 1 @@ -60663,7 +60663,7 @@ function RandomizeHeroSkin takes unit hero returns boolean local integer unitTypeId= GetUnitTypeId(hero) local player owner= GetOwningPlayer(hero) if ( IsCustomizableHero(unitTypeId) ) then - call BlzSetUnitSkin(hero, (WoWReforgedSkins___skinUnitTypeId[(GetRandomInt(0, WoWReforgedSkins___skinCounter - 1))])) // INLINED!! + call BlzSetUnitSkin(hero, (WoWReforgedSkins__skinUnitTypeId[(GetRandomInt(0, WoWReforgedSkins__skinCounter - 1))])) // INLINED!! return true else @@ -60675,14 +60675,14 @@ function RandomizeHeroSkin takes unit hero returns boolean return false endfunction -function WoWReforgedSkins___AddSkinsShop takes unit shop returns nothing +function WoWReforgedSkins__AddSkinsShop takes unit shop returns nothing local integer slot= GetSkillSlotFromShopType(GetUnitTypeId(shop)) local integer i= 0 //call BJDebugMsg("Before enabling shop " + GetUnitName(shop) + " with " + I2S(max) + " total learnable skills.") call EnablePagedButtons(shop) loop - exitwhen ( i >= WoWReforgedSkins___skinCounter ) -call AddPagedButtonsId((shop ) , ( (WoWReforgedSkins___skinItemTypeId[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! + exitwhen ( i >= WoWReforgedSkins__skinCounter ) +call AddPagedButtonsId((shop ) , ( (WoWReforgedSkins__skinItemTypeId[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! //call BJDebugMsg("Skill " + I2S(i)) // Stops at 189 set i=i + 1 endloop @@ -60691,7 +60691,7 @@ call AddPagedButtonsId((shop ) , ( (WoWReforgedSkins___skinItemTypeId[(i)])) , P //call BJDebugMsg("Enabled shop " + GetUnitName(shop) + " with " + I2S(max) + " total learnable skills.") endfunction -function WoWReforgedSkins___TriggerAction1SellItem takes nothing returns nothing +function WoWReforgedSkins__TriggerAction1SellItem takes nothing returns nothing local unit shop= GetSellingUnit() local unit hero= GetBuyingUnit() local player owner= GetOwningPlayer(hero) @@ -60701,8 +60701,8 @@ function WoWReforgedSkins___TriggerAction1SellItem takes nothing returns nothing local integer index= GetSkinByItemTypeId(itemTypeId) if ( index != - 1 ) then if ( IsCustomizableHero(unitTypeId) ) then - call BlzSetUnitSkin(hero, (WoWReforgedSkins___skinUnitTypeId[(index)])) // INLINED!! - call h__DisplayTextToPlayer(owner, 0.0, 0.0, "Chaned skin to " + GetObjectName((WoWReforgedSkins___skinUnitTypeId[(index)]))) // INLINED!! + call BlzSetUnitSkin(hero, (WoWReforgedSkins__skinUnitTypeId[(index)])) // INLINED!! + call h__DisplayTextToPlayer(owner, 0.0, 0.0, "Chaned skin to " + GetObjectName((WoWReforgedSkins__skinUnitTypeId[(index)]))) // INLINED!! else call SimError(owner , "Only customizable heroes can change their skin.") endif @@ -60712,21 +60712,21 @@ function WoWReforgedSkins___TriggerAction1SellItem takes nothing returns nothing set owner=null endfunction -function WoWReforgedSkins___TriggerConditionConstructed takes nothing returns boolean +function WoWReforgedSkins__TriggerConditionConstructed takes nothing returns boolean if ( GetUnitTypeId(GetTriggerUnit()) == SKINS ) then - call WoWReforgedSkins___AddSkinsShop(GetConstructedStructure()) + call WoWReforgedSkins__AddSkinsShop(GetConstructedStructure()) endif return false endfunction -function WoWReforgedSkins___TriggerConditionSummoned takes nothing returns boolean +function WoWReforgedSkins__TriggerConditionSummoned takes nothing returns boolean if ( GetUnitTypeId(GetSummonedUnit()) == SKINS ) then - call WoWReforgedSkins___AddSkinsShop(GetSummonedUnit()) + call WoWReforgedSkins__AddSkinsShop(GetSummonedUnit()) endif return false endfunction -function WoWReforgedSkins___TriggerConditionDeath takes nothing returns boolean +function WoWReforgedSkins__TriggerConditionDeath takes nothing returns boolean if ( GetUnitTypeId(GetTriggerUnit()) == SKINS ) then // TODO Disable shop manually? //call ClearSkillsShop(GetTriggerUnit()) @@ -60734,19 +60734,19 @@ function WoWReforgedSkins___TriggerConditionDeath takes nothing returns boolean return false endfunction -function WoWReforgedSkins___ForGroupEnableShop takes nothing returns nothing - call WoWReforgedSkins___AddSkinsShop(GetEnumUnit()) +function WoWReforgedSkins__ForGroupEnableShop takes nothing returns nothing + call WoWReforgedSkins__AddSkinsShop(GetEnumUnit()) endfunction -function WoWReforgedSkins___FilterBuilding takes nothing returns boolean +function WoWReforgedSkins__FilterBuilding takes nothing returns boolean return GetUnitTypeId(GetFilterUnit()) == SKINS_NEUTRAL endfunction -function WoWReforgedSkins___UpdateAllShops takes nothing returns nothing +function WoWReforgedSkins__UpdateAllShops takes nothing returns nothing local group g= CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedSkins___FilterBuilding)) - call ForGroup(g, function WoWReforgedSkins___ForGroupEnableShop) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedSkins__FilterBuilding)) + call ForGroup(g, function WoWReforgedSkins__ForGroupEnableShop) call GroupClear(g) call DestroyGroup(g) @@ -60758,20 +60758,20 @@ function WoWReforgedSkins___UpdateAllShops takes nothing returns nothing call DestroyTimer(GetExpiredTimer()) endfunction -function WoWReforgedSkins___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkins___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddAction(WoWReforgedSkins___sellTrigger, function WoWReforgedSkins___TriggerAction1SellItem) +function WoWReforgedSkins__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkins__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddAction(WoWReforgedSkins__sellTrigger, function WoWReforgedSkins__TriggerAction1SellItem) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkins___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedSkins___constructionTrigger, Condition(function WoWReforgedSkins___TriggerConditionConstructed)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkins__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedSkins__constructionTrigger, Condition(function WoWReforgedSkins__TriggerConditionConstructed)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkins___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(WoWReforgedSkins___summonTrigger, Condition(function WoWReforgedSkins___TriggerConditionSummoned)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkins__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(WoWReforgedSkins__summonTrigger, Condition(function WoWReforgedSkins__TriggerConditionSummoned)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkins___deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedSkins___deathTrigger, Condition(function WoWReforgedSkins___TriggerConditionDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkins__deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedSkins__deathTrigger, Condition(function WoWReforgedSkins__TriggerConditionDeath)) - call TimerStart(CreateTimer(), 2.0, false, function WoWReforgedSkins___UpdateAllShops) + call TimerStart(CreateTimer(), 2.0, false, function WoWReforgedSkins__UpdateAllShops) endfunction @@ -60780,7 +60780,7 @@ endfunction function SelectNextSummonedUnit takes player whichPlayer returns unit - local unit result= GetNextUnitToSelect(WoWReforgedSummonedUnits__summonedUnits[GetPlayerId(whichPlayer)] , whichPlayer) + local unit result= GetNextUnitToSelect(WoWReforgedSummonedUnits___summonedUnits[GetPlayerId(whichPlayer)] , whichPlayer) if ( result != null ) then call SelectUnitForPlayerSingle(result, whichPlayer) @@ -60794,59 +60794,59 @@ endfunction function AddSummonedUnit takes unit whichUnit returns nothing local integer playerId= GetPlayerId(GetOwningPlayer(whichUnit)) - call GroupAddUnit(WoWReforgedSummonedUnits__summonedUnits[playerId], whichUnit) + call GroupAddUnit(WoWReforgedSummonedUnits___summonedUnits[playerId], whichUnit) endfunction -function WoWReforgedSummonedUnits__TriggerConditionSummon takes nothing returns boolean +function WoWReforgedSummonedUnits___TriggerConditionSummon takes nothing returns boolean local integer playerId= GetPlayerId(GetOwningPlayer(GetSummonedUnit())) - call GroupAddUnit(WoWReforgedSummonedUnits__summonedUnits[playerId], GetSummonedUnit()) + call GroupAddUnit(WoWReforgedSummonedUnits___summonedUnits[playerId], GetSummonedUnit()) return false endfunction -function WoWReforgedSummonedUnits__TriggerConditionDeath takes nothing returns boolean +function WoWReforgedSummonedUnits___TriggerConditionDeath takes nothing returns boolean local integer playerId= GetPlayerId(GetOwningPlayer(GetTriggerUnit())) - if ( IsUnitInGroup(GetTriggerUnit(), WoWReforgedSummonedUnits__summonedUnits[playerId]) ) then - call GroupRemoveUnit(WoWReforgedSummonedUnits__summonedUnits[playerId], GetTriggerUnit()) + if ( IsUnitInGroup(GetTriggerUnit(), WoWReforgedSummonedUnits___summonedUnits[playerId]) ) then + call GroupRemoveUnit(WoWReforgedSummonedUnits___summonedUnits[playerId], GetTriggerUnit()) endif return false endfunction -function WoWReforgedSummonedUnits__TriggerConditionChangeOwner takes nothing returns boolean +function WoWReforgedSummonedUnits___TriggerConditionChangeOwner takes nothing returns boolean local integer sourcePlayerId= GetPlayerId(GetChangingUnitPrevOwner()) local integer playerId= GetPlayerId(GetOwningPlayer(GetTriggerUnit())) - if ( IsUnitInGroup(GetTriggerUnit(), WoWReforgedSummonedUnits__summonedUnits[sourcePlayerId]) ) then - call GroupRemoveUnit(WoWReforgedSummonedUnits__summonedUnits[sourcePlayerId], GetTriggerUnit()) - call GroupAddUnit(WoWReforgedSummonedUnits__summonedUnits[playerId], GetTriggerUnit()) + if ( IsUnitInGroup(GetTriggerUnit(), WoWReforgedSummonedUnits___summonedUnits[sourcePlayerId]) ) then + call GroupRemoveUnit(WoWReforgedSummonedUnits___summonedUnits[sourcePlayerId], GetTriggerUnit()) + call GroupAddUnit(WoWReforgedSummonedUnits___summonedUnits[playerId], GetTriggerUnit()) endif return false endfunction -function WoWReforgedSummonedUnits__Init takes nothing returns nothing +function WoWReforgedSummonedUnits___Init takes nothing returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) - set WoWReforgedSummonedUnits__summonedUnits[i]=CreateGroup() + set WoWReforgedSummonedUnits___summonedUnits[i]=CreateGroup() set i=i + 1 endloop - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSummonedUnits__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(WoWReforgedSummonedUnits__summonTrigger, Condition(function WoWReforgedSummonedUnits__TriggerConditionSummon)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSummonedUnits___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(WoWReforgedSummonedUnits___summonTrigger, Condition(function WoWReforgedSummonedUnits___TriggerConditionSummon)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSummonedUnits__deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedSummonedUnits__deathTrigger, Condition(function WoWReforgedSummonedUnits__TriggerConditionDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSummonedUnits___deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedSummonedUnits___deathTrigger, Condition(function WoWReforgedSummonedUnits___TriggerConditionDeath)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSummonedUnits__changeOwnerTrigger, EVENT_PLAYER_UNIT_CHANGE_OWNER) - call TriggerAddCondition(WoWReforgedSummonedUnits__changeOwnerTrigger, Condition(function WoWReforgedSummonedUnits__TriggerConditionChangeOwner)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSummonedUnits___changeOwnerTrigger, EVENT_PLAYER_UNIT_CHANGE_OWNER) + call TriggerAddCondition(WoWReforgedSummonedUnits___changeOwnerTrigger, Condition(function WoWReforgedSummonedUnits___TriggerConditionChangeOwner)) endfunction -function WoWReforgedSummonedUnits__RemoveUnitHook takes unit whichUnit returns nothing +function WoWReforgedSummonedUnits___RemoveUnitHook takes unit whichUnit returns nothing local integer playerId= GetPlayerId(GetOwningPlayer(whichUnit)) - if ( IsUnitInGroup(whichUnit, WoWReforgedSummonedUnits__summonedUnits[playerId]) ) then - call GroupRemoveUnit(WoWReforgedSummonedUnits__summonedUnits[playerId], whichUnit) + if ( IsUnitInGroup(whichUnit, WoWReforgedSummonedUnits___summonedUnits[playerId]) ) then + call GroupRemoveUnit(WoWReforgedSummonedUnits___summonedUnits[playerId], whichUnit) endif endfunction -//processed hook: hook RemoveUnit WoWReforgedSummonedUnits__RemoveUnitHook +//processed hook: hook RemoveUnit WoWReforgedSummonedUnits___RemoveUnitHook @@ -61063,8 +61063,8 @@ endfunction -function WoWReforgedAiPlayersUi___UpdateComputerPlayersTitle takes nothing returns nothing - call BlzFrameSetText(WoWReforgedAiPlayersUi___TitleFrame, "Computer Players (" + I2S(WoWReforgedAiPlayersUi___Page + 1) + "/" + I2S(WoWReforgedAiPlayersUi___MaxPages) + ")") +function WoWReforgedAiPlayersUi__UpdateComputerPlayersTitle takes nothing returns nothing + call BlzFrameSetText(WoWReforgedAiPlayersUi__TitleFrame, "Computer Players (" + I2S(WoWReforgedAiPlayersUi__Page + 1) + "/" + I2S(WoWReforgedAiPlayersUi__MaxPages) + ")") endfunction function GetAiPlayersWithConfig takes nothing returns force @@ -61092,71 +61092,71 @@ function CountAiPlayersWithConfig takes nothing returns integer return result endfunction -function WoWReforgedAiPlayersUi___SetVisible takes boolean visible returns nothing - local integer currentPage= WoWReforgedAiPlayersUi___Page +function WoWReforgedAiPlayersUi__SetVisible takes boolean visible returns nothing + local integer currentPage= WoWReforgedAiPlayersUi__Page local integer counterStart= currentPage * AI_PLAYERS_UI_MAX_PLAYERS local integer counterEnd= counterStart + AI_PLAYERS_UI_MAX_PLAYERS - 1 local integer counter= 0 local integer i= 0 - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___BackgroundFrame, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___TitleFrame, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerName, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnColor, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnTeam, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHero, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevel, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocation, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnRace, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnProfession, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnStartGold, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumber, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimit, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolution, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayers, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroes, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnExpansions, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControl, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnDifficulty, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___ApplyButton, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___PreviousPageButton, visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___NextPageButton, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__BackgroundFrame, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__TitleFrame, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerName, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnColor, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnTeam, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHero, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevel, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocation, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnRace, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnProfession, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnStartGold, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumber, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimit, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolution, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayers, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroes, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnExpansions, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControl, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnDifficulty, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__ApplyButton, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__PreviousPageButton, visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__NextPageButton, visible) set i=0 loop exitwhen ( i >= bj_MAX_PLAYERS ) - if ( IsPlayerInForce(Player(i), WoWReforgedAiPlayersUi___Force) ) then + if ( IsPlayerInForce(Player(i), WoWReforgedAiPlayersUi__Force) ) then if ( ( visible and counter >= counterStart and counter <= counterEnd ) or not visible ) then - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerNameEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUpFrame[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDownFrame[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnTeamEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUpFrame[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDownFrame[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevelEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocationEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUpFrame[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDownFrame[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnProfessionEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnStartGoldEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumberEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimitEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolutionEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayerCheckbox[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnHeroesEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnExpansionsEdit[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControlCheckbox[counter], visible) - call BlzFrameSetVisible(WoWReforgedAiPlayersUi___LabelFrameColumnDifficultyEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerNameEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUpFrame[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDownFrame[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnTeamEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUpFrame[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDownFrame[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevelEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocationEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUpFrame[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDownFrame[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnProfessionEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnStartGoldEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumberEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimitEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolutionEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayerCheckbox[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnHeroesEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnExpansionsEdit[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControlCheckbox[counter], visible) + call BlzFrameSetVisible(WoWReforgedAiPlayersUi__LabelFrameColumnDifficultyEdit[counter], visible) endif set counter=counter + 1 @@ -61167,7 +61167,7 @@ endfunction function SetAiPlayersUiVisibleForPlayer takes player whichPlayer,boolean visible returns nothing if ( whichPlayer == GetLocalPlayer() ) then - call WoWReforgedAiPlayersUi___SetVisible(visible) + call WoWReforgedAiPlayersUi__SetVisible(visible) endif endfunction @@ -61180,10 +61180,10 @@ function HideAiPlayersUiForPlayer takes player whichPlayer returns nothing endfunction function HideAiPlayersUi takes nothing returns nothing - call WoWReforgedAiPlayersUi___SetVisible(false) + call WoWReforgedAiPlayersUi__SetVisible(false) endfunction -function WoWReforgedAiPlayersUi___TriggerActionSyncData takes nothing returns nothing +function WoWReforgedAiPlayersUi__TriggerActionSyncData takes nothing returns nothing local player triggerPlayer= GetTriggerPlayer() local string prefix= BlzGetTriggerSyncPrefix() local string data= BlzGetTriggerSyncData() @@ -61193,100 +61193,100 @@ function WoWReforgedAiPlayersUi___TriggerActionSyncData takes nothing returns no local string actualData= StringTokenEx(data , 2 , "_" , false) //call BJDebugMsg("Synced data " + data + " with prefix " + prefix + " leading to index " + I2S(index) + " and actual data: " + actualData + ".") if ( data == "Done" ) then - set WoWReforgedAiPlayersUi___SyncDone[playerId]=true + set WoWReforgedAiPlayersUi__SyncDone[playerId]=true //call BJDebugMsg("Synced done") elseif ( StringStartsWith(data , "PlayerName") ) then - set WoWReforgedAiPlayersUi___PlayerNames[index]=actualData + set WoWReforgedAiPlayersUi__PlayerNames[index]=actualData elseif ( StringStartsWith(data , "Color") ) then - set WoWReforgedAiPlayersUi___Color[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__Color[index]=S2I(actualData) elseif ( StringStartsWith(data , "Team") ) then - set WoWReforgedAiPlayersUi___Teams[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__Teams[index]=S2I(actualData) elseif ( StringStartsWith(data , "HeroStartLevel") ) then - set WoWReforgedAiPlayersUi___HeroStartLevels[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__HeroStartLevels[index]=S2I(actualData) elseif ( StringStartsWith(data , "StartHero") ) then - set WoWReforgedAiPlayersUi___Heroes[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__Heroes[index]=S2I(actualData) elseif ( StringStartsWith(data , "StartLocation") ) then - set WoWReforgedAiPlayersUi___StartLocations[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__StartLocations[index]=S2I(actualData) elseif ( StringStartsWith(data , "Races") ) then - set WoWReforgedAiPlayersUi___Races[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__Races[index]=S2I(actualData) elseif ( StringStartsWith(data , "Profession") ) then - set WoWReforgedAiPlayersUi___Professions[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__Professions[index]=S2I(actualData) elseif ( StringStartsWith(data , "StartGold") ) then - set WoWReforgedAiPlayersUi___StartGold[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__StartGold[index]=S2I(actualData) elseif ( StringStartsWith(data , "StartLumber") ) then - set WoWReforgedAiPlayersUi___StartLumber[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__StartLumber[index]=S2I(actualData) elseif ( StringStartsWith(data , "FoodLimit") ) then - set WoWReforgedAiPlayersUi___FoodLimit[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__FoodLimit[index]=S2I(actualData) elseif ( StringStartsWith(data , "StartEvolution") ) then - set WoWReforgedAiPlayersUi___StartEvolution[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__StartEvolution[index]=S2I(actualData) elseif ( StringStartsWith(data , "AttackPlayers") ) then - set WoWReforgedAiPlayersUi___AttackPlayers[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__AttackPlayers[index]=S2I(actualData) elseif ( StringStartsWith(data , "HeroesCount") ) then - set WoWReforgedAiPlayersUi___HeroesCount[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__HeroesCount[index]=S2I(actualData) elseif ( StringStartsWith(data , "Expansions") ) then - set WoWReforgedAiPlayersUi___Expansions[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__Expansions[index]=S2I(actualData) elseif ( StringStartsWith(data , "SharedControl") ) then - set WoWReforgedAiPlayersUi___SharedControl[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__SharedControl[index]=S2I(actualData) elseif ( StringStartsWith(data , "Difficulty") ) then - set WoWReforgedAiPlayersUi___Difficulty[index]=S2I(actualData) + set WoWReforgedAiPlayersUi__Difficulty[index]=S2I(actualData) endif set triggerPlayer=null endfunction -function WoWReforgedAiPlayersUi___SyncData takes player whichPlayer returns nothing +function WoWReforgedAiPlayersUi__SyncData takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) local integer index= 0 - local integer counter= WoWReforgedAiPlayersUi___Counter + local integer counter= WoWReforgedAiPlayersUi__Counter local integer i= 0 loop exitwhen ( i >= counter ) set index=i if ( GetLocalPlayer() == whichPlayer ) then - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "PlayerName_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerNameEdit[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "Color_" + I2S(index) + "_" + I2S(WoWReforgedAiPlayersUi___ColorLocal[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "Team_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnTeamEdit[index])))) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "StartHero_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index])))) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "HeroStartLevel_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevelEdit[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "StartLocation_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocationEdit[index])))) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "Races_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index])))) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "Profession_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnProfessionEdit[index])))) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "StartGold_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartGoldEdit[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "StartLumber_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumberEdit[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "FoodLimit_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimitEdit[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "StartEvolution_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolutionEdit[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "AttackPlayers_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayerCheckbox[index])))) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "HeroesCount_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi___LabelFrameColumnHeroesEdit[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "Expansions_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi___LabelFrameColumnExpansionsEdit[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "SharedControl_" + I2S(index) + "_" + I2S(WoWReforgedAiPlayersUi___SharedControlAsync[index])) - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "Difficulty_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnDifficultyEdit[index])))) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "PlayerName_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerNameEdit[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "Color_" + I2S(index) + "_" + I2S(WoWReforgedAiPlayersUi__ColorLocal[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "Team_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnTeamEdit[index])))) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "StartHero_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index])))) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "HeroStartLevel_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevelEdit[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "StartLocation_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocationEdit[index])))) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "Races_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index])))) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "Profession_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnProfessionEdit[index])))) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "StartGold_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartGoldEdit[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "StartLumber_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumberEdit[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "FoodLimit_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimitEdit[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "StartEvolution_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolutionEdit[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "AttackPlayers_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayerCheckbox[index])))) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "HeroesCount_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi__LabelFrameColumnHeroesEdit[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "Expansions_" + I2S(index) + "_" + BlzFrameGetText(WoWReforgedAiPlayersUi__LabelFrameColumnExpansionsEdit[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "SharedControl_" + I2S(index) + "_" + I2S(WoWReforgedAiPlayersUi__SharedControlAsync[index])) + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "Difficulty_" + I2S(index) + "_" + I2S(R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnDifficultyEdit[index])))) endif set i=i + 1 endloop if ( GetLocalPlayer() == whichPlayer ) then - call BlzSendSyncData(WoWReforgedAiPlayersUi___PREFIX, "Done") + call BlzSendSyncData(WoWReforgedAiPlayersUi__PREFIX, "Done") endif // wait for sync is done loop - exitwhen ( WoWReforgedAiPlayersUi___SyncDone[playerId] ) + exitwhen ( WoWReforgedAiPlayersUi__SyncDone[playerId] ) call TriggerSleepAction(5.0) //call BJDebugMsg("Polling") endloop - set WoWReforgedAiPlayersUi___SyncDone[playerId]=false + set WoWReforgedAiPlayersUi__SyncDone[playerId]=false endfunction -function WoWReforgedAiPlayersUi___ApplyFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__ApplyFunction takes nothing returns nothing call SetAiPlayersUiVisibleForPlayer((GetTriggerPlayer()) , false) // INLINED!! - call WoWReforgedAiPlayersUi___SyncData(GetTriggerPlayer()) + call WoWReforgedAiPlayersUi__SyncData(GetTriggerPlayer()) set udg_TmpPlayer2=GetTriggerPlayer() call ConditionalTriggerExecute(gg_trg_Computer_Start_Lobby_Settings) endfunction -function WoWReforgedAiPlayersUi___GetPlayerIndex takes player whichPlayer returns integer +function WoWReforgedAiPlayersUi__GetPlayerIndex takes player whichPlayer returns integer local integer index= 0 local integer i= 0 loop exitwhen ( i >= bj_MAX_PLAYERS ) - if ( IsPlayerInForce(Player(i), WoWReforgedAiPlayersUi___Force) ) then + if ( IsPlayerInForce(Player(i), WoWReforgedAiPlayersUi__Force) ) then if ( Player(i) == whichPlayer ) then return index else @@ -61299,41 +61299,41 @@ function WoWReforgedAiPlayersUi___GetPlayerIndex takes player whichPlayer return endfunction function AiPlayersUIGetPlayerName takes player whichPlayer returns string - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___PlayerNames[index] + return WoWReforgedAiPlayersUi__PlayerNames[index] endif return GetPlayerName(whichPlayer) endfunction function AiPlayersUIGetColor takes player whichPlayer returns playercolor - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return ConvertPlayerColor(WoWReforgedAiPlayersUi___Color[index]) + return ConvertPlayerColor(WoWReforgedAiPlayersUi__Color[index]) endif return GetPlayerColor(whichPlayer) endfunction function AiPlayersUIGetTeam takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___Teams[index] + return WoWReforgedAiPlayersUi__Teams[index] endif return GetPlayerTeam(whichPlayer) endfunction function AiPlayersUIGetHero takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) local integer frameValue= 0 if ( index != - 1 ) then - set frameValue=WoWReforgedAiPlayersUi___Heroes[index] + set frameValue=WoWReforgedAiPlayersUi__Heroes[index] if ( frameValue == AI_PLAYERS_UI_HEROES_MENU_ITEM_RANDOM_MATCHING_RACE ) then return ChooseRandomHeroFromRace(udg_PlayerRace[GetConvertedPlayerId(whichPlayer)]) @@ -61346,9 +61346,9 @@ function AiPlayersUIGetHero takes player whichPlayer returns integer endfunction function AiPlayersUIGetHeroStartLevel takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___HeroStartLevels[index] + return WoWReforgedAiPlayersUi__HeroStartLevels[index] endif return 1 @@ -61370,11 +61370,11 @@ function AiPlayersUIChooseComputerStartLocation takes integer startIndex returns endfunction function AiPlayersUIGetPlayerWarlord takes player whichPlayer returns boolean - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) local integer random= GetRandomInt(0, 1) local integer frameValue= 0 if ( index != - 1 and udg_AIFreelancers and udg_AIWarlords ) then - set frameValue=WoWReforgedAiPlayersUi___Races[index] + set frameValue=WoWReforgedAiPlayersUi__Races[index] if ( frameValue == AI_PLAYERS_UI_RACES_MENU_ITEM_RANDOM ) then return random == 0 elseif ( frameValue == AI_PLAYERS_UI_RACES_MENU_ITEM_RANDOM_FREELANCER ) then @@ -61565,13 +61565,13 @@ function GetRandomHordeRaceWithAISupport takes nothing returns integer endfunction function AiPlayersUIGetPlayerRace takes player whichPlayer,integer startLocation returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) local integer frameValue= 0 local integer random= 0 local race whichRace= GetPlayerRace(whichPlayer) if ( index != - 1 ) then - set frameValue=WoWReforgedAiPlayersUi___Races[index] + set frameValue=WoWReforgedAiPlayersUi__Races[index] //constant integer AI_PLAYERS_UI_RACES_MENU_ITEM_RANDOM = 1 if ( frameValue == AI_PLAYERS_UI_RACES_MENU_ITEM_MATCHING_START_LOCATION ) then return udg_TownHallRace[startLocation] @@ -61713,12 +61713,12 @@ function AiPlayersUIGetPlayerRace takes player whichPlayer,integer startLocation endfunction function AiPlayersUIGetPlayerProfession takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) local integer frameValue= 0 local race whichRace= GetPlayerRace(whichPlayer) if ( index != - 1 ) then - set frameValue=WoWReforgedAiPlayersUi___Professions[index] + set frameValue=WoWReforgedAiPlayersUi__Professions[index] if ( frameValue == AI_PLAYERS_UI_PROFESSIONS_MENU_ITEM_HERBALIST ) then return udg_ProfessionHerbalist elseif ( frameValue == AI_PLAYERS_UI_PROFESSIONS_MENU_ITEM_ALCHEMIST ) then @@ -61760,11 +61760,11 @@ function AiPlayersUIGetPlayerProfession takes player whichPlayer returns integer endfunction function AiPlayersUIGetStartLocation takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) local integer frameValue= 0 if ( index != - 1 ) then - set frameValue=WoWReforgedAiPlayersUi___StartLocations[index] + set frameValue=WoWReforgedAiPlayersUi__StartLocations[index] if ( frameValue == AI_PLAYERS_UI_START_LOCATION_MENU_ITEM_RANDOM ) then return AiPlayersUIChooseComputerStartLocation(GetRandomInt(0, udg_Max_TownHalls - 1)) else @@ -61776,226 +61776,226 @@ function AiPlayersUIGetStartLocation takes player whichPlayer returns integer endfunction function AiPlayersUIGetStartGold takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___StartGold[index] + return WoWReforgedAiPlayersUi__StartGold[index] endif return AI_PLAYERS_UI_START_GOLD endfunction function AiPlayersUIGetStartLumber takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___StartLumber[index] + return WoWReforgedAiPlayersUi__StartLumber[index] endif return AI_PLAYERS_UI_START_LUMBER endfunction function AiPlayersUIGetFoodLimit takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___FoodLimit[index] + return WoWReforgedAiPlayersUi__FoodLimit[index] endif return 300 endfunction function AiPlayersUIGetStartEvolution takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___StartEvolution[index] + return WoWReforgedAiPlayersUi__StartEvolution[index] endif return 1 endfunction function AiPlayersUIGetAttackPlayers takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___AttackPlayers[index] + return WoWReforgedAiPlayersUi__AttackPlayers[index] endif return 1 endfunction function AiPlayersUIGetHeroesCount takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___HeroesCount[index] + return WoWReforgedAiPlayersUi__HeroesCount[index] endif return 1 endfunction function AiPlayersUIGetExpansions takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___Expansions[index] + return WoWReforgedAiPlayersUi__Expansions[index] endif return 1 endfunction function AiPlayersUIGetSharedControl takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___SharedControl[index] + return WoWReforgedAiPlayersUi__SharedControl[index] endif return 1 endfunction function AiPlayersUIGetDifficulty takes player whichPlayer returns integer - local integer index= WoWReforgedAiPlayersUi___GetPlayerIndex(whichPlayer) + local integer index= WoWReforgedAiPlayersUi__GetPlayerIndex(whichPlayer) if ( index != - 1 ) then - return WoWReforgedAiPlayersUi___Difficulty[index] + return WoWReforgedAiPlayersUi__Difficulty[index] endif return 1 // normal endfunction -function WoWReforgedAiPlayersUi___ColorPopupMenuFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__ColorPopupMenuFunction takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! //call BJDebugMsg("Texture: " + GetPlayerColorTexture(ConvertPlayerColor(ColorLocal[index]))) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - set WoWReforgedAiPlayersUi___ColorLocal[index]=R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index])) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[index], ("ReplaceableTextures\\TeamColor\\TeamColor" + I2SW(GetHandleId((ConvertPlayerColor(WoWReforgedAiPlayersUi___ColorLocal[index]))) , 2)), 0, true) // INLINED!! + set WoWReforgedAiPlayersUi__ColorLocal[index]=R2I(BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index])) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[index], ("ReplaceableTextures\\TeamColor\\TeamColor" + I2SW(GetHandleId((ConvertPlayerColor(WoWReforgedAiPlayersUi__ColorLocal[index]))) , 2)), 0, true) // INLINED!! endif endfunction -function WoWReforgedAiPlayersUi___ColorUpFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__ColorUpFunction takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! //call BJDebugMsg("Texture: " + GetPlayerColorTexture(ConvertPlayerColor(ColorLocal[index]))) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - if ( WoWReforgedAiPlayersUi___ColorLocal[index] == 0 ) then - set WoWReforgedAiPlayersUi___ColorLocal[index]=23 + if ( WoWReforgedAiPlayersUi__ColorLocal[index] == 0 ) then + set WoWReforgedAiPlayersUi__ColorLocal[index]=23 else - set WoWReforgedAiPlayersUi___ColorLocal[index]=WoWReforgedAiPlayersUi___ColorLocal[index] - 1 + set WoWReforgedAiPlayersUi__ColorLocal[index]=WoWReforgedAiPlayersUi__ColorLocal[index] - 1 endif - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index], WoWReforgedAiPlayersUi___ColorLocal[index]) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[index], ("ReplaceableTextures\\TeamColor\\TeamColor" + I2SW(GetHandleId((ConvertPlayerColor(WoWReforgedAiPlayersUi___ColorLocal[index]))) , 2)), 0, true) // INLINED!! + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index], WoWReforgedAiPlayersUi__ColorLocal[index]) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[index], ("ReplaceableTextures\\TeamColor\\TeamColor" + I2SW(GetHandleId((ConvertPlayerColor(WoWReforgedAiPlayersUi__ColorLocal[index]))) , 2)), 0, true) // INLINED!! endif call PlayClickSound(GetTriggerPlayer()) endfunction -function WoWReforgedAiPlayersUi___ColorDownFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__ColorDownFunction takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! //call BJDebugMsg("Texture: " + GetPlayerColorTexture(ConvertPlayerColor(ColorLocal[index]))) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - if ( WoWReforgedAiPlayersUi___ColorLocal[index] == 23 ) then - set WoWReforgedAiPlayersUi___ColorLocal[index]=0 + if ( WoWReforgedAiPlayersUi__ColorLocal[index] == 23 ) then + set WoWReforgedAiPlayersUi__ColorLocal[index]=0 else - set WoWReforgedAiPlayersUi___ColorLocal[index]=WoWReforgedAiPlayersUi___ColorLocal[index] + 1 + set WoWReforgedAiPlayersUi__ColorLocal[index]=WoWReforgedAiPlayersUi__ColorLocal[index] + 1 endif - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index], WoWReforgedAiPlayersUi___ColorLocal[index]) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[index], ("ReplaceableTextures\\TeamColor\\TeamColor" + I2SW(GetHandleId((ConvertPlayerColor(WoWReforgedAiPlayersUi___ColorLocal[index]))) , 2)), 0, true) // INLINED!! + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index], WoWReforgedAiPlayersUi__ColorLocal[index]) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[index], ("ReplaceableTextures\\TeamColor\\TeamColor" + I2SW(GetHandleId((ConvertPlayerColor(WoWReforgedAiPlayersUi__ColorLocal[index]))) , 2)), 0, true) // INLINED!! endif call PlayClickSound(GetTriggerPlayer()) endfunction -function WoWReforgedAiPlayersUi___HeroUpFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__HeroUpFunction takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! if ( GetTriggerPlayer() == GetLocalPlayer() ) then - if ( BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index]) == 0 ) then - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index], AI_PLAYERS_UI_HEROES_MENU_ITEM_FINAL) + if ( BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index]) == 0 ) then + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index], AI_PLAYERS_UI_HEROES_MENU_ITEM_FINAL) else - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index], BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index]) - 1) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index], BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index]) - 1) endif endif call PlayClickSound(GetTriggerPlayer()) endfunction -function WoWReforgedAiPlayersUi___HeroDownFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__HeroDownFunction takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! if ( GetTriggerPlayer() == GetLocalPlayer() ) then - if ( BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index]) == AI_PLAYERS_UI_HEROES_MENU_ITEM_FINAL ) then - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index], 0) + if ( BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index]) == AI_PLAYERS_UI_HEROES_MENU_ITEM_FINAL ) then + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index], 0) else - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index], BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index]) + 1) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index], BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index]) + 1) endif endif call PlayClickSound(GetTriggerPlayer()) endfunction -function WoWReforgedAiPlayersUi___RaceUpFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__RaceUpFunction takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! if ( GetTriggerPlayer() == GetLocalPlayer() ) then - if ( BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index]) == 0 ) then - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index], AI_PLAYERS_UI_RACES_MENU_ITEM_DRAGONKIN) + if ( BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index]) == 0 ) then + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index], AI_PLAYERS_UI_RACES_MENU_ITEM_DRAGONKIN) else - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index], BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index]) - 1) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index], BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index]) - 1) endif endif call PlayClickSound(GetTriggerPlayer()) endfunction -function WoWReforgedAiPlayersUi___RaceDownFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__RaceDownFunction takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! if ( GetTriggerPlayer() == GetLocalPlayer() ) then - if ( BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index]) == AI_PLAYERS_UI_RACES_MENU_ITEM_DRAGONKIN ) then - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index], 0) + if ( BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index]) == AI_PLAYERS_UI_RACES_MENU_ITEM_DRAGONKIN ) then + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index], 0) else - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index], BlzFrameGetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index]) + 1) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index], BlzFrameGetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index]) + 1) endif endif call PlayClickSound(GetTriggerPlayer()) endfunction -function WoWReforgedAiPlayersUi___PreviousPageFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__PreviousPageFunction takes nothing returns nothing if ( GetTriggerPlayer() == GetLocalPlayer() ) then - if ( WoWReforgedAiPlayersUi___Page == 0 ) then - set WoWReforgedAiPlayersUi___Page=WoWReforgedAiPlayersUi___MaxPages - 1 + if ( WoWReforgedAiPlayersUi__Page == 0 ) then + set WoWReforgedAiPlayersUi__Page=WoWReforgedAiPlayersUi__MaxPages - 1 else - set WoWReforgedAiPlayersUi___Page=WoWReforgedAiPlayersUi___Page - 1 + set WoWReforgedAiPlayersUi__Page=WoWReforgedAiPlayersUi__Page - 1 endif - call BlzFrameSetText(WoWReforgedAiPlayersUi___TitleFrame, "Computer Players (" + I2S(WoWReforgedAiPlayersUi___Page + 1) + "/" + I2S(WoWReforgedAiPlayersUi___MaxPages) + ")") // INLINED!! + call BlzFrameSetText(WoWReforgedAiPlayersUi__TitleFrame, "Computer Players (" + I2S(WoWReforgedAiPlayersUi__Page + 1) + "/" + I2S(WoWReforgedAiPlayersUi__MaxPages) + ")") // INLINED!! endif call SetAiPlayersUiVisibleForPlayer(GetTriggerPlayer() , false) call SetAiPlayersUiVisibleForPlayer(GetTriggerPlayer() , true) endfunction -function WoWReforgedAiPlayersUi___NextPageFunction takes nothing returns nothing +function WoWReforgedAiPlayersUi__NextPageFunction takes nothing returns nothing if ( GetTriggerPlayer() == GetLocalPlayer() ) then - if ( WoWReforgedAiPlayersUi___Page == WoWReforgedAiPlayersUi___MaxPages - 1 ) then - set WoWReforgedAiPlayersUi___Page=0 + if ( WoWReforgedAiPlayersUi__Page == WoWReforgedAiPlayersUi__MaxPages - 1 ) then + set WoWReforgedAiPlayersUi__Page=0 else - set WoWReforgedAiPlayersUi___Page=WoWReforgedAiPlayersUi___Page + 1 + set WoWReforgedAiPlayersUi__Page=WoWReforgedAiPlayersUi__Page + 1 endif - call BlzFrameSetText(WoWReforgedAiPlayersUi___TitleFrame, "Computer Players (" + I2S(WoWReforgedAiPlayersUi___Page + 1) + "/" + I2S(WoWReforgedAiPlayersUi___MaxPages) + ")") // INLINED!! + call BlzFrameSetText(WoWReforgedAiPlayersUi__TitleFrame, "Computer Players (" + I2S(WoWReforgedAiPlayersUi__Page + 1) + "/" + I2S(WoWReforgedAiPlayersUi__MaxPages) + ")") // INLINED!! endif call SetAiPlayersUiVisibleForPlayer(GetTriggerPlayer() , false) call SetAiPlayersUiVisibleForPlayer(GetTriggerPlayer() , true) endfunction -function WoWReforgedAiPlayersUi___TriggerConditionCheckSharedControl takes nothing returns boolean +function WoWReforgedAiPlayersUi__TriggerConditionCheckSharedControl takes nothing returns boolean local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! - set WoWReforgedAiPlayersUi___SharedControlAsync[index]=1 + set WoWReforgedAiPlayersUi__SharedControlAsync[index]=1 return false endfunction -function WoWReforgedAiPlayersUi___TriggerConditionUncheckSharedControl takes nothing returns boolean +function WoWReforgedAiPlayersUi__TriggerConditionUncheckSharedControl takes nothing returns boolean local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! - set WoWReforgedAiPlayersUi___SharedControlAsync[index]=0 + set WoWReforgedAiPlayersUi__SharedControlAsync[index]=0 return false endfunction @@ -62009,131 +62009,131 @@ function CreateAiPlayersUiEx takes force aiPlayers returns nothing local integer playerColor= 0 local integer team= 0 - set WoWReforgedAiPlayersUi___BackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___BackgroundFrame, FRAMEPOINT_TOPLEFT, UI_FULLSCREEN_X, UI_FULLSCREEN_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___BackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, UI_FULLSCREEN_X + UI_FULLSCREEN_WIDTH, UI_FULLSCREEN_Y - UI_FULLSCREEN_HEIGHT) + set WoWReforgedAiPlayersUi__BackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__BackgroundFrame, FRAMEPOINT_TOPLEFT, UI_FULLSCREEN_X, UI_FULLSCREEN_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__BackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, UI_FULLSCREEN_X + UI_FULLSCREEN_WIDTH, UI_FULLSCREEN_Y - UI_FULLSCREEN_HEIGHT) - set WoWReforgedAiPlayersUi___TitleFrame=BlzCreateFrameByType("TEXT", "AiPlayersGuiTitle", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___TitleFrame, FRAMEPOINT_TOPLEFT, UI_FULLSCREEN_X, UI_FULLSCREEN_TITLE_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___TitleFrame, FRAMEPOINT_BOTTOMRIGHT, UI_FULLSCREEN_X + UI_FULLSCREEN_WIDTH, UI_FULLSCREEN_TITLE_Y - UI_FULLSCREEN_TITLE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___TitleFrame, "Computer Players (" + I2S(WoWReforgedAiPlayersUi___Page + 1) + "/" + I2S(WoWReforgedAiPlayersUi___MaxPages) + ")") // INLINED!! - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___TitleFrame, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + set WoWReforgedAiPlayersUi__TitleFrame=BlzCreateFrameByType("TEXT", "AiPlayersGuiTitle", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__TitleFrame, FRAMEPOINT_TOPLEFT, UI_FULLSCREEN_X, UI_FULLSCREEN_TITLE_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__TitleFrame, FRAMEPOINT_BOTTOMRIGHT, UI_FULLSCREEN_X + UI_FULLSCREEN_WIDTH, UI_FULLSCREEN_TITLE_Y - UI_FULLSCREEN_TITLE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__TitleFrame, "Computer Players (" + I2S(WoWReforgedAiPlayersUi__Page + 1) + "/" + I2S(WoWReforgedAiPlayersUi__MaxPages) + ")") // INLINED!! + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__TitleFrame, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) // header line - set WoWReforgedAiPlayersUi___LabelFrameColumnPlayerName=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLinePlayerName", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerName, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_PLAYER_NAME_X, AI_PLAYERS_UI_LINE_HEADERS_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerName, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_PLAYER_NAME_X + AI_PLAYERS_UI_COLUMN_PLAYER_NAME_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerName, "Name") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerName, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnColor=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineColor", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColor, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_X, AI_PLAYERS_UI_LINE_HEADERS_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColor, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_X + AI_PLAYERS_UI_COLUMN_COLOR_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnColor, "Color") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnColor, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnTeam=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineTeam", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnTeam, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_TEAM_X, AI_PLAYERS_UI_LINE_HEADERS_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnTeam, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_TEAM_X + AI_PLAYERS_UI_COLUMN_TEAM_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnTeam, "Team") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnTeam, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnHero=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineHero", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHero, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_X, AI_PLAYERS_UI_LINE_HEADERS_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHero, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_X + AI_PLAYERS_UI_COLUMN_HERO_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnHero, "Hero") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnHero, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevel=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineHeroStartLevel", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevel, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_X, AI_PLAYERS_UI_LINE_HEADERS_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevel, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_X + AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevel, "Level") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevel, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnStartLocation=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineStartLocation", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocation, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_LOCATION_X, AI_PLAYERS_UI_LINE_HEADERS_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocation, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_LOCATION_X + AI_PLAYERS_UI_COLUMN_START_LOCATION_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocation, "Location (Warlord only)") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocation, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnRace=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineRace", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnRace, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_RACE_X, AI_PLAYERS_UI_LINE_HEADERS_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnRace, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_RACE_X + AI_PLAYERS_UI_COLUMN_RACE_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnRace, "Race") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnRace, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnProfession=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineProfession", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnProfession, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_PROFESSION_X, AI_PLAYERS_UI_LINE_HEADERS_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnProfession, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_PROFESSION_X + AI_PLAYERS_UI_COLUMN_PROFESSION_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnProfession, "Profession") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnProfession, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + set WoWReforgedAiPlayersUi__LabelFrameColumnPlayerName=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLinePlayerName", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerName, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_PLAYER_NAME_X, AI_PLAYERS_UI_LINE_HEADERS_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerName, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_PLAYER_NAME_X + AI_PLAYERS_UI_COLUMN_PLAYER_NAME_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerName, "Name") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerName, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnColor=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineColor", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColor, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_X, AI_PLAYERS_UI_LINE_HEADERS_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColor, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_X + AI_PLAYERS_UI_COLUMN_COLOR_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnColor, "Color") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnColor, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnTeam=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineTeam", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnTeam, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_TEAM_X, AI_PLAYERS_UI_LINE_HEADERS_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnTeam, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_TEAM_X + AI_PLAYERS_UI_COLUMN_TEAM_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnTeam, "Team") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnTeam, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnHero=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineHero", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHero, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_X, AI_PLAYERS_UI_LINE_HEADERS_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHero, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_X + AI_PLAYERS_UI_COLUMN_HERO_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnHero, "Hero") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnHero, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevel=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineHeroStartLevel", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevel, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_X, AI_PLAYERS_UI_LINE_HEADERS_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevel, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_X + AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevel, "Level") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevel, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnStartLocation=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineStartLocation", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocation, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_LOCATION_X, AI_PLAYERS_UI_LINE_HEADERS_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocation, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_LOCATION_X + AI_PLAYERS_UI_COLUMN_START_LOCATION_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocation, "Location (Warlord only)") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocation, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnRace=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineRace", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnRace, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_RACE_X, AI_PLAYERS_UI_LINE_HEADERS_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnRace, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_RACE_X + AI_PLAYERS_UI_COLUMN_RACE_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnRace, "Race") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnRace, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnProfession=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineProfession", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnProfession, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_PROFESSION_X, AI_PLAYERS_UI_LINE_HEADERS_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnProfession, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_PROFESSION_X + AI_PLAYERS_UI_COLUMN_PROFESSION_WIDTH, AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnProfession, "Profession") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnProfession, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) // new line set y=AI_PLAYERS_UI_LINE_HEADERS_Y - AI_PLAYERS_UI_LINE_HEIGHT - AI_PLAYERS_UI_LINE_HEIGHT_SPACING - set WoWReforgedAiPlayersUi___LabelFrameColumnStartGold=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineStartGold", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartGold, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_GOLD_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartGold, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_GOLD_X + AI_PLAYERS_UI_COLUMN_START_GOLD_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartGold, "Gold") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnStartGold, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnStartLumber=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineStartLumber", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumber, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_LUMBER_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumber, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_LUMBER_X + AI_PLAYERS_UI_COLUMN_START_LUMBER_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumber, "Lumber") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumber, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimit=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineFoodLimit", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimit, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimit, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_X + AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimit, "Max. Food") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimit, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolution=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineStartEvolution", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolution, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_EVOLUTION_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolution, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_EVOLUTION_X + AI_PLAYERS_UI_COLUMN_START_EVOLUTION_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolution, "Evolution") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolution, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayers=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineAttackPlayers", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayers, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayers, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_X + AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayers, "Attacks") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayers, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroes=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineHeroes", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroes, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HEROES_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroes, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HEROES_X + AI_PLAYERS_UI_COLUMN_HEROES_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnHeroes, "Heroes") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnHeroes, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnExpansions=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineExpansions", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnExpansions, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_EXPANSIONS_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnExpansions, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_EXPANSIONS_X + AI_PLAYERS_UI_COLUMN_EXPANSIONS_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnExpansions, "Expansions") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnExpansions, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnSharedControl=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineSharedControl", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControl, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControl, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_X + AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControl, "Shared") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControl, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) - - set WoWReforgedAiPlayersUi___LabelFrameColumnDifficulty=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineDifficulty", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnDifficulty, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_DIFFICULTY_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnDifficulty, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_DIFFICULTY_X + AI_PLAYERS_UI_COLUMN_DIFFICULTY_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnDifficulty, "Difficulty") - call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi___LabelFrameColumnDifficulty, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + set WoWReforgedAiPlayersUi__LabelFrameColumnStartGold=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineStartGold", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartGold, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_GOLD_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartGold, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_GOLD_X + AI_PLAYERS_UI_COLUMN_START_GOLD_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartGold, "Gold") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnStartGold, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnStartLumber=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineStartLumber", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumber, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_LUMBER_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumber, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_LUMBER_X + AI_PLAYERS_UI_COLUMN_START_LUMBER_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumber, "Lumber") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumber, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimit=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineFoodLimit", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimit, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimit, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_X + AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimit, "Max. Food") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimit, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolution=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineStartEvolution", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolution, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_EVOLUTION_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolution, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_EVOLUTION_X + AI_PLAYERS_UI_COLUMN_START_EVOLUTION_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolution, "Evolution") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolution, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayers=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineAttackPlayers", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayers, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayers, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_X + AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayers, "Attacks") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayers, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroes=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineHeroes", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroes, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HEROES_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroes, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HEROES_X + AI_PLAYERS_UI_COLUMN_HEROES_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnHeroes, "Heroes") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnHeroes, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnExpansions=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineExpansions", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnExpansions, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_EXPANSIONS_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnExpansions, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_EXPANSIONS_X + AI_PLAYERS_UI_COLUMN_EXPANSIONS_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnExpansions, "Expansions") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnExpansions, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnSharedControl=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineSharedControl", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControl, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControl, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_X + AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControl, "Shared") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControl, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) + + set WoWReforgedAiPlayersUi__LabelFrameColumnDifficulty=BlzCreateFrameByType("TEXT", "AiPlayersGuiHeaderLineDifficulty", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnDifficulty, FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_DIFFICULTY_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnDifficulty, FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_DIFFICULTY_X + AI_PLAYERS_UI_COLUMN_DIFFICULTY_WIDTH, y - AI_PLAYERS_UI_LINE_HEADERS_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnDifficulty, "Difficulty") + call BlzFrameSetTextAlignment(WoWReforgedAiPlayersUi__LabelFrameColumnDifficulty, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_CENTER) set y=AI_PLAYERS_UI_LINE_HEADERS_Y - 2 * ( AI_PLAYERS_UI_LINE_HEADERS_HEIGHT + AI_PLAYERS_UI_LINE_SPACING_Y ) - if ( WoWReforgedAiPlayersUi___Force != null ) then - call ForceClear(WoWReforgedAiPlayersUi___Force) - call DestroyForce(WoWReforgedAiPlayersUi___Force) - set WoWReforgedAiPlayersUi___Force=null + if ( WoWReforgedAiPlayersUi__Force != null ) then + call ForceClear(WoWReforgedAiPlayersUi__Force) + call DestroyForce(WoWReforgedAiPlayersUi__Force) + set WoWReforgedAiPlayersUi__Force=null endif - set WoWReforgedAiPlayersUi___Force=CreateForce() + set WoWReforgedAiPlayersUi__Force=CreateForce() // players set i=0 @@ -62141,247 +62141,247 @@ function CreateAiPlayersUiEx takes force aiPlayers returns nothing exitwhen ( i >= bj_MAX_PLAYERS ) set aiPlayer=Player(i) if ( IsPlayerInForce(aiPlayer, aiPlayers) ) then - call ForceAddPlayer(WoWReforgedAiPlayersUi___Force, aiPlayer) + call ForceAddPlayer(WoWReforgedAiPlayersUi__Force, aiPlayer) set index=counter - set WoWReforgedAiPlayersUi___LabelFrameColumnPlayerNameEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerNameEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_PLAYER_NAME_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerNameEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_PLAYER_NAME_X + AI_PLAYERS_UI_COLUMN_PLAYER_NAME_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerNameEdit[index], GetPlayerName(aiPlayer)) - set WoWReforgedAiPlayersUi___PlayerNames[index]=GetPlayerName(aiPlayer) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnPlayerNameEdit[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnPlayerNameEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerNameEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_PLAYER_NAME_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerNameEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_PLAYER_NAME_X + AI_PLAYERS_UI_COLUMN_PLAYER_NAME_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerNameEdit[index], GetPlayerName(aiPlayer)) + set WoWReforgedAiPlayersUi__PlayerNames[index]=GetPlayerName(aiPlayer) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnPlayerNameEdit[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index]=BlzCreateFrame("PlayerColorsPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_X + AI_PLAYERS_UI_COLUMN_COLOR_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + set WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index]=BlzCreateFrame("PlayerColorsPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_X + AI_PLAYERS_UI_COLUMN_COLOR_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) set playerColor=IMinBJ(23, GetHandleId(GetPlayerColor(aiPlayer))) - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index], playerColor) - set WoWReforgedAiPlayersUi___ColorLocal[index]=playerColor - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index], true) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index], playerColor) + set WoWReforgedAiPlayersUi__ColorLocal[index]=playerColor + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index], true) - set WoWReforgedAiPlayersUi___ColorPopupMenuTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___ColorPopupMenuTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnColorPopup[index], FRAMEEVENT_POPUPMENU_ITEM_CHANGED) - call TriggerAddAction(WoWReforgedAiPlayersUi___ColorPopupMenuTrigger[index], function WoWReforgedAiPlayersUi___ColorPopupMenuFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___ColorPopupMenuTrigger[index] )), ( 0 ), ( index)) // INLINED!! + set WoWReforgedAiPlayersUi__ColorPopupMenuTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__ColorPopupMenuTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnColorPopup[index], FRAMEEVENT_POPUPMENU_ITEM_CHANGED) + call TriggerAddAction(WoWReforgedAiPlayersUi__ColorPopupMenuTrigger[index], function WoWReforgedAiPlayersUi__ColorPopupMenuFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__ColorPopupMenuTrigger[index] )), ( 0 ), ( index)) // INLINED!! - set WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[index]=BlzCreateFrameByType("BACKDROP", "ColorFrame" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_EDIT_X, y - 0.04) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_EDIT_X + AI_PLAYERS_UI_COLUMN_COLOR_EDIT_WIDTH, y - 0.04 - AI_PLAYERS_UI_COLUMN_COLOR_EDIT_HEIGHT) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[index], ("ReplaceableTextures\\TeamColor\\TeamColor" + I2SW(GetHandleId((GetPlayerColor(aiPlayer))) , 2)), 0, true) // INLINED!! - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnColorEdit[index], true) - set WoWReforgedAiPlayersUi___ColorLocal[index]=playerColor + set WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[index]=BlzCreateFrameByType("BACKDROP", "ColorFrame" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_EDIT_X, y - 0.04) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_EDIT_X + AI_PLAYERS_UI_COLUMN_COLOR_EDIT_WIDTH, y - 0.04 - AI_PLAYERS_UI_COLUMN_COLOR_EDIT_HEIGHT) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[index], ("ReplaceableTextures\\TeamColor\\TeamColor" + I2SW(GetHandleId((GetPlayerColor(aiPlayer))) , 2)), 0, true) // INLINED!! + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnColorEdit[index], true) + set WoWReforgedAiPlayersUi__ColorLocal[index]=playerColor //call BJDebugMsg("Texture: " + GetPlayerColorTexture(GetPlayerColor(aiPlayer))) - set WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp[index]=BlzCreateFrameByType("BUTTON", "ColorUpButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_X, y - 0.04) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_X + 0.02, y - 0.02 - 0.04) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp[index]=BlzCreateFrameByType("BUTTON", "ColorUpButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_X, y - 0.04) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_X + 0.02, y - 0.02 - 0.04) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUpFrame[index]=BlzCreateFrameByType("BACKDROP", "ColorUpFrame" + I2S(index), WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp[index], "", 0) - call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUpFrame[index], WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp[index]) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUpFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUpFrame[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUpFrame[index]=BlzCreateFrameByType("BACKDROP", "ColorUpFrame" + I2S(index), WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp[index], "", 0) + call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUpFrame[index], WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp[index]) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUpFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUpFrame[index], true) - set WoWReforgedAiPlayersUi___ColorUpTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___ColorUpTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowUp[index], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___ColorUpTrigger[index], function WoWReforgedAiPlayersUi___ColorUpFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___ColorUpTrigger[index] )), ( 0 ), ( index)) // INLINED!! + set WoWReforgedAiPlayersUi__ColorUpTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__ColorUpTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowUp[index], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__ColorUpTrigger[index], function WoWReforgedAiPlayersUi__ColorUpFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__ColorUpTrigger[index] )), ( 0 ), ( index)) // INLINED!! - set WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown[index]=BlzCreateFrameByType("BUTTON", "ColorDownButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_X, y - 0.07) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_X + 0.02, y - 0.02 - 0.07) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown[index]=BlzCreateFrameByType("BUTTON", "ColorDownButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_COLOR_X, y - 0.07) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_COLOR_X + 0.02, y - 0.02 - 0.07) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDownFrame[index]=BlzCreateFrameByType("BACKDROP", "ColoreDownFrame" + I2S(index), WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown[index], "", 0) - call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDownFrame[index], WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown[index]) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDownFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDownFrame[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDownFrame[index]=BlzCreateFrameByType("BACKDROP", "ColoreDownFrame" + I2S(index), WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown[index], "", 0) + call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDownFrame[index], WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown[index]) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDownFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDownFrame[index], true) - set WoWReforgedAiPlayersUi___ColorDownTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___ColorDownTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnColorArrowDown[index], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___ColorDownTrigger[index], function WoWReforgedAiPlayersUi___ColorDownFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___ColorDownTrigger[index] )), ( 0 ), ( index)) // INLINED!! - - set WoWReforgedAiPlayersUi___LabelFrameColumnTeamEdit[index]=BlzCreateFrame("TeamPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnTeamEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_TEAM_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnTeamEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_TEAM_X + AI_PLAYERS_UI_COLUMN_TEAM_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + set WoWReforgedAiPlayersUi__ColorDownTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__ColorDownTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnColorArrowDown[index], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__ColorDownTrigger[index], function WoWReforgedAiPlayersUi__ColorDownFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__ColorDownTrigger[index] )), ( 0 ), ( index)) // INLINED!! + + set WoWReforgedAiPlayersUi__LabelFrameColumnTeamEdit[index]=BlzCreateFrame("TeamPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnTeamEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_TEAM_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnTeamEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_TEAM_X + AI_PLAYERS_UI_COLUMN_TEAM_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) set team=IMinBJ(3, GetPlayerTeam(aiPlayer)) - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnTeamEdit[index], team) - set WoWReforgedAiPlayersUi___Teams[index]=team - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnTeamEdit[index], true) - - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index]=BlzCreateFrame("HeroesPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_X + AI_PLAYERS_UI_COLUMN_HERO_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index], AI_PLAYERS_UI_HEROES_MENU_ITEM_RANDOM_MATCHING_RACE) - set WoWReforgedAiPlayersUi___Heroes[index]=AI_PLAYERS_UI_HEROES_MENU_ITEM_RANDOM_MATCHING_RACE - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEdit[index], true) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnTeamEdit[index], team) + set WoWReforgedAiPlayersUi__Teams[index]=team + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnTeamEdit[index], true) + + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index]=BlzCreateFrame("HeroesPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_X + AI_PLAYERS_UI_COLUMN_HERO_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index], AI_PLAYERS_UI_HEROES_MENU_ITEM_RANDOM_MATCHING_RACE) + set WoWReforgedAiPlayersUi__Heroes[index]=AI_PLAYERS_UI_HEROES_MENU_ITEM_RANDOM_MATCHING_RACE + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEdit[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp[index]=BlzCreateFrameByType("BUTTON", "HeroUpButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_X, y - 0.04) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_X + 0.02, y - 0.02 - 0.04) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp[index]=BlzCreateFrameByType("BUTTON", "HeroUpButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_X, y - 0.04) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_X + 0.02, y - 0.02 - 0.04) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUpFrame[index]=BlzCreateFrameByType("BACKDROP", "HeroUpFrame" + I2S(index), WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp[index], "", 0) - call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUpFrame[index], WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp[index]) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUpFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUpFrame[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUpFrame[index]=BlzCreateFrameByType("BACKDROP", "HeroUpFrame" + I2S(index), WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp[index], "", 0) + call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUpFrame[index], WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp[index]) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUpFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUpFrame[index], true) - set WoWReforgedAiPlayersUi___HeroUpTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___HeroUpTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowUp[index], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___HeroUpTrigger[index], function WoWReforgedAiPlayersUi___HeroUpFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___HeroUpTrigger[index] )), ( 0 ), ( index)) // INLINED!! + set WoWReforgedAiPlayersUi__HeroUpTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__HeroUpTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowUp[index], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__HeroUpTrigger[index], function WoWReforgedAiPlayersUi__HeroUpFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__HeroUpTrigger[index] )), ( 0 ), ( index)) // INLINED!! - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown[index]=BlzCreateFrameByType("BUTTON", "HeroDownButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_X, y - 0.07) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_X + 0.02, y - 0.02 - 0.07) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown[index]=BlzCreateFrameByType("BUTTON", "HeroDownButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_X, y - 0.07) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_X + 0.02, y - 0.02 - 0.07) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDownFrame[index]=BlzCreateFrameByType("BACKDROP", "HeroeDownFrame" + I2S(index), WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown[index], "", 0) - call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDownFrame[index], WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown[index]) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDownFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDownFrame[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDownFrame[index]=BlzCreateFrameByType("BACKDROP", "HeroeDownFrame" + I2S(index), WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown[index], "", 0) + call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDownFrame[index], WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown[index]) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDownFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDownFrame[index], true) - set WoWReforgedAiPlayersUi___HeroDownTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___HeroDownTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnHeroEditArrowDown[index], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___HeroDownTrigger[index], function WoWReforgedAiPlayersUi___HeroDownFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___HeroDownTrigger[index] )), ( 0 ), ( index)) // INLINED!! - - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevelEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevelEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevelEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_X + AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevelEdit[index], "1") - set WoWReforgedAiPlayersUi___HeroStartLevels[index]=1 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnHeroStartLevelEdit[index], true) - - set WoWReforgedAiPlayersUi___LabelFrameColumnStartLocationEdit[index]=BlzCreateFrame("StartLocationsPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocationEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_LOCATION_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocationEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_LOCATION_X + AI_PLAYERS_UI_COLUMN_START_LOCATION_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocationEdit[index], 0) - set WoWReforgedAiPlayersUi___StartLocations[index]=0 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnStartLocationEdit[index], true) + set WoWReforgedAiPlayersUi__HeroDownTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__HeroDownTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnHeroEditArrowDown[index], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__HeroDownTrigger[index], function WoWReforgedAiPlayersUi__HeroDownFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__HeroDownTrigger[index] )), ( 0 ), ( index)) // INLINED!! + + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevelEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevelEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevelEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_X + AI_PLAYERS_UI_COLUMN_HERO_START_LEVEL_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevelEdit[index], "1") + set WoWReforgedAiPlayersUi__HeroStartLevels[index]=1 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnHeroStartLevelEdit[index], true) + + set WoWReforgedAiPlayersUi__LabelFrameColumnStartLocationEdit[index]=BlzCreateFrame("StartLocationsPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocationEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_LOCATION_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocationEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_LOCATION_X + AI_PLAYERS_UI_COLUMN_START_LOCATION_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocationEdit[index], 0) + set WoWReforgedAiPlayersUi__StartLocations[index]=0 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnStartLocationEdit[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index]=BlzCreateFrame("RacesPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_RACE_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_RACE_X + AI_PLAYERS_UI_COLUMN_RACE_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index], AI_PLAYERS_UI_RACES_MENU_ITEM_MATCHING_START_LOCATION) - set WoWReforgedAiPlayersUi___Races[index]=AI_PLAYERS_UI_RACES_MENU_ITEM_MATCHING_START_LOCATION - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEdit[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index]=BlzCreateFrame("RacesPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_RACE_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_RACE_X + AI_PLAYERS_UI_COLUMN_RACE_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index], AI_PLAYERS_UI_RACES_MENU_ITEM_MATCHING_START_LOCATION) + set WoWReforgedAiPlayersUi__Races[index]=AI_PLAYERS_UI_RACES_MENU_ITEM_MATCHING_START_LOCATION + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEdit[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp[index]=BlzCreateFrameByType("BUTTON", "RaceUpButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_RACE_X, y - 0.04) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_RACE_X + 0.02, y - 0.02 - 0.04) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp[index]=BlzCreateFrameByType("BUTTON", "RaceUpButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_RACE_X, y - 0.04) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_RACE_X + 0.02, y - 0.02 - 0.04) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUpFrame[index]=BlzCreateFrameByType("BACKDROP", "RaceUpFrame" + I2S(index), WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp[index], "", 0) - call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUpFrame[index], WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp[index]) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUpFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUpFrame[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUpFrame[index]=BlzCreateFrameByType("BACKDROP", "RaceUpFrame" + I2S(index), WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp[index], "", 0) + call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUpFrame[index], WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp[index]) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUpFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUpFrame[index], true) - set WoWReforgedAiPlayersUi___RaceUpTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___RaceUpTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowUp[index], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___RaceUpTrigger[index], function WoWReforgedAiPlayersUi___RaceUpFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___RaceUpTrigger[index] )), ( 0 ), ( index)) // INLINED!! + set WoWReforgedAiPlayersUi__RaceUpTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__RaceUpTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowUp[index], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__RaceUpTrigger[index], function WoWReforgedAiPlayersUi__RaceUpFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__RaceUpTrigger[index] )), ( 0 ), ( index)) // INLINED!! - set WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown[index]=BlzCreateFrameByType("BUTTON", "RaceDownButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_RACE_X, y - 0.07) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_RACE_X + 0.02, y - 0.02 - 0.07) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown[index]=BlzCreateFrameByType("BUTTON", "RaceDownButton" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_RACE_X, y - 0.07) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_RACE_X + 0.02, y - 0.02 - 0.07) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDownFrame[index]=BlzCreateFrameByType("BACKDROP", "RaceDownFrame" + I2S(index), WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown[index], "", 0) - call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDownFrame[index], WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown[index]) - call BlzFrameSetTexture(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDownFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDownFrame[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDownFrame[index]=BlzCreateFrameByType("BACKDROP", "RaceDownFrame" + I2S(index), WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown[index], "", 0) + call BlzFrameSetAllPoints(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDownFrame[index], WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown[index]) + call BlzFrameSetTexture(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDownFrame[index], "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDownFrame[index], true) - set WoWReforgedAiPlayersUi___RaceDownTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___RaceDownTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnRaceEditArrowDown[index], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___RaceDownTrigger[index], function WoWReforgedAiPlayersUi___RaceDownFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___RaceDownTrigger[index] )), ( 0 ), ( index)) // INLINED!! - - set WoWReforgedAiPlayersUi___LabelFrameColumnProfessionEdit[index]=BlzCreateFrame("ProfessionsPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnProfessionEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_PROFESSION_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnProfessionEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_PROFESSION_X + AI_PLAYERS_UI_COLUMN_PROFESSION_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnProfessionEdit[index], 0) - set WoWReforgedAiPlayersUi___Professions[index]=0 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnProfessionEdit[index], true) + set WoWReforgedAiPlayersUi__RaceDownTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__RaceDownTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnRaceEditArrowDown[index], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__RaceDownTrigger[index], function WoWReforgedAiPlayersUi__RaceDownFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__RaceDownTrigger[index] )), ( 0 ), ( index)) // INLINED!! + + set WoWReforgedAiPlayersUi__LabelFrameColumnProfessionEdit[index]=BlzCreateFrame("ProfessionsPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnProfessionEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_PROFESSION_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnProfessionEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_PROFESSION_X + AI_PLAYERS_UI_COLUMN_PROFESSION_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnProfessionEdit[index], 0) + set WoWReforgedAiPlayersUi__Professions[index]=0 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnProfessionEdit[index], true) // new line set y=y - AI_PLAYERS_UI_LINE_HEIGHT - AI_PLAYERS_UI_LINE_HEIGHT_SPACING - set WoWReforgedAiPlayersUi___LabelFrameColumnStartGoldEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartGoldEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_GOLD_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartGoldEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_GOLD_X + AI_PLAYERS_UI_COLUMN_START_GOLD_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartGoldEdit[index], I2S(AI_PLAYERS_UI_START_GOLD)) - set WoWReforgedAiPlayersUi___StartGold[index]=AI_PLAYERS_UI_START_GOLD - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnStartGoldEdit[index], true) - - set WoWReforgedAiPlayersUi___LabelFrameColumnStartLumberEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumberEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_LUMBER_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumberEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_LUMBER_X + AI_PLAYERS_UI_COLUMN_START_LUMBER_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumberEdit[index], I2S(AI_PLAYERS_UI_START_LUMBER)) - set WoWReforgedAiPlayersUi___StartLumber[index]=AI_PLAYERS_UI_START_LUMBER - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnStartLumberEdit[index], true) - - set WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimitEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimitEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimitEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_X + AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimitEdit[index], "600") - set WoWReforgedAiPlayersUi___FoodLimit[index]=600 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnFoodLimitEdit[index], true) - - set WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolutionEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolutionEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_EVOLUTION_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolutionEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_EVOLUTION_X + AI_PLAYERS_UI_COLUMN_START_EVOLUTION_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolutionEdit[index], "1") - set WoWReforgedAiPlayersUi___StartEvolution[index]=1 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnStartEvolutionEdit[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnStartGoldEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartGoldEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_GOLD_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartGoldEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_GOLD_X + AI_PLAYERS_UI_COLUMN_START_GOLD_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartGoldEdit[index], I2S(AI_PLAYERS_UI_START_GOLD)) + set WoWReforgedAiPlayersUi__StartGold[index]=AI_PLAYERS_UI_START_GOLD + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnStartGoldEdit[index], true) + + set WoWReforgedAiPlayersUi__LabelFrameColumnStartLumberEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumberEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_LUMBER_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumberEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_LUMBER_X + AI_PLAYERS_UI_COLUMN_START_LUMBER_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumberEdit[index], I2S(AI_PLAYERS_UI_START_LUMBER)) + set WoWReforgedAiPlayersUi__StartLumber[index]=AI_PLAYERS_UI_START_LUMBER + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnStartLumberEdit[index], true) + + set WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimitEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimitEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimitEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_X + AI_PLAYERS_UI_COLUMN_FOOD_LIMIT_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimitEdit[index], "600") + set WoWReforgedAiPlayersUi__FoodLimit[index]=600 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnFoodLimitEdit[index], true) + + set WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolutionEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolutionEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_START_EVOLUTION_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolutionEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_START_EVOLUTION_X + AI_PLAYERS_UI_COLUMN_START_EVOLUTION_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolutionEdit[index], "1") + set WoWReforgedAiPlayersUi__StartEvolution[index]=1 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnStartEvolutionEdit[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayerCheckbox[index]=BlzCreateFrame("QuestCheckBox2", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayerCheckbox[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayerCheckbox[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_X + AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - set WoWReforgedAiPlayersUi___AttackPlayers[index]=0 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayerCheckbox[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayerCheckbox[index]=BlzCreateFrame("QuestCheckBox2", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayerCheckbox[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayerCheckbox[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_X + AI_PLAYERS_UI_COLUMN_ATTACK_PLAYERS_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + set WoWReforgedAiPlayersUi__AttackPlayers[index]=0 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayerCheckbox[index], true) if ( GetAIDifficulty(aiPlayer) == AI_DIFFICULTY_INSANE ) then - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnAttackPlayerCheckbox[index], 1.0) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnAttackPlayerCheckbox[index], 1.0) endif - set WoWReforgedAiPlayersUi___LabelFrameColumnHeroesEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroesEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HEROES_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnHeroesEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HEROES_X + AI_PLAYERS_UI_COLUMN_HEROES_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnHeroesEdit[index], "1") - set WoWReforgedAiPlayersUi___HeroesCount[index]=1 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnHeroesEdit[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnHeroesEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroesEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_HEROES_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnHeroesEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_HEROES_X + AI_PLAYERS_UI_COLUMN_HEROES_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnHeroesEdit[index], "1") + set WoWReforgedAiPlayersUi__HeroesCount[index]=1 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnHeroesEdit[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnExpansionsEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnExpansionsEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_EXPANSIONS_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnExpansionsEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_EXPANSIONS_X + AI_PLAYERS_UI_COLUMN_EXPANSIONS_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___LabelFrameColumnExpansionsEdit[index], "0") - set WoWReforgedAiPlayersUi___Expansions[index]=0 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnExpansionsEdit[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnExpansionsEdit[index]=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnExpansionsEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_EXPANSIONS_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnExpansionsEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_EXPANSIONS_X + AI_PLAYERS_UI_COLUMN_EXPANSIONS_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__LabelFrameColumnExpansionsEdit[index], "0") + set WoWReforgedAiPlayersUi__Expansions[index]=0 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnExpansionsEdit[index], true) - set WoWReforgedAiPlayersUi___LabelFrameColumnSharedControlCheckbox[index]=BlzCreateFrame("QuestCheckBox2", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControlCheckbox[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControlCheckbox[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_X + AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - set WoWReforgedAiPlayersUi___SharedControl[index]=0 - set WoWReforgedAiPlayersUi___SharedControlAsync[index]=0 - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnSharedControlCheckbox[index], true) - set WoWReforgedAiPlayersUi___checkSharedControlTrigger[index]=CreateTrigger() - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___checkSharedControlTrigger[index] )), ( 0 ), ( index)) // INLINED!! - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___checkSharedControlTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnSharedControlCheckbox[index], FRAMEEVENT_CHECKBOX_CHECKED) - call TriggerAddCondition(WoWReforgedAiPlayersUi___checkSharedControlTrigger[index], Condition(function WoWReforgedAiPlayersUi___TriggerConditionCheckSharedControl)) - set WoWReforgedAiPlayersUi___uncheckSharedControlTrigger[index]=CreateTrigger() - call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi___uncheckSharedControlTrigger[index] )), ( 0 ), ( index)) // INLINED!! - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___uncheckSharedControlTrigger[index], WoWReforgedAiPlayersUi___LabelFrameColumnSharedControlCheckbox[index], FRAMEEVENT_CHECKBOX_UNCHECKED) - call TriggerAddCondition(WoWReforgedAiPlayersUi___uncheckSharedControlTrigger[index], Condition(function WoWReforgedAiPlayersUi___TriggerConditionUncheckSharedControl)) + set WoWReforgedAiPlayersUi__LabelFrameColumnSharedControlCheckbox[index]=BlzCreateFrame("QuestCheckBox2", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControlCheckbox[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControlCheckbox[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_X + AI_PLAYERS_UI_COLUMN_SHARED_CONTROL_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + set WoWReforgedAiPlayersUi__SharedControl[index]=0 + set WoWReforgedAiPlayersUi__SharedControlAsync[index]=0 + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnSharedControlCheckbox[index], true) + set WoWReforgedAiPlayersUi__checkSharedControlTrigger[index]=CreateTrigger() + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__checkSharedControlTrigger[index] )), ( 0 ), ( index)) // INLINED!! + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__checkSharedControlTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnSharedControlCheckbox[index], FRAMEEVENT_CHECKBOX_CHECKED) + call TriggerAddCondition(WoWReforgedAiPlayersUi__checkSharedControlTrigger[index], Condition(function WoWReforgedAiPlayersUi__TriggerConditionCheckSharedControl)) + set WoWReforgedAiPlayersUi__uncheckSharedControlTrigger[index]=CreateTrigger() + call SaveInteger(udg_DB, GetHandleId((WoWReforgedAiPlayersUi__uncheckSharedControlTrigger[index] )), ( 0 ), ( index)) // INLINED!! + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__uncheckSharedControlTrigger[index], WoWReforgedAiPlayersUi__LabelFrameColumnSharedControlCheckbox[index], FRAMEEVENT_CHECKBOX_UNCHECKED) + call TriggerAddCondition(WoWReforgedAiPlayersUi__uncheckSharedControlTrigger[index], Condition(function WoWReforgedAiPlayersUi__TriggerConditionUncheckSharedControl)) - set WoWReforgedAiPlayersUi___LabelFrameColumnDifficultyEdit[index]=BlzCreateFrame("DifficultyPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnDifficultyEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_DIFFICULTY_X, y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___LabelFrameColumnDifficultyEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_DIFFICULTY_X + AI_PLAYERS_UI_COLUMN_DIFFICULTY_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) - call BlzFrameSetValue(WoWReforgedAiPlayersUi___LabelFrameColumnDifficultyEdit[index], 1) // normal - set WoWReforgedAiPlayersUi___Difficulty[index]=1 // normal - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___LabelFrameColumnDifficultyEdit[index], true) + set WoWReforgedAiPlayersUi__LabelFrameColumnDifficultyEdit[index]=BlzCreateFrame("DifficultyPopup", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnDifficultyEdit[index], FRAMEPOINT_TOPLEFT, AI_PLAYERS_UI_COLUMN_DIFFICULTY_X, y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__LabelFrameColumnDifficultyEdit[index], FRAMEPOINT_BOTTOMRIGHT, AI_PLAYERS_UI_COLUMN_DIFFICULTY_X + AI_PLAYERS_UI_COLUMN_DIFFICULTY_WIDTH, y - AI_PLAYERS_UI_LINE_HEIGHT) + call BlzFrameSetValue(WoWReforgedAiPlayersUi__LabelFrameColumnDifficultyEdit[index], 1) // normal + set WoWReforgedAiPlayersUi__Difficulty[index]=1 // normal + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__LabelFrameColumnDifficultyEdit[index], true) set y=y - AI_PLAYERS_UI_LINE_HEIGHT - AI_PLAYERS_UI_LINE_SPACING_Y set counter=counter + 1 @@ -62394,44 +62394,44 @@ function CreateAiPlayersUiEx takes force aiPlayers returns nothing set i=i + 1 endloop - set WoWReforgedAiPlayersUi___Counter=counter - set WoWReforgedAiPlayersUi___MaxPages=counter / AI_PLAYERS_UI_MAX_PLAYERS + set WoWReforgedAiPlayersUi__Counter=counter + set WoWReforgedAiPlayersUi__MaxPages=counter / AI_PLAYERS_UI_MAX_PLAYERS if ( ModuloInteger(counter, AI_PLAYERS_UI_MAX_PLAYERS) > 0 ) then - set WoWReforgedAiPlayersUi___MaxPages=WoWReforgedAiPlayersUi___MaxPages + 1 + set WoWReforgedAiPlayersUi__MaxPages=WoWReforgedAiPlayersUi__MaxPages + 1 endif // apply button - set WoWReforgedAiPlayersUi___ApplyButton=BlzCreateFrame("ScriptDialogButton", WoWReforgedAiPlayersUi___BackgroundFrame, 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___ApplyButton, FRAMEPOINT_TOPLEFT, UI_FULLSCREEN_CLOSE_BUTTON_X, UI_FULLSCREEN_BOTTOM_BUTTON_Y) - call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi___ApplyButton, FRAMEPOINT_BOTTOMRIGHT, UI_FULLSCREEN_CLOSE_BUTTON_X + UI_FULLSCREEN_BOTTOM_BUTTON_WIDTH, UI_FULLSCREEN_BOTTOM_BUTTON_Y - UI_FULLSCREEN_BOTTOM_BUTTON_HEIGHT) - call BlzFrameSetText(WoWReforgedAiPlayersUi___ApplyButton, "|cffFCD20DApply|r") + set WoWReforgedAiPlayersUi__ApplyButton=BlzCreateFrame("ScriptDialogButton", WoWReforgedAiPlayersUi__BackgroundFrame, 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__ApplyButton, FRAMEPOINT_TOPLEFT, UI_FULLSCREEN_CLOSE_BUTTON_X, UI_FULLSCREEN_BOTTOM_BUTTON_Y) + call BlzFrameSetAbsPoint(WoWReforgedAiPlayersUi__ApplyButton, FRAMEPOINT_BOTTOMRIGHT, UI_FULLSCREEN_CLOSE_BUTTON_X + UI_FULLSCREEN_BOTTOM_BUTTON_WIDTH, UI_FULLSCREEN_BOTTOM_BUTTON_Y - UI_FULLSCREEN_BOTTOM_BUTTON_HEIGHT) + call BlzFrameSetText(WoWReforgedAiPlayersUi__ApplyButton, "|cffFCD20DApply|r") - set WoWReforgedAiPlayersUi___ApplyTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___ApplyTrigger, WoWReforgedAiPlayersUi___ApplyButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___ApplyTrigger, function WoWReforgedAiPlayersUi___ApplyFunction) + set WoWReforgedAiPlayersUi__ApplyTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__ApplyTrigger, WoWReforgedAiPlayersUi__ApplyButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__ApplyTrigger, function WoWReforgedAiPlayersUi__ApplyFunction) // previous page button - set WoWReforgedAiPlayersUi___PreviousPageButton=CreateFullScreenPreviousPageButton(WoWReforgedAiPlayersUi___BackgroundFrame , "|cffFCD20DPrevious Player|r") - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___PreviousPageButton, counter > AI_PLAYERS_UI_MAX_PLAYERS) + set WoWReforgedAiPlayersUi__PreviousPageButton=CreateFullScreenPreviousPageButton(WoWReforgedAiPlayersUi__BackgroundFrame , "|cffFCD20DPrevious Player|r") + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__PreviousPageButton, counter > AI_PLAYERS_UI_MAX_PLAYERS) - set WoWReforgedAiPlayersUi___PreviousPageTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___PreviousPageTrigger, WoWReforgedAiPlayersUi___PreviousPageButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___PreviousPageTrigger, function WoWReforgedAiPlayersUi___PreviousPageFunction) + set WoWReforgedAiPlayersUi__PreviousPageTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__PreviousPageTrigger, WoWReforgedAiPlayersUi__PreviousPageButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__PreviousPageTrigger, function WoWReforgedAiPlayersUi__PreviousPageFunction) // next page button - set WoWReforgedAiPlayersUi___NextPageButton=CreateFullScreenNextPageButton(WoWReforgedAiPlayersUi___BackgroundFrame , "|cffFCD20DNext Player|r") - call BlzFrameSetEnable(WoWReforgedAiPlayersUi___NextPageButton, counter > AI_PLAYERS_UI_MAX_PLAYERS) + set WoWReforgedAiPlayersUi__NextPageButton=CreateFullScreenNextPageButton(WoWReforgedAiPlayersUi__BackgroundFrame , "|cffFCD20DNext Player|r") + call BlzFrameSetEnable(WoWReforgedAiPlayersUi__NextPageButton, counter > AI_PLAYERS_UI_MAX_PLAYERS) - set WoWReforgedAiPlayersUi___NextPageTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi___NextPageTrigger, WoWReforgedAiPlayersUi___NextPageButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedAiPlayersUi___NextPageTrigger, function WoWReforgedAiPlayersUi___NextPageFunction) + set WoWReforgedAiPlayersUi__NextPageTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedAiPlayersUi__NextPageTrigger, WoWReforgedAiPlayersUi__NextPageButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedAiPlayersUi__NextPageTrigger, function WoWReforgedAiPlayersUi__NextPageFunction) // hide - call WoWReforgedAiPlayersUi___SetVisible(false) // INLINED!! + call WoWReforgedAiPlayersUi__SetVisible(false) // INLINED!! endfunction function CreateAiPlayersUI takes nothing returns nothing @@ -62442,11 +62442,11 @@ function CreateAiPlayersUI takes nothing returns nothing set aiPlayers=null endfunction -function WoWReforgedAiPlayersUi___Init takes nothing returns nothing +function WoWReforgedAiPlayersUi__Init takes nothing returns nothing // sync trigger - set WoWReforgedAiPlayersUi___SyncTrigger=CreateTrigger() - call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedAiPlayersUi___SyncTrigger , WoWReforgedAiPlayersUi___PREFIX , false) - call TriggerAddAction(WoWReforgedAiPlayersUi___SyncTrigger, function WoWReforgedAiPlayersUi___TriggerActionSyncData) + set WoWReforgedAiPlayersUi__SyncTrigger=CreateTrigger() + call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedAiPlayersUi__SyncTrigger , WoWReforgedAiPlayersUi__PREFIX , false) + call TriggerAddAction(WoWReforgedAiPlayersUi__SyncTrigger, function WoWReforgedAiPlayersUi__TriggerActionSyncData) //call FrameSaverAdd(function HideAiPlayersUi) endfunction @@ -62483,19 +62483,19 @@ endfunction function EnchanterSystemSaveBonus takes unit hero,integer bonusType,integer bonus returns nothing - call SaveInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId(hero), bonusType, bonus) + call SaveInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId(hero), bonusType, bonus) endfunction function EnchanterSystemLoadBonus takes unit hero,integer bonusType returns integer - return LoadInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId(hero), bonusType) + return LoadInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId(hero), bonusType) endfunction function EnchanterSystemSaveBonusReal takes unit hero,integer bonusType,real bonus returns nothing - call SaveReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId(hero), bonusType, bonus) + call SaveReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId(hero), bonusType, bonus) endfunction function EnchanterSystemLoadBonusReal takes unit hero,integer bonusType returns real - return LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId(hero), bonusType) + return LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId(hero), bonusType) endfunction function EnchanterAddItemBonusesEx takes unit hero,item whichItem,integer bonusHeroStatsAndDefense,real bonusDamage,real bonusHitPoints returns nothing @@ -62518,20 +62518,20 @@ function EnchanterAddItemBonusesEx takes unit hero,item whichItem,integer bonusH endfunction function IsHeroEnchanted takes unit hero returns boolean - return IsUnitInGroup(hero, WoWReforgedEnchanter__EnchantedUnits) + return IsUnitInGroup(hero, WoWReforgedEnchanter___EnchantedUnits) endfunction -function WoWReforgedEnchanter__EnchanterSystemRemoveUnit takes unit whichUnit returns nothing - call FlushChildHashtable(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId(whichUnit)) +function WoWReforgedEnchanter___EnchanterSystemRemoveUnit takes unit whichUnit returns nothing + call FlushChildHashtable(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId(whichUnit)) endfunction -//processed hook: hook RemoveUnit WoWReforgedEnchanter__EnchanterSystemRemoveUnit +//processed hook: hook RemoveUnit WoWReforgedEnchanter___EnchanterSystemRemoveUnit function EnchanterSetHeroBonus takes unit hero returns integer local item whichItem= null - local integer oldEnchantingBonusHeroStatAndDefense= (LoadInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! - local real oldEnchantingBonusDamage= (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! - local real oldEnchantingBonusHitPoints= (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! + local integer oldEnchantingBonusHeroStatAndDefense= (LoadInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! + local real oldEnchantingBonusDamage= (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! + local real oldEnchantingBonusHitPoints= (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! local integer enchantingItemsCounter= 0 local integer heroStatsAndDefenseBonus= 0 local real damageBonus= 0 @@ -62594,24 +62594,24 @@ function EnchanterSetHeroBonus takes unit hero returns integer endloop if ( enchantingItemsCounter > 0 ) then - call SaveInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS ), ( heroStatsAndDefenseBonus)) // INLINED!! - call SaveReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS ), (( damageBonus)*1.0)) // INLINED!! - call SaveReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS ), (( hitPointsBonus)*1.0)) // INLINED!! - if ( not IsUnitInGroup(hero, WoWReforgedEnchanter__EnchantedUnits) ) then - call GroupAddUnit(WoWReforgedEnchanter__EnchantedUnits, hero) + call SaveInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS ), ( heroStatsAndDefenseBonus)) // INLINED!! + call SaveReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS ), (( damageBonus)*1.0)) // INLINED!! + call SaveReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS ), (( hitPointsBonus)*1.0)) // INLINED!! + if ( not IsUnitInGroup(hero, WoWReforgedEnchanter___EnchantedUnits) ) then + call GroupAddUnit(WoWReforgedEnchanter___EnchantedUnits, hero) endif - elseif ( IsUnitInGroup(hero, WoWReforgedEnchanter__EnchantedUnits) ) then - call FlushChildHashtable(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero))) // INLINED!! - call GroupRemoveUnit(WoWReforgedEnchanter__EnchantedUnits, hero) + elseif ( IsUnitInGroup(hero, WoWReforgedEnchanter___EnchantedUnits) ) then + call FlushChildHashtable(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero))) // INLINED!! + call GroupRemoveUnit(WoWReforgedEnchanter___EnchantedUnits, hero) endif return enchantingItemsCounter endfunction function EnchanterAddItemBonus takes unit hero,item whichItem returns nothing - local integer oldEnchantingBonusHeroStatAndDefense= (LoadInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! - local real oldEnchantingBonusDamage= (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! - local real oldEnchantingBonusHitPoints= (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! + local integer oldEnchantingBonusHeroStatAndDefense= (LoadInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! + local real oldEnchantingBonusDamage= (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! + local real oldEnchantingBonusHitPoints= (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! //call BJDebugMsg("Add old Hero stats and defense bonus " + I2S(oldEnchantingBonusHeroStatAndDefense) + " and damage bonus " + R2S(oldEnchantingBonusDamage) + " and hit points bonus " + R2S(oldEnchantingBonusHitPoints) + " to picked up item " + GetItemName(whichItem)) @@ -62620,9 +62620,9 @@ endfunction function EnchanterRemoveItemBonus takes unit hero,item whichItem returns nothing - local integer oldEnchantingBonusHeroStatAndDefense= - (LoadInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! - local real oldEnchantingBonusDamage= - (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! - local real oldEnchantingBonusHitPoints= - (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! + local integer oldEnchantingBonusHeroStatAndDefense= - (LoadInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! + local real oldEnchantingBonusDamage= - (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! + local real oldEnchantingBonusHitPoints= - (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! //call BJDebugMsg("Remove old Hero stats and defense bonus " + I2S(oldEnchantingBonusHeroStatAndDefense) + " and damage bonus " + R2S(oldEnchantingBonusDamage) + " and hit points bonus " + R2S(oldEnchantingBonusHitPoints) + " from dropped item " + GetItemName(whichItem)) @@ -62630,9 +62630,9 @@ function EnchanterRemoveItemBonus takes unit hero,item whichItem returns nothing endfunction function EnchanterHeroInfo takes unit hero returns string - local integer oldEnchantingBonusHeroStatAndDefense= (LoadInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! - local real oldEnchantingBonusDamage= (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! - local real oldEnchantingBonusHitPoints= (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! + local integer oldEnchantingBonusHeroStatAndDefense= (LoadInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! + local real oldEnchantingBonusDamage= (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! + local real oldEnchantingBonusHitPoints= (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((hero )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! if ( oldEnchantingBonusHeroStatAndDefense > 0 ) then return GetUnitName(hero) + " hero stats/defense/summoned units " + I2S(oldEnchantingBonusHeroStatAndDefense) + ", damage " + I2S(R2I(oldEnchantingBonusDamage)) + ", hp/mana " + I2S(R2I(oldEnchantingBonusHitPoints)) @@ -62677,15 +62677,15 @@ function EnchanterInfo takes player whichPlayer returns string return text endfunction -function WoWReforgedEnchanter__TriggerConditionPickupItem takes nothing returns boolean - if ( (IsUnitInGroup((GetTriggerUnit()), WoWReforgedEnchanter__EnchantedUnits)) ) then // INLINED!! +function WoWReforgedEnchanter___TriggerConditionPickupItem takes nothing returns boolean + if ( (IsUnitInGroup((GetTriggerUnit()), WoWReforgedEnchanter___EnchantedUnits)) ) then // INLINED!! return true endif return IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and GetUnitTypeId(GetTriggerUnit()) != BACK_PACK and GetUnitTypeId(GetTriggerUnit()) != EQUIPMENT_BAG and ( GetItemTypeId(GetManipulatedItem()) == ENCHANTER_ITEM_TYPE_ID_NOVICE or GetItemTypeId(GetManipulatedItem()) == ENCHANTER_ITEM_TYPE_ID_ADVANCED or GetItemTypeId(GetManipulatedItem()) == ENCHANTER_ITEM_TYPE_ID_ADEPT or GetItemTypeId(GetManipulatedItem()) == ENCHANTER_ITEM_TYPE_ID_MASTER ) endfunction -function WoWReforgedEnchanter__TriggerActionSetHeroBonus takes nothing returns nothing +function WoWReforgedEnchanter___TriggerActionSetHeroBonus takes nothing returns nothing if ( GetItemTypeId(GetManipulatedItem()) == ENCHANTER_ITEM_TYPE_ID_NOVICE or GetItemTypeId(GetManipulatedItem()) == ENCHANTER_ITEM_TYPE_ID_ADVANCED or GetItemTypeId(GetManipulatedItem()) == ENCHANTER_ITEM_TYPE_ID_ADEPT or GetItemTypeId(GetManipulatedItem()) == ENCHANTER_ITEM_TYPE_ID_MASTER ) then call EnchanterSetHeroBonus(GetTriggerUnit()) //call DisplayEnchanterHeroInfo(GetOwningPlayer(GetTriggerUnit()), GetTriggerUnit()) @@ -62693,11 +62693,11 @@ function WoWReforgedEnchanter__TriggerActionSetHeroBonus takes nothing returns n call EnchanterAddItemBonus(GetTriggerUnit() , GetManipulatedItem()) endfunction -function WoWReforgedEnchanter__TriggerConditionDropItem takes nothing returns boolean - return (IsUnitInGroup((GetTriggerUnit()), WoWReforgedEnchanter__EnchantedUnits)) // INLINED!! +function WoWReforgedEnchanter___TriggerConditionDropItem takes nothing returns boolean + return (IsUnitInGroup((GetTriggerUnit()), WoWReforgedEnchanter___EnchantedUnits)) // INLINED!! endfunction -function WoWReforgedEnchanter__TriggerActionSetHeroBonusDrop takes nothing returns nothing +function WoWReforgedEnchanter___TriggerActionSetHeroBonusDrop takes nothing returns nothing local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(GetTriggerUnit()) local item droppedItem= GetManipulatedItem() @@ -62712,14 +62712,14 @@ function WoWReforgedEnchanter__TriggerActionSetHeroBonusDrop takes nothing retur set owner=null endfunction -function WoWReforgedEnchanter__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedEnchanter__pickupItemTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) - call TriggerAddCondition(WoWReforgedEnchanter__pickupItemTrigger, Condition(function WoWReforgedEnchanter__TriggerConditionPickupItem)) - call TriggerAddAction(WoWReforgedEnchanter__pickupItemTrigger, function WoWReforgedEnchanter__TriggerActionSetHeroBonus) +function WoWReforgedEnchanter___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedEnchanter___pickupItemTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) + call TriggerAddCondition(WoWReforgedEnchanter___pickupItemTrigger, Condition(function WoWReforgedEnchanter___TriggerConditionPickupItem)) + call TriggerAddAction(WoWReforgedEnchanter___pickupItemTrigger, function WoWReforgedEnchanter___TriggerActionSetHeroBonus) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedEnchanter__dropItemTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) - call TriggerAddCondition(WoWReforgedEnchanter__dropItemTrigger, Condition(function WoWReforgedEnchanter__TriggerConditionDropItem)) - call TriggerAddAction(WoWReforgedEnchanter__dropItemTrigger, function WoWReforgedEnchanter__TriggerActionSetHeroBonusDrop) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedEnchanter___dropItemTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) + call TriggerAddCondition(WoWReforgedEnchanter___dropItemTrigger, Condition(function WoWReforgedEnchanter___TriggerConditionDropItem)) + call TriggerAddAction(WoWReforgedEnchanter___dropItemTrigger, function WoWReforgedEnchanter___TriggerActionSetHeroBonusDrop) endfunction @@ -62747,19 +62747,19 @@ endfunction //library WoWReforgedHeroesTavern: -function WoWReforgedHeroesTavern___AddHeroToTavern takes nothing returns nothing - local unit tavern= WoWReforgedHeroesTavern___tmpUnit - local integer i= WoWReforgedHeroesTavern___index - local string pageName= WoWReforgedHeroesTavern___tmpString +function WoWReforgedHeroesTavern__AddHeroToTavern takes nothing returns nothing + local unit tavern= WoWReforgedHeroesTavern__tmpUnit + local integer i= WoWReforgedHeroesTavern__index + local string pageName= WoWReforgedHeroesTavern__tmpString if ( (udg_HeroCategory[(i)]) != "" and (udg_HeroCategory[(i)]) != null and (udg_HeroCategory[(i)]) != pageName ) then // INLINED!! set pageName=(udg_HeroCategory[(i)]) // INLINED!! call NextPagedButtonsPage(tavern , pageName) - set WoWReforgedHeroesTavern___tmpString=pageName + set WoWReforgedHeroesTavern__tmpString=pageName endif call AddPagedButtonsId((tavern ) , ( (udg_HeroUnitType[(i)])) , PagedButtons_BUTTON_TYPE_UNIT) // INLINED!! endfunction -function WoWReforgedHeroesTavern___AddHeroesTavern takes unit tavern returns nothing +function WoWReforgedHeroesTavern__AddHeroesTavern takes unit tavern returns nothing local integer i= 0 local integer max= (udg_HeroUnitTypeIndex) // INLINED!! local string pageName= "" @@ -62771,11 +62771,11 @@ call AddPagedButtonsId((tavern ) , ( ITEM_TYPE_RANDOM_HERO) , PagedButtons_BUTTO set i=0 loop exitwhen ( i >= max ) - set WoWReforgedHeroesTavern___index=i - set WoWReforgedHeroesTavern___tmpUnit=tavern - set WoWReforgedHeroesTavern___tmpString=pageName - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedHeroesTavern___AddHeroToTavern)) // INLINED!! - set pageName=WoWReforgedHeroesTavern___tmpString + set WoWReforgedHeroesTavern__index=i + set WoWReforgedHeroesTavern__tmpUnit=tavern + set WoWReforgedHeroesTavern__tmpString=pageName + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedHeroesTavern__AddHeroToTavern)) // INLINED!! + set pageName=WoWReforgedHeroesTavern__tmpString set i=i + 1 endloop @@ -62791,12 +62791,12 @@ call AddPagedButtonsId((tavern ) , ( GetUnitTypeId(BlzGroupUnitAt(udg_Bosses, i) call SetPagedButtonsPage(tavern , 0) endfunction -function WoWReforgedHeroesTavern___ForGroupAddHeroesTavern takes nothing returns nothing - call WoWReforgedHeroesTavern___AddHeroesTavern(GetEnumUnit()) +function WoWReforgedHeroesTavern__ForGroupAddHeroesTavern takes nothing returns nothing + call WoWReforgedHeroesTavern__AddHeroesTavern(GetEnumUnit()) endfunction -function WoWReforgedHeroesTavern___TimerFunctionAddHeroesTaverns takes nothing returns nothing - call ForGroupBJ(GetUnitsOfTypeIdAll(HEROES_TAVERN), function WoWReforgedHeroesTavern___ForGroupAddHeroesTavern) +function WoWReforgedHeroesTavern__TimerFunctionAddHeroesTaverns takes nothing returns nothing + call ForGroupBJ(GetUnitsOfTypeIdAll(HEROES_TAVERN), function WoWReforgedHeroesTavern__ForGroupAddHeroesTavern) call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) @@ -62837,9 +62837,9 @@ function SelectRandomHero takes unit buyingUnit,unit tavern returns nothing set random=GetRandomInt(0, availableIdsCounter - 1) set id=availableIds[random] //call BJDebugMsg("Selected random " + GetObjectName(id)) - set WoWReforgedHeroesTavern___index=GetPagedButtonIndex(tavern , id) + set WoWReforgedHeroesTavern__index=GetPagedButtonIndex(tavern , id) //call BJDebugMsg("index " + I2S(index)) - set page=GetPagedButtonsPageByIndex(tavern , WoWReforgedHeroesTavern___index) + set page=GetPagedButtonsPageByIndex(tavern , WoWReforgedHeroesTavern__index) //call BJDebugMsg("page " + I2S(page)) call SetPagedButtonsPage(tavern , page) call IssueNeutralImmediateOrderById(owner, tavern, id) @@ -62847,7 +62847,7 @@ function SelectRandomHero takes unit buyingUnit,unit tavern returns nothing set owner=null endfunction -function WoWReforgedHeroesTavern___TriggerConditionSellItem takes nothing returns boolean +function WoWReforgedHeroesTavern__TriggerConditionSellItem takes nothing returns boolean if ( GetItemTypeId(GetSoldItem()) == ITEM_TYPE_RANDOM_HERO ) then call SelectRandomHero(GetBuyingUnit() , GetTriggerUnit()) call h__RemoveItem(GetSoldItem()) @@ -62855,11 +62855,11 @@ function WoWReforgedHeroesTavern___TriggerConditionSellItem takes nothing return return false endfunction -function WoWReforgedHeroesTavern___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroesTavern___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedHeroesTavern___sellTrigger, Condition(function WoWReforgedHeroesTavern___TriggerConditionSellItem)) +function WoWReforgedHeroesTavern__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroesTavern__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedHeroesTavern__sellTrigger, Condition(function WoWReforgedHeroesTavern__TriggerConditionSellItem)) - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedHeroesTavern___TimerFunctionAddHeroesTaverns) + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedHeroesTavern__TimerFunctionAddHeroesTaverns) endfunction @@ -62868,19 +62868,19 @@ endfunction function InscriptorSystemSaveBonus takes unit hero,integer bonusType,integer bonus returns nothing - call SaveInteger(WoWReforgedInscriptor__h, GetHandleId(hero), bonusType, bonus) + call SaveInteger(WoWReforgedInscriptor___h, GetHandleId(hero), bonusType, bonus) endfunction function InscriptorSystemLoadBonus takes unit hero,integer bonusType returns integer - return LoadInteger(WoWReforgedInscriptor__h, GetHandleId(hero), bonusType) + return LoadInteger(WoWReforgedInscriptor___h, GetHandleId(hero), bonusType) endfunction function InscriptorSystemSaveBonusReal takes unit hero,integer bonusType,real bonus returns nothing - call SaveReal(WoWReforgedInscriptor__h, GetHandleId(hero), bonusType, bonus) + call SaveReal(WoWReforgedInscriptor___h, GetHandleId(hero), bonusType, bonus) endfunction function InscriptorSystemLoadBonusReal takes unit hero,integer bonusType returns real - return LoadReal(WoWReforgedInscriptor__h, GetHandleId(hero), bonusType) + return LoadReal(WoWReforgedInscriptor___h, GetHandleId(hero), bonusType) endfunction function InscriptorAddAbilityBonusesEx takes unit hero,ability whichAbility,integer bonusHeroStatsAndDefense,real bonusDamage,real bonusHitPoints returns nothing @@ -62899,21 +62899,21 @@ function InscriptorAddAbilityBonusesEx takes unit hero,ability whichAbility,inte endfunction function IsHeroInscripted takes unit hero returns boolean - return IsUnitInGroup(hero, WoWReforgedInscriptor__targets) + return IsUnitInGroup(hero, WoWReforgedInscriptor___targets) endfunction -function WoWReforgedInscriptor__InscriptorSystemRemoveUnit takes unit whichUnit returns nothing - call FlushChildHashtable(WoWReforgedInscriptor__h, GetHandleId(whichUnit)) +function WoWReforgedInscriptor___InscriptorSystemRemoveUnit takes unit whichUnit returns nothing + call FlushChildHashtable(WoWReforgedInscriptor___h, GetHandleId(whichUnit)) endfunction -//processed hook: hook RemoveUnit WoWReforgedInscriptor__InscriptorSystemRemoveUnit +//processed hook: hook RemoveUnit WoWReforgedInscriptor___InscriptorSystemRemoveUnit function InscriptorSetHeroBonus takes unit hero returns integer local item whichItem= null local ability whichAbility= null - local integer oldInscriptionBonusHeroStatAndDefense= (LoadInteger(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! - local real oldInscriptionBonusDamage= (LoadReal(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! - local real oldInscriptionBonusHitPoints= (LoadReal(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! + local integer oldInscriptionBonusHeroStatAndDefense= (LoadInteger(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! + local real oldInscriptionBonusDamage= (LoadReal(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! + local real oldInscriptionBonusHitPoints= (LoadReal(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! local integer inscriptionItemsCounter= 0 local integer heroStatsAndDefenseBonus= 0 local real damageBonus= 0 @@ -62976,7 +62976,7 @@ function InscriptorSetHeroBonus takes unit hero returns integer loop exitwhen ( i == 20 ) set whichAbility=BlzGetUnitAbilityByIndex(hero, i) - if ( whichAbility != null and (LoadInteger(WoWReforgedAbilityFields__AbilityFieldCountersHashTable, (BlzGetAbilityId(whichAbility)), 0)) > 0 ) then // INLINED!! + if ( whichAbility != null and (LoadInteger(WoWReforgedAbilityFields___AbilityFieldCountersHashTable, (BlzGetAbilityId(whichAbility)), 0)) > 0 ) then // INLINED!! call InscriptorAddAbilityBonusesEx(hero , whichAbility , heroStatsAndDefenseBonusDiff , damageBonusDiff , hitPointsBonusDiff) endif set whichAbility=null @@ -62984,24 +62984,24 @@ function InscriptorSetHeroBonus takes unit hero returns integer endloop if ( inscriptionItemsCounter > 0 ) then - call SaveInteger(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS ), ( heroStatsAndDefenseBonus)) // INLINED!! - call SaveReal(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_DAMAGE_BONUS ), (( damageBonus)*1.0)) // INLINED!! - call SaveReal(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS ), (( hitPointsBonus)*1.0)) // INLINED!! - if ( not IsUnitInGroup(hero, WoWReforgedInscriptor__targets) ) then - call GroupAddUnit(WoWReforgedInscriptor__targets, hero) + call SaveInteger(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS ), ( heroStatsAndDefenseBonus)) // INLINED!! + call SaveReal(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_DAMAGE_BONUS ), (( damageBonus)*1.0)) // INLINED!! + call SaveReal(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS ), (( hitPointsBonus)*1.0)) // INLINED!! + if ( not IsUnitInGroup(hero, WoWReforgedInscriptor___targets) ) then + call GroupAddUnit(WoWReforgedInscriptor___targets, hero) endif - elseif ( IsUnitInGroup(hero, WoWReforgedInscriptor__targets) ) then - call FlushChildHashtable(WoWReforgedInscriptor__h, GetHandleId((hero))) // INLINED!! - call GroupRemoveUnit(WoWReforgedInscriptor__targets, hero) + elseif ( IsUnitInGroup(hero, WoWReforgedInscriptor___targets) ) then + call FlushChildHashtable(WoWReforgedInscriptor___h, GetHandleId((hero))) // INLINED!! + call GroupRemoveUnit(WoWReforgedInscriptor___targets, hero) endif return inscriptionItemsCounter endfunction function InscriptorHeroInfo takes unit hero returns string - local integer oldInscriptionBonusHeroStatAndDefense= (LoadInteger(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! - local real oldInscriptionBonusDamage= (LoadReal(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! - local real oldInscriptionBonusHitPoints= (LoadReal(WoWReforgedInscriptor__h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! + local integer oldInscriptionBonusHeroStatAndDefense= (LoadInteger(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! + local real oldInscriptionBonusDamage= (LoadReal(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_DAMAGE_BONUS))) // INLINED!! + local real oldInscriptionBonusHitPoints= (LoadReal(WoWReforgedInscriptor___h, GetHandleId((hero )), ( INSCRIPTOR_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! if ( oldInscriptionBonusHeroStatAndDefense > 0 ) then return GetUnitName(hero) + " hero stats/defense/summoned units " + I2S(oldInscriptionBonusHeroStatAndDefense) + ", damage " + I2S(R2I(oldInscriptionBonusDamage)) + ", hp/mana " + I2S(R2I(oldInscriptionBonusHitPoints)) @@ -63052,15 +63052,15 @@ function DisplayInscriptorHeroInfo takes player whichPlayer,unit hero returns no endif endfunction -function WoWReforgedInscriptor__TriggerConditionPickupItem takes nothing returns boolean - if ( (IsUnitInGroup((GetTriggerUnit()), WoWReforgedInscriptor__targets)) ) then // INLINED!! +function WoWReforgedInscriptor___TriggerConditionPickupItem takes nothing returns boolean + if ( (IsUnitInGroup((GetTriggerUnit()), WoWReforgedInscriptor___targets)) ) then // INLINED!! return true endif return IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and GetUnitTypeId(GetTriggerUnit()) != BACK_PACK and GetUnitTypeId(GetTriggerUnit()) != EQUIPMENT_BAG and ( GetItemTypeId(GetManipulatedItem()) == INSCRIPTOR_ITEM_TYPE_ID_NOVICE or GetItemTypeId(GetManipulatedItem()) == INSCRIPTOR_ITEM_TYPE_ID_ADVANCED or GetItemTypeId(GetManipulatedItem()) == INSCRIPTOR_ITEM_TYPE_ID_ADEPT or GetItemTypeId(GetManipulatedItem()) == INSCRIPTOR_ITEM_TYPE_ID_MASTER ) endfunction -function WoWReforgedInscriptor__TriggerActionSetHeroBonus takes nothing returns nothing +function WoWReforgedInscriptor___TriggerActionSetHeroBonus takes nothing returns nothing local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(triggerUnit) local item manipulatedItem= GetManipulatedItem() @@ -63073,11 +63073,11 @@ function WoWReforgedInscriptor__TriggerActionSetHeroBonus takes nothing returns set owner=null endfunction -function WoWReforgedInscriptor__TriggerConditionDropItem takes nothing returns boolean - return (IsUnitInGroup((GetTriggerUnit()), WoWReforgedInscriptor__targets)) // INLINED!! +function WoWReforgedInscriptor___TriggerConditionDropItem takes nothing returns boolean + return (IsUnitInGroup((GetTriggerUnit()), WoWReforgedInscriptor___targets)) // INLINED!! endfunction -function WoWReforgedInscriptor__TriggerActionSetHeroBonusDrop takes nothing returns nothing +function WoWReforgedInscriptor___TriggerActionSetHeroBonusDrop takes nothing returns nothing local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(triggerUnit) local item manipulatedItem= GetManipulatedItem() @@ -63091,11 +63091,11 @@ function WoWReforgedInscriptor__TriggerActionSetHeroBonusDrop takes nothing retu set owner=null endfunction -function WoWReforgedInscriptor__TriggerConditionLearn takes nothing returns boolean - return (IsUnitInGroup((GetTriggerUnit()), WoWReforgedInscriptor__targets)) or GetLearnedSkill() == INSCRIPTION_HERO_SPELL // INLINED!! +function WoWReforgedInscriptor___TriggerConditionLearn takes nothing returns boolean + return (IsUnitInGroup((GetTriggerUnit()), WoWReforgedInscriptor___targets)) or GetLearnedSkill() == INSCRIPTION_HERO_SPELL // INLINED!! endfunction -function WoWReforgedInscriptor__TriggerActionLearn takes nothing returns nothing +function WoWReforgedInscriptor___TriggerActionLearn takes nothing returns nothing local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(triggerUnit) call InscriptorSetHeroBonus(triggerUnit) @@ -63104,18 +63104,18 @@ function WoWReforgedInscriptor__TriggerActionLearn takes nothing returns nothing set owner=null endfunction -function WoWReforgedInscriptor__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedInscriptor__pickupItemTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) - call TriggerAddCondition(WoWReforgedInscriptor__pickupItemTrigger, Condition(function WoWReforgedInscriptor__TriggerConditionPickupItem)) - call TriggerAddAction(WoWReforgedInscriptor__pickupItemTrigger, function WoWReforgedInscriptor__TriggerActionSetHeroBonus) +function WoWReforgedInscriptor___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedInscriptor___pickupItemTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) + call TriggerAddCondition(WoWReforgedInscriptor___pickupItemTrigger, Condition(function WoWReforgedInscriptor___TriggerConditionPickupItem)) + call TriggerAddAction(WoWReforgedInscriptor___pickupItemTrigger, function WoWReforgedInscriptor___TriggerActionSetHeroBonus) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedInscriptor__dropItemTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) - call TriggerAddCondition(WoWReforgedInscriptor__dropItemTrigger, Condition(function WoWReforgedInscriptor__TriggerConditionDropItem)) - call TriggerAddAction(WoWReforgedInscriptor__dropItemTrigger, function WoWReforgedInscriptor__TriggerActionSetHeroBonusDrop) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedInscriptor___dropItemTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) + call TriggerAddCondition(WoWReforgedInscriptor___dropItemTrigger, Condition(function WoWReforgedInscriptor___TriggerConditionDropItem)) + call TriggerAddAction(WoWReforgedInscriptor___dropItemTrigger, function WoWReforgedInscriptor___TriggerActionSetHeroBonusDrop) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedInscriptor__learnTrigger, EVENT_PLAYER_HERO_SKILL) - call TriggerAddCondition(WoWReforgedInscriptor__learnTrigger, Condition(function WoWReforgedInscriptor__TriggerConditionLearn)) - call TriggerAddAction(WoWReforgedInscriptor__learnTrigger, function WoWReforgedInscriptor__TriggerActionLearn) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedInscriptor___learnTrigger, EVENT_PLAYER_HERO_SKILL) + call TriggerAddCondition(WoWReforgedInscriptor___learnTrigger, Condition(function WoWReforgedInscriptor___TriggerConditionLearn)) + call TriggerAddAction(WoWReforgedInscriptor___learnTrigger, function WoWReforgedInscriptor___TriggerActionLearn) endfunction @@ -63124,15 +63124,15 @@ endfunction function MountGet takes unit hero returns unit - if ( HaveSavedHandle(WoWReforgedMounts__MountHashTable, GetHandleId(hero), 0) ) then - return LoadUnitHandle(WoWReforgedMounts__MountHashTable, GetHandleId(hero), 0) + if ( HaveSavedHandle(WoWReforgedMounts___MountHashTable, GetHandleId(hero), 0) ) then + return LoadUnitHandle(WoWReforgedMounts___MountHashTable, GetHandleId(hero), 0) endif return null endfunction function MountClear takes unit hero returns nothing - call FlushChildHashtable(WoWReforgedMounts__MountHashTable, GetHandleId(hero)) + call FlushChildHashtable(WoWReforgedMounts___MountHashTable, GetHandleId(hero)) endfunction function GetMount1 takes player whichPlayer returns unit @@ -63157,7 +63157,7 @@ function GetMount3 takes player whichPlayer returns unit endfunction function SetMountName1 takes player whichPlayer,string name returns nothing - set WoWReforgedMounts__mountName1[GetPlayerId(whichPlayer)]=name + set WoWReforgedMounts___mountName1[GetPlayerId(whichPlayer)]=name if ( GetMount1(whichPlayer) != null ) then if ( StringLength(name) == 0 ) then call BlzSetUnitName(GetMount1(whichPlayer), GetObjectName(GetUnitTypeId(GetMount1(whichPlayer)))) @@ -63168,11 +63168,11 @@ function SetMountName1 takes player whichPlayer,string name returns nothing endfunction function GetMountName1 takes player whichPlayer returns string - return WoWReforgedMounts__mountName1[GetPlayerId(whichPlayer)] + return WoWReforgedMounts___mountName1[GetPlayerId(whichPlayer)] endfunction function SetMountName2 takes player whichPlayer,string name returns nothing - set WoWReforgedMounts__mountName2[GetPlayerId(whichPlayer)]=name + set WoWReforgedMounts___mountName2[GetPlayerId(whichPlayer)]=name if ( GetMount2(whichPlayer) != null ) then if ( StringLength(name) == 0 ) then call BlzSetUnitName(GetMount2(whichPlayer), GetObjectName(GetUnitTypeId(GetMount2(whichPlayer)))) @@ -63183,11 +63183,11 @@ function SetMountName2 takes player whichPlayer,string name returns nothing endfunction function GetMountName2 takes player whichPlayer returns string - return WoWReforgedMounts__mountName2[GetPlayerId(whichPlayer)] + return WoWReforgedMounts___mountName2[GetPlayerId(whichPlayer)] endfunction function SetMountName3 takes player whichPlayer,string name returns nothing - set WoWReforgedMounts__mountName3[GetPlayerId(whichPlayer)]=name + set WoWReforgedMounts___mountName3[GetPlayerId(whichPlayer)]=name if ( GetMount3(whichPlayer) != null ) then if ( StringLength(name) == 0 ) then call BlzSetUnitName(GetMount3(whichPlayer), GetObjectName(GetUnitTypeId(GetMount3(whichPlayer)))) @@ -63198,7 +63198,7 @@ function SetMountName3 takes player whichPlayer,string name returns nothing endfunction function GetMountName3 takes player whichPlayer returns string - return WoWReforgedMounts__mountName3[GetPlayerId(whichPlayer)] + return WoWReforgedMounts___mountName3[GetPlayerId(whichPlayer)] endfunction function MountKill takes unit hero returns nothing @@ -63207,7 +63207,7 @@ function MountKill takes unit hero returns nothing call KillUnit(mount) // in case there are transported units endif set mount=null - call FlushChildHashtable(WoWReforgedMounts__MountHashTable, GetHandleId((hero))) // INLINED!! + call FlushChildHashtable(WoWReforgedMounts___MountHashTable, GetHandleId((hero))) // INLINED!! endfunction function MountKill1 takes player whichPlayer returns nothing @@ -63225,13 +63225,13 @@ endfunction function MountReplace takes unit hero,unit mount returns nothing local player owner= GetOwningPlayer(hero) call MountKill(hero) - call SaveUnitHandle(WoWReforgedMounts__MountHashTable, GetHandleId(hero), 0, mount) - if ( hero == (udg_Hero[GetPlayerId((owner))]) and StringLength((WoWReforgedMounts__mountName1[GetPlayerId((owner))])) > 0 ) then // INLINED!! - call BlzSetUnitName(mount, (WoWReforgedMounts__mountName1[GetPlayerId((owner))])) // INLINED!! - elseif ( hero == (udg_Hero2[GetPlayerId((owner))]) and StringLength((WoWReforgedMounts__mountName2[GetPlayerId((owner))])) > 0 ) then // INLINED!! - call BlzSetUnitName(mount, (WoWReforgedMounts__mountName2[GetPlayerId((owner))])) // INLINED!! - elseif ( hero == (udg_Hero3[GetPlayerId((owner))]) and StringLength((WoWReforgedMounts__mountName3[GetPlayerId((owner))])) > 0 ) then // INLINED!! - call BlzSetUnitName(mount, (WoWReforgedMounts__mountName3[GetPlayerId((owner))])) // INLINED!! + call SaveUnitHandle(WoWReforgedMounts___MountHashTable, GetHandleId(hero), 0, mount) + if ( hero == (udg_Hero[GetPlayerId((owner))]) and StringLength((WoWReforgedMounts___mountName1[GetPlayerId((owner))])) > 0 ) then // INLINED!! + call BlzSetUnitName(mount, (WoWReforgedMounts___mountName1[GetPlayerId((owner))])) // INLINED!! + elseif ( hero == (udg_Hero2[GetPlayerId((owner))]) and StringLength((WoWReforgedMounts___mountName2[GetPlayerId((owner))])) > 0 ) then // INLINED!! + call BlzSetUnitName(mount, (WoWReforgedMounts___mountName2[GetPlayerId((owner))])) // INLINED!! + elseif ( hero == (udg_Hero3[GetPlayerId((owner))]) and StringLength((WoWReforgedMounts___mountName3[GetPlayerId((owner))])) > 0 ) then // INLINED!! + call BlzSetUnitName(mount, (WoWReforgedMounts___mountName3[GetPlayerId((owner))])) // INLINED!! endif set owner=null endfunction @@ -63275,15 +63275,15 @@ function MountClearAll takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) if ( udg_Hero[playerId] != null ) then - call FlushChildHashtable(WoWReforgedMounts__MountHashTable, GetHandleId((udg_Hero[playerId]))) // INLINED!! + call FlushChildHashtable(WoWReforgedMounts___MountHashTable, GetHandleId((udg_Hero[playerId]))) // INLINED!! endif if ( udg_Hero2[playerId] != null ) then - call FlushChildHashtable(WoWReforgedMounts__MountHashTable, GetHandleId((udg_Hero2[playerId]))) // INLINED!! + call FlushChildHashtable(WoWReforgedMounts___MountHashTable, GetHandleId((udg_Hero2[playerId]))) // INLINED!! endif if ( udg_Hero3[playerId] != null ) then - call FlushChildHashtable(WoWReforgedMounts__MountHashTable, GetHandleId((udg_Hero[playerId]))) // INLINED!! + call FlushChildHashtable(WoWReforgedMounts___MountHashTable, GetHandleId((udg_Hero[playerId]))) // INLINED!! endif endfunction @@ -63305,77 +63305,77 @@ function SelectNextMount takes player whichPlayer returns unit endfunction - function s__WoWReforgedMounts__M_create takes integer unitTypeId,integer abilityId,integer itemTypeId,string accountNames,boolean bonus returns integer - local integer this= s__WoWReforgedMounts__M__allocate() - set s__WoWReforgedMounts__M_unitTypeId[this]=unitTypeId - set s__WoWReforgedMounts__M_abilityId[this]=abilityId - set s__WoWReforgedMounts__M_itemTypeId[this]=itemTypeId - set s__WoWReforgedMounts__M_accountNames[this]=accountNames - set s__WoWReforgedMounts__M_bonus[this]=bonus + function s__WoWReforgedMounts___M_create takes integer unitTypeId,integer abilityId,integer itemTypeId,string accountNames,boolean bonus returns integer + local integer this= s__WoWReforgedMounts___M__allocate() + set s__WoWReforgedMounts___M_unitTypeId[this]=unitTypeId + set s__WoWReforgedMounts___M_abilityId[this]=abilityId + set s__WoWReforgedMounts___M_itemTypeId[this]=itemTypeId + set s__WoWReforgedMounts___M_accountNames[this]=accountNames + set s__WoWReforgedMounts___M_bonus[this]=bonus return this endfunction function GetMountTypesMax takes nothing returns integer - return WoWReforgedMounts__mountTypesCounter + return WoWReforgedMounts___mountTypesCounter endfunction function GetPlayerHasMounts takes player whichPlayer returns boolean - return WoWReforgedMounts__playerHasMounts[GetPlayerId(whichPlayer)] + return WoWReforgedMounts___playerHasMounts[GetPlayerId(whichPlayer)] endfunction function GetMountType takes integer index returns integer - return WoWReforgedMounts__mountTypes[index] + return WoWReforgedMounts___mountTypes[index] endfunction -function WoWReforgedMounts__MakeMountTypesAvailable takes player whichPlayer,boolean available returns nothing - local integer max= (WoWReforgedMounts__mountTypesCounter) // INLINED!! +function WoWReforgedMounts___MakeMountTypesAvailable takes player whichPlayer,boolean available returns nothing + local integer max= (WoWReforgedMounts___mountTypesCounter) // INLINED!! local integer i= 0 loop exitwhen ( i >= max ) - call SetPlayerAbilityAvailable(whichPlayer, s__WoWReforgedMounts__M_abilityId[(WoWReforgedMounts__mountTypes[(i)])], available) // INLINED!! + call SetPlayerAbilityAvailable(whichPlayer, s__WoWReforgedMounts___M_abilityId[(WoWReforgedMounts___mountTypes[(i)])], available) // INLINED!! set i=i + 1 endloop endfunction -function WoWReforgedMounts__SetPlayerHasMounts takes player whichPlayer,boolean flag returns nothing - set WoWReforgedMounts__playerHasMounts[GetPlayerId(whichPlayer)]=flag - call WoWReforgedMounts__MakeMountTypesAvailable(whichPlayer , flag) +function WoWReforgedMounts___SetPlayerHasMounts takes player whichPlayer,boolean flag returns nothing + set WoWReforgedMounts___playerHasMounts[GetPlayerId(whichPlayer)]=flag + call WoWReforgedMounts___MakeMountTypesAvailable(whichPlayer , flag) endfunction function GetMountTypeByItemTypeId takes integer itemTypeId returns integer - local integer max= (WoWReforgedMounts__mountTypesCounter) // INLINED!! + local integer max= (WoWReforgedMounts___mountTypesCounter) // INLINED!! local integer i= 0 loop exitwhen ( i >= max ) - if ( s__WoWReforgedMounts__M_itemTypeId[(WoWReforgedMounts__mountTypes[(i)])] == itemTypeId ) then // INLINED!! - return (WoWReforgedMounts__mountTypes[(i)]) // INLINED!! + if ( s__WoWReforgedMounts___M_itemTypeId[(WoWReforgedMounts___mountTypes[(i)])] == itemTypeId ) then // INLINED!! + return (WoWReforgedMounts___mountTypes[(i)]) // INLINED!! endif set i=i + 1 endloop return 0 endfunction -function WoWReforgedMounts__GetMountTypeByUnitTypeId takes integer unitTypeId returns integer - local integer max= (WoWReforgedMounts__mountTypesCounter) // INLINED!! +function WoWReforgedMounts___GetMountTypeByUnitTypeId takes integer unitTypeId returns integer + local integer max= (WoWReforgedMounts___mountTypesCounter) // INLINED!! local integer i= 0 loop exitwhen ( i >= max ) - if ( s__WoWReforgedMounts__M_unitTypeId[(WoWReforgedMounts__mountTypes[(i)])] == unitTypeId ) then // INLINED!! - return (WoWReforgedMounts__mountTypes[(i)]) // INLINED!! + if ( s__WoWReforgedMounts___M_unitTypeId[(WoWReforgedMounts___mountTypes[(i)])] == unitTypeId ) then // INLINED!! + return (WoWReforgedMounts___mountTypes[(i)]) // INLINED!! endif set i=i + 1 endloop return 0 endfunction -function WoWReforgedMounts__GetMountTypeByAbilityId takes integer abilityId returns integer - local integer max= (WoWReforgedMounts__mountTypesCounter) // INLINED!! +function WoWReforgedMounts___GetMountTypeByAbilityId takes integer abilityId returns integer + local integer max= (WoWReforgedMounts___mountTypesCounter) // INLINED!! local integer i= 0 loop exitwhen ( i >= max ) - if ( s__WoWReforgedMounts__M_abilityId[(WoWReforgedMounts__mountTypes[(i)])] == abilityId ) then // INLINED!! - return (WoWReforgedMounts__mountTypes[(i)]) // INLINED!! + if ( s__WoWReforgedMounts___M_abilityId[(WoWReforgedMounts___mountTypes[(i)])] == abilityId ) then // INLINED!! + return (WoWReforgedMounts___mountTypes[(i)]) // INLINED!! endif set i=i + 1 endloop @@ -63392,9 +63392,9 @@ function GetHeroMountUnitTypeId takes unit hero returns integer if ( BlzGetUnitAbilityByIndex(hero, i) != null ) then set abilityId=BlzGetAbilityId(BlzGetUnitAbilityByIndex(hero, i)) if ( abilityId != 0 ) then - set mount=WoWReforgedMounts__GetMountTypeByAbilityId(abilityId) + set mount=WoWReforgedMounts___GetMountTypeByAbilityId(abilityId) if ( mount != 0 ) then - return s__WoWReforgedMounts__M_unitTypeId[mount] + return s__WoWReforgedMounts___M_unitTypeId[mount] endif endif endif @@ -63404,11 +63404,11 @@ function GetHeroMountUnitTypeId takes unit hero returns integer endfunction function IsMount takes integer unitTypeId returns boolean - return WoWReforgedMounts__GetMountTypeByUnitTypeId(unitTypeId) != 0 + return WoWReforgedMounts___GetMountTypeByUnitTypeId(unitTypeId) != 0 endfunction function AccountCanBuyMount takes string accountName,integer mount returns boolean - local string names= s__WoWReforgedMounts__M_accountNames[mount] + local string names= s__WoWReforgedMounts___M_accountNames[mount] local integer tokenIndex= 0 local string name= "" @@ -63429,21 +63429,21 @@ function AccountCanBuyMount takes string accountName,integer mount returns boole endfunction -function WoWReforgedMounts__ForForceMakeNotAvailable takes nothing returns nothing - call SetPlayerAbilityAvailable(GetEnumPlayer(), WoWReforgedMounts__tmpAbilityId, false) +function WoWReforgedMounts___ForForceMakeNotAvailable takes nothing returns nothing + call SetPlayerAbilityAvailable(GetEnumPlayer(), WoWReforgedMounts___tmpAbilityId, false) endfunction -function WoWReforgedMounts__MakeMountTypesNotAvailable takes integer abilityId returns nothing - set WoWReforgedMounts__tmpAbilityId=abilityId - call ForForce(GetPlayersAll(), function WoWReforgedMounts__ForForceMakeNotAvailable) +function WoWReforgedMounts___MakeMountTypesNotAvailable takes integer abilityId returns nothing + set WoWReforgedMounts___tmpAbilityId=abilityId + call ForForce(GetPlayersAll(), function WoWReforgedMounts___ForForceMakeNotAvailable) endfunction function AddMountType takes nothing returns integer - local integer index= WoWReforgedMounts__mountTypesCounter - local integer m= s__WoWReforgedMounts__M_create(udg_TmpUnitType , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpString , udg_TmpBoolean) - set WoWReforgedMounts__mountTypes[index]=m - set WoWReforgedMounts__mountTypesCounter=WoWReforgedMounts__mountTypesCounter + 1 - call WoWReforgedMounts__MakeMountTypesNotAvailable(udg_TmpAbilityCode) + local integer index= WoWReforgedMounts___mountTypesCounter + local integer m= s__WoWReforgedMounts___M_create(udg_TmpUnitType , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpString , udg_TmpBoolean) + set WoWReforgedMounts___mountTypes[index]=m + set WoWReforgedMounts___mountTypesCounter=WoWReforgedMounts___mountTypesCounter + 1 + call WoWReforgedMounts___MakeMountTypesNotAvailable(udg_TmpAbilityCode) set udg_TmpBoolean=false set udg_TmpString="" return m @@ -63456,7 +63456,7 @@ function RemoveRunningWildAbilities takes unit hero returns nothing call UnitRemoveAbility(hero, WoWReforgedMounts_RUNNING_WILD_GREYMANE) endfunction -function WoWReforgedMounts__GetRunningWildAbilityId takes integer unitTypeId returns integer +function WoWReforgedMounts___GetRunningWildAbilityId takes integer unitTypeId returns integer if ( unitTypeId == WoWReforgedMounts_WORGEN_DEATH_KNIGHT ) then return WoWReforgedMounts_RUNNING_WILD_WORGEN_DEATH_KNIGHT elseif ( unitTypeId == WoWReforgedMounts_WORGEN_DEATHCLAW ) then @@ -63467,55 +63467,55 @@ function WoWReforgedMounts__GetRunningWildAbilityId takes integer unitTypeId ret return - 1 endfunction -function WoWReforgedMounts__IsWorgenHero takes integer unitTypeId returns boolean +function WoWReforgedMounts___IsWorgenHero takes integer unitTypeId returns boolean return unitTypeId == WoWReforgedMounts_WORGEN_DEATH_KNIGHT or unitTypeId == WoWReforgedMounts_WORGEN_DEATHCLAW endfunction -function WoWReforgedMounts__IsEvokerHero takes integer unitTypeId returns boolean +function WoWReforgedMounts___IsEvokerHero takes integer unitTypeId returns boolean return unitTypeId == WoWReforgedMounts_EVOKER endfunction -function WoWReforgedMounts__RemoveMountTypeAbilities takes unit hero returns nothing - local integer max= (WoWReforgedMounts__mountTypesCounter) // INLINED!! +function WoWReforgedMounts___RemoveMountTypeAbilities takes unit hero returns nothing + local integer max= (WoWReforgedMounts___mountTypesCounter) // INLINED!! local integer i= 0 loop exitwhen ( i >= max ) - call UnitRemoveAbility(hero, s__WoWReforgedMounts__M_abilityId[(WoWReforgedMounts__mountTypes[(i)])]) // INLINED!! + call UnitRemoveAbility(hero, s__WoWReforgedMounts___M_abilityId[(WoWReforgedMounts___mountTypes[(i)])]) // INLINED!! set i=i + 1 endloop call RemoveRunningWildAbilities(hero) endfunction -function WoWReforgedMounts__ReplaceMountType takes unit hero,integer m returns nothing - local integer abilityId= s__WoWReforgedMounts__M_abilityId[m] - local boolean isRunningWild= s__WoWReforgedMounts__M_itemTypeId[m] == WoWReforgedMounts_RUNNING_WILD_ITEM_TYPE_ID - call WoWReforgedMounts__RemoveMountTypeAbilities(hero) +function WoWReforgedMounts___ReplaceMountType takes unit hero,integer m returns nothing + local integer abilityId= s__WoWReforgedMounts___M_abilityId[m] + local boolean isRunningWild= s__WoWReforgedMounts___M_itemTypeId[m] == WoWReforgedMounts_RUNNING_WILD_ITEM_TYPE_ID + call WoWReforgedMounts___RemoveMountTypeAbilities(hero) if ( isRunningWild ) then - set abilityId=WoWReforgedMounts__GetRunningWildAbilityId(GetUnitTypeId(hero)) + set abilityId=WoWReforgedMounts___GetRunningWildAbilityId(GetUnitTypeId(hero)) endif if ( abilityId != - 1 ) then - call UnitAddAbility(hero, s__WoWReforgedMounts__M_abilityId[m]) - call UnitMakeAbilityPermanent(hero, true, s__WoWReforgedMounts__M_abilityId[m]) + call UnitAddAbility(hero, s__WoWReforgedMounts___M_abilityId[m]) + call UnitMakeAbilityPermanent(hero, true, s__WoWReforgedMounts___M_abilityId[m]) else call SimError(GetOwningPlayer(hero) , "Unable to add mount ability.") endif endfunction -function WoWReforgedMounts__TriggerConditionSellMount takes nothing returns boolean +function WoWReforgedMounts___TriggerConditionSellMount takes nothing returns boolean local unit hero= GetBuyingUnit() local player owner= GetOwningPlayer(hero) local integer unitTypeId= GetUnitTypeId(hero) local integer itemTypeId= GetItemTypeId(GetSoldItem()) local integer m= GetMountTypeByItemTypeId(itemTypeId) if ( m != 0 ) then - if ( not s__WoWReforgedMounts__M_bonus[m] or udg_UnlockedAll or GetHeroLevel1(owner) >= 55 or (IsPlayerInForce((owner), WoWReforgedVIPs__vipPlayers)) ) then // INLINED!! + if ( not s__WoWReforgedMounts___M_bonus[m] or udg_UnlockedAll or GetHeroLevel1(owner) >= 55 or (IsPlayerInForce((owner), WoWReforgedVIPs__vipPlayers)) ) then // INLINED!! if ( AccountCanBuyMount(GetPlayerName(owner) , m) ) then if ( unitTypeId != BACK_PACK and unitTypeId != EQUIPMENT_BAG ) then - if ( (WoWReforgedMounts__playerHasMounts[GetPlayerId((owner))]) or udg_UnlockedAll ) then // INLINED!! - if ( itemTypeId != WoWReforgedMounts_RUNNING_WILD_ITEM_TYPE_ID or WoWReforgedMounts__IsWorgenHero(unitTypeId) ) then + if ( (WoWReforgedMounts___playerHasMounts[GetPlayerId((owner))]) or udg_UnlockedAll ) then // INLINED!! + if ( itemTypeId != WoWReforgedMounts_RUNNING_WILD_ITEM_TYPE_ID or WoWReforgedMounts___IsWorgenHero(unitTypeId) ) then if ( itemTypeId != WoWReforgedMounts_DRAGON_FORM_ITEM_TYPE_ID or ((unitTypeId) == WoWReforgedMounts_EVOKER) ) then // INLINED!! - call WoWReforgedMounts__ReplaceMountType(hero , m) - call h__DisplayTextToPlayer(owner, 0.0, 0.0, "Adding mount " + GetObjectName(s__WoWReforgedMounts__M_unitTypeId[m])) + call WoWReforgedMounts___ReplaceMountType(hero , m) + call h__DisplayTextToPlayer(owner, 0.0, 0.0, "Adding mount " + GetObjectName(s__WoWReforgedMounts___M_unitTypeId[m])) else call SimError(owner , "Only Dracthyr heroes can learn this.") endif @@ -63529,7 +63529,7 @@ function WoWReforgedMounts__TriggerConditionSellMount takes nothing returns bool call SimError(owner , "Only your heroes can change their mounts.") endif else - call SimError(owner , "The mount is restricted to account names: " + s__WoWReforgedMounts__M_accountNames[m]) + call SimError(owner , "The mount is restricted to account names: " + s__WoWReforgedMounts___M_accountNames[m]) endif else call SimError(owner , "Bonus mounts require VIPs, hero level 55 or -unlock.") @@ -63540,11 +63540,11 @@ function WoWReforgedMounts__TriggerConditionSellMount takes nothing returns bool return false endfunction -function WoWReforgedMounts__TriggerConditionLevel takes nothing returns boolean +function WoWReforgedMounts___TriggerConditionLevel takes nothing returns boolean local unit hero= GetLevelingUnit() local player owner= GetOwningPlayer(hero) - if ( (udg_Hero[GetPlayerId((owner))]) == hero and GetHeroLevel(hero) >= WoWReforgedMounts_MOUNTS_HERO_LEVEL and not (WoWReforgedMounts__playerHasMounts[GetPlayerId((owner))]) ) then // INLINED!! - call WoWReforgedMounts__SetPlayerHasMounts(owner , true) + if ( (udg_Hero[GetPlayerId((owner))]) == hero and GetHeroLevel(hero) >= WoWReforgedMounts_MOUNTS_HERO_LEVEL and not (WoWReforgedMounts___playerHasMounts[GetPlayerId((owner))]) ) then // INLINED!! + call WoWReforgedMounts___SetPlayerHasMounts(owner , true) endif set hero=null set owner=null @@ -63552,10 +63552,10 @@ function WoWReforgedMounts__TriggerConditionLevel takes nothing returns boolean return false endfunction -function WoWReforgedMounts__TriggerConditionSummonMount takes nothing returns boolean +function WoWReforgedMounts___TriggerConditionSummonMount takes nothing returns boolean local unit hero= GetSummoningUnit() local unit mount= GetSummonedUnit() - if ( WoWReforgedMounts__GetMountTypeByUnitTypeId(GetUnitTypeId(mount)) != 0 ) then + if ( WoWReforgedMounts___GetMountTypeByUnitTypeId(GetUnitTypeId(mount)) != 0 ) then call MountReplace(hero , mount) endif set hero=null @@ -63564,50 +63564,50 @@ function WoWReforgedMounts__TriggerConditionSummonMount takes nothing returns bo return false endfunction -function WoWReforgedMounts__AddMountTypesToShop takes unit shop returns nothing - local integer max= (WoWReforgedMounts__mountTypesCounter) // INLINED!! +function WoWReforgedMounts___AddMountTypesToShop takes unit shop returns nothing + local integer max= (WoWReforgedMounts___mountTypesCounter) // INLINED!! local integer i= 0 call EnablePagedButtons(shop) loop exitwhen ( i >= max ) -call AddPagedButtonsId((shop ) , ( s__WoWReforgedMounts__M_itemTypeId[(WoWReforgedMounts__mountTypes[(i)])]) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! +call AddPagedButtonsId((shop ) , ( s__WoWReforgedMounts___M_itemTypeId[(WoWReforgedMounts___mountTypes[(i)])]) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! set i=i + 1 endloop endfunction -function WoWReforgedMounts__TriggerConditionConstructionFinish takes nothing returns boolean +function WoWReforgedMounts___TriggerConditionConstructionFinish takes nothing returns boolean local unit shop= GetConstructedStructure() if ( GetUnitTypeId(shop) == WoWReforgedMounts_MOUNTS_CAGE ) then - call WoWReforgedMounts__AddMountTypesToShop(shop) + call WoWReforgedMounts___AddMountTypesToShop(shop) endif set shop=null return false endfunction -function WoWReforgedMounts__ForGroupAddShop takes nothing returns nothing - call WoWReforgedMounts__AddMountTypesToShop(GetEnumUnit()) +function WoWReforgedMounts___ForGroupAddShop takes nothing returns nothing + call WoWReforgedMounts___AddMountTypesToShop(GetEnumUnit()) endfunction function AddMountShops takes nothing returns nothing local group shops= GetUnitsOfTypeIdAll(MOUNTS_SHOP) - call ForGroup(shops, function WoWReforgedMounts__ForGroupAddShop) + call ForGroup(shops, function WoWReforgedMounts___ForGroupAddShop) call GroupClear(shops) call DestroyGroup(shops) set shops=null endfunction -function WoWReforgedMounts__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedMounts__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedMounts__sellTrigger, Condition(function WoWReforgedMounts__TriggerConditionSellMount)) +function WoWReforgedMounts___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedMounts___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedMounts___sellTrigger, Condition(function WoWReforgedMounts___TriggerConditionSellMount)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedMounts__levelTrigger, EVENT_PLAYER_HERO_LEVEL) - call TriggerAddCondition(WoWReforgedMounts__levelTrigger, Condition(function WoWReforgedMounts__TriggerConditionLevel)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedMounts___levelTrigger, EVENT_PLAYER_HERO_LEVEL) + call TriggerAddCondition(WoWReforgedMounts___levelTrigger, Condition(function WoWReforgedMounts___TriggerConditionLevel)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedMounts__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(WoWReforgedMounts__summonTrigger, Condition(function WoWReforgedMounts__TriggerConditionSummonMount)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedMounts___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(WoWReforgedMounts___summonTrigger, Condition(function WoWReforgedMounts___TriggerConditionSummonMount)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedMounts__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedMounts__constructionTrigger, Condition(function WoWReforgedMounts__TriggerConditionConstructionFinish)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedMounts___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedMounts___constructionTrigger, Condition(function WoWReforgedMounts___TriggerConditionConstructionFinish)) endfunction @@ -63797,12 +63797,12 @@ function IsWaterRaceUnit takes integer t returns boolean endfunction function SetRaceObjectType takes integer whichRace,integer objectType,integer objectTypeId returns nothing - call SaveInteger(WoWReforgedRaces___objectTypeHashTable, objectTypeId, whichRace, objectType) - call SaveInteger(WoWReforgedRaces___objectTypeIdHashTable, objectType, whichRace, objectTypeId) + call SaveInteger(WoWReforgedRaces__objectTypeHashTable, objectTypeId, whichRace, objectType) + call SaveInteger(WoWReforgedRaces__objectTypeIdHashTable, objectType, whichRace, objectTypeId) endfunction function GetRaceObjectType takes integer whichRace,integer objectTypeId returns integer - return LoadInteger(WoWReforgedRaces___objectTypeHashTable, objectTypeId, whichRace) + return LoadInteger(WoWReforgedRaces__objectTypeHashTable, objectTypeId, whichRace) endfunction function GetRaceObjectTypeIncludingDependencyEquivalents takes integer whichRace,integer objectTypeId returns integer @@ -63810,7 +63810,7 @@ function GetRaceObjectTypeIncludingDependencyEquivalents takes integer whichRace endfunction function GetRaceObjectTypeId takes integer whichRace,integer objectType returns integer - return LoadInteger(WoWReforgedRaces___objectTypeIdHashTable, objectType, whichRace) + return LoadInteger(WoWReforgedRaces__objectTypeIdHashTable, objectType, whichRace) endfunction function GetObjectRace takes integer objectTypeId returns integer @@ -64261,9 +64261,9 @@ function IsCitizen takes integer objectTypeId returns boolean endfunction function AddCreep takes integer objectTypeId returns integer - local integer index= WoWReforgedRaces___objectTypeCreepsCounter - set WoWReforgedRaces___objectTypeCreeps[index]=objectTypeId - set WoWReforgedRaces___objectTypeCreepsCounter=WoWReforgedRaces___objectTypeCreepsCounter + 1 + local integer index= WoWReforgedRaces__objectTypeCreepsCounter + set WoWReforgedRaces__objectTypeCreeps[index]=objectTypeId + set WoWReforgedRaces__objectTypeCreepsCounter=WoWReforgedRaces__objectTypeCreepsCounter + 1 return index endfunction @@ -64272,17 +64272,17 @@ function AddCreepWoWReforged takes nothing returns integer endfunction function GetCreepsMax takes nothing returns integer - return WoWReforgedRaces___objectTypeCreepsCounter + return WoWReforgedRaces__objectTypeCreepsCounter endfunction function GetCreep takes integer index returns integer - return WoWReforgedRaces___objectTypeCreeps[index] + return WoWReforgedRaces__objectTypeCreeps[index] endfunction function AddNeutralUnit takes integer objectTypeId returns integer - local integer index= WoWReforgedRaces___objectTypeNeutralUnitsCounter - set WoWReforgedRaces___objectTypeNeutralUnits[index]=objectTypeId - set WoWReforgedRaces___objectTypeNeutralUnitsCounter=WoWReforgedRaces___objectTypeNeutralUnitsCounter + 1 + local integer index= WoWReforgedRaces__objectTypeNeutralUnitsCounter + set WoWReforgedRaces__objectTypeNeutralUnits[index]=objectTypeId + set WoWReforgedRaces__objectTypeNeutralUnitsCounter=WoWReforgedRaces__objectTypeNeutralUnitsCounter + 1 return index endfunction @@ -64291,17 +64291,17 @@ function AddNeutralUnitWoWReforged takes nothing returns integer endfunction function GetNeutralUnitsMax takes nothing returns integer - return WoWReforgedRaces___objectTypeNeutralUnitsCounter + return WoWReforgedRaces__objectTypeNeutralUnitsCounter endfunction function GetNeutralUnit takes integer index returns integer - return WoWReforgedRaces___objectTypeNeutralUnits[index] + return WoWReforgedRaces__objectTypeNeutralUnits[index] endfunction function AddNeutralBuilding takes integer objectTypeId returns integer - local integer index= WoWReforgedRaces___objectTypeNeutralBuildingsCounter - set WoWReforgedRaces___objectTypeNeutralBuildings[index]=objectTypeId - set WoWReforgedRaces___objectTypeNeutralBuildingsCounter=WoWReforgedRaces___objectTypeNeutralBuildingsCounter + 1 + local integer index= WoWReforgedRaces__objectTypeNeutralBuildingsCounter + set WoWReforgedRaces__objectTypeNeutralBuildings[index]=objectTypeId + set WoWReforgedRaces__objectTypeNeutralBuildingsCounter=WoWReforgedRaces__objectTypeNeutralBuildingsCounter + 1 return index endfunction @@ -64310,19 +64310,19 @@ function AddNeutralBuildingWoWReforged takes nothing returns integer endfunction function GetNeutralBuildingsMax takes nothing returns integer - return WoWReforgedRaces___objectTypeNeutralBuildingsCounter + return WoWReforgedRaces__objectTypeNeutralBuildingsCounter endfunction function GetNeutralBuilding takes integer index returns integer - return WoWReforgedRaces___objectTypeNeutralBuildings[index] + return WoWReforgedRaces__objectTypeNeutralBuildings[index] endfunction function IsNeutralBuilding takes integer unitTypeId returns boolean local integer i= 0 - local integer max= (WoWReforgedRaces___objectTypeNeutralBuildingsCounter) // INLINED!! + local integer max= (WoWReforgedRaces__objectTypeNeutralBuildingsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( unitTypeId == (WoWReforgedRaces___objectTypeNeutralBuildings[(i)]) ) then // INLINED!! + if ( unitTypeId == (WoWReforgedRaces__objectTypeNeutralBuildings[(i)]) ) then // INLINED!! return true endif set i=i + 1 @@ -64358,11 +64358,11 @@ function AddNeutralBuildingMercenaryCamps takes nothing returns nothing endfunction function AddAbility takes integer objectTypeId,integer levels,integer whichRace returns integer - local integer index= WoWReforgedRaces___objectTypeAbilitiesCounter - set WoWReforgedRaces___objectTypeAbilities[index]=objectTypeId - set WoWReforgedRaces___objectTypeAbilitiesLevels[index]=levels - set WoWReforgedRaces___objectTypeAbilitiesRace[index]=whichRace - set WoWReforgedRaces___objectTypeAbilitiesCounter=WoWReforgedRaces___objectTypeAbilitiesCounter + 1 + local integer index= WoWReforgedRaces__objectTypeAbilitiesCounter + set WoWReforgedRaces__objectTypeAbilities[index]=objectTypeId + set WoWReforgedRaces__objectTypeAbilitiesLevels[index]=levels + set WoWReforgedRaces__objectTypeAbilitiesRace[index]=whichRace + set WoWReforgedRaces__objectTypeAbilitiesCounter=WoWReforgedRaces__objectTypeAbilitiesCounter + 1 return index endfunction @@ -64371,19 +64371,19 @@ function AddAbilityWoWReforged takes nothing returns integer endfunction function GetAbilitiesMax takes nothing returns integer - return WoWReforgedRaces___objectTypeAbilitiesCounter + return WoWReforgedRaces__objectTypeAbilitiesCounter endfunction function GetAbility takes integer index returns integer - return WoWReforgedRaces___objectTypeAbilities[index] + return WoWReforgedRaces__objectTypeAbilities[index] endfunction function GetAbilityLevels takes integer index returns integer - return WoWReforgedRaces___objectTypeAbilitiesLevels[index] + return WoWReforgedRaces__objectTypeAbilitiesLevels[index] endfunction function GetAbilityRace takes integer index returns integer - return WoWReforgedRaces___objectTypeAbilitiesRace[index] + return WoWReforgedRaces__objectTypeAbilitiesRace[index] endfunction function IsRaceBonus takes integer r returns boolean @@ -64427,7 +64427,7 @@ function AddWoWReforgedRace takes nothing returns integer call SetRaceObjectType(r , RACE_OBJECT_TYPE_SCEPTER_ITEM , udg_TmpItemTypeId2) call SetRaceObjectType(r , RACE_OBJECT_TYPE_TIER_1_ITEM , udg_TmpItemTypeId3) - set WoWReforgedIcons__raceIcons[(r )]=( GetIconByItemType(udg_TmpItemTypeId)) // INLINED!! + set WoWReforgedIcons___raceIcons[(r )]=( GetIconByItemType(udg_TmpItemTypeId)) // INLINED!! set udg_TmpBoolean=false set udg_TmpBoolean2=false @@ -64796,56 +64796,56 @@ endfunction //library WoWReforgedStandardHeroAbilities: - function s__WoWReforgedStandardHeroAbilities___A_create takes integer itemTypeId,integer abilityId,integer maxLevel,boolean requiresVIP,boolean requiresReskillable,boolean requiresAncientStructure,boolean notAvailable returns integer - local integer this= s__WoWReforgedStandardHeroAbilities___A__allocate() - set s__WoWReforgedStandardHeroAbilities___A_itemTypeId[this]=itemTypeId - set s__WoWReforgedStandardHeroAbilities___A_abilityId[this]=abilityId - set s__WoWReforgedStandardHeroAbilities___A_maxLevel[this]=maxLevel - set s__WoWReforgedStandardHeroAbilities___A_requiresVIP[this]=requiresVIP - set s__WoWReforgedStandardHeroAbilities___A_requiresReskillable[this]=requiresReskillable - set s__WoWReforgedStandardHeroAbilities___A_requiresAncientStructure[this]=requiresAncientStructure - set s__WoWReforgedStandardHeroAbilities___A_notAvailable[this]=notAvailable + function s__WoWReforgedStandardHeroAbilities__A_create takes integer itemTypeId,integer abilityId,integer maxLevel,boolean requiresVIP,boolean requiresReskillable,boolean requiresAncientStructure,boolean notAvailable returns integer + local integer this= s__WoWReforgedStandardHeroAbilities__A__allocate() + set s__WoWReforgedStandardHeroAbilities__A_itemTypeId[this]=itemTypeId + set s__WoWReforgedStandardHeroAbilities__A_abilityId[this]=abilityId + set s__WoWReforgedStandardHeroAbilities__A_maxLevel[this]=maxLevel + set s__WoWReforgedStandardHeroAbilities__A_requiresVIP[this]=requiresVIP + set s__WoWReforgedStandardHeroAbilities__A_requiresReskillable[this]=requiresReskillable + set s__WoWReforgedStandardHeroAbilities__A_requiresAncientStructure[this]=requiresAncientStructure + set s__WoWReforgedStandardHeroAbilities__A_notAvailable[this]=notAvailable return this endfunction function GetStandardHeroAbilitiesMax takes nothing returns integer - return WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter + return WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter endfunction function GetStandardHeroAbilityItemTypeId takes integer index returns integer - return s__WoWReforgedStandardHeroAbilities___A_itemTypeId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[index]] + return s__WoWReforgedStandardHeroAbilities__A_itemTypeId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[index]] endfunction function GetStandardHeroAbilityAbilityId takes integer index returns integer - return s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[index]] + return s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[index]] endfunction function GetStandardHeroAbilityMaxLevel takes integer index returns integer - return s__WoWReforgedStandardHeroAbilities___A_maxLevel[WoWReforgedStandardHeroAbilities___standardHeroAbilities[index]] + return s__WoWReforgedStandardHeroAbilities__A_maxLevel[WoWReforgedStandardHeroAbilities__standardHeroAbilities[index]] endfunction function GetStandardHeroAbilityRequiresVIP takes integer index returns boolean - return s__WoWReforgedStandardHeroAbilities___A_requiresVIP[WoWReforgedStandardHeroAbilities___standardHeroAbilities[index]] + return s__WoWReforgedStandardHeroAbilities__A_requiresVIP[WoWReforgedStandardHeroAbilities__standardHeroAbilities[index]] endfunction function GetStandardHeroAbilityRequiresReskillable takes integer index returns boolean - return s__WoWReforgedStandardHeroAbilities___A_requiresReskillable[WoWReforgedStandardHeroAbilities___standardHeroAbilities[index]] + return s__WoWReforgedStandardHeroAbilities__A_requiresReskillable[WoWReforgedStandardHeroAbilities__standardHeroAbilities[index]] endfunction function GetStandardHeroAbilityRequiresAncientStructure takes integer index returns boolean - return s__WoWReforgedStandardHeroAbilities___A_requiresAncientStructure[WoWReforgedStandardHeroAbilities___standardHeroAbilities[index]] + return s__WoWReforgedStandardHeroAbilities__A_requiresAncientStructure[WoWReforgedStandardHeroAbilities__standardHeroAbilities[index]] endfunction function GetStandardHeroAbilityNotAvailable takes integer index returns boolean - return s__WoWReforgedStandardHeroAbilities___A_notAvailable[WoWReforgedStandardHeroAbilities___standardHeroAbilities[index]] + return s__WoWReforgedStandardHeroAbilities__A_notAvailable[WoWReforgedStandardHeroAbilities__standardHeroAbilities[index]] endfunction function AddStandardHeroAbility takes integer itemTypeId,integer abilityId,integer maxLevel,boolean requiresVIP,boolean requiresReskillable,boolean requiresAncientStructure,boolean notAvailable returns integer - local integer a= s__WoWReforgedStandardHeroAbilities___A_create(itemTypeId , abilityId , maxLevel , requiresVIP , requiresReskillable , requiresAncientStructure , notAvailable) - set WoWReforgedStandardHeroAbilities___standardHeroAbilities[WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter]=a - set WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter=WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter + 1 + local integer a= s__WoWReforgedStandardHeroAbilities__A_create(itemTypeId , abilityId , maxLevel , requiresVIP , requiresReskillable , requiresAncientStructure , notAvailable) + set WoWReforgedStandardHeroAbilities__standardHeroAbilities[WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter]=a + set WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter=WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter + 1 return a endfunction @@ -64861,8 +64861,8 @@ endfunction function GetStandardHeroAbilityByItemTypeId takes integer itemTypeId returns integer local integer i= 0 loop - exitwhen ( i == WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter ) - if ( (s__WoWReforgedStandardHeroAbilities___A_itemTypeId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(i)]]) == itemTypeId ) then // INLINED!! + exitwhen ( i == WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter ) + if ( (s__WoWReforgedStandardHeroAbilities__A_itemTypeId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(i)]]) == itemTypeId ) then // INLINED!! return i endif set i=i + 1 @@ -64873,8 +64873,8 @@ endfunction function GetStandardHeroAbility takes unit hero returns integer local integer i= 0 loop - exitwhen ( i >= WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter ) - if ( GetUnitAbilityLevel(hero, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(i)]])) > 0 ) then // INLINED!! + exitwhen ( i >= WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter ) + if ( GetUnitAbilityLevel(hero, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(i)]])) > 0 ) then // INLINED!! return i endif set i=i + 1 @@ -64885,8 +64885,8 @@ endfunction function GetAvailableStandardHeroAbility takes unit hero returns integer local integer i= 0 loop - exitwhen ( i >= WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter ) - if ( GetUnitAbilityLevel(hero, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(i)]])) > 0 and (s__WoWReforgedStandardHeroAbilities___A_notAvailable[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(i)]]) ) then // INLINED!! + exitwhen ( i >= WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter ) + if ( GetUnitAbilityLevel(hero, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(i)]])) > 0 and (s__WoWReforgedStandardHeroAbilities__A_notAvailable[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(i)]]) ) then // INLINED!! return i endif set i=i + 1 @@ -64898,7 +64898,7 @@ function SetStandardHeroAbilityEnabled takes unit hero,boolean enabled returns n local integer index= GetAvailableStandardHeroAbility(hero) if ( index != - 1 ) then //call BJDebugMsg("Enable/disable standard hero ability " + GetObjectName( GetStandardHeroAbilityAbilityId(index))) - call BlzUnitDisableAbility(hero, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]]), not enabled, not enabled) // INLINED!! + call BlzUnitDisableAbility(hero, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]]), not enabled, not enabled) // INLINED!! endif endfunction @@ -64913,20 +64913,20 @@ endfunction function RemoveStandardHeroAbilitiesForHero takes unit hero returns nothing local integer i= 0 loop - exitwhen ( i == WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter ) - call UnitRemoveAbility(hero, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(i)]])) // INLINED!! + exitwhen ( i == WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter ) + call UnitRemoveAbility(hero, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(i)]])) // INLINED!! set i=i + 1 endloop endfunction -function WoWReforgedStandardHeroAbilities___AddStandardHeroAbilitiesToShop takes unit shop returns nothing - local integer max= (WoWReforgedStandardHeroAbilities___standardHeroAbilitiesCounter) // INLINED!! +function WoWReforgedStandardHeroAbilities__AddStandardHeroAbilitiesToShop takes unit shop returns nothing + local integer max= (WoWReforgedStandardHeroAbilities__standardHeroAbilitiesCounter) // INLINED!! local integer i= 0 //call BJDebugMsg("Before enabling shop " + GetUnitName(shop) + " with " + I2S(max) + " total learnable skills.") call EnablePagedButtons(shop) loop exitwhen ( i >= max ) -call AddPagedButtonsId((shop ) , ( (s__WoWReforgedStandardHeroAbilities___A_itemTypeId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(i)]])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! +call AddPagedButtonsId((shop ) , ( (s__WoWReforgedStandardHeroAbilities__A_itemTypeId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(i)]])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! set i=i + 1 endloop //call BJDebugMsg("Before enabling paged buttons for shop " + GetUnitName(shop) + " with " + I2S(max) + " total learnable skills.") @@ -64962,7 +64962,7 @@ function IsAncientStructureHero takes integer unitTypeId returns boolean return false endfunction -function WoWReforgedStandardHeroAbilities___TriggerConditionSellItem takes nothing returns boolean +function WoWReforgedStandardHeroAbilities__TriggerConditionSellItem takes nothing returns boolean local unit hero= GetBuyingUnit() local player owner= GetOwningPlayer(hero) local integer unitTypeId= GetUnitTypeId(hero) @@ -64970,15 +64970,15 @@ function WoWReforgedStandardHeroAbilities___TriggerConditionSellItem takes nothi local integer index= GetStandardHeroAbilityByItemTypeId(GetItemTypeId(soldItem)) if ( index != - 1 ) then if ( IsUnitType(hero, UNIT_TYPE_HERO) and unitTypeId != EQUIPMENT_BAG and unitTypeId != BACK_PACK and unitTypeId != HERO_SELECTOR and not IsUnitTypeNavyHero(unitTypeId) ) then - if ( not (s__WoWReforgedStandardHeroAbilities___A_notAvailable[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]]) ) then // INLINED!! + if ( not (s__WoWReforgedStandardHeroAbilities__A_notAvailable[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]]) ) then // INLINED!! if ( GetHighestHeroLevel(owner) >= udg_HeroJourneyLevelHeroAbilities or udg_UnlockedAll or (IsPlayerInForce((owner), WoWReforgedVIPs__vipPlayers)) ) then // INLINED!! - if ( not (s__WoWReforgedStandardHeroAbilities___A_requiresVIP[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]]) or udg_UnlockedAll or (IsPlayerInForce((owner), WoWReforgedVIPs__vipPlayers)) ) then // INLINED!! - if ( not (s__WoWReforgedStandardHeroAbilities___A_requiresReskillable[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]]) or IsReskillableHero(unitTypeId) ) then // INLINED!! - if ( not (s__WoWReforgedStandardHeroAbilities___A_requiresAncientStructure[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]]) or IsAncientStructureHero(unitTypeId) ) then // INLINED!! + if ( not (s__WoWReforgedStandardHeroAbilities__A_requiresVIP[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]]) or udg_UnlockedAll or (IsPlayerInForce((owner), WoWReforgedVIPs__vipPlayers)) ) then // INLINED!! + if ( not (s__WoWReforgedStandardHeroAbilities__A_requiresReskillable[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]]) or IsReskillableHero(unitTypeId) ) then // INLINED!! + if ( not (s__WoWReforgedStandardHeroAbilities__A_requiresAncientStructure[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]]) or IsAncientStructureHero(unitTypeId) ) then // INLINED!! call RemoveStandardHeroAbilitiesForHero(hero) - call UnitAddAbility(hero, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]])) // INLINED!! - call UnitMakeAbilityPermanent(hero, true, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]])) // INLINED!! - call h__DisplayTextToPlayer(owner, 0.0, 0.0, "Adding ability " + GetAbilityName((s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]])) + ".") // INLINED!! + call UnitAddAbility(hero, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]])) // INLINED!! + call UnitMakeAbilityPermanent(hero, true, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]])) // INLINED!! + call h__DisplayTextToPlayer(owner, 0.0, 0.0, "Adding ability " + GetAbilityName((s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]])) + ".") // INLINED!! else call SimError(owner , "Only available for Ancient structure heroes.") endif @@ -65005,49 +65005,49 @@ function WoWReforgedStandardHeroAbilities___TriggerConditionSellItem takes nothi return false endfunction -function WoWReforgedStandardHeroAbilities___IsUnitTypeStandardHeroAbilitiesShop takes integer unitTypeId returns boolean +function WoWReforgedStandardHeroAbilities__IsUnitTypeStandardHeroAbilitiesShop takes integer unitTypeId returns boolean return unitTypeId == HERO_ABILITIES or unitTypeId == HERO_ABILITIES_NEUTRAL endfunction -function WoWReforgedStandardHeroAbilities___IsUnitStandardHeroAbilitiesShop takes unit whichUnit returns boolean - return WoWReforgedStandardHeroAbilities___IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId(whichUnit)) +function WoWReforgedStandardHeroAbilities__IsUnitStandardHeroAbilitiesShop takes unit whichUnit returns boolean + return WoWReforgedStandardHeroAbilities__IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId(whichUnit)) endfunction -function WoWReforgedStandardHeroAbilities___TriggerConditionConstructed takes nothing returns boolean - if ( (WoWReforgedStandardHeroAbilities___IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId((GetTriggerUnit())))) ) then // INLINED!! - call WoWReforgedStandardHeroAbilities___AddStandardHeroAbilitiesToShop(GetConstructedStructure()) +function WoWReforgedStandardHeroAbilities__TriggerConditionConstructed takes nothing returns boolean + if ( (WoWReforgedStandardHeroAbilities__IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId((GetTriggerUnit())))) ) then // INLINED!! + call WoWReforgedStandardHeroAbilities__AddStandardHeroAbilitiesToShop(GetConstructedStructure()) endif return false endfunction -function WoWReforgedStandardHeroAbilities___TriggerConditionSummoned takes nothing returns boolean - if ( (WoWReforgedStandardHeroAbilities___IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId((GetSummonedUnit())))) ) then // INLINED!! - call WoWReforgedStandardHeroAbilities___AddStandardHeroAbilitiesToShop(GetSummonedUnit()) +function WoWReforgedStandardHeroAbilities__TriggerConditionSummoned takes nothing returns boolean + if ( (WoWReforgedStandardHeroAbilities__IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId((GetSummonedUnit())))) ) then // INLINED!! + call WoWReforgedStandardHeroAbilities__AddStandardHeroAbilitiesToShop(GetSummonedUnit()) endif return false endfunction -function WoWReforgedStandardHeroAbilities___TriggerConditionDeath takes nothing returns boolean - if ( (WoWReforgedStandardHeroAbilities___IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId((GetTriggerUnit())))) ) then // INLINED!! +function WoWReforgedStandardHeroAbilities__TriggerConditionDeath takes nothing returns boolean + if ( (WoWReforgedStandardHeroAbilities__IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId((GetTriggerUnit())))) ) then // INLINED!! // TODO Disable shop manually? //call ClearSkillsShop(GetTriggerUnit()) endif return false endfunction -function WoWReforgedStandardHeroAbilities___ForGroupEnableShop takes nothing returns nothing - call WoWReforgedStandardHeroAbilities___AddStandardHeroAbilitiesToShop(GetEnumUnit()) +function WoWReforgedStandardHeroAbilities__ForGroupEnableShop takes nothing returns nothing + call WoWReforgedStandardHeroAbilities__AddStandardHeroAbilitiesToShop(GetEnumUnit()) endfunction -function WoWReforgedStandardHeroAbilities___FilterBuilding takes nothing returns boolean - return (WoWReforgedStandardHeroAbilities___IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId((GetFilterUnit())))) // INLINED!! +function WoWReforgedStandardHeroAbilities__FilterBuilding takes nothing returns boolean + return (WoWReforgedStandardHeroAbilities__IsUnitTypeStandardHeroAbilitiesShop(GetUnitTypeId((GetFilterUnit())))) // INLINED!! endfunction -function WoWReforgedStandardHeroAbilities___UpdateAllShops takes nothing returns nothing +function WoWReforgedStandardHeroAbilities__UpdateAllShops takes nothing returns nothing local group g= CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedStandardHeroAbilities___FilterBuilding)) - call ForGroup(g, function WoWReforgedStandardHeroAbilities___ForGroupEnableShop) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedStandardHeroAbilities__FilterBuilding)) + call ForGroup(g, function WoWReforgedStandardHeroAbilities__ForGroupEnableShop) call GroupClear(g) call DestroyGroup(g) @@ -65059,32 +65059,32 @@ function WoWReforgedStandardHeroAbilities___UpdateAllShops takes nothing returns call DestroyTimer(GetExpiredTimer()) endfunction -function WoWReforgedStandardHeroAbilities___TriggerConditionLevel takes nothing returns nothing +function WoWReforgedStandardHeroAbilities__TriggerConditionLevel takes nothing returns nothing local unit hero= GetTriggerUnit() local integer index= GetStandardHeroAbility(hero) - if ( GetUnitAbilityLevel(hero, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]])) < (s__WoWReforgedStandardHeroAbilities___A_maxLevel[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]]) ) then // INLINED!! - call SetUnitAbilityLevel(hero, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]]), IMinBJ(GetHeroLevel(hero), (s__WoWReforgedStandardHeroAbilities___A_maxLevel[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(index)]]))) // INLINED!! + if ( GetUnitAbilityLevel(hero, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]])) < (s__WoWReforgedStandardHeroAbilities__A_maxLevel[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]]) ) then // INLINED!! + call SetUnitAbilityLevel(hero, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]]), IMinBJ(GetHeroLevel(hero), (s__WoWReforgedStandardHeroAbilities__A_maxLevel[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(index)]]))) // INLINED!! endif set hero=null endfunction -function WoWReforgedStandardHeroAbilities___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedStandardHeroAbilities___sellTrigger, Condition(function WoWReforgedStandardHeroAbilities___TriggerConditionSellItem)) +function WoWReforgedStandardHeroAbilities__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedStandardHeroAbilities__sellTrigger, Condition(function WoWReforgedStandardHeroAbilities__TriggerConditionSellItem)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedStandardHeroAbilities___constructionTrigger, Condition(function WoWReforgedStandardHeroAbilities___TriggerConditionConstructed)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedStandardHeroAbilities__constructionTrigger, Condition(function WoWReforgedStandardHeroAbilities__TriggerConditionConstructed)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(WoWReforgedStandardHeroAbilities___summonTrigger, Condition(function WoWReforgedStandardHeroAbilities___TriggerConditionSummoned)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(WoWReforgedStandardHeroAbilities__summonTrigger, Condition(function WoWReforgedStandardHeroAbilities__TriggerConditionSummoned)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities___deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedStandardHeroAbilities___deathTrigger, Condition(function WoWReforgedStandardHeroAbilities___TriggerConditionDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities__deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedStandardHeroAbilities__deathTrigger, Condition(function WoWReforgedStandardHeroAbilities__TriggerConditionDeath)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities___levelTrigger, EVENT_PLAYER_HERO_LEVEL) - call TriggerAddCondition(WoWReforgedStandardHeroAbilities___levelTrigger, Condition(function WoWReforgedStandardHeroAbilities___TriggerConditionLevel)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedStandardHeroAbilities__levelTrigger, EVENT_PLAYER_HERO_LEVEL) + call TriggerAddCondition(WoWReforgedStandardHeroAbilities__levelTrigger, Condition(function WoWReforgedStandardHeroAbilities__TriggerConditionLevel)) - call TimerStart(CreateTimer(), 2.0, false, function WoWReforgedStandardHeroAbilities___UpdateAllShops) + call TimerStart(CreateTimer(), 2.0, false, function WoWReforgedStandardHeroAbilities__UpdateAllShops) endfunction @@ -65107,7 +65107,7 @@ function HideStatsMultiboard takes player whichPlayer returns nothing endfunction -function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing +function WoWReforgedStats___ForFunctionUpdateStats takes nothing returns nothing local multiboarditem mbitem= null local player whichPlayer= GetEnumPlayer() local integer convertedPlayerId= GetConvertedPlayerId(whichPlayer) @@ -65125,13 +65125,13 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing elseif ( GetPlayerState(whichPlayer, PLAYER_STATE_GAME_RESULT) == 1 ) then set text=text + " (defeated)" endif - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemValue(mbitem, text) call MultiboardReleaseItem(mbitem) // Team set column=column + 1 set text=I2S(GetPlayerTeam(whichPlayer) + 1) - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemValue(mbitem, text) call MultiboardReleaseItem(mbitem) // Clan @@ -65139,7 +65139,7 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing if ( isUser ) then set itemTypeId=udg_ClanIcon[udg_ClanPlayerClan[convertedPlayerId]] set text=GetIconByItemType(itemTypeId) - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, text) call MultiboardReleaseItem(mbitem) endif @@ -65149,11 +65149,11 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing if ( isWarlord ) then set value=udg_PlayerRace[convertedPlayerId] set text=GetIconByRace(value) - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, text) call MultiboardReleaseItem(mbitem) else - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, "ReplaceableTextures\\CommandButtons\\BTNMercenaryCamp.blp") call MultiboardReleaseItem(mbitem) endif @@ -65164,11 +65164,11 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing if ( isWarlord ) then set value=udg_PlayerRace2[convertedPlayerId] set text=GetIconByRace(value) - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, text) call MultiboardReleaseItem(mbitem) else - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, "ReplaceableTextures\\CommandButtons\\BTNMercenaryCamp.blp") call MultiboardReleaseItem(mbitem) endif @@ -65179,11 +65179,11 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing if ( isWarlord ) then set value=udg_PlayerRace3[convertedPlayerId] set text=GetIconByRace(value) - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, text) call MultiboardReleaseItem(mbitem) else - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, "ReplaceableTextures\\CommandButtons\\BTNMercenaryCamp.blp") call MultiboardReleaseItem(mbitem) endif @@ -65193,7 +65193,7 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing if ( not isBosses ) then set value=udg_PlayerProfession[convertedPlayerId] set text=GetIconByProfession(value) - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, text) call MultiboardReleaseItem(mbitem) endif @@ -65202,7 +65202,7 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing if ( not isBosses ) then set value=udg_PlayerProfession2[convertedPlayerId] set text=GetIconByProfession(value) - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, text) call MultiboardReleaseItem(mbitem) endif @@ -65211,13 +65211,13 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing if ( not isBosses ) then set value=udg_PlayerProfession3[convertedPlayerId] set text=GetIconByProfession(value) - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemIcon(mbitem, text) call MultiboardReleaseItem(mbitem) endif // Hero Icon/Level 1 set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemStyle(mbitem, true, true) set text=I2S(GetHeroLevel(udg_Held[convertedPlayerId])) call MultiboardSetItemValue(mbitem, text) @@ -65227,7 +65227,7 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing call MultiboardReleaseItem(mbitem) // Hero Icon/Level 2 set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemStyle(mbitem, true, true) set text=I2S(GetHeroLevel(udg_Held2[convertedPlayerId])) call MultiboardSetItemValue(mbitem, text) @@ -65237,7 +65237,7 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing call MultiboardReleaseItem(mbitem) // Hero Icon/Level 3 set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) call MultiboardSetItemStyle(mbitem, true, true) set text=I2S(GetHeroLevel(udg_Held3[convertedPlayerId])) call MultiboardSetItemValue(mbitem, text) @@ -65247,31 +65247,31 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing call MultiboardReleaseItem(mbitem) // Hero Kills set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) set text=I2S(udg_HeroKills[convertedPlayerId]) call MultiboardSetItemValue(mbitem, text) call MultiboardReleaseItem(mbitem) // Unit Kills set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) set text=I2S(udg_UnitKills[convertedPlayerId]) call MultiboardSetItemValue(mbitem, text) call MultiboardReleaseItem(mbitem) // Gold set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) set text=I2S(GetPlayerState(whichPlayer, PLAYER_STATE_RESOURCE_GOLD)) call MultiboardSetItemValue(mbitem, text) call MultiboardReleaseItem(mbitem) // Lumber set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) set text=I2S(GetPlayerState(whichPlayer, PLAYER_STATE_RESOURCE_LUMBER)) call MultiboardSetItemValue(mbitem, text) call MultiboardReleaseItem(mbitem) // Food set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) set text=I2S(GetPlayerState(whichPlayer, PLAYER_STATE_RESOURCE_FOOD_USED)) + "/" + I2S(IMinBJ(GetPlayerState(whichPlayer, PLAYER_STATE_RESOURCE_FOOD_CAP), GetPlayerState(whichPlayer, PLAYER_STATE_FOOD_CAP_CEILING))) call MultiboardSetItemValue(mbitem, text) if ( goldUpkeepRate == 0 ) then @@ -65286,12 +65286,12 @@ function WoWReforgedStats__ForFunctionUpdateStats takes nothing returns nothing call MultiboardReleaseItem(mbitem) // Evolution set column=column + 1 - set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats__currentRow, column) + set mbitem=MultiboardGetItem(udg_StatsMultiboard, WoWReforgedStats___currentRow, column) set text=I2S((GetPlayerTechCountSimple(UPG_EVOLUTION, (whichPlayer)))) // INLINED!! call MultiboardSetItemValue(mbitem, text) call MultiboardReleaseItem(mbitem) // Increase counter - set WoWReforgedStats__currentRow=WoWReforgedStats__currentRow + 1 + set WoWReforgedStats___currentRow=WoWReforgedStats___currentRow + 1 set whichPlayer=null endfunction @@ -65305,8 +65305,8 @@ function UpdateStats takes nothing returns nothing set header=header + " " + MAP_VERSION call MultiboardSetTitleText(udg_StatsMultiboard, header) // Player Columns - set WoWReforgedStats__currentRow=1 - call ForForce(udg_StatsPlayers, function WoWReforgedStats__ForFunctionUpdateStats) + set WoWReforgedStats___currentRow=1 + call ForForce(udg_StatsPlayers, function WoWReforgedStats___ForFunctionUpdateStats) endfunction @@ -65314,7 +65314,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 @@ -65351,93 +65351,93 @@ endfunction function CreateRacesCinematicGroup takes integer whichRace,player whichPlayer returns nothing 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 @@ -65507,8 +65507,8 @@ function DisplayDuplicateSaveObjects takes nothing returns nothing set j=0 loop - exitwhen ( j == (WoWReforgedQuests__questsMax) ) // INLINED!! - if ( SaveObjectIdItem[i] == (WoWReforgedQuests__questReward[(j)]) ) then // INLINED!! + exitwhen ( j == (WoWReforgedQuests___questsMax) ) // INLINED!! + if ( SaveObjectIdItem[i] == (WoWReforgedQuests___questReward[(j)]) ) then // INLINED!! call h__BJDebugMsg("Quest reward item save object " + GetObjectName(SaveObjectIdItem[i]) + " with indices " + I2S(i) + " and " + I2S(j)) endif set j=j + 1 @@ -65676,11 +65676,11 @@ endfunction function AddCreepsSaveObjects takes nothing returns nothing local integer i= 0 - local integer max= (WoWReforgedRaces___objectTypeCreepsCounter) // INLINED!! + local integer max= (WoWReforgedRaces__objectTypeCreepsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( (WoWReforgedRaces___objectTypeCreeps[(i)]) != 0 ) then // INLINED!! - set udg_TmpUnitType=(WoWReforgedRaces___objectTypeCreeps[(i)]) // INLINED!! + if ( (WoWReforgedRaces__objectTypeCreeps[(i)]) != 0 ) then // INLINED!! + set udg_TmpUnitType=(WoWReforgedRaces__objectTypeCreeps[(i)]) // INLINED!! call AddSaveObjectUnitType() endif set i=i + 1 @@ -65733,7 +65733,7 @@ endfunction function AddProfessionItemsSaveObjects takes nothing returns nothing local integer i= 0 - local integer max= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer max= (WoWReforgedProfessions__professionsCounter) // INLINED!! local integer j= 0 local integer max2= 0 local integer k= 0 @@ -65797,11 +65797,11 @@ endfunction endfunction function GetAchievementIsCompletedForPlayer takes integer index,player whichPlayer returns boolean - return (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements__achievements[index])]+GetPlayerId((whichPlayer))]) // INLINED!! + return (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements___achievements[index])]+GetPlayerId((whichPlayer))]) // INLINED!! endfunction function GetMaxAchievements takes nothing returns integer - return WoWReforgedAchievements__achievementsCounter + return WoWReforgedAchievements___achievementsCounter endfunction function CountKilledBossesForPlayer takes player whichPlayer returns integer @@ -65811,7 +65811,7 @@ function CountKilledBossesForPlayer takes player whichPlayer returns integer local integer max= BlzGroupGetSize(udg_Bosses) loop exitwhen ( i == max ) - if ( LoadBoolean(WoWReforgedAchievements__bossKillsHashTable, GetHandleId(BlzGroupUnitAt(udg_Bosses, i)), playerId) ) then + if ( LoadBoolean(WoWReforgedAchievements___bossKillsHashTable, GetHandleId(BlzGroupUnitAt(udg_Bosses, i)), playerId) ) then set result=result + 1 endif set i=i + 1 @@ -65821,16 +65821,16 @@ endfunction function CountKilledCreepForPlayer takes player whichPlayer,integer unitTypeId returns integer local integer playerId= GetPlayerId(whichPlayer) - return LoadInteger(WoWReforgedAchievements__unitTypeKillsHashTable, unitTypeId, playerId) + return LoadInteger(WoWReforgedAchievements___unitTypeKillsHashTable, unitTypeId, playerId) endfunction function CountKilledCreepTypesForPlayer takes player whichPlayer returns integer local integer count= 0 local integer i= 0 - local integer max= (WoWReforgedRaces___objectTypeCreepsCounter) // INLINED!! + local integer max= (WoWReforgedRaces__objectTypeCreepsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( CountKilledCreepForPlayer(whichPlayer , (WoWReforgedRaces___objectTypeCreeps[(i)])) > 0 ) then // INLINED!! + if ( CountKilledCreepForPlayer(whichPlayer , (WoWReforgedRaces__objectTypeCreeps[(i)])) > 0 ) then // INLINED!! set count=count + 1 endif set i=i + 1 @@ -65841,10 +65841,10 @@ endfunction function PlayerCountCompletedAchievements takes player whichPlayer returns integer local integer result= 0 local integer i= 0 - local integer max= (WoWReforgedAchievements__achievementsCounter) // INLINED!! + local integer max= (WoWReforgedAchievements___achievementsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements__achievements[(i )])]+GetPlayerId((( whichPlayer)))]) ) then // INLINED!! + if ( (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements___achievements[(i )])]+GetPlayerId((( whichPlayer)))]) ) then // INLINED!! set result=result + 1 endif set i=i + 1 @@ -65852,62 +65852,62 @@ function PlayerCountCompletedAchievements takes player whichPlayer returns integ return result endfunction -function WoWReforgedAchievements__GetAchievementDescriptionIntern takes integer a,player whichPlayer returns string +function WoWReforgedAchievements___GetAchievementDescriptionIntern takes integer a,player whichPlayer returns string local integer playerId= GetPlayerId(whichPlayer) if ( a == udg_AchievementConqueror ) then - return I2S(BlzGroupGetSize(WoWReforgedAchievements__conquerorTownHalls[playerId])) + "/" + I2S((udg_Max_StartLocations)) // INLINED!! + return I2S(BlzGroupGetSize(WoWReforgedAchievements___conquerorTownHalls[playerId])) + "/" + I2S((udg_Max_StartLocations)) // INLINED!! elseif ( a == udg_AchievementQuestSolver ) then - return I2S(WoWReforgedAchievements__questsCompleted) + "/" + I2S((WoWReforgedQuests__questsMax)) // INLINED!! + return I2S(WoWReforgedAchievements___questsCompleted) + "/" + I2S((WoWReforgedQuests___questsMax)) // INLINED!! elseif ( a == udg_AchievementMasterQuestSolver ) then - return I2S(WoWReforgedAchievements__questsCompleted) + "/" + I2S((WoWReforgedQuests__questsMax)) // INLINED!! + return I2S(WoWReforgedAchievements___questsCompleted) + "/" + I2S((WoWReforgedQuests___questsMax)) // INLINED!! elseif ( a == udg_AchievementBossSlayer ) then return I2S(CountKilledBossesForPlayer(whichPlayer)) elseif ( a == udg_AchievementMasterBossSlayer ) then return I2S(CountKilledBossesForPlayer(whichPlayer)) + "/" + I2S(BlzGroupGetSize(udg_Bosses)) elseif ( a == udg_AchievementMasterCreepSlayer ) then - return I2S(CountKilledCreepTypesForPlayer(whichPlayer)) + "/" + I2S((WoWReforgedRaces___objectTypeCreepsCounter)) // INLINED!! + return I2S(CountKilledCreepTypesForPlayer(whichPlayer)) + "/" + I2S((WoWReforgedRaces__objectTypeCreepsCounter)) // INLINED!! elseif ( a == udg_AchievementHeroSlayer ) then - return I2S(WoWReforgedAchievements__playerHeroKills[playerId]) + return I2S(WoWReforgedAchievements___playerHeroKills[playerId]) elseif ( a == udg_AchievementPlayerSlayer ) then - return I2S(WoWReforgedAchievements__playersDefeated) + return I2S(WoWReforgedAchievements___playersDefeated) elseif ( a == udg_AchievementDeforestation ) then - return I2S(WoWReforgedAchievements__treesKilled) + "/10000" + return I2S(WoWReforgedAchievements___treesKilled) + "/10000" elseif ( a == udg_AchievementWithoutFriends ) then return I2S(udg_GameTime / 3600) elseif ( a == udg_AchievementDestroyer ) then - return I2S(R2I(WoWReforgedAchievements__playerDamageCaused[playerId])) + "/50000" + return I2S(R2I(WoWReforgedAchievements___playerDamageCaused[playerId])) + "/50000" elseif ( a == udg_AchievementTank ) then - return I2S(R2I(WoWReforgedAchievements__playerDamageTaken[playerId])) + "/50000" + return I2S(R2I(WoWReforgedAchievements___playerDamageTaken[playerId])) + "/50000" elseif ( a == udg_AchievementMasterLocksmith ) then - return I2S(WoWReforgedAchievements__playerLockPicks[playerId]) + return I2S(WoWReforgedAchievements___playerLockPicks[playerId]) elseif ( a == udg_AchievementMasterThief ) then - return I2S(WoWReforgedAchievements__playerPickPockets[playerId]) + return I2S(WoWReforgedAchievements___playerPickPockets[playerId]) elseif ( a == udg_AchievementHolyWarrior ) then - return I2S(WoWReforgedAchievements__playerUndeadKills[playerId]) + return I2S(WoWReforgedAchievements___playerUndeadKills[playerId]) elseif ( a == udg_AchievementUnholyWarrior ) then - return I2S(WoWReforgedAchievements__playerNonUndeadKills[playerId]) + return I2S(WoWReforgedAchievements___playerNonUndeadKills[playerId]) elseif ( a == udg_AchievementWarCriminal ) then - return I2S(WoWReforgedAchievements__playerCitizenKills[playerId]) + return I2S(WoWReforgedAchievements___playerCitizenKills[playerId]) elseif ( a == udg_AchievementAchievementMaster ) then return I2S(PlayerCountCompletedAchievements(whichPlayer)) elseif ( a == udg_AchievementOilTycoon ) then - return I2S(R2I(WoWReforgedAchievements__playerOil[playerId])) + "/50000" + return I2S(R2I(WoWReforgedAchievements___playerOil[playerId])) + "/50000" elseif ( a == udg_AchievementPropertyShark ) then - return I2S(WoWReforgedAchievements__playerPropertyCounter[playerId]) + "/6" + return I2S(WoWReforgedAchievements___playerPropertyCounter[playerId]) + "/6" elseif ( a == udg_AchievementExplorer ) then - return I2S(WoWReforgedAchievements__playerZonesCounter[playerId]) + "/20" + return I2S(WoWReforgedAchievements___playerZonesCounter[playerId]) + "/20" elseif ( a == udg_AchievementMasterExplorer ) then - return I2S(WoWReforgedAchievements__playerZonesCounter[playerId]) + "/all zones" + return I2S(WoWReforgedAchievements___playerZonesCounter[playerId]) + "/all zones" elseif ( a == udg_AchievementRacer ) then - return I2S(WoWReforgedAchievements__playerRacingTracks[playerId]) + "/all races" + return I2S(WoWReforgedAchievements___playerRacingTracks[playerId]) + "/all races" endif return "" endfunction function AddAchievement takes string name,string description,string icon returns integer local integer a= s__Achievement_create(name , description , icon) - set WoWReforgedAchievements__achievements[WoWReforgedAchievements__achievementsCounter]=a - set WoWReforgedAchievements__achievementsCounter=WoWReforgedAchievements__achievementsCounter + 1 + set WoWReforgedAchievements___achievements[WoWReforgedAchievements___achievementsCounter]=a + set WoWReforgedAchievements___achievementsCounter=WoWReforgedAchievements___achievementsCounter + 1 return a endfunction @@ -65916,19 +65916,19 @@ function AddAchievementWoWReforged takes nothing returns integer endfunction function GetAchievementName takes integer index returns string - return s__Achievement_name[WoWReforgedAchievements__achievements[index]] + return s__Achievement_name[WoWReforgedAchievements___achievements[index]] endfunction function GetAchievementDescription takes integer index returns string - return s__Achievement_description[WoWReforgedAchievements__achievements[index]] + return s__Achievement_description[WoWReforgedAchievements___achievements[index]] endfunction function GetAchievementIcon takes integer index returns string - return s__Achievement_icon[WoWReforgedAchievements__achievements[index]] + return s__Achievement_icon[WoWReforgedAchievements___achievements[index]] endfunction function GetAchievementCounterDescription takes integer index,player whichPlayer returns string - return WoWReforgedAchievements__GetAchievementDescriptionIntern(WoWReforgedAchievements__achievements[index] , whichPlayer) + return WoWReforgedAchievements___GetAchievementDescriptionIntern(WoWReforgedAchievements___achievements[index] , whichPlayer) endfunction function GetActualAchievementXP takes player whichPlayer,integer xpToAdd returns integer @@ -65941,10 +65941,10 @@ endfunction function PlayerCompletedAllAchievements takes player whichPlayer returns boolean local integer i= 0 - local integer max= (WoWReforgedAchievements__achievementsCounter) // INLINED!! + local integer max= (WoWReforgedAchievements___achievementsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( not (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements__achievements[(i )])]+GetPlayerId((( whichPlayer)))]) ) then // INLINED!! + if ( not (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements___achievements[(i )])]+GetPlayerId((( whichPlayer)))]) ) then // INLINED!! return false endif set i=i + 1 @@ -65961,8 +65961,8 @@ function AchievementXPBonusForPlayer takes player whichPlayer,integer xpToAdd,in call AdjustPlayerStateBJ(playerXp, whichPlayer, PLAYER_STATE_GOLD_GATHERED) call h__QuestMessageBJ(bj_FORCE_PLAYER[GetPlayerId(whichPlayer)], bj_QUESTMESSAGE_UNITAVAILABLE, "|cff0000ff" + StringCase(s__Achievement_name[a], true) + " +" + I2S(playerXp) + " XP and gold:|r " + msg) - if ( PlayerCompletedAllAchievements(whichPlayer) and not WoWReforgedAchievements__playerCompletedAllAchievements[GetPlayerId(whichPlayer)] ) then - set WoWReforgedAchievements__playerCompletedAllAchievements[GetPlayerId(whichPlayer)]=true + if ( PlayerCompletedAllAchievements(whichPlayer) and not WoWReforgedAchievements___playerCompletedAllAchievements[GetPlayerId(whichPlayer)] ) then + set WoWReforgedAchievements___playerCompletedAllAchievements[GetPlayerId(whichPlayer)]=true call AchievementXPBonusForPlayer(whichPlayer , 10000 , udg_AchievementAchievementMaster , "Completed all achievements.") endif endfunction @@ -65986,10 +65986,10 @@ function AchievementXPBonus takes force whichForce,integer xpToAdd,integer a,str endfunction function AchievementCompleteQuest takes nothing returns nothing - set WoWReforgedAchievements__questsCompleted=WoWReforgedAchievements__questsCompleted + 1 - if ( ModuloInteger(WoWReforgedAchievements__questsCompleted, 4) == 0 ) then - call AchievementXPBonus(GetPlayersAll() , WoWReforgedAchievements__questsCompleted * 100 , udg_AchievementQuestSolver , "Completed 4 more quests.") - if ( WoWReforgedAchievements__questsCompleted == (WoWReforgedQuests__questsMax) ) then // INLINED!! + set WoWReforgedAchievements___questsCompleted=WoWReforgedAchievements___questsCompleted + 1 + if ( ModuloInteger(WoWReforgedAchievements___questsCompleted, 4) == 0 ) then + call AchievementXPBonus(GetPlayersAll() , WoWReforgedAchievements___questsCompleted * 100 , udg_AchievementQuestSolver , "Completed 4 more quests.") + if ( WoWReforgedAchievements___questsCompleted == (WoWReforgedQuests___questsMax) ) then // INLINED!! call AchievementXPBonus(GetPlayersAll() , 6000 , udg_AchievementMasterQuestSolver , "Completed all quests.") endif endif @@ -65999,10 +65999,10 @@ function AchievementKillBoss takes unit killer,unit boss returns nothing local player whichPlayer= GetOwningPlayer(killer) local integer playerId= GetPlayerId(whichPlayer) local integer count= 0 - call SaveBoolean(WoWReforgedAchievements__bossKillsHashTable, GetHandleId(boss), playerId, true) + call SaveBoolean(WoWReforgedAchievements___bossKillsHashTable, GetHandleId(boss), playerId, true) set count=CountKilledBossesForPlayer(whichPlayer) - if ( ModuloInteger(count, 5) == 0 and not WoWReforgedAchievements__playerBossKillAchievements[Index2D(count , playerId , bj_MAX_PLAYERS)] ) then - set WoWReforgedAchievements__playerBossKillAchievements[Index2D(count , playerId , bj_MAX_PLAYERS)]=true + if ( ModuloInteger(count, 5) == 0 and not WoWReforgedAchievements___playerBossKillAchievements[Index2D(count , playerId , bj_MAX_PLAYERS)] ) then + set WoWReforgedAchievements___playerBossKillAchievements[Index2D(count , playerId , bj_MAX_PLAYERS)]=true call AchievementXPBonusForPlayer(whichPlayer , count * 100 , udg_AchievementBossSlayer , "Killed 5 bosses.") if ( count == BlzGroupGetSize(udg_Bosses) ) then call AchievementXPBonusForPlayer(whichPlayer , 5000 , udg_AchievementMasterBossSlayer , "Killed all bosses.") @@ -66016,12 +66016,12 @@ function AchievementKillCreep takes unit killer,unit creep returns nothing local integer playerId= GetPlayerId(whichPlayer) local integer unitTypeId= GetUnitTypeId(creep) local integer count= CountKilledCreepForPlayer(whichPlayer , unitTypeId) + 1 - call SaveInteger(WoWReforgedAchievements__unitTypeKillsHashTable, unitTypeId, playerId, count) + call SaveInteger(WoWReforgedAchievements___unitTypeKillsHashTable, unitTypeId, playerId, count) if ( ModuloInteger(count, 50) == 0 ) then call AchievementXPBonusForPlayer(whichPlayer , count * 2 , udg_AchievementCreepSlayer , "Killed 50 " + GetUnitName(creep) + " creeps.") endif - if ( not WoWReforgedAchievements__playerHasEveryCreepTypeAchievement[playerId] and CountKilledCreepTypesForPlayer(whichPlayer) == (WoWReforgedRaces___objectTypeCreepsCounter) ) then // INLINED!! - set WoWReforgedAchievements__playerHasEveryCreepTypeAchievement[playerId]=true + if ( not WoWReforgedAchievements___playerHasEveryCreepTypeAchievement[playerId] and CountKilledCreepTypesForPlayer(whichPlayer) == (WoWReforgedRaces__objectTypeCreepsCounter) ) then // INLINED!! + set WoWReforgedAchievements___playerHasEveryCreepTypeAchievement[playerId]=true call AchievementXPBonusForPlayer(whichPlayer , 5000 , udg_AchievementMasterCreepSlayer , "Killed every creep type.") endif set whichPlayer=null @@ -66030,8 +66030,8 @@ endfunction function AchievementKillHero takes unit killer returns nothing local player whichPlayer= GetOwningPlayer(killer) local integer playerId= GetPlayerId(whichPlayer) - local integer count= WoWReforgedAchievements__playerHeroKills[playerId] + 1 - set WoWReforgedAchievements__playerHeroKills[playerId]=count + local integer count= WoWReforgedAchievements___playerHeroKills[playerId] + 1 + set WoWReforgedAchievements___playerHeroKills[playerId]=count if ( ModuloInteger(count, 5) == 0 ) then call AchievementXPBonusForPlayer(whichPlayer , count * 10 , udg_AchievementHeroSlayer , "Killed 5 enemy heroes.") endif @@ -66040,7 +66040,7 @@ endfunction function AchievementPlayerDefeat takes player whichPlayer returns nothing local force enemies= GetPlayersEnemies(whichPlayer) - set WoWReforgedAchievements__playersDefeated=WoWReforgedAchievements__playersDefeated + 1 + set WoWReforgedAchievements___playersDefeated=WoWReforgedAchievements___playersDefeated + 1 call AchievementXPBonus(enemies , 200 , udg_AchievementPlayerSlayer , "Defeated player " + GetPlayerName(whichPlayer) + ".") call ForceClear(enemies) call DestroyForce(enemies) @@ -66049,9 +66049,9 @@ endfunction function AchievementTreesKilled takes destructable whichDestructable returns nothing if ( (IsTree(GetDestructableTypeId((whichDestructable)))) ) then // INLINED!! - set WoWReforgedAchievements__treesKilled=WoWReforgedAchievements__treesKilled + 1 - if ( ModuloInteger(WoWReforgedAchievements__treesKilled, 10000) == 0 ) then - call AchievementXPBonus(GetPlayersAll() , 5000 , udg_AchievementDeforestation , "Killed " + I2S(WoWReforgedAchievements__treesKilled) + " trees.") + set WoWReforgedAchievements___treesKilled=WoWReforgedAchievements___treesKilled + 1 + if ( ModuloInteger(WoWReforgedAchievements___treesKilled, 10000) == 0 ) then + call AchievementXPBonus(GetPlayersAll() , 5000 , udg_AchievementDeforestation , "Killed " + I2S(WoWReforgedAchievements___treesKilled) + " trees.") endif endif endfunction @@ -66060,7 +66060,7 @@ function Achievement2Hours takes nothing returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) - if ( WoWReforgedAchievements__playerHeroDeaths[i] == 0 ) then + if ( WoWReforgedAchievements___playerHeroDeaths[i] == 0 ) then call AchievementXPBonusForPlayer(Player(i) , 2000 , udg_AchievementSurvivor , " hours without your hero dying.") endif set i=i + 1 @@ -66091,12 +66091,12 @@ endfunction function GetAchievements takes player whichPlayer returns string local string msg= "Achievements:" local integer i= 0 - local integer max= (WoWReforgedAchievements__achievementsCounter) // INLINED!! + local integer max= (WoWReforgedAchievements___achievementsCounter) // INLINED!! loop exitwhen ( i == max ) - set msg=msg + "\n- " + (s__Achievement_name[WoWReforgedAchievements__achievements[(i)]]) + ": " + (s__Achievement_description[WoWReforgedAchievements__achievements[(i)]]) // INLINED!! - if ( (WoWReforgedAchievements__GetAchievementDescriptionIntern(WoWReforgedAchievements__achievements[(i )] , ( whichPlayer))) != "" ) then // INLINED!! - set msg=msg + " (" + (WoWReforgedAchievements__GetAchievementDescriptionIntern(WoWReforgedAchievements__achievements[(i )] , ( whichPlayer))) + ")" // INLINED!! + set msg=msg + "\n- " + (s__Achievement_name[WoWReforgedAchievements___achievements[(i)]]) + ": " + (s__Achievement_description[WoWReforgedAchievements___achievements[(i)]]) // INLINED!! + if ( (WoWReforgedAchievements___GetAchievementDescriptionIntern(WoWReforgedAchievements___achievements[(i )] , ( whichPlayer))) != "" ) then // INLINED!! + set msg=msg + " (" + (WoWReforgedAchievements___GetAchievementDescriptionIntern(WoWReforgedAchievements___achievements[(i )] , ( whichPlayer))) + ")" // INLINED!! endif set i=i + 1 endloop @@ -66106,10 +66106,10 @@ endfunction // quest whichQuest function AddAchievementsToQuest takes nothing returns nothing local integer i= 0 - local integer max= (WoWReforgedAchievements__achievementsCounter) // INLINED!! + local integer max= (WoWReforgedAchievements___achievementsCounter) // INLINED!! loop exitwhen ( i == max ) -call CreateQuestItem(bj_lastCreatedQuest , ((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 @@ -66117,57 +66117,57 @@ endfunction function AchievementOverpopulation takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - if ( not WoWReforgedAchievements__playerOverpopulation[playerId] ) then - set WoWReforgedAchievements__playerOverpopulation[playerId]=true + if ( not WoWReforgedAchievements___playerOverpopulation[playerId] ) then + set WoWReforgedAchievements___playerOverpopulation[playerId]=true call AchievementXPBonusForPlayer(whichPlayer , 1500 , udg_AchievementOverpopulation , "Using 600 food.") endif endfunction function AchievementLockPick takes unit hero returns nothing local integer playerId= GetPlayerId(GetOwningPlayer(hero)) - set WoWReforgedAchievements__playerLockPicks[playerId]=WoWReforgedAchievements__playerLockPicks[playerId] + 1 - if ( ModuloInteger(WoWReforgedAchievements__playerLockPicks[playerId], 50) == 0 ) then + set WoWReforgedAchievements___playerLockPicks[playerId]=WoWReforgedAchievements___playerLockPicks[playerId] + 1 + if ( ModuloInteger(WoWReforgedAchievements___playerLockPicks[playerId], 50) == 0 ) then call AchievementXPBonusForPlayer(GetOwningPlayer(hero) , 1000 , udg_AchievementMasterLocksmith , "Unlocked 50 chests.") endif endfunction function AchievementPickpocket takes unit hero,unit target,item stolenItem returns nothing local integer playerId= GetPlayerId(GetOwningPlayer(hero)) - set WoWReforgedAchievements__playerPickPockets[playerId]=WoWReforgedAchievements__playerPickPockets[playerId] + 1 - if ( ModuloInteger(WoWReforgedAchievements__playerPickPockets[playerId], 50) == 0 ) then + set WoWReforgedAchievements___playerPickPockets[playerId]=WoWReforgedAchievements___playerPickPockets[playerId] + 1 + if ( ModuloInteger(WoWReforgedAchievements___playerPickPockets[playerId], 50) == 0 ) then call AchievementXPBonusForPlayer(GetOwningPlayer(hero) , 1000 , udg_AchievementMasterThief , "Stolen 50 items.") endif endfunction function AchievementHolyWarrior takes unit killer returns nothing local integer playerId= GetPlayerId(GetOwningPlayer(killer)) - set WoWReforgedAchievements__playerUndeadKills[playerId]=WoWReforgedAchievements__playerUndeadKills[playerId] + 1 - if ( ModuloInteger(WoWReforgedAchievements__playerUndeadKills[playerId], 100) == 0 ) then + set WoWReforgedAchievements___playerUndeadKills[playerId]=WoWReforgedAchievements___playerUndeadKills[playerId] + 1 + if ( ModuloInteger(WoWReforgedAchievements___playerUndeadKills[playerId], 100) == 0 ) then call AchievementXPBonusForPlayer(GetOwningPlayer(killer) , 1000 , udg_AchievementHolyWarrior , "Killed 100 Undead.") endif endfunction function AchievementUnholyWarrior takes unit killer returns nothing local integer playerId= GetPlayerId(GetOwningPlayer(killer)) - set WoWReforgedAchievements__playerNonUndeadKills[playerId]=WoWReforgedAchievements__playerNonUndeadKills[playerId] + 1 - if ( ModuloInteger(WoWReforgedAchievements__playerNonUndeadKills[playerId], 100) == 0 ) then + set WoWReforgedAchievements___playerNonUndeadKills[playerId]=WoWReforgedAchievements___playerNonUndeadKills[playerId] + 1 + if ( ModuloInteger(WoWReforgedAchievements___playerNonUndeadKills[playerId], 100) == 0 ) then call AchievementXPBonusForPlayer(GetOwningPlayer(killer) , 1000 , udg_AchievementUnholyWarrior , "Killed 100 non-Undead.") endif endfunction function AchievementWarCriminal takes unit killer returns nothing local integer playerId= GetPlayerId(GetOwningPlayer(killer)) - set WoWReforgedAchievements__playerCitizenKills[playerId]=WoWReforgedAchievements__playerCitizenKills[playerId] + 1 - if ( ModuloInteger(WoWReforgedAchievements__playerCitizenKills[playerId], 100) == 0 ) then + set WoWReforgedAchievements___playerCitizenKills[playerId]=WoWReforgedAchievements___playerCitizenKills[playerId] + 1 + if ( ModuloInteger(WoWReforgedAchievements___playerCitizenKills[playerId], 100) == 0 ) then call AchievementXPBonusForPlayer(GetOwningPlayer(killer) , 1000 , udg_AchievementWarCriminal , "Killed 100 citizens.") endif endfunction function AchievementPropertyShark takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - set WoWReforgedAchievements__playerPropertyCounter[playerId]=WoWReforgedAchievements__playerPropertyCounter[playerId] + 1 + set WoWReforgedAchievements___playerPropertyCounter[playerId]=WoWReforgedAchievements___playerPropertyCounter[playerId] + 1 - if ( ModuloInteger(WoWReforgedAchievements__playerPropertyCounter[playerId], 6) == 0 ) then + if ( ModuloInteger(WoWReforgedAchievements___playerPropertyCounter[playerId], 6) == 0 ) then call AchievementXPBonusForPlayer(whichPlayer , 5000 , udg_AchievementPropertyShark , "Purchased 6 properties.") endif endfunction @@ -66176,47 +66176,47 @@ function AchievementPropertyLandowner takes player whichPlayer,integer maxProper local integer playerId= GetPlayerId(whichPlayer) //set playerPropertyCounter[playerId] = playerPropertyCounter[playerId] + 1 // AchievementPropertyShark - if ( WoWReforgedAchievements__playerPropertyCounter[playerId] == maxProperties ) then + if ( WoWReforgedAchievements___playerPropertyCounter[playerId] == maxProperties ) then call AchievementXPBonusForPlayer(whichPlayer , 10000 , udg_AchievementLandowner , "Purchased all properties.") endif endfunction function AchievementExplorer takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - set WoWReforgedAchievements__playerZonesCounter[playerId]=WoWReforgedAchievements__playerZonesCounter[playerId] + 1 + set WoWReforgedAchievements___playerZonesCounter[playerId]=WoWReforgedAchievements___playerZonesCounter[playerId] + 1 - if ( ModuloInteger(WoWReforgedAchievements__playerZonesCounter[playerId], 20) == 0 ) then + if ( ModuloInteger(WoWReforgedAchievements___playerZonesCounter[playerId], 20) == 0 ) then call AchievementXPBonusForPlayer(whichPlayer , 1000 , udg_AchievementExplorer , "Newly discovered 20 zones.") endif endfunction function AchievementMasterExplorer takes player whichPlayer,integer maxZones returns nothing local integer playerId= GetPlayerId(whichPlayer) - set WoWReforgedAchievements__playerZonesCounter[playerId]=WoWReforgedAchievements__playerZonesCounter[playerId] + 1 + set WoWReforgedAchievements___playerZonesCounter[playerId]=WoWReforgedAchievements___playerZonesCounter[playerId] + 1 - if ( WoWReforgedAchievements__playerZonesCounter[playerId] == maxZones ) then + if ( WoWReforgedAchievements___playerZonesCounter[playerId] == maxZones ) then call AchievementXPBonusForPlayer(whichPlayer , 10000 , udg_AchievementMasterExplorer , "Newly discovered all existing zones.") endif endfunction function AchievementRacer takes player whichPlayer,integer maxRacingTracks returns nothing local integer playerId= GetPlayerId(whichPlayer) - set WoWReforgedAchievements__playerRacingTracks[playerId]=WoWReforgedAchievements__playerRacingTracks[playerId] + 1 + set WoWReforgedAchievements___playerRacingTracks[playerId]=WoWReforgedAchievements___playerRacingTracks[playerId] + 1 - if ( WoWReforgedAchievements__playerRacingTracks[playerId] == maxRacingTracks ) then + if ( WoWReforgedAchievements___playerRacingTracks[playerId] == maxRacingTracks ) then call AchievementXPBonusForPlayer(whichPlayer , 2000 , udg_AchievementRacer , "Finished all races.") endif endfunction -function WoWReforgedAchievements__QuestSetCompletedBJHook takes quest whichQuest,boolean completed returns nothing +function WoWReforgedAchievements___QuestSetCompletedBJHook takes quest whichQuest,boolean completed returns nothing if ( not IsQuestRequired(whichQuest) ) then call AchievementCompleteQuest() endif endfunction -//processed hook: hook QuestSetCompletedBJ WoWReforgedAchievements__QuestSetCompletedBJHook +//processed hook: hook QuestSetCompletedBJ WoWReforgedAchievements___QuestSetCompletedBJHook -function WoWReforgedAchievements__TriggerConditionDamage takes nothing returns boolean +function WoWReforgedAchievements___TriggerConditionDamage takes nothing returns boolean local unit source= GetEventDamageSource() local player sourceOwner= GetOwningPlayer(source) local integer playerIdSource= GetPlayerId(sourceOwner) @@ -66224,14 +66224,14 @@ function WoWReforgedAchievements__TriggerConditionDamage takes nothing returns b local player targetOwner= GetOwningPlayer(target) local integer playerIdTarget= GetPlayerId(targetOwner) if ( IsPlayerHero(source) and IsUnitEnemy(source, targetOwner) ) then - set WoWReforgedAchievements__playerDamageCaused[playerIdSource]=WoWReforgedAchievements__playerDamageCaused[playerIdSource] + GetEventDamage() - if ( WoWReforgedAchievements__playerDamageCaused[playerIdSource] > 0.0 and ModuloReal(WoWReforgedAchievements__playerDamageCaused[playerIdSource], 50000.0) == 0 ) then + set WoWReforgedAchievements___playerDamageCaused[playerIdSource]=WoWReforgedAchievements___playerDamageCaused[playerIdSource] + GetEventDamage() + if ( WoWReforgedAchievements___playerDamageCaused[playerIdSource] > 0.0 and ModuloReal(WoWReforgedAchievements___playerDamageCaused[playerIdSource], 50000.0) == 0 ) then call AchievementXPBonusForPlayer(sourceOwner , 2000 , udg_AchievementDestroyer , "50000 damage caused.") endif endif if ( IsPlayerHero(target) and IsUnitEnemy(target, sourceOwner) ) then - set WoWReforgedAchievements__playerDamageTaken[playerIdTarget]=WoWReforgedAchievements__playerDamageTaken[playerIdTarget] + GetEventDamage() - if ( WoWReforgedAchievements__playerDamageTaken[playerIdTarget] > 0.0 and ModuloReal(WoWReforgedAchievements__playerDamageTaken[playerIdTarget], 50000.0) == 0 ) then + set WoWReforgedAchievements___playerDamageTaken[playerIdTarget]=WoWReforgedAchievements___playerDamageTaken[playerIdTarget] + GetEventDamage() + if ( WoWReforgedAchievements___playerDamageTaken[playerIdTarget] > 0.0 and ModuloReal(WoWReforgedAchievements___playerDamageTaken[playerIdTarget], 50000.0) == 0 ) then call AchievementXPBonusForPlayer(targetOwner , 2000 , udg_AchievementTank , "50000 damage received.") endif endif @@ -66242,11 +66242,11 @@ function WoWReforgedAchievements__TriggerConditionDamage takes nothing returns b return false endfunction -function WoWReforgedAchievements__TriggerConditionDeath takes nothing returns boolean +function WoWReforgedAchievements___TriggerConditionDeath takes nothing returns boolean local integer playerId= GetPlayerId(GetOwningPlayer(GetTriggerUnit())) if ( IsPlayerHero(GetTriggerUnit()) ) then - set WoWReforgedAchievements__playerHeroDeaths[playerId]=WoWReforgedAchievements__playerHeroDeaths[playerId] + 1 + set WoWReforgedAchievements___playerHeroDeaths[playerId]=WoWReforgedAchievements___playerHeroDeaths[playerId] + 1 endif if ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_UNDEAD) and GetKillingUnit() != null and not IsUnitAlly(GetKillingUnit(), GetOwningPlayer(GetTriggerUnit())) and not IsUnitType(GetKillingUnit(), UNIT_TYPE_UNDEAD) ) then @@ -66261,20 +66261,20 @@ function WoWReforgedAchievements__TriggerConditionDeath takes nothing returns bo call AchievementWarCriminal(GetKillingUnit()) endif - if ( IsUnitInGroup(GetTriggerUnit(), WoWReforgedAchievements__conquerorTownHalls[playerId]) ) then - call GroupRemoveUnit(WoWReforgedAchievements__conquerorTownHalls[playerId], GetTriggerUnit()) + if ( IsUnitInGroup(GetTriggerUnit(), WoWReforgedAchievements___conquerorTownHalls[playerId]) ) then + call GroupRemoveUnit(WoWReforgedAchievements___conquerorTownHalls[playerId], GetTriggerUnit()) endif return false endfunction -function WoWReforgedAchievements__TriggerConditionGather takes nothing returns boolean +function WoWReforgedAchievements___TriggerConditionGather takes nothing returns boolean local player owner= GetOwningPlayer((Resources__triggerWorker)) // INLINED!! local integer playerId= GetPlayerId(owner) if ( (Resources__triggerResource) == udg_ResourceOil ) then // INLINED!! - set WoWReforgedAchievements__playerOil[playerId]=WoWReforgedAchievements__playerOil[playerId] + (Resources__triggerResourceAmount) // INLINED!! + set WoWReforgedAchievements___playerOil[playerId]=WoWReforgedAchievements___playerOil[playerId] + (Resources__triggerResourceAmount) // INLINED!! - if ( WoWReforgedAchievements__playerOil[playerId] >= 50000 and not (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements__achievements[(udg_AchievementOilTycoon )])]+GetPlayerId((( owner)))]) ) then // INLINED!! + if ( WoWReforgedAchievements___playerOil[playerId] >= 50000 and not (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements___achievements[(udg_AchievementOilTycoon )])]+GetPlayerId((( owner)))]) ) then // INLINED!! call AchievementXPBonusForPlayer(owner , 1000 , udg_AchievementOilTycoon , "Gathered 50 000 Oil.") endif endif @@ -66282,15 +66282,15 @@ function WoWReforgedAchievements__TriggerConditionGather takes nothing returns b return false endfunction -function WoWReforgedAchievements__HasUnitForStartLocation takes player whichPlayer,integer index returns boolean +function WoWReforgedAchievements___HasUnitForStartLocation takes player whichPlayer,integer index returns boolean local integer playerId= GetPlayerId(whichPlayer) local boolean result= false local unit u= null local integer i= 0 - local integer max= BlzGroupGetSize(WoWReforgedAchievements__conquerorTownHalls[playerId]) + local integer max= BlzGroupGetSize(WoWReforgedAchievements___conquerorTownHalls[playerId]) loop exitwhen ( i == max or result ) - set u=BlzGroupUnitAt(WoWReforgedAchievements__conquerorTownHalls[playerId], i) + set u=BlzGroupUnitAt(WoWReforgedAchievements___conquerorTownHalls[playerId], i) if ( GetStartLocationRectByCoordinates(GetUnitX(u) , GetUnitY(u)) == index ) then set result=true endif @@ -66300,20 +66300,20 @@ function WoWReforgedAchievements__HasUnitForStartLocation takes player whichPlay return result endfunction -function WoWReforgedAchievements__TriggerConditionConstructionFinished takes nothing returns boolean +function WoWReforgedAchievements___TriggerConditionConstructionFinished takes nothing returns boolean local unit b= GetConstructedStructure() local player owner= GetOwningPlayer(b) local integer playerId= GetPlayerId(owner) local integer index= - 1 - if ( IsUnitType(b, UNIT_TYPE_TOWNHALL) and not (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements__achievements[(udg_AchievementConqueror )])]+GetPlayerId((( owner)))]) ) then // INLINED!! + if ( IsUnitType(b, UNIT_TYPE_TOWNHALL) and not (s___Achievement_playerCompleted[s__Achievement_playerCompleted[(WoWReforgedAchievements___achievements[(udg_AchievementConqueror )])]+GetPlayerId((( owner)))]) ) then // INLINED!! set index=GetStartLocationRectByCoordinates(GetUnitX(b) , GetUnitY(b)) - if ( index != - 1 and not WoWReforgedAchievements__HasUnitForStartLocation(owner , index) ) then - call GroupAddUnit(WoWReforgedAchievements__conquerorTownHalls[playerId], b) + if ( index != - 1 and not WoWReforgedAchievements___HasUnitForStartLocation(owner , index) ) then + call GroupAddUnit(WoWReforgedAchievements___conquerorTownHalls[playerId], b) - if ( BlzGroupGetSize(WoWReforgedAchievements__conquerorTownHalls[playerId]) == (udg_Max_StartLocations) ) then // INLINED!! + if ( BlzGroupGetSize(WoWReforgedAchievements___conquerorTownHalls[playerId]) == (udg_Max_StartLocations) ) then // INLINED!! call AchievementXPBonusForPlayer(owner , 7000 , udg_AchievementConqueror , "Constructed town halls in " + I2S((udg_Max_StartLocations)) + " start locations.") // INLINED!! else - call h__QuestMessageBJ(bj_FORCE_PLAYER[GetPlayerId((owner ))], bj_QUESTMESSAGE_HINT, "|cff0000ff" + StringCase(s__Achievement_name[( udg_AchievementConqueror )], true) + ":|r " + ( "Constructed another town hall in a start location (" + I2S(BlzGroupGetSize(WoWReforgedAchievements__conquerorTownHalls[playerId])) + "/" + I2S((udg_Max_StartLocations)) + ").")) // INLINED!! + call h__QuestMessageBJ(bj_FORCE_PLAYER[GetPlayerId((owner ))], bj_QUESTMESSAGE_HINT, "|cff0000ff" + StringCase(s__Achievement_name[( udg_AchievementConqueror )], true) + ":|r " + ( "Constructed another town hall in a start location (" + I2S(BlzGroupGetSize(WoWReforgedAchievements___conquerorTownHalls[playerId])) + "/" + I2S((udg_Max_StartLocations)) + ").")) // INLINED!! endif endif endif @@ -66324,25 +66324,25 @@ function WoWReforgedAchievements__TriggerConditionConstructionFinished takes not return false endfunction -function WoWReforgedAchievements__Init takes nothing returns nothing +function WoWReforgedAchievements___Init takes nothing returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) - set WoWReforgedAchievements__conquerorTownHalls[i]=CreateGroup() + set WoWReforgedAchievements___conquerorTownHalls[i]=CreateGroup() set i=i + 1 endloop - call TriggerRegisterAnyUnitEventBJ(WoWReforgedAchievements__constructionFinishedTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedAchievements__constructionFinishedTrigger, Condition(function WoWReforgedAchievements__TriggerConditionConstructionFinished)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedAchievements___constructionFinishedTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedAchievements___constructionFinishedTrigger, Condition(function WoWReforgedAchievements___TriggerConditionConstructionFinished)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedAchievements__damageTrigger, EVENT_PLAYER_UNIT_DAMAGED) - call TriggerAddCondition(WoWReforgedAchievements__damageTrigger, Condition(function WoWReforgedAchievements__TriggerConditionDamage)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedAchievements___damageTrigger, EVENT_PLAYER_UNIT_DAMAGED) + call TriggerAddCondition(WoWReforgedAchievements___damageTrigger, Condition(function WoWReforgedAchievements___TriggerConditionDamage)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedAchievements__deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedAchievements__deathTrigger, Condition(function WoWReforgedAchievements__TriggerConditionDeath)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedAchievements___deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedAchievements___deathTrigger, Condition(function WoWReforgedAchievements___TriggerConditionDeath)) - call TriggerRegisterGatherEvent(WoWReforgedAchievements__gatherTrigger) - call TriggerAddCondition(WoWReforgedAchievements__gatherTrigger, Condition(function WoWReforgedAchievements__TriggerConditionGather)) + call TriggerRegisterGatherEvent(WoWReforgedAchievements___gatherTrigger) + call TriggerAddCondition(WoWReforgedAchievements___gatherTrigger, Condition(function WoWReforgedAchievements___TriggerConditionGather)) endfunction @@ -66350,16 +66350,16 @@ endfunction //library WoWReforgedAlchemistLab: -function WoWReforgedAlchemistLab__SetShopRace takes unit shop,integer whichRace returns nothing +function WoWReforgedAlchemistLab___SetShopRace takes unit shop,integer whichRace returns nothing call SetUnitUserData(shop, whichRace) call BlzSetUnitName(shop, "Alchemist Lab " + GetObjectName(udg_RaceTavernItemType[whichRace])) //call BJDebugMsg("Change shop race to " + GetObjectName(udg_RaceTavernItemType[whichRace])) endfunction -function WoWReforgedAlchemistLab__AddRaceTypesToShop takes unit shop returns nothing +function WoWReforgedAlchemistLab___AddRaceTypesToShop takes unit shop returns nothing local integer max= udg_MaxRaces local integer i= 1 - call WoWReforgedAlchemistLab__SetShopRace(shop , udg_RaceHuman) + call WoWReforgedAlchemistLab___SetShopRace(shop , udg_RaceHuman) call EnablePagedButtons(shop) call SetPagedButtonsSlotsPerPage(shop , 8) loop @@ -66369,16 +66369,16 @@ call AddPagedButtonsId((shop ) , ( udg_RaceTavernItemType[i]) , PagedButtons_BUT endloop endfunction -function WoWReforgedAlchemistLab__TriggerConditionConstructionFinish takes nothing returns boolean +function WoWReforgedAlchemistLab___TriggerConditionConstructionFinish takes nothing returns boolean local unit shop= GetConstructedStructure() if ( GetUnitTypeId(shop) == ALCHEMIST_LAB ) then - call WoWReforgedAlchemistLab__AddRaceTypesToShop(shop) + call WoWReforgedAlchemistLab___AddRaceTypesToShop(shop) endif set shop=null return false endfunction -function WoWReforgedAlchemistLab__TriggerConditionSell takes nothing returns boolean +function WoWReforgedAlchemistLab___TriggerConditionSell takes nothing returns boolean local unit shop= GetSellingUnit() local item soldItem= GetSoldItem() local integer itemTypeId= GetItemTypeId(soldItem) @@ -66389,7 +66389,7 @@ function WoWReforgedAlchemistLab__TriggerConditionSell takes nothing returns boo loop exitwhen ( i >= max ) if ( itemTypeId == udg_RaceTavernItemType[i] ) then - call WoWReforgedAlchemistLab__SetShopRace(shop , i) + call WoWReforgedAlchemistLab___SetShopRace(shop , i) exitwhen ( true ) endif @@ -66402,7 +66402,7 @@ function WoWReforgedAlchemistLab__TriggerConditionSell takes nothing returns boo return false endfunction -function WoWReforgedAlchemistLab__IsRaceTypeAllowed takes player whichPlayer,integer t,integer targetRace returns boolean +function WoWReforgedAlchemistLab___IsRaceTypeAllowed takes player whichPlayer,integer t,integer targetRace returns boolean if ( not PlayerHasUnlockedRace(whichPlayer , targetRace) ) then if ( t == RACE_OBJECT_TYPE_TIER_1 ) then return false @@ -66425,44 +66425,44 @@ endfunction function TriggerRegisterConvertEvent takes trigger whichTrigger returns nothing - set WoWReforgedAlchemistLab__convertTriggers[WoWReforgedAlchemistLab__convertTriggersCounter]=whichTrigger - set WoWReforgedAlchemistLab__convertTriggersCounter=WoWReforgedAlchemistLab__convertTriggersCounter + 1 + set WoWReforgedAlchemistLab___convertTriggers[WoWReforgedAlchemistLab___convertTriggersCounter]=whichTrigger + set WoWReforgedAlchemistLab___convertTriggersCounter=WoWReforgedAlchemistLab___convertTriggersCounter + 1 endfunction function GetTriggerConverter takes nothing returns unit - return WoWReforgedAlchemistLab__triggerConverter + return WoWReforgedAlchemistLab___triggerConverter endfunction function GetTriggerReplacingUnit takes nothing returns unit - return WoWReforgedAlchemistLab__triggerReplacingUnit + return WoWReforgedAlchemistLab___triggerReplacingUnit endfunction function GetTriggerReplacingItem takes nothing returns item - return WoWReforgedAlchemistLab__triggerReplacingItem + return WoWReforgedAlchemistLab___triggerReplacingItem endfunction -function WoWReforgedAlchemistLab__ExecuteCallbacks takes unit converter,unit replacingUnit,item replacingItem returns nothing +function WoWReforgedAlchemistLab___ExecuteCallbacks takes unit converter,unit replacingUnit,item replacingItem returns nothing local integer i= 0 loop - exitwhen ( i >= WoWReforgedAlchemistLab__convertTriggersCounter ) - if ( IsTriggerEnabled(WoWReforgedAlchemistLab__convertTriggers[i]) ) then - set WoWReforgedAlchemistLab__triggerConverter=converter - set WoWReforgedAlchemistLab__triggerReplacingUnit=replacingUnit - set WoWReforgedAlchemistLab__triggerReplacingItem=replacingItem - call ConditionalTriggerExecute(WoWReforgedAlchemistLab__convertTriggers[i]) + exitwhen ( i >= WoWReforgedAlchemistLab___convertTriggersCounter ) + if ( IsTriggerEnabled(WoWReforgedAlchemistLab___convertTriggers[i]) ) then + set WoWReforgedAlchemistLab___triggerConverter=converter + set WoWReforgedAlchemistLab___triggerReplacingUnit=replacingUnit + set WoWReforgedAlchemistLab___triggerReplacingItem=replacingItem + call ConditionalTriggerExecute(WoWReforgedAlchemistLab___convertTriggers[i]) endif set i=i + 1 endloop endfunction -function WoWReforgedAlchemistLab__ConvertUnit takes unit caster,unit target,integer targetRace returns nothing +function WoWReforgedAlchemistLab___ConvertUnit takes unit caster,unit target,integer targetRace returns nothing local player owner= GetOwningPlayer(caster) local integer targetUnitTypeId= MapUnitID(GetUnitTypeId(target) , targetRace , false) if ( targetUnitTypeId != 0 ) then - if ( WoWReforgedAlchemistLab__IsRaceTypeAllowed(owner , GetRaceObjectType(targetRace , targetUnitTypeId) , targetRace) ) then + if ( WoWReforgedAlchemistLab___IsRaceTypeAllowed(owner , GetRaceObjectType(targetRace , targetUnitTypeId) , targetRace) ) then if ( targetUnitTypeId != GetUnitTypeId(target) ) then call ReplaceUnitBJ(target, targetUnitTypeId, bj_UNIT_STATE_METHOD_RELATIVE) - call WoWReforgedAlchemistLab__ExecuteCallbacks(caster , GetLastReplacedUnitBJ() , null) + call WoWReforgedAlchemistLab___ExecuteCallbacks(caster , GetLastReplacedUnitBJ() , null) else call IssueImmediateOrder(caster, "stop") call SimError(owner , "Could not convert the target unit.") @@ -66478,15 +66478,15 @@ function WoWReforgedAlchemistLab__ConvertUnit takes unit caster,unit target,inte set owner=null endfunction -function WoWReforgedAlchemistLab__ConvertItem takes unit caster,item target,integer targetRace returns nothing +function WoWReforgedAlchemistLab___ConvertItem takes unit caster,item target,integer targetRace returns nothing local player owner= GetOwningPlayer(caster) local integer targetItemTypeId= MapRaceObjectType(GetItemTypeId(target) , targetRace) local item whichItem= null if ( targetItemTypeId != 0 ) then - if ( WoWReforgedAlchemistLab__IsRaceTypeAllowed(owner , GetRaceObjectType(targetRace , targetItemTypeId) , targetRace) ) then + if ( WoWReforgedAlchemistLab___IsRaceTypeAllowed(owner , GetRaceObjectType(targetRace , targetItemTypeId) , targetRace) ) then if ( targetItemTypeId != GetItemTypeId(target) ) then set whichItem=ReplaceItem(target , targetItemTypeId) - call WoWReforgedAlchemistLab__ExecuteCallbacks(caster , null , whichItem) + call WoWReforgedAlchemistLab___ExecuteCallbacks(caster , null , whichItem) else call IssueImmediateOrder(caster, "stop") call SimError(owner , "Could not convert the target item.") @@ -66502,7 +66502,7 @@ function WoWReforgedAlchemistLab__ConvertItem takes unit caster,item target,inte set owner=null endfunction -function WoWReforgedAlchemistLab__TriggerConditionCast takes nothing returns boolean +function WoWReforgedAlchemistLab___TriggerConditionCast takes nothing returns boolean local unit shop= GetTriggerUnit() local integer abilityId= GetSpellAbilityId() local integer targetRace= GetUnitUserData(shop) @@ -66511,9 +66511,9 @@ function WoWReforgedAlchemistLab__TriggerConditionCast takes nothing returns boo if ( abilityId == ABILITY_ID_CONVERT_UNIT or abilityId == ABILITY_ID_CONVERT_ITEM ) then if ( targetUnit != null ) then - call WoWReforgedAlchemistLab__ConvertUnit(shop , targetUnit , targetRace) + call WoWReforgedAlchemistLab___ConvertUnit(shop , targetUnit , targetRace) elseif ( targetItem != null ) then - call WoWReforgedAlchemistLab__ConvertItem(shop , targetItem , targetRace) + call WoWReforgedAlchemistLab___ConvertItem(shop , targetItem , targetRace) endif endif @@ -66524,27 +66524,27 @@ function WoWReforgedAlchemistLab__TriggerConditionCast takes nothing returns boo return false endfunction -function WoWReforgedAlchemistLab__ForGroupAddShop takes nothing returns nothing - call WoWReforgedAlchemistLab__AddRaceTypesToShop(GetEnumUnit()) +function WoWReforgedAlchemistLab___ForGroupAddShop takes nothing returns nothing + call WoWReforgedAlchemistLab___AddRaceTypesToShop(GetEnumUnit()) endfunction function AddAlchemistLabShops takes nothing returns nothing local group shops= GetUnitsOfTypeIdAll(ALCHEMIST_LAB) - call ForGroup(shops, function WoWReforgedAlchemistLab__ForGroupAddShop) + call ForGroup(shops, function WoWReforgedAlchemistLab___ForGroupAddShop) call GroupClear(shops) call DestroyGroup(shops) set shops=null endfunction -function WoWReforgedAlchemistLab__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedAlchemistLab__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedAlchemistLab__constructionTrigger, Condition(function WoWReforgedAlchemistLab__TriggerConditionConstructionFinish)) +function WoWReforgedAlchemistLab___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedAlchemistLab___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedAlchemistLab___constructionTrigger, Condition(function WoWReforgedAlchemistLab___TriggerConditionConstructionFinish)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedAlchemistLab__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedAlchemistLab__sellTrigger, Condition(function WoWReforgedAlchemistLab__TriggerConditionSell)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedAlchemistLab___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedAlchemistLab___sellTrigger, Condition(function WoWReforgedAlchemistLab___TriggerConditionSell)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedAlchemistLab__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(WoWReforgedAlchemistLab__castTrigger, Condition(function WoWReforgedAlchemistLab__TriggerConditionCast)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedAlchemistLab___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(WoWReforgedAlchemistLab___castTrigger, Condition(function WoWReforgedAlchemistLab___TriggerConditionCast)) endfunction @@ -66564,8 +66564,8 @@ function IsAltarFilter takes nothing returns boolean endfunction -function WoWReforgedAltars__IsResurrectionStoneFilter takes nothing returns boolean - return (IsResurrectionStone(GetUnitTypeId((GetFilterUnit())))) and ResurrectionStoneHasHeroOfPlayer((LoadInteger(WoWReforgedResurrectionStone__h, GetHandleId((GetFilterUnit())), 0)) , WoWReforgedAltars__filterPlayer) // INLINED!! +function WoWReforgedAltars___IsResurrectionStoneFilter takes nothing returns boolean + return (IsResurrectionStone(GetUnitTypeId((GetFilterUnit())))) and ResurrectionStoneHasHeroOfPlayer((LoadInteger(WoWReforgedResurrectionStone___h, GetHandleId((GetFilterUnit())), 0)) , WoWReforgedAltars___filterPlayer) // INLINED!! endfunction function SelectNextAltar takes player whichPlayer returns unit @@ -66573,8 +66573,8 @@ function SelectNextAltar takes player whichPlayer returns unit local group resurrectionStones= CreateGroup() local unit result= null call GroupEnumUnitsOfPlayer(altars, whichPlayer, Filter(function IsAltarFilter)) - set WoWReforgedAltars__filterPlayer=whichPlayer - call GroupEnumUnitsInRect(resurrectionStones, GetPlayableMapRect(), Filter(function WoWReforgedAltars__IsResurrectionStoneFilter)) + set WoWReforgedAltars___filterPlayer=whichPlayer + call GroupEnumUnitsInRect(resurrectionStones, GetPlayableMapRect(), Filter(function WoWReforgedAltars___IsResurrectionStoneFilter)) call GroupAddGroup(resurrectionStones, altars) set result=GetNextUnitToSelect(altars , whichPlayer) call GroupClear(altars) @@ -66619,11 +66619,11 @@ call AddPagedButtonsId((whichUnit ) , ( ITEM_TYPE_ID_COLOR_RED) , PagedButtons_B call SetPagedButtonsCurrentPageName(whichUnit , "Creeps") set i=0 - set max=(WoWReforgedRaces___objectTypeCreepsCounter) // INLINED!! + set max=(WoWReforgedRaces__objectTypeCreepsCounter) // INLINED!! loop exitwhen ( i >= max ) - if ( (WoWReforgedRaces___objectTypeCreeps[(i)]) != 0 ) then // INLINED!! -call AddPagedButtonsId((whichUnit ) , ( (WoWReforgedRaces___objectTypeCreeps[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! + if ( (WoWReforgedRaces__objectTypeCreeps[(i)]) != 0 ) then // INLINED!! +call AddPagedButtonsId((whichUnit ) , ( (WoWReforgedRaces__objectTypeCreeps[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! endif set i=i + 1 endloop @@ -66645,26 +66645,26 @@ call AddPagedButtonsId((whichUnit ) , ( GetRaceObjectTypeId(i , j)) , PagedButto endloop endfunction -function WoWReforgedBuilder___GetTargetPlayer takes player whichPlayer returns player - return Player(WoWReforgedBuilder___targetPlayerIndex[GetPlayerId(whichPlayer)]) +function WoWReforgedBuilder__GetTargetPlayer takes player whichPlayer returns player + return Player(WoWReforgedBuilder__targetPlayerIndex[GetPlayerId(whichPlayer)]) endfunction -function WoWReforgedBuilder___TriggerConditionSell takes nothing returns boolean +function WoWReforgedBuilder__TriggerConditionSell takes nothing returns boolean local unit b= GetSellingUnit() local integer itemTypeId= GetItemTypeId(GetSoldItem()) local player owner= GetOwningPlayer(b) local integer playerId= GetPlayerId(owner) if ( GetUnitTypeId(b) == BUILDER ) then if ( itemTypeId == ITEM_TYPE_ID_PLAYER_RED ) then - set WoWReforgedBuilder___targetPlayerIndex[playerId]=0 + set WoWReforgedBuilder__targetPlayerIndex[playerId]=0 elseif ( itemTypeId == ITEM_TYPE_ID_NEUTRAL_HOSTILE ) then - set WoWReforgedBuilder___targetPlayerIndex[playerId]=PLAYER_NEUTRAL_AGGRESSIVE + set WoWReforgedBuilder__targetPlayerIndex[playerId]=PLAYER_NEUTRAL_AGGRESSIVE elseif ( itemTypeId == ITEM_TYPE_ID_NEUTRAL_PASSIVE ) then - set WoWReforgedBuilder___targetPlayerIndex[playerId]=PLAYER_NEUTRAL_PASSIVE + set WoWReforgedBuilder__targetPlayerIndex[playerId]=PLAYER_NEUTRAL_PASSIVE elseif ( itemTypeId == ITEM_TYPE_ID_COLOR_RED ) then - call SetPlayerColor((Player(WoWReforgedBuilder___targetPlayerIndex[GetPlayerId((owner))])), PLAYER_COLOR_RED) // INLINED!! + call SetPlayerColor((Player(WoWReforgedBuilder__targetPlayerIndex[GetPlayerId((owner))])), PLAYER_COLOR_RED) // INLINED!! else - call CreateUnit((Player(WoWReforgedBuilder___targetPlayerIndex[GetPlayerId((owner))])), itemTypeId, GetUnitX(b), GetUnitY(b), GetUnitFacing(b)) // INLINED!! + call CreateUnit((Player(WoWReforgedBuilder__targetPlayerIndex[GetPlayerId((owner))])), itemTypeId, GetUnitX(b), GetUnitY(b), GetUnitFacing(b)) // INLINED!! endif call h__RemoveItem(GetSoldItem()) endif @@ -66673,7 +66673,7 @@ function WoWReforgedBuilder___TriggerConditionSell takes nothing returns boolean return false endfunction -function WoWReforgedBuilder___TriggerConditionOrder takes nothing returns boolean +function WoWReforgedBuilder__TriggerConditionOrder takes nothing returns boolean if ( GetUnitTypeId(GetTriggerUnit()) == BUILDER ) then if ( GetIssuedOrderId() == OrderId("smart") or GetIssuedOrderId() == OrderId("move") ) then call IssuePointOrder(GetTriggerUnit(), "blink", GetOrderPointX(), GetOrderPointY()) @@ -66682,7 +66682,7 @@ function WoWReforgedBuilder___TriggerConditionOrder takes nothing returns boolea return false endfunction -function WoWReforgedBuilder___TriggerConditionOrderTarget takes nothing returns boolean +function WoWReforgedBuilder__TriggerConditionOrderTarget takes nothing returns boolean if ( GetUnitTypeId(GetTriggerUnit()) == BUILDER ) then if ( GetIssuedOrderId() == OrderId("smart") or GetIssuedOrderId() == OrderId("move") ) then call IssuePointOrder(GetTriggerUnit(), "blink", GetWidgetX(GetOrderTarget()), GetWidgetY(GetOrderTarget())) @@ -66691,15 +66691,15 @@ function WoWReforgedBuilder___TriggerConditionOrderTarget takes nothing returns return false endfunction -function WoWReforgedBuilder___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedBuilder___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedBuilder___sellTrigger, Condition(function WoWReforgedBuilder___TriggerConditionSell)) +function WoWReforgedBuilder__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedBuilder__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedBuilder__sellTrigger, Condition(function WoWReforgedBuilder__TriggerConditionSell)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedBuilder___orderTrigger, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER) - call TriggerAddCondition(WoWReforgedBuilder___orderTrigger, Condition(function WoWReforgedBuilder___TriggerConditionOrder)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedBuilder__orderTrigger, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER) + call TriggerAddCondition(WoWReforgedBuilder__orderTrigger, Condition(function WoWReforgedBuilder__TriggerConditionOrder)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedBuilder___orderTargetTrigger, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER) - call TriggerAddCondition(WoWReforgedBuilder___orderTargetTrigger, Condition(function WoWReforgedBuilder___TriggerConditionOrderTarget)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedBuilder__orderTargetTrigger, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER) + call TriggerAddCondition(WoWReforgedBuilder__orderTargetTrigger, Condition(function WoWReforgedBuilder__TriggerConditionOrderTarget)) endfunction @@ -66851,7 +66851,7 @@ endfunction function CompareCreeps takes nothing returns nothing local group g= CreateGroup() local unit u= null - local integer max= (WoWReforgedRaces___objectTypeCreepsCounter) // INLINED!! + local integer max= (WoWReforgedRaces__objectTypeCreepsCounter) // INLINED!! local integer i= 0 local integer j= 0 local integer max2= 0 @@ -66859,21 +66859,21 @@ function CompareCreeps takes nothing returns nothing call GroupEnumUnitsOfPlayer(g, Player(PLAYER_NEUTRAL_AGGRESSIVE), null) loop exitwhen ( i >= max ) - if ( not IsCritter((WoWReforgedRaces___objectTypeCreeps[(i)])) ) then // INLINED!! + if ( not IsCritter((WoWReforgedRaces__objectTypeCreeps[(i)])) ) then // INLINED!! set found=false set j=0 set max2=BlzGroupGetSize(g) loop exitwhen ( j >= max2 or found ) set u=BlzGroupUnitAt(g, j) - if ( (WoWReforgedRaces___objectTypeCreeps[(i)]) == GetUnitTypeId(u) ) then // INLINED!! + if ( (WoWReforgedRaces__objectTypeCreeps[(i)]) == GetUnitTypeId(u) ) then // INLINED!! set found=true endif set u=null set j=j + 1 endloop if ( not found ) then - call h__BJDebugMsg("Missing creep type " + GetObjectName((WoWReforgedRaces___objectTypeCreeps[(i)]))) // INLINED!! + call h__BJDebugMsg("Missing creep type " + GetObjectName((WoWReforgedRaces__objectTypeCreeps[(i)]))) // INLINED!! endif endif set i=i + 1 @@ -66885,21 +66885,21 @@ function CompareCreeps takes nothing returns nothing set i=0 loop exitwhen ( i >= max ) - if ( IsCritter((WoWReforgedRaces___objectTypeCreeps[(i)])) ) then // INLINED!! + if ( IsCritter((WoWReforgedRaces__objectTypeCreeps[(i)])) ) then // INLINED!! set found=false set j=0 set max2=BlzGroupGetSize(g) loop exitwhen ( j >= max2 or found ) set u=BlzGroupUnitAt(g, j) - if ( (WoWReforgedRaces___objectTypeCreeps[(i)]) == GetUnitTypeId(u) ) then // INLINED!! + if ( (WoWReforgedRaces__objectTypeCreeps[(i)]) == GetUnitTypeId(u) ) then // INLINED!! set found=true endif set u=null set j=j + 1 endloop if ( not found ) then - call h__BJDebugMsg("Missing critter type " + GetObjectName((WoWReforgedRaces___objectTypeCreeps[(i)]))) // INLINED!! + call h__BJDebugMsg("Missing critter type " + GetObjectName((WoWReforgedRaces__objectTypeCreeps[(i)]))) // INLINED!! endif endif set i=i + 1 @@ -66963,7 +66963,7 @@ endfunction //library WoWReforgedRacesTavern: -function WoWReforgedRacesTavern___AddRacesTavern takes unit tavern returns nothing +function WoWReforgedRacesTavern__AddRacesTavern takes unit tavern returns nothing local integer i= 1 call EnablePagedButtons(tavern) call SetPagedButtonsSlotsPerPage(tavern , 10) @@ -66979,12 +66979,12 @@ call AddPagedButtonsId((tavern ) , ( udg_RaceTavernItemType[i]) , PagedButtons_B call SetPagedButtonsPage(tavern , 0) endfunction -function WoWReforgedRacesTavern___ForGroupAddRacesTavern takes nothing returns nothing - call WoWReforgedRacesTavern___AddRacesTavern(GetEnumUnit()) +function WoWReforgedRacesTavern__ForGroupAddRacesTavern takes nothing returns nothing + call WoWReforgedRacesTavern__AddRacesTavern(GetEnumUnit()) endfunction -function WoWReforgedRacesTavern___TimerFunctionAddRacesTaverns takes nothing returns nothing - call ForGroupBJ(GetUnitsOfTypeIdAll(RACES_TAVERN), function WoWReforgedRacesTavern___ForGroupAddRacesTavern) +function WoWReforgedRacesTavern__TimerFunctionAddRacesTaverns takes nothing returns nothing + call ForGroupBJ(GetUnitsOfTypeIdAll(RACES_TAVERN), function WoWReforgedRacesTavern__ForGroupAddRacesTavern) call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) @@ -67023,7 +67023,7 @@ function SelectRandomRace takes unit buyingUnit,unit tavern returns nothing set owner=null endfunction -function WoWReforgedRacesTavern___TriggerConditionSellItem takes nothing returns boolean +function WoWReforgedRacesTavern__TriggerConditionSellItem takes nothing returns boolean if ( GetItemTypeId(GetSoldItem()) == ITEM_TYPE_RANDOM_RACE ) then call SelectRandomRace(GetBuyingUnit() , GetTriggerUnit()) call h__RemoveItem(GetSoldItem()) @@ -67031,11 +67031,11 @@ function WoWReforgedRacesTavern___TriggerConditionSellItem takes nothing returns return false endfunction -function WoWReforgedRacesTavern___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedRacesTavern___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedRacesTavern___sellTrigger, Condition(function WoWReforgedRacesTavern___TriggerConditionSellItem)) +function WoWReforgedRacesTavern__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedRacesTavern__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedRacesTavern__sellTrigger, Condition(function WoWReforgedRacesTavern__TriggerConditionSellItem)) - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedRacesTavern___TimerFunctionAddRacesTaverns) + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedRacesTavern__TimerFunctionAddRacesTaverns) endfunction @@ -67128,52 +67128,52 @@ function AddWoWReforgedFaithMine takes unit mine returns nothing endfunction function AddRandomMine takes integer buildingTypeId,integer resource,integer startAmount returns integer - local integer index= WoWReforgedResources___maxMines - set WoWReforgedResources___maxMines=WoWReforgedResources___maxMines + 1 - set WoWReforgedResources___mineTypes[index]=buildingTypeId - set WoWReforgedResources___mineResource[index]=resource - set WoWReforgedResources___mineStartAmount[index]=startAmount + local integer index= WoWReforgedResources__maxMines + set WoWReforgedResources__maxMines=WoWReforgedResources__maxMines + 1 + set WoWReforgedResources__mineTypes[index]=buildingTypeId + set WoWReforgedResources__mineResource[index]=resource + set WoWReforgedResources__mineStartAmount[index]=startAmount return index endfunction function AddRandomWaterMine takes integer buildingTypeId,integer resource,integer startAmount returns integer - local integer index= WoWReforgedResources___maxWaterMines - set WoWReforgedResources___maxWaterMines=WoWReforgedResources___maxWaterMines + 1 - set WoWReforgedResources___waterMineTypes[index]=buildingTypeId - set WoWReforgedResources___waterMineResource[index]=resource - set WoWReforgedResources___waterMineStartAmount[index]=startAmount + local integer index= WoWReforgedResources__maxWaterMines + set WoWReforgedResources__maxWaterMines=WoWReforgedResources__maxWaterMines + 1 + set WoWReforgedResources__waterMineTypes[index]=buildingTypeId + set WoWReforgedResources__waterMineResource[index]=resource + set WoWReforgedResources__waterMineStartAmount[index]=startAmount return index endfunction -function WoWReforgedResources___FilterIsFishSchool takes nothing returns boolean +function WoWReforgedResources__FilterIsFishSchool takes nothing returns boolean return GetUnitTypeId(GetFilterUnit()) == FISH_SCHOOL endfunction -function WoWReforgedResources___ForGroupAddFishSchool takes nothing returns nothing +function WoWReforgedResources__ForGroupAddFishSchool takes nothing returns nothing call AddMineEx(GetEnumUnit() , udg_ResourceMeat , 50000) endfunction function InitFishSchools takes nothing returns nothing local group fishSchools= CreateGroup() - call GroupEnumUnitsInRect(fishSchools, GetPlayableMapRect(), Filter(function WoWReforgedResources___FilterIsFishSchool)) - call ForGroup(fishSchools, function WoWReforgedResources___ForGroupAddFishSchool) + call GroupEnumUnitsInRect(fishSchools, GetPlayableMapRect(), Filter(function WoWReforgedResources__FilterIsFishSchool)) + call ForGroup(fishSchools, function WoWReforgedResources__ForGroupAddFishSchool) call GroupClear(fishSchools) call DestroyGroup(fishSchools) set fishSchools=null endfunction -function WoWReforgedResources___FilterIsBerryBushes takes nothing returns boolean +function WoWReforgedResources__FilterIsBerryBushes takes nothing returns boolean return GetUnitTypeId(GetFilterUnit()) == BERRY_BUSHES endfunction -function WoWReforgedResources___ForGroupAddBerryBushes takes nothing returns nothing +function WoWReforgedResources__ForGroupAddBerryBushes takes nothing returns nothing call AddMineEx(GetEnumUnit() , udg_ResourceFruits , 500) endfunction function InitBerryBushes takes nothing returns nothing local group berryBushes= CreateGroup() - call GroupEnumUnitsInRect(berryBushes, GetPlayableMapRect(), Filter(function WoWReforgedResources___FilterIsBerryBushes)) - call ForGroup(berryBushes, function WoWReforgedResources___ForGroupAddBerryBushes) + call GroupEnumUnitsInRect(berryBushes, GetPlayableMapRect(), Filter(function WoWReforgedResources__FilterIsBerryBushes)) + call ForGroup(berryBushes, function WoWReforgedResources__ForGroupAddBerryBushes) call GroupClear(berryBushes) call DestroyGroup(berryBushes) set berryBushes=null @@ -67196,12 +67196,12 @@ function InitRandomMines takes nothing returns nothing call AddRandomWaterMine(WATER_OIL_PLATFORM , udg_ResourceOil , 20000) endfunction -function WoWReforgedResources___FilterIsRandomMine takes nothing returns boolean +function WoWReforgedResources__FilterIsRandomMine takes nothing returns boolean local integer unitTypeId= GetUnitTypeId(GetFilterUnit()) local integer i= 0 loop - exitwhen ( i == WoWReforgedResources___maxMines ) - if ( unitTypeId == WoWReforgedResources___mineTypes[i] ) then + exitwhen ( i == WoWReforgedResources__maxMines ) + if ( unitTypeId == WoWReforgedResources__mineTypes[i] ) then return true endif set i=i + 1 @@ -67209,7 +67209,7 @@ function WoWReforgedResources___FilterIsRandomMine takes nothing returns boolean return false endfunction -function WoWReforgedResources___ForGroupRemoveUnit takes nothing returns nothing +function WoWReforgedResources__ForGroupRemoveUnit takes nothing returns nothing call h__RemoveUnit(GetEnumUnit()) endfunction @@ -67217,37 +67217,37 @@ function RemoveRandomMinesAtAIStartLocation takes integer computerStartLocation local real x= GetRectCenterX(udg_TownHallLocation[computerStartLocation]) local real y= GetRectCenterY(udg_TownHallLocation[computerStartLocation]) local group mines= CreateGroup() - call GroupEnumUnitsInRange(mines, x, y, 4096.0, Filter(function WoWReforgedResources___FilterIsRandomMine)) - call ForGroup(mines, function WoWReforgedResources___ForGroupRemoveUnit) + call GroupEnumUnitsInRange(mines, x, y, 4096.0, Filter(function WoWReforgedResources__FilterIsRandomMine)) + call ForGroup(mines, function WoWReforgedResources__ForGroupRemoveUnit) call GroupClear(mines) call DestroyGroup(mines) set mines=null endfunction function CreateRandomMine takes unit source returns unit - local integer random= GetRandomInt(0, WoWReforgedResources___maxMines - 1) + local integer random= GetRandomInt(0, WoWReforgedResources__maxMines - 1) local real x= GetUnitX(source) local real y= GetUnitY(source) - local unit result= ReplaceUnitBJ(source, WoWReforgedResources___mineTypes[random], bj_UNIT_STATE_METHOD_MAXIMUM) + local unit result= ReplaceUnitBJ(source, WoWReforgedResources__mineTypes[random], bj_UNIT_STATE_METHOD_MAXIMUM) call SetUnitOwner(result, Player(PLAYER_NEUTRAL_PASSIVE), true) call SetUnitX(result, x) call SetUnitY(result, y) - call AddMineEx(result , WoWReforgedResources___mineResource[random] , WoWReforgedResources___mineStartAmount[random]) + call AddMineEx(result , WoWReforgedResources__mineResource[random] , WoWReforgedResources__mineStartAmount[random]) return result endfunction function CreateRandomWaterMine takes unit source returns unit - local integer random= GetRandomInt(0, WoWReforgedResources___maxWaterMines - 1) + local integer random= GetRandomInt(0, WoWReforgedResources__maxWaterMines - 1) local real x= GetUnitX(source) local real y= GetUnitY(source) - local unit result= ReplaceUnitBJ(source, WoWReforgedResources___waterMineTypes[random], bj_UNIT_STATE_METHOD_MAXIMUM) + local unit result= ReplaceUnitBJ(source, WoWReforgedResources__waterMineTypes[random], bj_UNIT_STATE_METHOD_MAXIMUM) call SetUnitOwner(result, Player(PLAYER_NEUTRAL_PASSIVE), true) call SetUnitX(result, x) call SetUnitY(result, y) - call AddMineEx(result , WoWReforgedResources___waterMineResource[random] , WoWReforgedResources___waterMineStartAmount[random]) + call AddMineEx(result , WoWReforgedResources__waterMineResource[random] , WoWReforgedResources__waterMineStartAmount[random]) return result endfunction @@ -67513,17 +67513,17 @@ endfunction function AddNeutralBuildingMines takes nothing returns nothing local integer i= 0 - local integer max= WoWReforgedResources___maxMines + local integer max= WoWReforgedResources__maxMines loop exitwhen ( i == max ) - call AddNeutralUnit(WoWReforgedResources___mineTypes[i]) + call AddNeutralUnit(WoWReforgedResources__mineTypes[i]) set i=i + 1 endloop set i=0 - set max=WoWReforgedResources___maxWaterMines + set max=WoWReforgedResources__maxWaterMines loop exitwhen ( i == max ) - call AddNeutralUnit(WoWReforgedResources___waterMineTypes[i]) + call AddNeutralUnit(WoWReforgedResources__waterMineTypes[i]) set i=i + 1 endloop endfunction @@ -67563,21 +67563,21 @@ function Saddle takes unit mount returns boolean return result endfunction -function WoWReforgedSaddle__Load takes nothing returns nothing - if ( (WoWReforgedMounts__GetMountTypeByUnitTypeId((GetUnitTypeId((UnitEventEx__eventOther)))) != 0) ) then // INLINED!! +function WoWReforgedSaddle___Load takes nothing returns nothing + if ( (WoWReforgedMounts___GetMountTypeByUnitTypeId((GetUnitTypeId((UnitEventEx__eventOther)))) != 0) ) then // INLINED!! call Saddle((UnitEventEx__eventOther)) // INLINED!! endif endfunction -function WoWReforgedSaddle__Unload takes nothing returns nothing - if ( (WoWReforgedMounts__GetMountTypeByUnitTypeId((GetUnitTypeId((UnitEventEx__eventOther)))) != 0) ) then // INLINED!! +function WoWReforgedSaddle___Unload takes nothing returns nothing + if ( (WoWReforgedMounts___GetMountTypeByUnitTypeId((GetUnitTypeId((UnitEventEx__eventOther)))) != 0) ) then // INLINED!! call Saddle((UnitEventEx__eventOther)) // INLINED!! endif endfunction -function WoWReforgedSaddle__Init takes nothing returns nothing -call RegisterIndexNativeEvent(bj_MAX_PLAYER_SLOTS , (EVENT_ON_CARGO_LOAD ) , ( function WoWReforgedSaddle__Load)) // INLINED!! -call RegisterIndexNativeEvent(bj_MAX_PLAYER_SLOTS , (EVENT_ON_CARGO_UNLOAD ) , ( function WoWReforgedSaddle__Unload)) // INLINED!! +function WoWReforgedSaddle___Init takes nothing returns nothing +call RegisterIndexNativeEvent(bj_MAX_PLAYER_SLOTS , (EVENT_ON_CARGO_LOAD ) , ( function WoWReforgedSaddle___Load)) // INLINED!! +call RegisterIndexNativeEvent(bj_MAX_PLAYER_SLOTS , (EVENT_ON_CARGO_UNLOAD ) , ( function WoWReforgedSaddle___Unload)) // INLINED!! endfunction @@ -67596,31 +67596,31 @@ call AddPagedButtonsId((shop ) , ( udg_RaceItemType[i]) , PagedButtons_BUTTON_TY endloop endfunction -function WoWReforgedSceptersShop__FilterIsSceptersShop takes nothing returns boolean +function WoWReforgedSceptersShop___FilterIsSceptersShop takes nothing returns boolean return GetUnitTypeId(GetFilterUnit()) == SCEPTERS_SHOP endfunction -function WoWReforgedSceptersShop__ForGroupAddSceptersShop takes nothing returns nothing +function WoWReforgedSceptersShop___ForGroupAddSceptersShop takes nothing returns nothing call AddSceptersShop(GetEnumUnit()) endfunction function AddAllSceptersShops takes nothing returns nothing local group shops= CreateGroup() - call GroupEnumUnitsInRect(shops, GetPlayableMapRect(), Filter(function WoWReforgedSceptersShop__FilterIsSceptersShop)) - call ForGroup(shops, function WoWReforgedSceptersShop__ForGroupAddSceptersShop) + call GroupEnumUnitsInRect(shops, GetPlayableMapRect(), Filter(function WoWReforgedSceptersShop___FilterIsSceptersShop)) + call ForGroup(shops, function WoWReforgedSceptersShop___ForGroupAddSceptersShop) call GroupClear(shops) call DestroyGroup(shops) set shops=null endfunction -function WoWReforgedSceptersShop__TimerFunctionAddAllSceptersShop takes nothing returns nothing +function WoWReforgedSceptersShop___TimerFunctionAddAllSceptersShop takes nothing returns nothing call AddAllSceptersShops() call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) endfunction -function WoWReforgedSceptersShop__Init takes nothing returns nothing - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedSceptersShop__TimerFunctionAddAllSceptersShop) +function WoWReforgedSceptersShop___Init takes nothing returns nothing + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedSceptersShop___TimerFunctionAddAllSceptersShop) endfunction @@ -67629,13 +67629,13 @@ endfunction function GetThiefStockUpdateTimerHandleId takes nothing returns integer - return GetHandleId(WoWReforgedThievesGuild__stockUpdateTimer) + return GetHandleId(WoWReforgedThievesGuild___stockUpdateTimer) endfunction //=========================================================================== // Find a sellable item of the given type and level, and then add it. // -function WoWReforgedThievesGuild__UpdateEachStockBuildingEnum takes nothing returns nothing +function WoWReforgedThievesGuild___UpdateEachStockBuildingEnum takes nothing returns nothing local integer iteration= 0 local integer pickedItemId @@ -67654,17 +67654,17 @@ function WoWReforgedThievesGuild__UpdateEachStockBuildingEnum takes nothing retu endfunction //=========================================================================== -function WoWReforgedThievesGuild__UpdateEachStockBuilding takes itemtype iType,integer iLevel returns nothing +function WoWReforgedThievesGuild___UpdateEachStockBuilding takes itemtype iType,integer iLevel returns nothing set bj_stockPickedItemType=iType set bj_stockPickedItemLevel=iLevel - call ForGroup(WoWReforgedThievesGuild__thievesGuilds, function WoWReforgedThievesGuild__UpdateEachStockBuildingEnum) + call ForGroup(WoWReforgedThievesGuild___thievesGuilds, function WoWReforgedThievesGuild___UpdateEachStockBuildingEnum) endfunction //=========================================================================== // Update stock inventory. // -function WoWReforgedThievesGuild__PerformStockUpdates takes nothing returns nothing +function WoWReforgedThievesGuild___PerformStockUpdates takes nothing returns nothing local integer pickedItemId local itemtype pickedItemType local integer pickedItemLevel= 0 @@ -67705,15 +67705,15 @@ function WoWReforgedThievesGuild__PerformStockUpdates takes nothing returns noth return endif - call WoWReforgedThievesGuild__UpdateEachStockBuilding(pickedItemType , pickedItemLevel) + call WoWReforgedThievesGuild___UpdateEachStockBuilding(pickedItemType , pickedItemLevel) endfunction //=========================================================================== // Perform the first update, and then arrange future updates. // -function WoWReforgedThievesGuild__StartStockUpdates takes nothing returns nothing - call WoWReforgedThievesGuild__PerformStockUpdates() - call TimerStart(WoWReforgedThievesGuild__stockUpdateTimer, bj_STOCK_RESTOCK_INTERVAL, true, function WoWReforgedThievesGuild__PerformStockUpdates) +function WoWReforgedThievesGuild___StartStockUpdates takes nothing returns nothing + call WoWReforgedThievesGuild___PerformStockUpdates() + call TimerStart(WoWReforgedThievesGuild___stockUpdateTimer, bj_STOCK_RESTOCK_INTERVAL, true, function WoWReforgedThievesGuild___PerformStockUpdates) endfunction function IsThievesGuild takes integer unitTypeId returns boolean @@ -67724,7 +67724,7 @@ function IsUnitThievesGuild takes unit whichUnit returns boolean return IsThievesGuild(GetUnitTypeId(whichUnit)) endfunction -function WoWReforgedThievesGuild__IsValidUnit takes player previousOwner,unit whichUnit returns boolean +function WoWReforgedThievesGuild___IsValidUnit takes player previousOwner,unit whichUnit returns boolean local integer unitTypeId= GetUnitTypeId(whichUnit) if ( previousOwner != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) then return false @@ -67742,32 +67742,32 @@ function WoWReforgedThievesGuild__IsValidUnit takes player previousOwner,unit wh return true endfunction -function WoWReforgedThievesGuild__ForGroupAddUnitToThievesGuild takes nothing returns nothing - local integer unitTypeId= GetUnitTypeId(WoWReforgedThievesGuild__tmpUnit) +function WoWReforgedThievesGuild___ForGroupAddUnitToThievesGuild takes nothing returns nothing + local integer unitTypeId= GetUnitTypeId(WoWReforgedThievesGuild___tmpUnit) local integer whichRace= GetObjectRace(unitTypeId) local unit u= GetEnumUnit() local player owner= GetOwningPlayer(u) //call BJDebugMsg("Checking thieves guild " + GetUnitName(u) + " with enemy " + GetUnitName(tmpUnit)) - if ( IsPlayerEnemy(WoWReforgedThievesGuild__tmpPreviousOwner, owner) and ( whichRace == udg_RaceNone or PlayerHasRace(owner , whichRace) ) ) then - call AddUnitToStock(u, GetUnitTypeId(WoWReforgedThievesGuild__tmpUnit), 1, 1) + if ( IsPlayerEnemy(WoWReforgedThievesGuild___tmpPreviousOwner, owner) and ( whichRace == udg_RaceNone or PlayerHasRace(owner , whichRace) ) ) then + call AddUnitToStock(u, GetUnitTypeId(WoWReforgedThievesGuild___tmpUnit), 1, 1) endif set u=null set owner=null endfunction -function WoWReforgedThievesGuild__AddUnitToThievesGuild takes player previousOwner,unit whichUnit returns nothing - set WoWReforgedThievesGuild__tmpUnit=whichUnit - set WoWReforgedThievesGuild__tmpPreviousOwner=previousOwner - call ForGroup(WoWReforgedThievesGuild__thievesGuilds, function WoWReforgedThievesGuild__ForGroupAddUnitToThievesGuild) +function WoWReforgedThievesGuild___AddUnitToThievesGuild takes player previousOwner,unit whichUnit returns nothing + set WoWReforgedThievesGuild___tmpUnit=whichUnit + set WoWReforgedThievesGuild___tmpPreviousOwner=previousOwner + call ForGroup(WoWReforgedThievesGuild___thievesGuilds, function WoWReforgedThievesGuild___ForGroupAddUnitToThievesGuild) endfunction -function WoWReforgedThievesGuild__TriggerConditionDeath takes nothing returns boolean +function WoWReforgedThievesGuild___TriggerConditionDeath takes nothing returns boolean local unit u= GetTriggerUnit() local player owner= GetOwningPlayer(u) - if ( IsUnitInGroup(u, WoWReforgedThievesGuild__thievesGuilds) ) then - call GroupRemoveUnit(WoWReforgedThievesGuild__thievesGuilds, u) - elseif ( WoWReforgedThievesGuild__IsValidUnit(owner , u) ) then - call WoWReforgedThievesGuild__AddUnitToThievesGuild(owner , u) + if ( IsUnitInGroup(u, WoWReforgedThievesGuild___thievesGuilds) ) then + call GroupRemoveUnit(WoWReforgedThievesGuild___thievesGuilds, u) + elseif ( WoWReforgedThievesGuild___IsValidUnit(owner , u) ) then + call WoWReforgedThievesGuild___AddUnitToThievesGuild(owner , u) endif set u=null set owner=null @@ -67775,21 +67775,21 @@ function WoWReforgedThievesGuild__TriggerConditionDeath takes nothing returns bo return false endfunction -function WoWReforgedThievesGuild__TriggerConditionChangesOwner takes nothing returns boolean +function WoWReforgedThievesGuild___TriggerConditionChangesOwner takes nothing returns boolean local unit u= GetTriggerUnit() - if ( WoWReforgedThievesGuild__IsValidUnit(GetChangingUnitPrevOwner() , u) ) then - call WoWReforgedThievesGuild__AddUnitToThievesGuild(GetChangingUnitPrevOwner() , u) + if ( WoWReforgedThievesGuild___IsValidUnit(GetChangingUnitPrevOwner() , u) ) then + call WoWReforgedThievesGuild___AddUnitToThievesGuild(GetChangingUnitPrevOwner() , u) endif set u=null return false endfunction -function WoWReforgedThievesGuild__TriggerConditionConstructFinish takes nothing returns boolean +function WoWReforgedThievesGuild___TriggerConditionConstructFinish takes nothing returns boolean local unit b= GetConstructedStructure() local integer unitTypeId= GetUnitTypeId(b) if ( IsThievesGuild(unitTypeId) ) then - call GroupAddUnit(WoWReforgedThievesGuild__thievesGuilds, b) + call GroupAddUnit(WoWReforgedThievesGuild___thievesGuilds, b) if ( unitTypeId == THIEVES_GUILD_THIEF or unitTypeId == BANDIT_THIEVES_GUILD ) then call SetItemTypeSlots(b, 6) @@ -67804,11 +67804,11 @@ function WoWReforgedThievesGuild__TriggerConditionConstructFinish takes nothing return false endfunction -function WoWReforgedThievesGuild__RemovePurchasedUnit takes nothing returns nothing +function WoWReforgedThievesGuild___RemovePurchasedUnit takes nothing returns nothing call RemoveUnitFromStock(GetSellingUnit(), GetUnitTypeId(GetSoldUnit())) endfunction -function WoWReforgedThievesGuild__TriggerConditionSell takes nothing returns boolean +function WoWReforgedThievesGuild___TriggerConditionSell takes nothing returns boolean if ( (IsThievesGuild(GetUnitTypeId((GetSellingUnit())))) ) then // INLINED!! call RemoveUnitFromStock(GetSellingUnit(), GetUnitTypeId(GetSoldUnit())) // INLINED!! endif @@ -67816,7 +67816,7 @@ function WoWReforgedThievesGuild__TriggerConditionSell takes nothing returns boo return false endfunction -function WoWReforgedThievesGuild__TriggerConditionSellItem takes nothing returns boolean +function WoWReforgedThievesGuild___TriggerConditionSellItem takes nothing returns boolean if ( (IsThievesGuild(GetUnitTypeId((GetSellingUnit())))) ) then // INLINED!! call RemovePurchasedItem() endif @@ -67824,33 +67824,33 @@ function WoWReforgedThievesGuild__TriggerConditionSellItem takes nothing returns return false endfunction -function WoWReforgedThievesGuild__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild__deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedThievesGuild__deathTrigger, Condition(function WoWReforgedThievesGuild__TriggerConditionDeath)) +function WoWReforgedThievesGuild___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild___deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedThievesGuild___deathTrigger, Condition(function WoWReforgedThievesGuild___TriggerConditionDeath)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild__changesOwnerTrigger, EVENT_PLAYER_UNIT_CHANGE_OWNER) - call TriggerAddCondition(WoWReforgedThievesGuild__changesOwnerTrigger, Condition(function WoWReforgedThievesGuild__TriggerConditionChangesOwner)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild___changesOwnerTrigger, EVENT_PLAYER_UNIT_CHANGE_OWNER) + call TriggerAddCondition(WoWReforgedThievesGuild___changesOwnerTrigger, Condition(function WoWReforgedThievesGuild___TriggerConditionChangesOwner)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild__constructFinishTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedThievesGuild__constructFinishTrigger, Condition(function WoWReforgedThievesGuild__TriggerConditionConstructFinish)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild___constructFinishTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedThievesGuild___constructFinishTrigger, Condition(function WoWReforgedThievesGuild___TriggerConditionConstructFinish)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild__sellUnitTrigger, EVENT_PLAYER_UNIT_SELL) - call TriggerAddCondition(WoWReforgedThievesGuild__sellUnitTrigger, Condition(function WoWReforgedThievesGuild__TriggerConditionSell)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild___sellUnitTrigger, EVENT_PLAYER_UNIT_SELL) + call TriggerAddCondition(WoWReforgedThievesGuild___sellUnitTrigger, Condition(function WoWReforgedThievesGuild___TriggerConditionSell)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild__sellItemTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedThievesGuild__sellItemTrigger, Condition(function WoWReforgedThievesGuild__TriggerConditionSellItem)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedThievesGuild___sellItemTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedThievesGuild___sellItemTrigger, Condition(function WoWReforgedThievesGuild___TriggerConditionSellItem)) // Arrange the first update. - call TimerStart(WoWReforgedThievesGuild__stockUpdateTimer, bj_STOCK_RESTOCK_INITIAL_DELAY, false, function WoWReforgedThievesGuild__StartStockUpdates) + call TimerStart(WoWReforgedThievesGuild___stockUpdateTimer, bj_STOCK_RESTOCK_INITIAL_DELAY, false, function WoWReforgedThievesGuild___StartStockUpdates) endfunction -function WoWReforgedThievesGuild__RemoveUnitHook takes unit whichUnit returns nothing - if ( IsUnitInGroup(whichUnit, WoWReforgedThievesGuild__thievesGuilds) ) then - call GroupRemoveUnit(WoWReforgedThievesGuild__thievesGuilds, whichUnit) +function WoWReforgedThievesGuild___RemoveUnitHook takes unit whichUnit returns nothing + if ( IsUnitInGroup(whichUnit, WoWReforgedThievesGuild___thievesGuilds) ) then + call GroupRemoveUnit(WoWReforgedThievesGuild___thievesGuilds, whichUnit) endif endfunction -//processed hook: hook RemoveUnit WoWReforgedThievesGuild__RemoveUnitHook +//processed hook: hook RemoveUnit WoWReforgedThievesGuild___RemoveUnitHook //library WoWReforgedThievesGuild ends @@ -67868,7 +67868,7 @@ endfunction function FilterIsWrapableBuilding takes nothing returns boolean local unit filterUnit= GetFilterUnit() - local boolean result= IsUnitType(filterUnit, UNIT_TYPE_STRUCTURE) and GetBuildingItemId(GetUnitTypeId(filterUnit)) != 0 and IsUnitInGroup(filterUnit, WoWReforgedWrapUp___constructedBuildings) + local boolean result= IsUnitType(filterUnit, UNIT_TYPE_STRUCTURE) and GetBuildingItemId(GetUnitTypeId(filterUnit)) != 0 and IsUnitInGroup(filterUnit, WoWReforgedWrapUp__constructedBuildings) set filterUnit=null return result endfunction @@ -67909,7 +67909,7 @@ function WrapUpAllBuildings takes unit caster,real x,real y returns integer local item whichItem= null local item array allItems local integer allItemsCounter= 0 - set WoWReforgedWrapUp___tmpPlayer=whichPlayer + set WoWReforgedWrapUp__tmpPlayer=whichPlayer call GroupEnumUnitsInRange(allBuildings, x, y, 1024.0, Filter(function FilterIsWrapableBuilding)) set max=BlzGroupGetSize(allBuildings) loop @@ -67952,34 +67952,34 @@ function WrapUpAllBuildings takes unit caster,real x,real y returns integer return counter endfunction -function WoWReforgedWrapUp___TriggerActionConstructed takes nothing returns nothing - call GroupAddUnit(WoWReforgedWrapUp___constructedBuildings, GetConstructedStructure()) +function WoWReforgedWrapUp__TriggerActionConstructed takes nothing returns nothing + call GroupAddUnit(WoWReforgedWrapUp__constructedBuildings, GetConstructedStructure()) endfunction -function WoWReforgedWrapUp___TriggerConditionIsConstructed takes nothing returns boolean - return IsUnitInGroup(GetTriggerUnit(), WoWReforgedWrapUp___constructedBuildings) +function WoWReforgedWrapUp__TriggerConditionIsConstructed takes nothing returns boolean + return IsUnitInGroup(GetTriggerUnit(), WoWReforgedWrapUp__constructedBuildings) endfunction -function WoWReforgedWrapUp___TriggerActionDeath takes nothing returns nothing - call GroupRemoveUnit(WoWReforgedWrapUp___constructedBuildings, GetTriggerUnit()) +function WoWReforgedWrapUp__TriggerActionDeath takes nothing returns nothing + call GroupRemoveUnit(WoWReforgedWrapUp__constructedBuildings, GetTriggerUnit()) endfunction -function WoWReforgedWrapUp___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedWrapUp___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddAction(WoWReforgedWrapUp___constructionTrigger, function WoWReforgedWrapUp___TriggerActionConstructed) +function WoWReforgedWrapUp__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedWrapUp__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddAction(WoWReforgedWrapUp__constructionTrigger, function WoWReforgedWrapUp__TriggerActionConstructed) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedWrapUp___deathTrigger, EVENT_PLAYER_UNIT_DEATH) - call TriggerAddCondition(WoWReforgedWrapUp___deathTrigger, Condition(function WoWReforgedWrapUp___TriggerConditionIsConstructed)) - call TriggerAddAction(WoWReforgedWrapUp___deathTrigger, function WoWReforgedWrapUp___TriggerActionDeath) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedWrapUp__deathTrigger, EVENT_PLAYER_UNIT_DEATH) + call TriggerAddCondition(WoWReforgedWrapUp__deathTrigger, Condition(function WoWReforgedWrapUp__TriggerConditionIsConstructed)) + call TriggerAddAction(WoWReforgedWrapUp__deathTrigger, function WoWReforgedWrapUp__TriggerActionDeath) endfunction -function WoWReforgedWrapUp___HookRemoveConstructedBuilding takes unit whichUnit returns nothing - if ( IsUnitInGroup(whichUnit, WoWReforgedWrapUp___constructedBuildings) ) then - call GroupRemoveUnit(WoWReforgedWrapUp___constructedBuildings, whichUnit) +function WoWReforgedWrapUp__HookRemoveConstructedBuilding takes unit whichUnit returns nothing + if ( IsUnitInGroup(whichUnit, WoWReforgedWrapUp__constructedBuildings) ) then + call GroupRemoveUnit(WoWReforgedWrapUp__constructedBuildings, whichUnit) endif endfunction -//processed hook: hook RemoveUnit WoWReforgedWrapUp___HookRemoveConstructedBuilding +//processed hook: hook RemoveUnit WoWReforgedWrapUp__HookRemoveConstructedBuilding //library WoWReforgedWrapUp ends @@ -68032,7 +68032,7 @@ function MultiplyItem takes unit caster,item target returns item return copy endfunction -function WowReforgedMultiply__TriggerConditionCast takes nothing returns boolean +function WowReforgedMultiply___TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == WowReforgedMultiply_ABILITY_ID ) then if ( GetSpellTargetUnit() != null ) then call MultiplyUnit(GetTriggerUnit() , GetSpellTargetUnit()) @@ -68046,9 +68046,9 @@ function WowReforgedMultiply__TriggerConditionCast takes nothing returns boolean return false endfunction -function WowReforgedMultiply__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WowReforgedMultiply__castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) - call TriggerAddCondition(WowReforgedMultiply__castTrigger, Condition(function WowReforgedMultiply__TriggerConditionCast)) +function WowReforgedMultiply___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WowReforgedMultiply___castTrigger, EVENT_PLAYER_UNIT_SPELL_CHANNEL) + call TriggerAddCondition(WowReforgedMultiply___castTrigger, Condition(function WowReforgedMultiply___TriggerConditionCast)) endfunction @@ -68058,20 +68058,20 @@ endfunction function GetArenaTicketsMax takes nothing returns integer - return WoWReforgedArena__ticketsCounter + return WoWReforgedArena___ticketsCounter endfunction function GetArenaTicket takes integer index returns integer - return WoWReforgedArena__tickets[index] + return WoWReforgedArena___tickets[index] endfunction function GetArenaTicketByTicket takes integer itemTypeId returns integer local integer i= 0 - local integer max= (WoWReforgedArena__ticketsCounter) // INLINED!! + local integer max= (WoWReforgedArena___ticketsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( s__ArenaTicket_itemTypeId[(WoWReforgedArena__tickets[(i)])] == itemTypeId ) then // INLINED!! - return (WoWReforgedArena__tickets[(i)]) // INLINED!! + if ( s__ArenaTicket_itemTypeId[(WoWReforgedArena___tickets[(i)])] == itemTypeId ) then // INLINED!! + return (WoWReforgedArena___tickets[(i)]) // INLINED!! endif set i=i + 1 endloop @@ -68080,11 +68080,11 @@ endfunction function GetArenaTicketByReward takes integer itemTypeId returns integer local integer i= 0 - local integer max= (WoWReforgedArena__ticketsCounter) // INLINED!! + local integer max= (WoWReforgedArena___ticketsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( s__ArenaTicket_rewardItemTypeId[(WoWReforgedArena__tickets[(i)])] == itemTypeId ) then // INLINED!! - return (WoWReforgedArena__tickets[(i)]) // INLINED!! + if ( s__ArenaTicket_rewardItemTypeId[(WoWReforgedArena___tickets[(i)])] == itemTypeId ) then // INLINED!! + return (WoWReforgedArena___tickets[(i)]) // INLINED!! endif set i=i + 1 endloop @@ -68093,17 +68093,17 @@ endfunction function GetArenaTicketByOpponent takes integer unitTypeId returns integer local integer i= 0 - local integer max= (WoWReforgedArena__ticketsCounter) // INLINED!! + local integer max= (WoWReforgedArena___ticketsCounter) // INLINED!! local integer j= 0 local integer max2= 0 loop exitwhen ( i == max ) set j=0 - set max2=s__ArenaTicket_unitTypeIdsCounter[(WoWReforgedArena__tickets[(i)])] // INLINED!! + set max2=s__ArenaTicket_unitTypeIdsCounter[(WoWReforgedArena___tickets[(i)])] // INLINED!! loop exitwhen ( j == max2 ) - if ( s___ArenaTicket_unitTypeIds[s__ArenaTicket_unitTypeIds[(WoWReforgedArena__tickets[(i)])]+j] == unitTypeId ) then // INLINED!! - return (WoWReforgedArena__tickets[(i)]) // INLINED!! + if ( s___ArenaTicket_unitTypeIds[s__ArenaTicket_unitTypeIds[(WoWReforgedArena___tickets[(i)])]+j] == unitTypeId ) then // INLINED!! + return (WoWReforgedArena___tickets[(i)]) // INLINED!! endif set j=j + 1 endloop @@ -68125,14 +68125,14 @@ function AddArenaTicket takes integer itemTypeId,integer rewardItemTypeId return set s__ArenaTicket_itemTypeId[this]=itemTypeId set s__ArenaTicket_rewardItemTypeId[this]=rewardItemTypeId - set WoWReforgedArena__tickets[WoWReforgedArena__ticketsCounter]=this - set WoWReforgedArena__ticketsCounter=WoWReforgedArena__ticketsCounter + 1 + set WoWReforgedArena___tickets[WoWReforgedArena___ticketsCounter]=this + set WoWReforgedArena___ticketsCounter=WoWReforgedArena___ticketsCounter + 1 return this endfunction function AddArenaTicketUnitType takes integer unitTypeId,integer count returns nothing - local integer t= WoWReforgedArena__tickets[WoWReforgedArena__ticketsCounter - 1] + local integer t= WoWReforgedArena___tickets[WoWReforgedArena___ticketsCounter - 1] set s___ArenaTicket_unitTypeIds[s__ArenaTicket_unitTypeIds[t]+s__ArenaTicket_unitTypeIdsCounter[t]]=unitTypeId set s___ArenaTicket_unitTypeIdsCounts[s__ArenaTicket_unitTypeIdsCounts[t]+s__ArenaTicket_unitTypeIdsCounter[t]]=count set s__ArenaTicket_unitTypeIdsCounter[t]=s__ArenaTicket_unitTypeIdsCounter[t] + 1 @@ -68140,11 +68140,11 @@ endfunction function AddSaveObjectItemTypesFromArena takes nothing returns nothing local integer i= 0 - local integer max= (WoWReforgedArena__ticketsCounter) // INLINED!! + local integer max= (WoWReforgedArena___ticketsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( s__ArenaTicket_rewardItemTypeId[(WoWReforgedArena__tickets[(i)])] != 0 ) then // INLINED!! - call AddSaveObjectItemTypeEx(GetObjectName(s__ArenaTicket_rewardItemTypeId[(WoWReforgedArena__tickets[(i)])]) , s__ArenaTicket_rewardItemTypeId[(WoWReforgedArena__tickets[(i)])]) // INLINED!! + if ( s__ArenaTicket_rewardItemTypeId[(WoWReforgedArena___tickets[(i)])] != 0 ) then // INLINED!! + call AddSaveObjectItemTypeEx(GetObjectName(s__ArenaTicket_rewardItemTypeId[(WoWReforgedArena___tickets[(i)])]) , s__ArenaTicket_rewardItemTypeId[(WoWReforgedArena___tickets[(i)])]) // INLINED!! endif set i=i + 1 endloop @@ -68219,7 +68219,7 @@ function EnterArena takes unit hero,rect whichRect,rect targetRect,string enterM return found endfunction -function WoWReforgedArena__Init takes nothing returns nothing +function WoWReforgedArena___Init takes nothing returns nothing call AddArenaTicket(ITEM_TYPE_TICKET_1 , ITEM_TYPE_STONE_TOKEN) call AddArenaTicketUnitType('nogr' , 2) call AddArenaTicket(ITEM_TYPE_TICKET_2 , ITEM_TYPE_TALISMAN_OF_THE_WILD) @@ -68286,11 +68286,11 @@ function CheatItems takes player whichPlayer returns nothing endloop set i=0 - set max=(WoWReforgedQuests__questsMax) // INLINED!! + set max=(WoWReforgedQuests___questsMax) // INLINED!! loop exitwhen ( i == max ) - if ( (WoWReforgedQuests__questReward[(i)]) != 0 ) then // INLINED!! - set whichItem=UnitAddItemById(hero, (WoWReforgedQuests__questReward[(i)])) // INLINED!! + if ( (WoWReforgedQuests___questReward[(i)]) != 0 ) then // INLINED!! + set whichItem=UnitAddItemById(hero, (WoWReforgedQuests___questReward[(i)])) // INLINED!! else call h__BJDebugMsg("Warning: Quest reward item with index " + I2S(i) + " is 0.") endif @@ -68334,7 +68334,7 @@ function CheatHeroSkills takes player whichPlayer returns nothing endloop endfunction -function WoWReforgedCheats__ForGroupCheckSaveCodeMissing takes nothing returns nothing +function WoWReforgedCheats___ForGroupCheckSaveCodeMissing takes nothing returns nothing local integer unitTypeId= GetUnitTypeId(GetEnumUnit()) local integer index= GetSaveObjectUnitType(unitTypeId) @@ -68347,7 +68347,7 @@ function WoWReforgedCheats__ForGroupCheckSaveCodeMissing takes nothing returns n endif endfunction -function WoWReforgedCheats__ForItemGroupCheckSaveCodeMissing takes nothing returns nothing +function WoWReforgedCheats___ForItemGroupCheckSaveCodeMissing takes nothing returns nothing local integer unitTypeId= GetItemTypeId(GetEnumItem()) local integer index= GetSaveObjectItemType(unitTypeId) @@ -68359,15 +68359,15 @@ endfunction function CheatSaveCodeMissing takes nothing returns nothing local group g= CreateGroup() call GroupEnumUnitsOfPlayer(g, Player(PLAYER_NEUTRAL_AGGRESSIVE), null) - call ForGroup(g, function WoWReforgedCheats__ForGroupCheckSaveCodeMissing) + call ForGroup(g, function WoWReforgedCheats___ForGroupCheckSaveCodeMissing) call GroupClear(g) call DestroyGroup(g) set g=null - call EnumItemsInRect(GetPlayableMapRect(), null, function WoWReforgedCheats__ForItemGroupCheckSaveCodeMissing) + call EnumItemsInRect(GetPlayableMapRect(), null, function WoWReforgedCheats___ForItemGroupCheckSaveCodeMissing) endfunction -function WoWReforgedCheats__PrintProfession takes integer p returns nothing +function WoWReforgedCheats___PrintProfession takes integer p returns nothing local integer i= 0 local integer max= PROFESSION_RANK_MAX local integer j= 0 @@ -68393,10 +68393,10 @@ endfunction function CheatProfessions takes nothing returns nothing local integer i= 0 - local integer max= (WoWReforgedProfessions___professionsCounter) // INLINED!! + local integer max= (WoWReforgedProfessions__professionsCounter) // INLINED!! loop exitwhen ( i == max ) - call WoWReforgedCheats__PrintProfession(i) + call WoWReforgedCheats___PrintProfession(i) set i=i + 1 endloop endfunction @@ -68430,10 +68430,10 @@ endfunction function AddSaveCodeItemsTrophies takes nothing returns nothing local integer i= 0 - local integer max= (WoWReforgedHunter__trophyCounter) // INLINED!! + local integer max= (WoWReforgedHunter___trophyCounter) // INLINED!! loop exitwhen ( i == max ) - call AddSaveObjectItemTypeEx(GetObjectName((WoWReforgedHunter__trophyItemTypeIds[(i)])) , (WoWReforgedHunter__trophyItemTypeIds[(i)])) // INLINED!! + call AddSaveObjectItemTypeEx(GetObjectName((WoWReforgedHunter___trophyItemTypeIds[(i)])) , (WoWReforgedHunter___trophyItemTypeIds[(i)])) // INLINED!! set i=i + 1 endloop endfunction @@ -68444,11 +68444,11 @@ endfunction function GetRacingTracksCount takes nothing returns integer - return WoWReforgedRacing__racingTracksCounter + return WoWReforgedRacing___racingTracksCounter endfunction function GetRacingTrack takes integer index returns integer - return WoWReforgedRacing__racingTracks[index] + return WoWReforgedRacing___racingTracks[index] endfunction @@ -68456,7 +68456,7 @@ function RacingTrackWasFinished takes integer racingTrack,player whichPlayer ret return s___RacingTrack_finished[s__RacingTrack_finished[racingTrack]+GetPlayerId(whichPlayer)] endfunction -function WoWReforgedRacing__RefreshRacingTrackCheckpointEffect takes integer racingTrack,integer playerId returns nothing +function WoWReforgedRacing___RefreshRacingTrackCheckpointEffect takes integer racingTrack,integer playerId returns nothing local player whichPlayer= Player(playerId) local integer index= s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[racingTrack]+playerId] if ( s___RacingTrack_checkpointEffects[s__RacingTrack_checkpointEffects[racingTrack]+playerId] != null ) then @@ -68473,7 +68473,7 @@ function WoWReforgedRacing__RefreshRacingTrackCheckpointEffect takes integer rac set whichPlayer=null endfunction -function WoWReforgedRacing__SetCheckPointsVisible takes integer racingTrack,boolean visible returns nothing +function WoWReforgedRacing___SetCheckPointsVisible takes integer racingTrack,boolean visible returns nothing local integer max= s__RacingTrack_checkpointsCounter[racingTrack] local integer i= 0 loop @@ -68483,20 +68483,20 @@ function WoWReforgedRacing__SetCheckPointsVisible takes integer racingTrack,bool endloop endfunction -function WoWReforgedRacing__SetAllCheckPointsVisible takes boolean visible returns nothing +function WoWReforgedRacing___SetAllCheckPointsVisible takes boolean visible returns nothing local integer i= 0 loop - exitwhen ( i >= WoWReforgedRacing__racingTracksCounter ) - call WoWReforgedRacing__SetCheckPointsVisible(WoWReforgedRacing__racingTracks[i] , visible) + exitwhen ( i >= WoWReforgedRacing___racingTracksCounter ) + call WoWReforgedRacing___SetCheckPointsVisible(WoWReforgedRacing___racingTracks[i] , visible) set i=i + 1 endloop endfunction -function WoWReforgedRacing__HideCheckPointsVisible takes nothing returns nothing - call WoWReforgedRacing__SetAllCheckPointsVisible(false) +function WoWReforgedRacing___HideCheckPointsVisible takes nothing returns nothing + call WoWReforgedRacing___SetAllCheckPointsVisible(false) endfunction -function WoWReforgedRacing__SetCheckPointsDone takes integer racingTrack,integer done returns nothing +function WoWReforgedRacing___SetCheckPointsDone takes integer racingTrack,integer done returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) @@ -68505,23 +68505,23 @@ function WoWReforgedRacing__SetCheckPointsDone takes integer racingTrack,integer endloop endfunction -function WoWReforgedRacing__RefreshAllCheckPointEffects takes integer racingTrack returns nothing +function WoWReforgedRacing___RefreshAllCheckPointEffects takes integer racingTrack returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) - call WoWReforgedRacing__RefreshRacingTrackCheckpointEffect(racingTrack , i) + call WoWReforgedRacing___RefreshRacingTrackCheckpointEffect(racingTrack , i) set i=i + 1 endloop endfunction function GetPlayerRacingTrackNextCheckPoint takes player whichPlayer returns unit - if ( WoWReforgedRacing__currentRacingTrack == 0 ) then + if ( WoWReforgedRacing___currentRacingTrack == 0 ) then return null endif - return s___RacingTrack_checkpoints[s__RacingTrack_checkpoints[WoWReforgedRacing__currentRacingTrack]+s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[WoWReforgedRacing__currentRacingTrack]+GetPlayerId(whichPlayer)]] + return s___RacingTrack_checkpoints[s__RacingTrack_checkpoints[WoWReforgedRacing___currentRacingTrack]+s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[WoWReforgedRacing___currentRacingTrack]+GetPlayerId(whichPlayer)]] endfunction -function WoWReforgedRacing__DestoyAllCheckPointEffects takes integer racingTrack returns nothing +function WoWReforgedRacing___DestoyAllCheckPointEffects takes integer racingTrack returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) @@ -68534,40 +68534,40 @@ function WoWReforgedRacing__DestoyAllCheckPointEffects takes integer racingTrack endloop endfunction -function WoWReforgedRacing__FinishRacingTrack takes integer racingTrack returns nothing +function WoWReforgedRacing___FinishRacingTrack takes integer racingTrack returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) if ( s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[racingTrack]+i] >= s__RacingTrack_checkpointsCounter[racingTrack] and not s___RacingTrack_finished[s__RacingTrack_finished[racingTrack]+i] ) then set s___RacingTrack_finished[s__RacingTrack_finished[racingTrack]+i]=true - call AchievementRacer(Player(i) , (WoWReforgedRacing__racingTracksCounter)) // INLINED!! + call AchievementRacer(Player(i) , (WoWReforgedRacing___racingTracksCounter)) // INLINED!! endif set i=i + 1 endloop endfunction -function WoWReforgedRacing__ResetRaceWinners takes nothing returns nothing - set WoWReforgedRacing__firstPlace=null - set WoWReforgedRacing__secondPlace=null - set WoWReforgedRacing__thirdPlace=null +function WoWReforgedRacing___ResetRaceWinners takes nothing returns nothing + set WoWReforgedRacing___firstPlace=null + set WoWReforgedRacing___secondPlace=null + set WoWReforgedRacing___thirdPlace=null endfunction function GetRacingWinners takes nothing returns string local string msg= "1st: " - if ( WoWReforgedRacing__firstPlace != null ) then - set msg=msg + GetPlayerNameColored(WoWReforgedRacing__firstPlace) + if ( WoWReforgedRacing___firstPlace != null ) then + set msg=msg + GetPlayerNameColored(WoWReforgedRacing___firstPlace) else set msg=msg + "-" endif set msg=msg + ", 2nd: " - if ( WoWReforgedRacing__secondPlace != null ) then - set msg=msg + GetPlayerNameColored(WoWReforgedRacing__secondPlace) + if ( WoWReforgedRacing___secondPlace != null ) then + set msg=msg + GetPlayerNameColored(WoWReforgedRacing___secondPlace) else set msg=msg + "-" endif set msg=msg + ", 3rd: " - if ( WoWReforgedRacing__thirdPlace != null ) then - set msg=msg + GetPlayerNameColored(WoWReforgedRacing__thirdPlace) + if ( WoWReforgedRacing___thirdPlace != null ) then + set msg=msg + GetPlayerNameColored(WoWReforgedRacing___thirdPlace) else set msg=msg + "-" endif @@ -68575,28 +68575,28 @@ function GetRacingWinners takes nothing returns string endfunction function GiveRaceRewards takes nothing returns nothing - if ( WoWReforgedRacing__firstPlace != null ) then - call UnitAddItemById((udg_Hero[GetPlayerId((WoWReforgedRacing__firstPlace))]), s__RacingTrack_firstPlaceTrophyItemTypeId[WoWReforgedRacing__currentRacingTrack]) // INLINED!! + if ( WoWReforgedRacing___firstPlace != null ) then + call UnitAddItemById((udg_Hero[GetPlayerId((WoWReforgedRacing___firstPlace))]), s__RacingTrack_firstPlaceTrophyItemTypeId[WoWReforgedRacing___currentRacingTrack]) // INLINED!! endif - if ( WoWReforgedRacing__secondPlace != null ) then - call UnitAddItemById((udg_Hero[GetPlayerId((WoWReforgedRacing__firstPlace))]), s__RacingTrack_secondPlaceTrophyItemTypeId[WoWReforgedRacing__currentRacingTrack]) // INLINED!! + if ( WoWReforgedRacing___secondPlace != null ) then + call UnitAddItemById((udg_Hero[GetPlayerId((WoWReforgedRacing___firstPlace))]), s__RacingTrack_secondPlaceTrophyItemTypeId[WoWReforgedRacing___currentRacingTrack]) // INLINED!! endif - if ( WoWReforgedRacing__thirdPlace != null ) then - call UnitAddItemById((udg_Hero[GetPlayerId((WoWReforgedRacing__firstPlace))]), s__RacingTrack_thirdPlaceTrophyItemTypeId[WoWReforgedRacing__currentRacingTrack]) // INLINED!! + if ( WoWReforgedRacing___thirdPlace != null ) then + call UnitAddItemById((udg_Hero[GetPlayerId((WoWReforgedRacing___firstPlace))]), s__RacingTrack_thirdPlaceTrophyItemTypeId[WoWReforgedRacing___currentRacingTrack]) // INLINED!! endif endfunction function EndRace takes integer racingTrack returns boolean - if ( WoWReforgedRacing__currentRacingTrack == racingTrack ) then - call h__QuestMessageBJ(GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "Race " + s__RacingTrack_name[WoWReforgedRacing__currentRacingTrack] + " has ended and the winners are: " + GetRacingWinners()) + if ( WoWReforgedRacing___currentRacingTrack == racingTrack ) then + call h__QuestMessageBJ(GetPlayersAll(), bj_QUESTMESSAGE_SECRET, "Race " + s__RacingTrack_name[WoWReforgedRacing___currentRacingTrack] + " has ended and the winners are: " + GetRacingWinners()) call GiveRaceRewards() - set WoWReforgedRacing__currentRacingTrack=0 - call TimerDialogDisplay(WoWReforgedRacing__currentRacingTrackTimerDialog, false) - call WoWReforgedRacing__SetCheckPointsVisible(racingTrack , false) - call WoWReforgedRacing__DestoyAllCheckPointEffects(racingTrack) - call WoWReforgedRacing__FinishRacingTrack(racingTrack) - call WoWReforgedRacing__ResetRaceWinners() + set WoWReforgedRacing___currentRacingTrack=0 + call TimerDialogDisplay(WoWReforgedRacing___currentRacingTrackTimerDialog, false) + call WoWReforgedRacing___SetCheckPointsVisible(racingTrack , false) + call WoWReforgedRacing___DestoyAllCheckPointEffects(racingTrack) + call WoWReforgedRacing___FinishRacingTrack(racingTrack) + call WoWReforgedRacing___ResetRaceWinners() return true endif @@ -68604,9 +68604,9 @@ function EndRace takes integer racingTrack returns boolean return false endfunction -function WoWReforgedRacing__TimerFunctionEndRace takes nothing returns nothing - if ( WoWReforgedRacing__currentRacingTrack != 0 ) then - call EndRace(WoWReforgedRacing__currentRacingTrack) +function WoWReforgedRacing___TimerFunctionEndRace takes nothing returns nothing + if ( WoWReforgedRacing___currentRacingTrack != 0 ) then + call EndRace(WoWReforgedRacing___currentRacingTrack) endif endfunction @@ -68627,19 +68627,19 @@ function GetRacingTrackDuration takes integer racingTrack returns real endfunction function StartRace takes integer racingTrack returns boolean - if ( WoWReforgedRacing__currentRacingTrack == 0 ) then - set WoWReforgedRacing__currentRacingTrack=racingTrack - call WoWReforgedRacing__SetCheckPointsVisible(racingTrack , true) - call WoWReforgedRacing__SetCheckPointsDone(racingTrack , 0) - call WoWReforgedRacing__ResetRaceWinners() - call WoWReforgedRacing__RefreshAllCheckPointEffects(racingTrack) + if ( WoWReforgedRacing___currentRacingTrack == 0 ) then + set WoWReforgedRacing___currentRacingTrack=racingTrack + call WoWReforgedRacing___SetCheckPointsVisible(racingTrack , true) + call WoWReforgedRacing___SetCheckPointsDone(racingTrack , 0) + call WoWReforgedRacing___ResetRaceWinners() + call WoWReforgedRacing___RefreshAllCheckPointEffects(racingTrack) - call TimerStart(WoWReforgedRacing__currentRacingTrackTimer, (GetRacingTrackDistance((racingTrack)) / 100.0), false, function WoWReforgedRacing__TimerFunctionEndRace) // INLINED!! - if ( WoWReforgedRacing__currentRacingTrackTimerDialog == null ) then - set WoWReforgedRacing__currentRacingTrackTimerDialog=CreateTimerDialog(WoWReforgedRacing__currentRacingTrackTimer) + call TimerStart(WoWReforgedRacing___currentRacingTrackTimer, (GetRacingTrackDistance((racingTrack)) / 100.0), false, function WoWReforgedRacing___TimerFunctionEndRace) // INLINED!! + if ( WoWReforgedRacing___currentRacingTrackTimerDialog == null ) then + set WoWReforgedRacing___currentRacingTrackTimerDialog=CreateTimerDialog(WoWReforgedRacing___currentRacingTrackTimer) endif - call TimerDialogSetTitle(WoWReforgedRacing__currentRacingTrackTimerDialog, s__RacingTrack_name[racingTrack]) - call TimerDialogDisplay(WoWReforgedRacing__currentRacingTrackTimerDialog, true) + call TimerDialogSetTitle(WoWReforgedRacing___currentRacingTrackTimerDialog, s__RacingTrack_name[racingTrack]) + call TimerDialogDisplay(WoWReforgedRacing___currentRacingTrackTimerDialog, true) return true endif @@ -68647,13 +68647,13 @@ function StartRace takes integer racingTrack returns boolean return false endfunction -function WoWReforgedRacing__CheckAllPlayersForRaceEnd takes nothing returns boolean +function WoWReforgedRacing___CheckAllPlayersForRaceEnd takes nothing returns boolean local player slotPlayer= null 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_USER and s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[WoWReforgedRacing__currentRacingTrack]+i] < s__RacingTrack_checkpointsCounter[WoWReforgedRacing__currentRacingTrack] ) then + if ( GetPlayerSlotState(slotPlayer) == PLAYER_SLOT_STATE_PLAYING and GetPlayerController(slotPlayer) == MAP_CONTROL_USER and s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[WoWReforgedRacing___currentRacingTrack]+i] < s__RacingTrack_checkpointsCounter[WoWReforgedRacing___currentRacingTrack] ) then return false endif set i=i + 1 @@ -68661,31 +68661,31 @@ function WoWReforgedRacing__CheckAllPlayersForRaceEnd takes nothing returns bool return true endfunction -function WoWReforgedRacing__CheckForRaceEnd takes nothing returns nothing - if ( WoWReforgedRacing__currentRacingTrack != 0 ) then - if ( WoWReforgedRacing__CheckAllPlayersForRaceEnd() ) then - call EndRace(WoWReforgedRacing__currentRacingTrack) +function WoWReforgedRacing___CheckForRaceEnd takes nothing returns nothing + if ( WoWReforgedRacing___currentRacingTrack != 0 ) then + if ( WoWReforgedRacing___CheckAllPlayersForRaceEnd() ) then + call EndRace(WoWReforgedRacing___currentRacingTrack) endif endif endfunction -function WoWReforgedRacing__PlaceRaceWinner takes player whichPlayer returns nothing - if ( WoWReforgedRacing__firstPlace == null ) then - set WoWReforgedRacing__firstPlace=whichPlayer - elseif ( WoWReforgedRacing__secondPlace == null and WoWReforgedRacing__firstPlace != whichPlayer ) then - set WoWReforgedRacing__secondPlace=whichPlayer - elseif ( WoWReforgedRacing__thirdPlace == null and WoWReforgedRacing__firstPlace != whichPlayer and WoWReforgedRacing__secondPlace != whichPlayer ) then - set WoWReforgedRacing__thirdPlace=whichPlayer +function WoWReforgedRacing___PlaceRaceWinner takes player whichPlayer returns nothing + if ( WoWReforgedRacing___firstPlace == null ) then + set WoWReforgedRacing___firstPlace=whichPlayer + elseif ( WoWReforgedRacing___secondPlace == null and WoWReforgedRacing___firstPlace != whichPlayer ) then + set WoWReforgedRacing___secondPlace=whichPlayer + elseif ( WoWReforgedRacing___thirdPlace == null and WoWReforgedRacing___firstPlace != whichPlayer and WoWReforgedRacing___secondPlace != whichPlayer ) then + set WoWReforgedRacing___thirdPlace=whichPlayer endif - call WoWReforgedRacing__CheckForRaceEnd() + call WoWReforgedRacing___CheckForRaceEnd() endfunction function GetRacingTrackByItemTypeId takes integer itemTypeId returns integer local integer i= 0 loop - exitwhen ( i == WoWReforgedRacing__racingTracksCounter ) - if ( itemTypeId == s__RacingTrack_itemTypeId[WoWReforgedRacing__racingTracks[i]] ) then - return WoWReforgedRacing__racingTracks[i] + exitwhen ( i == WoWReforgedRacing___racingTracksCounter ) + if ( itemTypeId == s__RacingTrack_itemTypeId[WoWReforgedRacing___racingTracks[i]] ) then + return WoWReforgedRacing___racingTracks[i] endif set i=i + 1 endloop @@ -68700,8 +68700,8 @@ function AddRacingTrack takes string name,integer itemTypeId,integer firstPlaceT set s__RacingTrack_secondPlaceTrophyItemTypeId[this]=secondPlaceTrophyItemTypeId set s__RacingTrack_thirdPlaceTrophyItemTypeId[this]=thirdPlaceTrophyItemTypeId - set WoWReforgedRacing__racingTracks[WoWReforgedRacing__racingTracksCounter]=this - set WoWReforgedRacing__racingTracksCounter=WoWReforgedRacing__racingTracksCounter + 1 + set WoWReforgedRacing___racingTracks[WoWReforgedRacing___racingTracksCounter]=this + set WoWReforgedRacing___racingTracksCounter=WoWReforgedRacing___racingTracksCounter + 1 return this endfunction @@ -68714,11 +68714,11 @@ function AddRacingTrackCheckpoint takes integer t,unit whichUnit returns nothing call RegionAddRect(r, GetRectFromCircleBJ(l, WoWReforgedRacing_CHECKPOINT_RADIUS)) call RemoveLocation(l) set l=null - call SaveInteger(WoWReforgedRacing__h, handleId, 0, t) - call SaveInteger(WoWReforgedRacing__h, handleId, 1, index) + call SaveInteger(WoWReforgedRacing___h, handleId, 0, t) + call SaveInteger(WoWReforgedRacing___h, handleId, 1, index) set s___RacingTrack_checkpoints[s__RacingTrack_checkpoints[t]+index]=whichUnit set s__RacingTrack_checkpointsCounter[t]=index + 1 - call TriggerRegisterEnterRegion(WoWReforgedRacing__enterCheckpointTrigger, r, null) + call TriggerRegisterEnterRegion(WoWReforgedRacing___enterCheckpointTrigger, r, null) endfunction function AddRacingTrackWoWReforged takes nothing returns nothing @@ -68729,14 +68729,14 @@ function AddRacingTrackCheckpointWoWReforged takes nothing returns nothing call AddRacingTrackCheckpoint(udg_TmpInteger , udg_TmpUnit) endfunction -function WoWReforgedRacing__TriggerConditionSellItem takes nothing returns boolean +function WoWReforgedRacing___TriggerConditionSellItem takes nothing returns boolean local integer t= GetRacingTrackByItemTypeId(GetItemTypeId(GetSoldItem())) local player owner= GetOwningPlayer(GetBuyingUnit()) if ( t != 0 ) then if ( StartRace(t) ) then call h__RemoveItem(GetSoldItem()) else - call SimError(owner , "Race is already running: " + s__RacingTrack_name[WoWReforgedRacing__currentRacingTrack]) + call SimError(owner , "Race is already running: " + s__RacingTrack_name[WoWReforgedRacing___currentRacingTrack]) call RefundItem(GetSoldItem() , owner) endif endif @@ -68744,20 +68744,20 @@ function WoWReforgedRacing__TriggerConditionSellItem takes nothing returns boole return false endfunction -function WoWReforgedRacing__TriggerConditionEnterCheckpoint takes nothing returns boolean +function WoWReforgedRacing___TriggerConditionEnterCheckpoint takes nothing returns boolean local integer handleId= GetHandleId(GetTriggeringRegion()) - local integer t= LoadInteger(WoWReforgedRacing__h, handleId, 0) - local integer index= LoadInteger(WoWReforgedRacing__h, handleId, 1) + local integer t= LoadInteger(WoWReforgedRacing___h, handleId, 0) + local integer index= LoadInteger(WoWReforgedRacing___h, handleId, 1) local unit hero= GetTriggerUnit() local player owner= GetOwningPlayer(hero) local integer playerId= GetPlayerId(owner) - if ( t != 0 and WoWReforgedRacing__currentRacingTrack == t and IsPlayerHero1(hero) and s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[t]+playerId] == index ) then + if ( t != 0 and WoWReforgedRacing___currentRacingTrack == t and IsPlayerHero1(hero) and s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[t]+playerId] == index ) then set s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[t]+playerId]=s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[t]+playerId] + 1 call h__QuestMessageBJ(bj_FORCE_PLAYER[playerId], bj_QUESTMESSAGE_SECRET, "Checkpoints: " + I2S(s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[t]+playerId]) + "/" + I2S(s__RacingTrack_checkpointsCounter[t])) if ( s___RacingTrack_checkpointsDone[s__RacingTrack_checkpointsDone[t]+playerId] >= s__RacingTrack_checkpointsCounter[t] ) then - call WoWReforgedRacing__PlaceRaceWinner(owner) + call WoWReforgedRacing___PlaceRaceWinner(owner) else - call WoWReforgedRacing__RefreshRacingTrackCheckpointEffect(t , playerId) + call WoWReforgedRacing___RefreshRacingTrackCheckpointEffect(t , playerId) endif endif set owner=null @@ -68765,13 +68765,13 @@ function WoWReforgedRacing__TriggerConditionEnterCheckpoint takes nothing return return false endfunction -function WoWReforgedRacing__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedRacing__sellItemTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedRacing__sellItemTrigger, Condition(function WoWReforgedRacing__TriggerConditionSellItem)) +function WoWReforgedRacing___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedRacing___sellItemTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedRacing___sellItemTrigger, Condition(function WoWReforgedRacing___TriggerConditionSellItem)) - call TriggerAddCondition(WoWReforgedRacing__enterCheckpointTrigger, Condition(function WoWReforgedRacing__TriggerConditionEnterCheckpoint)) + 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 @@ -68782,7 +68782,7 @@ endfunction function GetResearch takes integer index returns integer - return WoWReforgedResearches__researches[index] + return WoWReforgedResearches___researches[index] endfunction function AddResearch takes integer researchId,integer whichRace returns integer @@ -68791,10 +68791,10 @@ function AddResearch takes integer researchId,integer whichRace returns integer set s__Research_whichRace[r]=whichRace set s__Research_levels[r]=GetPlayerTechMaxAllowed(Player(0), researchId) - set WoWReforgedResearches__lastCreatedResearch=r + set WoWReforgedResearches___lastCreatedResearch=r - set WoWReforgedResearches__researches[WoWReforgedResearches__researchesCounter]=r - set WoWReforgedResearches__researchesCounter=WoWReforgedResearches__researchesCounter + 1 + set WoWReforgedResearches___researches[WoWReforgedResearches___researchesCounter]=r + set WoWReforgedResearches___researchesCounter=WoWReforgedResearches___researchesCounter + 1 return r endfunction @@ -68805,9 +68805,9 @@ endfunction //set r.timeBase = whichRace function AddResearchLevelData takes integer goldIncrement,integer lumberIncrement,integer timeIncrement returns nothing - set s__Research_goldIncrement[WoWReforgedResearches__lastCreatedResearch]=goldIncrement - set s__Research_lumberIncrement[WoWReforgedResearches__lastCreatedResearch]=lumberIncrement - set s__Research_timeIncrement[WoWReforgedResearches__lastCreatedResearch]=timeIncrement + set s__Research_goldIncrement[WoWReforgedResearches___lastCreatedResearch]=goldIncrement + set s__Research_lumberIncrement[WoWReforgedResearches___lastCreatedResearch]=lumberIncrement + set s__Research_timeIncrement[WoWReforgedResearches___lastCreatedResearch]=timeIncrement endfunction //function AddResearchUnitType takes integer unitTypeId returns nothing @@ -68818,7 +68818,7 @@ function AddResearchWoWReforged takes nothing returns integer endfunction function GetResearchesMax takes nothing returns integer - return WoWReforgedResearches__researchesCounter + return WoWReforgedResearches___researchesCounter endfunction function GetResearchId takes integer r returns integer @@ -68879,11 +68879,11 @@ endfunction function AddResearchSaveObjects takes nothing returns nothing local integer i= 0 - local integer max= (WoWReforgedResearches__researchesCounter) // INLINED!! + local integer max= (WoWReforgedResearches___researchesCounter) // INLINED!! local integer r= 0 loop exitwhen ( i == max ) - set r=(WoWReforgedResearches__researches[(i)]) // INLINED!! + set r=(WoWReforgedResearches___researches[(i)]) // INLINED!! if ( not ExcludeResearchFromSaveObjects(s__Research_researchId[r]) and s__Research_researchId[r] != 0 ) then set udg_TmpTechType=s__Research_researchId[r] call AddSaveObjectResearchTypeEx(GetObjectName(udg_TmpTechType) , udg_TmpTechType , udg_TmpInteger) // INLINED!! @@ -68894,12 +68894,12 @@ endfunction function GetResearchesTotalForRace takes integer whichRace returns integer local integer i= 0 - local integer max= (WoWReforgedResearches__researchesCounter) // INLINED!! + local integer max= (WoWReforgedResearches___researchesCounter) // INLINED!! local integer counter= 0 local integer r= 0 loop exitwhen ( i == max ) - set r=(WoWReforgedResearches__researches[(i)]) // INLINED!! + set r=(WoWReforgedResearches___researches[(i)]) // INLINED!! if ( s__Research_whichRace[r] == whichRace ) then set counter=counter + s__Research_levels[r] endif @@ -68910,12 +68910,12 @@ endfunction function GetResearchesResearchedForRace takes integer whichRace,player whichPlayer returns integer local integer i= 0 - local integer max= (WoWReforgedResearches__researchesCounter) // INLINED!! + local integer max= (WoWReforgedResearches___researchesCounter) // INLINED!! local integer counter= 0 local integer r= 0 loop exitwhen ( i == max ) - set r=(WoWReforgedResearches__researches[(i)]) // INLINED!! + set r=(WoWReforgedResearches___researches[(i)]) // INLINED!! if ( s__Research_whichRace[r] == whichRace ) then set counter=counter + GetPlayerTechCountSimple(s__Research_researchId[r], whichPlayer) endif @@ -68931,10 +68931,10 @@ endfunction function ResearchAllForPlayer takes player whichPlayer,integer whichRace returns nothing local integer r= 0 local integer i= 0 - local integer max= (WoWReforgedResearches__researchesCounter) // INLINED!! + local integer max= (WoWReforgedResearches___researchesCounter) // INLINED!! loop exitwhen ( i == max ) - set r=(WoWReforgedResearches__researches[(i)]) // INLINED!! + set r=(WoWReforgedResearches___researches[(i)]) // INLINED!! if ( (s__Research_whichRace[(r)]) == whichRace and GetPlayerTechCount(whichPlayer, (s__Research_researchId[(r)]), false) < (s__Research_levels[(r)]) ) then // INLINED!! call h__SetPlayerTechResearched(whichPlayer, (s__Research_researchId[(r)]), (s__Research_levels[(r)])) // INLINED!! endif @@ -68959,10 +68959,10 @@ endfunction function GetZonesMax takes nothing returns integer - return WoWReforgedZones__zonesCounter + return WoWReforgedZones___zonesCounter endfunction -function WoWReforgedZones__AddZoneRectEx takes integer z,rect whichRect returns nothing +function WoWReforgedZones___AddZoneRectEx takes integer z,rect whichRect returns nothing call RegionAddRect(s__Zone_r[z], whichRect) set s___Zone_rects[s__Zone_rects[z]+s__Zone_rectsCounter[z]]=whichRect set s__Zone_rectsCounter[z]=s__Zone_rectsCounter[z] + 1 @@ -68971,8 +68971,8 @@ endfunction function AddZoneEx takes string name,rect whichRect,string icon,string description,playercolor color,string id,integer treeTypeId returns integer local integer z= s__Zone_create() set s__AbstractZone_name[z]=name - call WoWReforgedZones__AddZoneRectEx(z , whichRect) - call TriggerRegisterEnterRegion(WoWReforgedZones__enterTrigger, s__Zone_r[z], null) + call WoWReforgedZones___AddZoneRectEx(z , whichRect) + call TriggerRegisterEnterRegion(WoWReforgedZones___enterTrigger, s__Zone_r[z], null) set s__AbstractZone_icon[z]=icon set s__AbstractZone_description[z]=description set s__Zone_color[z]=color @@ -68980,16 +68980,16 @@ function AddZoneEx takes string name,rect whichRect,string icon,string descripti set s__Zone_treeTypeId[z]=treeTypeId set s__AbstractZone_zoneType[z]=ZONE_TYPE_ZONE - if ( WoWReforgedZones__currentContinent != 0 ) then - set s__AbstractZone_parent[z]=WoWReforgedZones__currentContinent - elseif ( WoWReforgedZones__currentWorld != 0 ) then - set s__AbstractZone_parent[z]=WoWReforgedZones__currentWorld + if ( WoWReforgedZones___currentContinent != 0 ) then + set s__AbstractZone_parent[z]=WoWReforgedZones___currentContinent + elseif ( WoWReforgedZones___currentWorld != 0 ) then + set s__AbstractZone_parent[z]=WoWReforgedZones___currentWorld endif - set WoWReforgedZones__zones[WoWReforgedZones__zonesCounter]=z - set WoWReforgedZones__zonesCounter=WoWReforgedZones__zonesCounter + 1 + set WoWReforgedZones___zones[WoWReforgedZones___zonesCounter]=z + set WoWReforgedZones___zonesCounter=WoWReforgedZones___zonesCounter + 1 - set WoWReforgedZones__currentZone=z + set WoWReforgedZones___currentZone=z return z endfunction @@ -69005,10 +69005,10 @@ function AddZoneWorldEx takes string name,string icon,string description,string set s__AbstractZone_description[z]=description set s__AbstractZone_zoneType[z]=ZONE_TYPE_WORLD - set WoWReforgedZones__currentWorld=z + set WoWReforgedZones___currentWorld=z - set WoWReforgedZones__zones[WoWReforgedZones__zonesCounter]=z - set WoWReforgedZones__zonesCounter=WoWReforgedZones__zonesCounter + 1 + set WoWReforgedZones___zones[WoWReforgedZones___zonesCounter]=z + set WoWReforgedZones___zonesCounter=WoWReforgedZones___zonesCounter + 1 return z endfunction @@ -69024,10 +69024,10 @@ function AddZoneContinentEx takes string name,string icon,string description,str set s__AbstractZone_description[z]=description set s__AbstractZone_zoneType[z]=ZONE_TYPE_CONTINENT - set WoWReforgedZones__currentContinent=z + set WoWReforgedZones___currentContinent=z - set WoWReforgedZones__zones[WoWReforgedZones__zonesCounter]=z - set WoWReforgedZones__zonesCounter=WoWReforgedZones__zonesCounter + 1 + set WoWReforgedZones___zones[WoWReforgedZones___zonesCounter]=z + set WoWReforgedZones___zonesCounter=WoWReforgedZones___zonesCounter + 1 return z endfunction @@ -69037,55 +69037,55 @@ function AddZoneContinent takes nothing returns integer endfunction function ResetZoneCurrentWorld takes nothing returns nothing - set WoWReforgedZones__currentWorld=0 + set WoWReforgedZones___currentWorld=0 endfunction function ResetZoneCurrentContinent takes nothing returns nothing - set WoWReforgedZones__currentContinent=0 + set WoWReforgedZones___currentContinent=0 endfunction function AddZoneRect takes nothing returns nothing - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) endfunction function SetZoneTerrainTypeLordaeron takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON endfunction function SetZoneTerrainTypeAshenvale takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE endfunction function SetZoneTerrainTypeNorthrend takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND endfunction function SetZoneTerrainTypeBarrens takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_BARRENS + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_BARRENS endfunction function SetZoneTerrainTypeOutland takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND endfunction function SetZoneTerrainTypeSunkenRuins takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS endfunction function SetZoneTerrainTypeSea takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA endfunction function SetZoneTerrainTypeDungeon takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_DUNGEON + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_DUNGEON endfunction function SetZoneTerrainTypeUnderground takes nothing returns nothing - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_DUNGEON + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_DUNGEON endfunction function GetZone takes integer index returns integer - return WoWReforgedZones__zones[index] + return WoWReforgedZones___zones[index] endfunction function GetZoneName takes integer z returns string @@ -69115,11 +69115,11 @@ endfunction function GetZoneAreaOfChildren takes integer zone returns real local real result= 0.0 local integer i= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! loop exitwhen ( i == max ) - if ( s__AbstractZone_parent[(WoWReforgedZones__zones[(i)])] == zone and s__AbstractZone_zoneType[(WoWReforgedZones__zones[(i)])] == ZONE_TYPE_ZONE ) then // INLINED!! - set result=result + GetZoneArea(((WoWReforgedZones__zones[(i)]))) // INLINED!! + if ( s__AbstractZone_parent[(WoWReforgedZones___zones[(i)])] == zone and s__AbstractZone_zoneType[(WoWReforgedZones___zones[(i)])] == ZONE_TYPE_ZONE ) then // INLINED!! + set result=result + GetZoneArea(((WoWReforgedZones___zones[(i)]))) // INLINED!! endif set i=i + 1 endloop @@ -69129,11 +69129,11 @@ endfunction function GetZoneAreaOfGrandChildren takes integer zone returns real local real result= 0.0 local integer i= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! loop exitwhen ( i == max ) - if ( s__AbstractZone_parent[(WoWReforgedZones__zones[(i)])] == zone and s__AbstractZone_zoneType[(WoWReforgedZones__zones[(i)])] == ZONE_TYPE_CONTINENT ) then // INLINED!! - set result=result + GetZoneAreaOfChildren((WoWReforgedZones__zones[(i)])) // INLINED!! + if ( s__AbstractZone_parent[(WoWReforgedZones___zones[(i)])] == zone and s__AbstractZone_zoneType[(WoWReforgedZones___zones[(i)])] == ZONE_TYPE_CONTINENT ) then // INLINED!! + set result=result + GetZoneAreaOfChildren((WoWReforgedZones___zones[(i)])) // INLINED!! endif set i=i + 1 endloop @@ -69185,12 +69185,12 @@ endfunction function GetZoneIndexByCoordinates takes real x,real y returns integer local integer i= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer result= - 1 local integer z= 0 loop exitwhen ( i == max ) - set z=(WoWReforgedZones__zones[(i)]) // INLINED!! + set z=(WoWReforgedZones___zones[(i)]) // INLINED!! if ( s__AbstractZone_zoneType[z] == ZONE_TYPE_ZONE and IsPointInRegion(s__Zone_r[(z)], x, y) ) then set result=i endif @@ -69201,11 +69201,11 @@ endfunction function GetZoneByCoordinates takes real x,real y returns integer local integer i= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer z= 0 loop exitwhen ( i == max ) - set z=(WoWReforgedZones__zones[(i)]) // INLINED!! + set z=(WoWReforgedZones___zones[(i)]) // INLINED!! if ( s__AbstractZone_zoneType[z] == ZONE_TYPE_ZONE and IsPointInRegion(s__Zone_r[(z)], x, y) ) then return (z) endif @@ -69281,7 +69281,7 @@ function ShowCurrentZoneFullEx takes player whichPlayer,unit first returns nothi endfunction -function WoWReforgedZones__GetFirstSelected takes player whichPlayer returns unit +function WoWReforgedZones___GetFirstSelected takes player whichPlayer returns unit local group g= GetUnitsSelectedAll(whichPlayer) local unit first= FirstOfGroup(g) call GroupClear(g) @@ -69291,16 +69291,16 @@ function WoWReforgedZones__GetFirstSelected takes player whichPlayer returns uni endfunction -function WoWReforgedZones__GetMainUnit takes player whichPlayer returns unit +function WoWReforgedZones___GetMainUnit takes player whichPlayer returns unit - return WoWReforgedZones__GetFirstSelected(whichPlayer) + return WoWReforgedZones___GetFirstSelected(whichPlayer) endfunction function ShowCurrentZone takes player whichPlayer returns nothing - local unit first= (WoWReforgedZones__GetFirstSelected((whichPlayer))) // INLINED!! + local unit first= (WoWReforgedZones___GetFirstSelected((whichPlayer))) // INLINED!! if ( first != null ) then call ShowCurrentZoneEx(whichPlayer , first) set first=null @@ -69310,7 +69310,7 @@ function ShowCurrentZone takes player whichPlayer returns nothing endfunction function ShowCurrentZoneFull takes player whichPlayer returns nothing - local unit first= (WoWReforgedZones__GetFirstSelected((whichPlayer))) // INLINED!! + local unit first= (WoWReforgedZones___GetFirstSelected((whichPlayer))) // INLINED!! if ( first != null ) then call ShowCurrentZoneFullEx(whichPlayer , first) set first=null @@ -69319,7 +69319,7 @@ function ShowCurrentZoneFull takes player whichPlayer returns nothing endif endfunction -function WoWReforgedZones__TriggerConditionEnter takes nothing returns boolean +function WoWReforgedZones___TriggerConditionEnter takes nothing returns boolean local unit enteringUnit= GetEnteringUnit() local player owner= GetOwningPlayer(enteringUnit) local integer playerId= GetPlayerId(owner) @@ -69337,7 +69337,7 @@ function WoWReforgedZones__TriggerConditionEnter takes nothing returns boolean call h__QuestMessageBJ(bj_FORCE_PLAYER[playerId], bj_QUESTMESSAGE_HINT, ("Discovered: |cff00ff00" + s__AbstractZone_name[(z)] + "|r")) // INLINED!! endif call AchievementExplorer(owner) - call AchievementMasterExplorer(owner , (WoWReforgedZones__zonesCounter)) // INLINED!! + call AchievementMasterExplorer(owner , (WoWReforgedZones___zonesCounter)) // INLINED!! endif endif endif @@ -69346,8 +69346,8 @@ function WoWReforgedZones__TriggerConditionEnter takes nothing returns boolean return false endfunction -function WoWReforgedZones__Init takes nothing returns nothing - call TriggerAddCondition(WoWReforgedZones__enterTrigger, Condition(function WoWReforgedZones__TriggerConditionEnter)) +function WoWReforgedZones___Init takes nothing returns nothing + call TriggerAddCondition(WoWReforgedZones___enterTrigger, Condition(function WoWReforgedZones___TriggerConditionEnter)) endfunction @@ -69361,32 +69361,32 @@ endfunction function GetCalendarChangeSecondTimerHandleId takes nothing returns integer - return GetHandleId(WoWReforgedCalendar__changeSecondTimer) + return GetHandleId(WoWReforgedCalendar___changeSecondTimer) endfunction function GetCalendarThunderTimerHandleId takes nothing returns integer - return GetHandleId(WoWReforgedCalendar__thunderTimer) + return GetHandleId(WoWReforgedCalendar___thunderTimer) endfunction function GetCalendarWeatherTimerHandleId takes nothing returns integer - return GetHandleId(WoWReforgedCalendar__weatherTimer) + return GetHandleId(WoWReforgedCalendar___weatherTimer) endfunction function IsBetweenCalendarDay takes integer startDay,real startTimeOfDay,integer endDay,real endTimeOfDay returns boolean - if ( WoWReforgedCalendar__days < startDay or WoWReforgedCalendar__days > endDay ) then + if ( WoWReforgedCalendar___days < startDay or WoWReforgedCalendar___days > endDay ) then return false elseif ( startDay == endDay and not IsBetweenTimeOfDay(startTimeOfDay , endTimeOfDay) ) then return false - elseif ( WoWReforgedCalendar__days == startDay and not IsBetweenTimeOfDay(startTimeOfDay , 0.0) ) then + elseif ( WoWReforgedCalendar___days == startDay and not IsBetweenTimeOfDay(startTimeOfDay , 0.0) ) then return false - elseif ( WoWReforgedCalendar__days == endDay and IsBetweenTimeOfDay(0.0 , endTimeOfDay) ) then + elseif ( WoWReforgedCalendar___days == endDay and IsBetweenTimeOfDay(0.0 , endTimeOfDay) ) then return false endif return false endfunction -function WoWReforgedCalendar__TriggerActionVote takes nothing returns nothing - local integer e= LoadInteger(WoWReforgedCalendar__h, GetHandleId(GetTriggeringTrigger()), 0) +function WoWReforgedCalendar___TriggerActionVote takes nothing returns nothing + local integer e= LoadInteger(WoWReforgedCalendar___h, GetHandleId(GetTriggeringTrigger()), 0) if ( s__CalendarEvent_running[e] ) then if ( s__CalendarEvent_endFunc[e] != 0 ) then call h__DisplayTextToForce(GetPlayersAll(), "Event ending: " + s__CalendarEvent_name[e]) @@ -69403,11 +69403,11 @@ function WoWReforgedCalendar__TriggerActionVote takes nothing returns nothing endfunction function GetCalendarEventsMax takes nothing returns integer - return WoWReforgedCalendar__calendarEventsCounter + return WoWReforgedCalendar___calendarEventsCounter endfunction function GetCalendarEvent takes integer index returns integer - return WoWReforgedCalendar__calendarEvents[index] + return WoWReforgedCalendar___calendarEvents[index] endfunction function AddCalendarEvent takes string name,string vote,integer startDay,real startTimeOfDay,integer endDay,real endTimeOfDay,integer startFunc,integer endFunc,string icon returns integer @@ -69421,11 +69421,11 @@ function AddCalendarEvent takes string name,string vote,integer startDay,real st set s__CalendarEvent_startFunc[e]=startFunc set s__CalendarEvent_endFunc[e]=endFunc set s__CalendarEvent_icon[e]=icon - set WoWReforgedCalendar__calendarEvents[WoWReforgedCalendar__calendarEventsCounter]=e - set WoWReforgedCalendar__calendarEventsCounter=WoWReforgedCalendar__calendarEventsCounter + 1 + set WoWReforgedCalendar___calendarEvents[WoWReforgedCalendar___calendarEventsCounter]=e + set WoWReforgedCalendar___calendarEventsCounter=WoWReforgedCalendar___calendarEventsCounter + 1 - call SaveInteger(WoWReforgedCalendar__h, GetHandleId(s__CalendarEvent_voteTrigger[e]), 0, e) - call TriggerAddAction(s__CalendarEvent_voteTrigger[e], function WoWReforgedCalendar__TriggerActionVote) + call SaveInteger(WoWReforgedCalendar___h, GetHandleId(s__CalendarEvent_voteTrigger[e]), 0, e) + call TriggerAddAction(s__CalendarEvent_voteTrigger[e], function WoWReforgedCalendar___TriggerActionVote) set udg_TmpString=name set udg_TmpString2=vote @@ -69441,12 +69441,12 @@ function IsCalendarEventRunning takes integer e returns boolean endfunction // call this on every change of time -function WoWReforgedCalendar__CheckCalendarEvents takes nothing returns nothing +function WoWReforgedCalendar___CheckCalendarEvents takes nothing returns nothing local integer e= 0 local integer i= 0 loop - exitwhen ( i >= WoWReforgedCalendar__calendarEventsCounter ) - set e=WoWReforgedCalendar__calendarEvents[i] + exitwhen ( i >= WoWReforgedCalendar___calendarEventsCounter ) + set e=WoWReforgedCalendar___calendarEvents[i] if ( s__CalendarEvent_running[e] ) then if ( not IsBetweenCalendarDay(s__CalendarEvent_startDay[e] , s__CalendarEvent_startTimeOfDay[e] , s__CalendarEvent_endDay[e] , s__CalendarEvent_endTimeOfDay[e]) ) then if ( s__CalendarEvent_endFunc[e] != 0 ) then @@ -69471,8 +69471,8 @@ function GetRunningCalendarEvent takes nothing returns integer local integer e= 0 local integer i= 0 loop - exitwhen ( i >= WoWReforgedCalendar__calendarEventsCounter ) - set e=WoWReforgedCalendar__calendarEvents[i] + exitwhen ( i >= WoWReforgedCalendar___calendarEventsCounter ) + set e=WoWReforgedCalendar___calendarEvents[i] if ( s__CalendarEvent_running[e] ) then return e endif @@ -69490,19 +69490,19 @@ function AddTreeMapping takes integer summerId,integer fallId,integer winterId,i set s__TreeMapping_easterId[t]=easterId set s__TreeMapping_christmasId[t]=christmasId - call SaveInteger(WoWReforgedCalendar__h, summerId, 0, t) - call SaveInteger(WoWReforgedCalendar__h, fallId, 0, t) - call SaveInteger(WoWReforgedCalendar__h, winterId, 0, t) - call SaveInteger(WoWReforgedCalendar__h, winterSnowyId, 0, t) - call SaveInteger(WoWReforgedCalendar__h, easterId, 0, t) - call SaveInteger(WoWReforgedCalendar__h, christmasId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, summerId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, fallId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, winterId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, winterSnowyId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, easterId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, christmasId, 0, t) return t endfunction function GetTreeMappingById takes integer id returns integer - if ( HaveSavedInteger(WoWReforgedCalendar__h, id, 0) ) then - return LoadInteger(WoWReforgedCalendar__h, id, 0) + if ( HaveSavedInteger(WoWReforgedCalendar___h, id, 0) ) then + return LoadInteger(WoWReforgedCalendar___h, id, 0) endif return 0 endfunction @@ -69512,29 +69512,29 @@ function AddTileMapping takes integer summerId,integer fallId,integer winterId r set s__TileMapping_summerId[t]=summerId set s__TileMapping_fallId[t]=fallId set s__TileMapping_winterId[t]=winterId - set WoWReforgedCalendar__tileMappings[WoWReforgedCalendar__tileMappingsCounter]=t - set WoWReforgedCalendar__tileMappingsCounter=WoWReforgedCalendar__tileMappingsCounter + 1 + set WoWReforgedCalendar___tileMappings[WoWReforgedCalendar___tileMappingsCounter]=t + set WoWReforgedCalendar___tileMappingsCounter=WoWReforgedCalendar___tileMappingsCounter + 1 - call SaveInteger(WoWReforgedCalendar__h, summerId, 0, t) - call SaveInteger(WoWReforgedCalendar__h, fallId, 0, t) - call SaveInteger(WoWReforgedCalendar__h, winterId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, summerId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, fallId, 0, t) + call SaveInteger(WoWReforgedCalendar___h, winterId, 0, t) return t endfunction function GetTileMappingById takes integer id returns integer - return LoadInteger(WoWReforgedCalendar__h, id, 0) + return LoadInteger(WoWReforgedCalendar___h, id, 0) endfunction function GetCurrentWeatherIcon takes nothing returns string - if ( WoWReforgedCalendar__weatherRunning ) then + if ( WoWReforgedCalendar___weatherRunning ) then return "ReplaceableTextures\\CommandButtons\\BTNRainyWeather.blp" endif return "ReplaceableTextures\\CommandButtons\\BTNOrbOfTheSun.blp" endfunction function GetCurrentWeatherName takes nothing returns string - if ( WoWReforgedCalendar__weatherRunning ) then + if ( WoWReforgedCalendar___weatherRunning ) then return "Bad" endif return "Good" @@ -69563,7 +69563,7 @@ function GetSeasonIcon takes integer s returns string endfunction function GetCurrentSeason takes nothing returns integer - return WoWReforgedCalendar__season + return WoWReforgedCalendar___season endfunction function GetPassedTime takes nothing returns integer @@ -69571,15 +69571,15 @@ function GetPassedTime takes nothing returns integer endfunction function GetCurrentDay takes nothing returns integer - return WoWReforgedCalendar__days + return WoWReforgedCalendar___days endfunction function GetCurrentYear takes nothing returns integer - return WoWReforgedCalendar__years + return WoWReforgedCalendar___years endfunction function GetCurrentMonth takes nothing returns integer - return WoWReforgedCalendar__days / DAYS_PER_MONTH + 1 + return WoWReforgedCalendar___days / DAYS_PER_MONTH + 1 endfunction function GetDayByMonth takes integer day,integer month returns integer @@ -69617,42 +69617,42 @@ function GetMonthName takes integer month returns string endfunction function GetCurrentDate takes nothing returns string - return I2S((WoWReforgedCalendar__years)) + "-" + I2SW((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar__days) , 2) // INLINED!! + return I2S((WoWReforgedCalendar___years)) + "-" + I2SW((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar___days) , 2) // INLINED!! endfunction function GetTimeText takes nothing returns string - return (I2S((WoWReforgedCalendar__years)) + "-" + I2SW((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar__days) , 2)) + "\nMonth: " + GetMonthName((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1)) + "\nSeason: " + GetSeasonName((WoWReforgedCalendar__season)) + "\nTime of Day: " + (FormatTimeOfDayEx(GetTimeOfDay())) + "\nTotal passed time: " + FormatTimeString((udg_GameTime)) + "\nWeather Report: Rain/Snow/Storm in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar__weatherTimer))) + " and thunder/lightning in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar__thunderTimer))) // INLINED!! + return (I2S((WoWReforgedCalendar___years)) + "-" + I2SW((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar___days) , 2)) + "\nMonth: " + GetMonthName((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1)) + "\nSeason: " + GetSeasonName((WoWReforgedCalendar___season)) + "\nTime of Day: " + (FormatTimeOfDayEx(GetTimeOfDay())) + "\nTotal passed time: " + FormatTimeString((udg_GameTime)) + "\nWeather Report: Rain/Snow/Storm in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar___weatherTimer))) + " and thunder/lightning in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar___thunderTimer))) // INLINED!! endfunction function DisplayTime takes player whichPlayer returns nothing - call h__DisplayTimedTextToPlayer(whichPlayer, 0.0, 0.0, 6.0, ((I2S((WoWReforgedCalendar__years)) + "-" + I2SW((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar__days) , 2)) + "\nMonth: " + GetMonthName((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1)) + "\nSeason: " + GetSeasonName((WoWReforgedCalendar__season)) + "\nTime of Day: " + (FormatTimeOfDayEx(GetTimeOfDay())) + "\nTotal passed time: " + FormatTimeString((udg_GameTime)) + "\nWeather Report: Rain/Snow/Storm in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar__weatherTimer))) + " and thunder/lightning in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar__thunderTimer))))) // INLINED!! + call h__DisplayTimedTextToPlayer(whichPlayer, 0.0, 0.0, 6.0, ((I2S((WoWReforgedCalendar___years)) + "-" + I2SW((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar___days) , 2)) + "\nMonth: " + GetMonthName((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1)) + "\nSeason: " + GetSeasonName((WoWReforgedCalendar___season)) + "\nTime of Day: " + (FormatTimeOfDayEx(GetTimeOfDay())) + "\nTotal passed time: " + FormatTimeString((udg_GameTime)) + "\nWeather Report: Rain/Snow/Storm in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar___weatherTimer))) + " and thunder/lightning in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar___thunderTimer))))) // INLINED!! endfunction -function WoWReforgedCalendar__FilterIsTree takes nothing returns boolean +function WoWReforgedCalendar___FilterIsTree takes nothing returns boolean return GetTreeMappingById(GetDestructableTypeId(GetFilterDestructable())) != 0 endfunction -function WoWReforgedCalendar__ReplaceTreeEx takes destructable d,integer t returns nothing +function WoWReforgedCalendar___ReplaceTreeEx takes destructable d,integer t returns nothing local real x= GetDestructableX(d) local real y= GetDestructableY(d) local real life= GetDestructableLife(d) local integer targetId= s__TreeMapping_summerId[t] - if ( WoWReforgedCalendar__easterTrees ) then + if ( WoWReforgedCalendar___easterTrees ) then set targetId=s__TreeMapping_easterId[t] - elseif ( WoWReforgedCalendar__christmasTrees ) then + elseif ( WoWReforgedCalendar___christmasTrees ) then set targetId=s__TreeMapping_christmasId[t] - elseif ( WoWReforgedCalendar__targetSeason == SEASON_SUMMER ) then + elseif ( WoWReforgedCalendar___targetSeason == SEASON_SUMMER ) then set targetId=s__TreeMapping_summerId[t] - elseif ( WoWReforgedCalendar__targetSeason == SEASON_FALL ) then + elseif ( WoWReforgedCalendar___targetSeason == SEASON_FALL ) then set targetId=s__TreeMapping_fallId[t] - elseif ( WoWReforgedCalendar__targetSeason == SEASON_WINTER ) then - if ( WoWReforgedCalendar__weatherRunning ) then + elseif ( WoWReforgedCalendar___targetSeason == SEASON_WINTER ) then + if ( WoWReforgedCalendar___weatherRunning ) then set targetId=s__TreeMapping_winterSnowyId[t] else set targetId=s__TreeMapping_winterId[t] endif - elseif ( WoWReforgedCalendar__targetSeason == SEASON_SPRING ) then + elseif ( WoWReforgedCalendar___targetSeason == SEASON_SPRING ) then set targetId=s__TreeMapping_summerId[t] endif if ( targetId != 0 ) then @@ -69664,35 +69664,35 @@ function WoWReforgedCalendar__ReplaceTreeEx takes destructable d,integer t retur endif endfunction -function WoWReforgedCalendar__ReplaceTree takes nothing returns nothing +function WoWReforgedCalendar___ReplaceTree takes nothing returns nothing local destructable d= GetEnumDestructable() local integer t= GetTreeMappingById(GetDestructableTypeId(d)) if ( t != 0 ) then - call WoWReforgedCalendar__ReplaceTreeEx(d , t) + call WoWReforgedCalendar___ReplaceTreeEx(d , t) endif set d=null endfunction -function WoWReforgedCalendar__ReplaceTreeNewOpLimit takes nothing returns nothing - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceTree)) // INLINED!! +function WoWReforgedCalendar___ReplaceTreeNewOpLimit takes nothing returns nothing + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceTree)) // INLINED!! endfunction -function WoWReforgedCalendar__ReplaceTrees takes rect r,integer source,integer target returns nothing - set WoWReforgedCalendar__sourceSeason=source - set WoWReforgedCalendar__targetSeason=target - call EnumDestructablesInRect(r, WoWReforgedCalendar__treeFilter, function WoWReforgedCalendar__ReplaceTreeNewOpLimit) +function WoWReforgedCalendar___ReplaceTrees takes rect r,integer source,integer target returns nothing + set WoWReforgedCalendar___sourceSeason=source + set WoWReforgedCalendar___targetSeason=target + call EnumDestructablesInRect(r, WoWReforgedCalendar___treeFilter, function WoWReforgedCalendar___ReplaceTreeNewOpLimit) endfunction -function WoWReforgedCalendar__ReplaceAffectedWithTrees takes integer source,integer target returns nothing +function WoWReforgedCalendar___ReplaceAffectedWithTrees takes integer source,integer target returns nothing local integer z= 0 local integer t= TERRAIN_TYPE_NONE local integer j= 0 local integer max2= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer i= 0 loop exitwhen ( i >= max ) - set z=(WoWReforgedZones__zones[(i)]) // INLINED!! + set z=(WoWReforgedZones___zones[(i)]) // INLINED!! set t=(s__Zone_terrainType[(z)]) // INLINED!! if ( t == TERRAIN_TYPE_LORDAERON or t == TERRAIN_TYPE_ASHENVALE ) then //call BJDebugMsg(GetZoneName(z) + " has terrain Lordaeron with rects counter " + I2S(GetZoneRectsCounter(z))) @@ -69700,7 +69700,7 @@ function WoWReforgedCalendar__ReplaceAffectedWithTrees takes integer source,inte set max2=(s__Zone_rectsCounter[(z)]) // INLINED!! loop exitwhen ( j >= max2 ) - call WoWReforgedCalendar__ReplaceTrees((s___Zone_rects[s__Zone_rects[(z )]+( j)]) , source , target) // INLINED!! + call WoWReforgedCalendar___ReplaceTrees((s___Zone_rects[s__Zone_rects[(z )]+( j)]) , source , target) // INLINED!! set j=j + 1 endloop endif @@ -69708,35 +69708,35 @@ function WoWReforgedCalendar__ReplaceAffectedWithTrees takes integer source,inte endloop endfunction -function WoWReforgedCalendar__ReplaceWithWinterTrees takes nothing returns nothing - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , SEASON_WINTER) +function WoWReforgedCalendar___ReplaceWithWinterTrees takes nothing returns nothing + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , SEASON_WINTER) endfunction -function WoWReforgedCalendar__ReplaceWithSummerTrees takes nothing returns nothing - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , SEASON_SUMMER) +function WoWReforgedCalendar___ReplaceWithSummerTrees takes nothing returns nothing + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , SEASON_SUMMER) endfunction -function WoWReforgedCalendar__ReplaceWithFallTrees takes nothing returns nothing - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , SEASON_FALL) +function WoWReforgedCalendar___ReplaceWithFallTrees takes nothing returns nothing + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , SEASON_FALL) endfunction -function WoWReforgedCalendar__GetEffectIndex takes integer zoneIndex,integer rectIndex returns integer +function WoWReforgedCalendar___GetEffectIndex takes integer zoneIndex,integer rectIndex returns integer return Index2D(zoneIndex , rectIndex , MAX_ZONE_RECTS) endfunction -function WoWReforgedCalendar__HasWeather takes integer t returns boolean +function WoWReforgedCalendar___HasWeather takes integer t returns boolean return t != TERRAIN_TYPE_NONE endfunction -function WoWReforgedCalendar__GetRandomWeatherEffect takes integer t returns integer +function WoWReforgedCalendar___GetRandomWeatherEffect takes integer t returns integer if ( t == TERRAIN_TYPE_ASHENVALE ) then - if ( (WoWReforgedCalendar__season) == SEASON_WINTER ) then // INLINED!! + if ( (WoWReforgedCalendar___season) == SEASON_WINTER ) then // INLINED!! return GetRandomSnowWeatherEffect() else return GetRandomAshenvaleRainWeatherEffect() endif elseif ( t == TERRAIN_TYPE_LORDAERON ) then - if ( (WoWReforgedCalendar__season) == SEASON_WINTER ) then // INLINED!! + if ( (WoWReforgedCalendar___season) == SEASON_WINTER ) then // INLINED!! return GetRandomSnowWeatherEffect() else return GetRandomLordaeronRainWeatherEffect() @@ -69758,65 +69758,65 @@ function WoWReforgedCalendar__GetRandomWeatherEffect takes integer t returns int return 0 endfunction -function WoWReforgedCalendar__ForForceAddWeatherResourceBonus takes nothing returns nothing +function WoWReforgedCalendar___ForForceAddWeatherResourceBonus takes nothing returns nothing call AddPlayerResourceBonus(GetEnumPlayer() , udg_ResourceWater , 20) endfunction -function WoWReforgedCalendar__ForForceRemoveWeatherResourceBonus takes nothing returns nothing +function WoWReforgedCalendar___ForForceRemoveWeatherResourceBonus takes nothing returns nothing call RemovePlayerResourceBonus(GetEnumPlayer() , udg_ResourceWater , 20) endfunction -function WoWReforgedCalendar__AddWeatherResourceBonus takes nothing returns nothing - call ForForce(GetPlayersAll(), function WoWReforgedCalendar__ForForceAddWeatherResourceBonus) +function WoWReforgedCalendar___AddWeatherResourceBonus takes nothing returns nothing + call ForForce(GetPlayersAll(), function WoWReforgedCalendar___ForForceAddWeatherResourceBonus) endfunction -function WoWReforgedCalendar__RemoveWeatherResourceBonus takes nothing returns nothing - call ForForce(GetPlayersAll(), function WoWReforgedCalendar__ForForceRemoveWeatherResourceBonus) +function WoWReforgedCalendar___RemoveWeatherResourceBonus takes nothing returns nothing + call ForForce(GetPlayersAll(), function WoWReforgedCalendar___ForForceRemoveWeatherResourceBonus) endfunction -function WoWReforgedCalendar__EnumUnitFillWater takes nothing returns nothing +function WoWReforgedCalendar___EnumUnitFillWater takes nothing returns nothing call SetUnitResource(GetEnumUnit() , udg_ResourceWater , (LoadInteger(Resources__h, GetHandleId((GetEnumUnit() )), Resources__Index2D(( udg_ResourceWater) , Resources__KEY_MAX_RESOURCE , Resources__KEY_MAX)))) // INLINED!! endfunction -function WoWReforgedCalendar__RainAddResourceBonus takes rect r returns nothing +function WoWReforgedCalendar___RainAddResourceBonus takes rect r returns nothing local group g= CreateGroup() - call GroupEnumUnitsInRect(g, r, WoWReforgedCalendar__filterIsMineWithResourceWaterNotFull) - call ForGroup(g, function WoWReforgedCalendar__EnumUnitFillWater) + call GroupEnumUnitsInRect(g, r, WoWReforgedCalendar___filterIsMineWithResourceWaterNotFull) + call ForGroup(g, function WoWReforgedCalendar___EnumUnitFillWater) call GroupClear(g) call DestroyGroup(g) set g=null endfunction -function WoWReforgedCalendar__RemoveWeatherEffects takes nothing returns nothing +function WoWReforgedCalendar___RemoveWeatherEffects takes nothing returns nothing local integer z= 0 local integer t= TERRAIN_TYPE_NONE local integer j= 0 local integer max2= 0 local integer index= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer i= 0 - if ( WoWReforgedCalendar__weatherRunning ) then - call ForForce(GetPlayersAll(), function WoWReforgedCalendar__ForForceRemoveWeatherResourceBonus) // INLINED!! - set WoWReforgedCalendar__weatherRunning=false + if ( WoWReforgedCalendar___weatherRunning ) then + call ForForce(GetPlayersAll(), function WoWReforgedCalendar___ForForceRemoveWeatherResourceBonus) // INLINED!! + set WoWReforgedCalendar___weatherRunning=false endif loop exitwhen ( i >= max ) - set z=(WoWReforgedZones__zones[(i)]) // INLINED!! + set z=(WoWReforgedZones___zones[(i)]) // INLINED!! set t=(s__Zone_terrainType[(z)]) // INLINED!! set j=0 set max2=(s__Zone_rectsCounter[(z)]) // INLINED!! loop exitwhen ( j >= max2 ) set index=(Index2D((i ) , ( j) , MAX_ZONE_RECTS)) // INLINED!! - if ( WoWReforgedCalendar__weather[index] != null ) then - call EnableWeatherEffect(WoWReforgedCalendar__weather[index], false) - call RemoveWeatherEffect(WoWReforgedCalendar__weather[index]) - set WoWReforgedCalendar__weather[index]=null - set WoWReforgedCalendar__weatherEffectIds[index]=0 - call RegionClearRect(WoWReforgedCalendar__rainyRegion, (s___Zone_rects[s__Zone_rects[(z )]+( j)])) // INLINED!! + if ( WoWReforgedCalendar___weather[index] != null ) then + call EnableWeatherEffect(WoWReforgedCalendar___weather[index], false) + call RemoveWeatherEffect(WoWReforgedCalendar___weather[index]) + set WoWReforgedCalendar___weather[index]=null + set WoWReforgedCalendar___weatherEffectIds[index]=0 + call RegionClearRect(WoWReforgedCalendar___rainyRegion, (s___Zone_rects[s__Zone_rects[(z )]+( j)])) // INLINED!! endif if ( t == TERRAIN_TYPE_LORDAERON or t == TERRAIN_TYPE_ASHENVALE ) then - call WoWReforgedCalendar__ReplaceTrees((s___Zone_rects[s__Zone_rects[(z )]+( j)]) , (WoWReforgedCalendar__season) , (WoWReforgedCalendar__season)) // INLINED!! + call WoWReforgedCalendar___ReplaceTrees((s___Zone_rects[s__Zone_rects[(z )]+( j)]) , (WoWReforgedCalendar___season) , (WoWReforgedCalendar___season)) // INLINED!! endif set j=j + 1 endloop @@ -69824,21 +69824,21 @@ function WoWReforgedCalendar__RemoveWeatherEffects takes nothing returns nothing endloop endfunction -function WoWReforgedCalendar__AddWeatherEffects takes nothing returns nothing +function WoWReforgedCalendar___AddWeatherEffects takes nothing returns nothing local integer z= 0 local integer t= TERRAIN_TYPE_NONE local integer j= 0 local integer max2= 0 local integer index= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer i= 0 - if ( not WoWReforgedCalendar__weatherRunning ) then - call ForForce(GetPlayersAll(), function WoWReforgedCalendar__ForForceAddWeatherResourceBonus) // INLINED!! - set WoWReforgedCalendar__weatherRunning=true + if ( not WoWReforgedCalendar___weatherRunning ) then + call ForForce(GetPlayersAll(), function WoWReforgedCalendar___ForForceAddWeatherResourceBonus) // INLINED!! + set WoWReforgedCalendar___weatherRunning=true endif loop exitwhen ( i >= max ) - set z=(WoWReforgedZones__zones[(i)]) // INLINED!! + set z=(WoWReforgedZones___zones[(i)]) // INLINED!! set t=(s__Zone_terrainType[(z)]) // INLINED!! if ( ((t) != TERRAIN_TYPE_NONE) ) then // INLINED!! set j=0 @@ -69846,26 +69846,26 @@ function WoWReforgedCalendar__AddWeatherEffects takes nothing returns nothing loop exitwhen ( j >= max2 ) set index=(Index2D((i ) , ( j) , MAX_ZONE_RECTS)) // INLINED!! - if ( WoWReforgedCalendar__weather[index] != null ) then - call EnableWeatherEffect(WoWReforgedCalendar__weather[index], false) - call RemoveWeatherEffect(WoWReforgedCalendar__weather[index]) - set WoWReforgedCalendar__weather[index]=null - set WoWReforgedCalendar__weatherEffectIds[index]=0 - call RegionClearRect(WoWReforgedCalendar__rainyRegion, (s___Zone_rects[s__Zone_rects[(z )]+( j)])) // INLINED!! + if ( WoWReforgedCalendar___weather[index] != null ) then + call EnableWeatherEffect(WoWReforgedCalendar___weather[index], false) + call RemoveWeatherEffect(WoWReforgedCalendar___weather[index]) + set WoWReforgedCalendar___weather[index]=null + set WoWReforgedCalendar___weatherEffectIds[index]=0 + call RegionClearRect(WoWReforgedCalendar___rainyRegion, (s___Zone_rects[s__Zone_rects[(z )]+( j)])) // INLINED!! endif - set WoWReforgedCalendar__weatherEffectIds[index]=WoWReforgedCalendar__GetRandomWeatherEffect(t) - if ( WoWReforgedCalendar__weatherEffectIds[index] != 0 ) then - set WoWReforgedCalendar__weather[index]=AddWeatherEffect((s___Zone_rects[s__Zone_rects[(z )]+( j)]), WoWReforgedCalendar__weatherEffectIds[index]) // INLINED!! - call EnableWeatherEffect(WoWReforgedCalendar__weather[index], true) - call RegionAddRect(WoWReforgedCalendar__rainyRegion, (s___Zone_rects[s__Zone_rects[(z )]+( j)])) // INLINED!! + set WoWReforgedCalendar___weatherEffectIds[index]=WoWReforgedCalendar___GetRandomWeatherEffect(t) + if ( WoWReforgedCalendar___weatherEffectIds[index] != 0 ) then + set WoWReforgedCalendar___weather[index]=AddWeatherEffect((s___Zone_rects[s__Zone_rects[(z )]+( j)]), WoWReforgedCalendar___weatherEffectIds[index]) // INLINED!! + call EnableWeatherEffect(WoWReforgedCalendar___weather[index], true) + call RegionAddRect(WoWReforgedCalendar___rainyRegion, (s___Zone_rects[s__Zone_rects[(z )]+( j)])) // INLINED!! - if ( IsRainWeatherEffect(WoWReforgedCalendar__weatherEffectIds[index]) ) then - call WoWReforgedCalendar__RainAddResourceBonus((s___Zone_rects[s__Zone_rects[(z )]+( j)])) // INLINED!! + if ( IsRainWeatherEffect(WoWReforgedCalendar___weatherEffectIds[index]) ) then + call WoWReforgedCalendar___RainAddResourceBonus((s___Zone_rects[s__Zone_rects[(z )]+( j)])) // INLINED!! endif endif - if ( ( t == TERRAIN_TYPE_LORDAERON or t == TERRAIN_TYPE_ASHENVALE ) and (WoWReforgedCalendar__season) == SEASON_WINTER ) then // INLINED!! - call WoWReforgedCalendar__ReplaceTrees((s___Zone_rects[s__Zone_rects[(z )]+( j)]) , SEASON_WINTER , SEASON_WINTER) // INLINED!! + if ( ( t == TERRAIN_TYPE_LORDAERON or t == TERRAIN_TYPE_ASHENVALE ) and (WoWReforgedCalendar___season) == SEASON_WINTER ) then // INLINED!! + call WoWReforgedCalendar___ReplaceTrees((s___Zone_rects[s__Zone_rects[(z )]+( j)]) , SEASON_WINTER , SEASON_WINTER) // INLINED!! endif set j=j + 1 endloop @@ -69875,11 +69875,11 @@ function WoWReforgedCalendar__AddWeatherEffects takes nothing returns nothing endfunction function IsCameraInRainyArea takes nothing returns boolean - return IsPointInRegion(WoWReforgedCalendar__rainyRegion, GetCameraTargetPositionX(), GetCameraTargetPositionY()) // async + return IsPointInRegion(WoWReforgedCalendar___rainyRegion, GetCameraTargetPositionX(), GetCameraTargetPositionY()) // async endfunction function Lightning takes nothing returns nothing - if ( (IsPointInRegion(WoWReforgedCalendar__rainyRegion, GetCameraTargetPositionX(), GetCameraTargetPositionY())) ) then // async // INLINED!! + if ( (IsPointInRegion(WoWReforgedCalendar___rainyRegion, GetCameraTargetPositionX(), GetCameraTargetPositionY())) ) then // async // INLINED!! //call PlaySound("Sound\\Doodads\\Cinematic\\Lightningbolt\\LightningBolt1.flac") // call PlaySound("Abilities\\Spells\\Orc\\LightningBolt\\LightningBolt.flac") call StartSound(gg_snd_LightningBoltWeather) @@ -69889,14 +69889,14 @@ function Lightning takes nothing returns nothing endfunction function Thunder takes nothing returns nothing - if ( (IsPointInRegion(WoWReforgedCalendar__rainyRegion, GetCameraTargetPositionX(), GetCameraTargetPositionY())) ) then // async // INLINED!! + if ( (IsPointInRegion(WoWReforgedCalendar___rainyRegion, GetCameraTargetPositionX(), GetCameraTargetPositionY())) ) then // async // INLINED!! call StartSound(gg_snd_RollingThunder1) //call PlaySound("Sound\\Ambient\\DoodadEffects\\RollingThunder1.flac") //call BJDebugMsg("Thunder") endif endfunction -function WoWReforgedCalendar__TimerFunctionThunder takes nothing returns nothing +function WoWReforgedCalendar___TimerFunctionThunder takes nothing returns nothing if ( GetRandomInt(0, 1) == 0 ) then call Thunder() else @@ -69904,44 +69904,44 @@ function WoWReforgedCalendar__TimerFunctionThunder takes nothing returns nothing endif endfunction -function WoWReforgedCalendar__StopThunder takes nothing returns nothing - call PauseTimer(WoWReforgedCalendar__thunderTimer) +function WoWReforgedCalendar___StopThunder takes nothing returns nothing + call PauseTimer(WoWReforgedCalendar___thunderTimer) endfunction -function WoWReforgedCalendar__StartThunder takes nothing returns nothing - call TimerStart(WoWReforgedCalendar__thunderTimer, GetRandomReal(MIN_THUNDER_DURATION, MAX_THUNDER_DURATION), true, function WoWReforgedCalendar__TimerFunctionThunder) +function WoWReforgedCalendar___StartThunder takes nothing returns nothing + call TimerStart(WoWReforgedCalendar___thunderTimer, GetRandomReal(MIN_THUNDER_DURATION, MAX_THUNDER_DURATION), true, function WoWReforgedCalendar___TimerFunctionThunder) endfunction -function WoWReforgedCalendar__TimerFunctionEndWeather takes nothing returns nothing +function WoWReforgedCalendar___TimerFunctionEndWeather takes nothing returns nothing //call NewOpLimit(function RemoveWeatherEffects) - call PauseTimer(WoWReforgedCalendar__thunderTimer) // INLINED!! + call PauseTimer(WoWReforgedCalendar___thunderTimer) // INLINED!! endfunction -function WoWReforgedCalendar__EndWeather takes nothing returns nothing - call TimerStart(WoWReforgedCalendar__weatherTimer, GetRandomReal(MIN_WEATHER_DURATION, MAX_WEATHER_DURATION), false, function WoWReforgedCalendar__TimerFunctionEndWeather) +function WoWReforgedCalendar___EndWeather takes nothing returns nothing + call TimerStart(WoWReforgedCalendar___weatherTimer, GetRandomReal(MIN_WEATHER_DURATION, MAX_WEATHER_DURATION), false, function WoWReforgedCalendar___TimerFunctionEndWeather) endfunction -function WoWReforgedCalendar__TimerFunctionStartWeather takes nothing returns nothing +function WoWReforgedCalendar___TimerFunctionStartWeather takes nothing returns nothing //call NewOpLimit(function AddWeatherEffects) - call TimerStart(WoWReforgedCalendar__thunderTimer, GetRandomReal(MIN_THUNDER_DURATION, MAX_THUNDER_DURATION), true, function WoWReforgedCalendar__TimerFunctionThunder) // INLINED!! - call TimerStart(WoWReforgedCalendar__weatherTimer, GetRandomReal(MIN_WEATHER_DURATION, MAX_WEATHER_DURATION), false, function WoWReforgedCalendar__TimerFunctionEndWeather) // INLINED!! + call TimerStart(WoWReforgedCalendar___thunderTimer, GetRandomReal(MIN_THUNDER_DURATION, MAX_THUNDER_DURATION), true, function WoWReforgedCalendar___TimerFunctionThunder) // INLINED!! + call TimerStart(WoWReforgedCalendar___weatherTimer, GetRandomReal(MIN_WEATHER_DURATION, MAX_WEATHER_DURATION), false, function WoWReforgedCalendar___TimerFunctionEndWeather) // INLINED!! endfunction function StartWeather takes nothing returns nothing - call TimerStart(WoWReforgedCalendar__weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar__TimerFunctionStartWeather) + call TimerStart(WoWReforgedCalendar___weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar___TimerFunctionStartWeather) endfunction function StartWeatherImmediately takes nothing returns nothing - call TimerStart(WoWReforgedCalendar__weatherTimer, 0.0, false, function WoWReforgedCalendar__TimerFunctionStartWeather) + call TimerStart(WoWReforgedCalendar___weatherTimer, 0.0, false, function WoWReforgedCalendar___TimerFunctionStartWeather) endfunction function StopWeather takes nothing returns nothing - call PauseTimer(WoWReforgedCalendar__weatherTimer) - call PauseTimer(WoWReforgedCalendar__thunderTimer) - call PauseTimer(WoWReforgedCalendar__thunderTimer) // INLINED!! + call PauseTimer(WoWReforgedCalendar___weatherTimer) + call PauseTimer(WoWReforgedCalendar___thunderTimer) + call PauseTimer(WoWReforgedCalendar___thunderTimer) // INLINED!! endfunction -function WoWReforgedCalendar__ReplaceWithTerrain takes rect whichRect,integer source,integer target returns nothing +function WoWReforgedCalendar___ReplaceWithTerrain takes rect whichRect,integer source,integer target returns nothing local real x= GetRectMinX(whichRect) local real y= 0.0 local real maxX= GetRectMaxX(whichRect) @@ -69954,7 +69954,7 @@ function WoWReforgedCalendar__ReplaceWithTerrain takes rect whichRect,integer so //call BJDebugMsg("ReplaceWithTerrain 2") loop exitwhen ( y >= maxY ) - set t=(LoadInteger(WoWReforgedCalendar__h, (GetTerrainType(x, y)), 0)) // INLINED!! + set t=(LoadInteger(WoWReforgedCalendar___h, (GetTerrainType(x, y)), 0)) // INLINED!! //call BJDebugMsg("ReplaceWithTerrain 3") if ( t != 0 ) then if ( target == SEASON_WINTER ) then @@ -69976,20 +69976,20 @@ function WoWReforgedCalendar__ReplaceWithTerrain takes rect whichRect,integer so endloop endfunction -function WoWReforgedCalendar__ReplaceWithTerrainNewOpLmit takes nothing returns nothing - call WoWReforgedCalendar__ReplaceWithTerrain(udg_TmpRect , WoWReforgedCalendar__sourceSeason , WoWReforgedCalendar__targetSeason) +function WoWReforgedCalendar___ReplaceWithTerrainNewOpLmit takes nothing returns nothing + call WoWReforgedCalendar___ReplaceWithTerrain(udg_TmpRect , WoWReforgedCalendar___sourceSeason , WoWReforgedCalendar___targetSeason) endfunction -function WoWReforgedCalendar__ReplaceAffectedWithTerrain takes integer source,integer target returns nothing +function WoWReforgedCalendar___ReplaceAffectedWithTerrain takes integer source,integer target returns nothing local integer z= 0 local integer t= TERRAIN_TYPE_NONE local integer j= 0 local integer max2= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer i= 0 loop exitwhen ( i >= max ) - set z=(WoWReforgedZones__zones[(i)]) // INLINED!! + set z=(WoWReforgedZones___zones[(i)]) // INLINED!! set t=(s__Zone_terrainType[(z)]) // INLINED!! if ( t == TERRAIN_TYPE_LORDAERON or t == TERRAIN_TYPE_ASHENVALE ) then set j=0 @@ -69997,9 +69997,9 @@ function WoWReforgedCalendar__ReplaceAffectedWithTerrain takes integer source,in loop exitwhen ( j >= max2 ) set udg_TmpRect=(s___Zone_rects[s__Zone_rects[(z )]+( j)]) // INLINED!! - set WoWReforgedCalendar__sourceSeason=source - set WoWReforgedCalendar__targetSeason=target - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithTerrainNewOpLmit)) // INLINED!! + set WoWReforgedCalendar___sourceSeason=source + set WoWReforgedCalendar___targetSeason=target + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithTerrainNewOpLmit)) // INLINED!! set j=j + 1 endloop endif @@ -70007,119 +70007,119 @@ function WoWReforgedCalendar__ReplaceAffectedWithTerrain takes integer source,in endloop endfunction -function WoWReforgedCalendar__ReplaceWithWinterTerrain takes nothing returns nothing - call WoWReforgedCalendar__ReplaceAffectedWithTerrain((WoWReforgedCalendar__season) , SEASON_WINTER) // INLINED!! +function WoWReforgedCalendar___ReplaceWithWinterTerrain takes nothing returns nothing + call WoWReforgedCalendar___ReplaceAffectedWithTerrain((WoWReforgedCalendar___season) , SEASON_WINTER) // INLINED!! endfunction -function WoWReforgedCalendar__ReplaceWithSummerTerrain takes nothing returns nothing - call WoWReforgedCalendar__ReplaceAffectedWithTerrain((WoWReforgedCalendar__season) , SEASON_SUMMER) // INLINED!! +function WoWReforgedCalendar___ReplaceWithSummerTerrain takes nothing returns nothing + call WoWReforgedCalendar___ReplaceAffectedWithTerrain((WoWReforgedCalendar___season) , SEASON_SUMMER) // INLINED!! endfunction -function WoWReforgedCalendar__ReplaceWithFallTerrain takes nothing returns nothing - call WoWReforgedCalendar__ReplaceAffectedWithTerrain((WoWReforgedCalendar__season) , SEASON_FALL) // INLINED!! +function WoWReforgedCalendar___ReplaceWithFallTerrain takes nothing returns nothing + call WoWReforgedCalendar___ReplaceAffectedWithTerrain((WoWReforgedCalendar___season) , SEASON_FALL) // INLINED!! endfunction -function WoWReforgedCalendar__ForForceAddFallResourceBonus takes nothing returns nothing +function WoWReforgedCalendar___ForForceAddFallResourceBonus takes nothing returns nothing call AddPlayerResourceBonus(GetEnumPlayer() , udg_ResourceGrain , 20) endfunction -function WoWReforgedCalendar__ForForceRemoveFallResourceBonus takes nothing returns nothing +function WoWReforgedCalendar___ForForceRemoveFallResourceBonus takes nothing returns nothing call RemovePlayerResourceBonus(GetEnumPlayer() , udg_ResourceGrain , 20) endfunction -function WoWReforgedCalendar__ResourceBonus takes integer previousSeason,integer currentSeason returns nothing +function WoWReforgedCalendar___ResourceBonus takes integer previousSeason,integer currentSeason returns nothing if ( previousSeason == SEASON_FALL ) then - call ForForce(GetPlayersAll(), function WoWReforgedCalendar__ForForceRemoveFallResourceBonus) + call ForForce(GetPlayersAll(), function WoWReforgedCalendar___ForForceRemoveFallResourceBonus) elseif ( currentSeason == SEASON_FALL ) then - call ForForce(GetPlayersAll(), function WoWReforgedCalendar__ForForceAddFallResourceBonus) + call ForForce(GetPlayersAll(), function WoWReforgedCalendar___ForForceAddFallResourceBonus) endif endfunction function Winter takes nothing returns nothing call SetSkyModel("Environment\\Sky\\LordaeronWinterSky\\LordaeronWinterSky.mdl") call SetTerrainFogEx(0, 1000, 8000, 0, 1, 1, 1) - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithWinterTerrain)) // INLINED!! - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithWinterTrees)) // INLINED!! - call WoWReforgedCalendar__ResourceBonus((WoWReforgedCalendar__season) , SEASON_WINTER) // INLINED!! - set WoWReforgedCalendar__season=SEASON_WINTER + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithWinterTerrain)) // INLINED!! + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithWinterTrees)) // INLINED!! + call WoWReforgedCalendar___ResourceBonus((WoWReforgedCalendar___season) , SEASON_WINTER) // INLINED!! + set WoWReforgedCalendar___season=SEASON_WINTER call StopWeather() - call TimerStart(WoWReforgedCalendar__weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar__TimerFunctionStartWeather) // INLINED!! + call TimerStart(WoWReforgedCalendar___weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar___TimerFunctionStartWeather) // INLINED!! endfunction function Summer takes nothing returns nothing call SetSkyModel("Environment\\Sky\\LordaeronSummerSky\\LordaeronSummerSky.mdl") call SetTerrainFogEx(0, 1000, 8000, 0, 1, 1, 1) - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithSummerTerrain)) // INLINED!! - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithSummerTrees)) // INLINED!! - call WoWReforgedCalendar__ResourceBonus((WoWReforgedCalendar__season) , SEASON_SUMMER) // INLINED!! - set WoWReforgedCalendar__season=SEASON_SUMMER + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithSummerTerrain)) // INLINED!! + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithSummerTrees)) // INLINED!! + call WoWReforgedCalendar___ResourceBonus((WoWReforgedCalendar___season) , SEASON_SUMMER) // INLINED!! + set WoWReforgedCalendar___season=SEASON_SUMMER call StopWeather() - call TimerStart(WoWReforgedCalendar__weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar__TimerFunctionStartWeather) // INLINED!! + call TimerStart(WoWReforgedCalendar___weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar___TimerFunctionStartWeather) // INLINED!! endfunction function Spring takes nothing returns nothing call SetSkyModel("Environment\\Sky\\LordaeronSummerSky\\LordaeronSummerSky.mdl") call SetTerrainFogEx(0, 1000, 8000, 0, 1, 1, 1) - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithSummerTerrain)) // INLINED!! - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithSummerTrees)) // INLINED!! - call WoWReforgedCalendar__ResourceBonus((WoWReforgedCalendar__season) , SEASON_SPRING) // INLINED!! - set WoWReforgedCalendar__season=SEASON_SPRING + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithSummerTerrain)) // INLINED!! + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithSummerTrees)) // INLINED!! + call WoWReforgedCalendar___ResourceBonus((WoWReforgedCalendar___season) , SEASON_SPRING) // INLINED!! + set WoWReforgedCalendar___season=SEASON_SPRING call StopWeather() - call TimerStart(WoWReforgedCalendar__weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar__TimerFunctionStartWeather) // INLINED!! + call TimerStart(WoWReforgedCalendar___weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar___TimerFunctionStartWeather) // INLINED!! endfunction function Fall takes nothing returns nothing call SetSkyModel("Environment\\Sky\\LordaeronSummerSky\\LordaeronFallSky.mdl") call SetTerrainFogEx(0, 1000, 8000, 0, 1, 1, 1) - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithFallTerrain)) // INLINED!! - call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar__ReplaceWithFallTrees)) // INLINED!! - call WoWReforgedCalendar__ResourceBonus((WoWReforgedCalendar__season) , SEASON_FALL) // INLINED!! - set WoWReforgedCalendar__season=SEASON_FALL + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithFallTerrain)) // INLINED!! + call ForForce(bj_FORCE_PLAYER[0], (function WoWReforgedCalendar___ReplaceWithFallTrees)) // INLINED!! + call WoWReforgedCalendar___ResourceBonus((WoWReforgedCalendar___season) , SEASON_FALL) // INLINED!! + set WoWReforgedCalendar___season=SEASON_FALL call StopWeather() - call TimerStart(WoWReforgedCalendar__weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar__TimerFunctionStartWeather) // INLINED!! + call TimerStart(WoWReforgedCalendar___weatherTimer, GetRandomReal(MIN_NO_WEATHER_DURATION, MAX_NO_WEATHER_DURATION), false, function WoWReforgedCalendar___TimerFunctionStartWeather) // INLINED!! endfunction function IsSeasonsEnabled takes nothing returns boolean - return WoWReforgedCalendar__seasonsEnabled + return WoWReforgedCalendar___seasonsEnabled endfunction function HappyNewYear takes nothing returns nothing - call h__QuestMessageBJ(GetPlayersAll(), bj_QUESTMESSAGE_ITEMACQUIRED, "Happy new year for the year " + I2S((WoWReforgedCalendar__years)) + "!") // INLINED!! + call h__QuestMessageBJ(GetPlayersAll(), bj_QUESTMESSAGE_ITEMACQUIRED, "Happy new year for the year " + I2S((WoWReforgedCalendar___years)) + "!") // INLINED!! endfunction function WeatherPrediction takes player whichPlayer returns nothing local string msg= "" - if ( WoWReforgedCalendar__weatherRunning ) then - set msg="Snowfall/Storm/Rain with thunder in " + FormatTime(TimerGetRemaining(WoWReforgedCalendar__thunderTimer)) - set msg=msg + " ending in " + FormatTime(TimerGetRemaining(WoWReforgedCalendar__weatherTimer)) + if ( WoWReforgedCalendar___weatherRunning ) then + set msg="Snowfall/Storm/Rain with thunder in " + FormatTime(TimerGetRemaining(WoWReforgedCalendar___thunderTimer)) + set msg=msg + " ending in " + FormatTime(TimerGetRemaining(WoWReforgedCalendar___weatherTimer)) else - set msg="Next Snowfall/Storm/Rain in " + FormatTime(TimerGetRemaining(WoWReforgedCalendar__weatherTimer)) + set msg="Next Snowfall/Storm/Rain in " + FormatTime(TimerGetRemaining(WoWReforgedCalendar___weatherTimer)) endif call h__DisplayTimedTextToPlayer(whichPlayer, 0.0, 0.0, 6.0, msg) endfunction -function WoWReforgedCalendar__TriggerConditionTimeOfDay takes nothing returns boolean - if ( WoWReforgedCalendar__days == DAYS_PER_YEAR ) then - set WoWReforgedCalendar__days=1 - set WoWReforgedCalendar__years=WoWReforgedCalendar__years + 1 +function WoWReforgedCalendar___TriggerConditionTimeOfDay takes nothing returns boolean + if ( WoWReforgedCalendar___days == DAYS_PER_YEAR ) then + set WoWReforgedCalendar___days=1 + set WoWReforgedCalendar___years=WoWReforgedCalendar___years + 1 - call h__QuestMessageBJ(GetPlayersAll(), bj_QUESTMESSAGE_ITEMACQUIRED, "Happy new year for the year " + I2S((WoWReforgedCalendar__years)) + "!") // INLINED!! + call h__QuestMessageBJ(GetPlayersAll(), bj_QUESTMESSAGE_ITEMACQUIRED, "Happy new year for the year " + I2S((WoWReforgedCalendar___years)) + "!") // INLINED!! else - set WoWReforgedCalendar__days=WoWReforgedCalendar__days + 1 + set WoWReforgedCalendar___days=WoWReforgedCalendar___days + 1 endif - if ( (WoWReforgedCalendar__seasonsEnabled) ) then // INLINED!! - if ( WoWReforgedCalendar__days == SUMMER_DAY ) then - set WoWReforgedCalendar__season=SEASON_SUMMER + if ( (WoWReforgedCalendar___seasonsEnabled) ) then // INLINED!! + if ( WoWReforgedCalendar___days == SUMMER_DAY ) then + set WoWReforgedCalendar___season=SEASON_SUMMER call Summer() - elseif ( WoWReforgedCalendar__days == SPRING_DAY ) then - set WoWReforgedCalendar__season=SEASON_SPRING + elseif ( WoWReforgedCalendar___days == SPRING_DAY ) then + set WoWReforgedCalendar___season=SEASON_SPRING call Spring() - elseif ( WoWReforgedCalendar__days == FALL_DAY ) then - set WoWReforgedCalendar__season=SEASON_FALL + elseif ( WoWReforgedCalendar___days == FALL_DAY ) then + set WoWReforgedCalendar___season=SEASON_FALL call Fall() - elseif ( WoWReforgedCalendar__days == WINTER_DAY ) then - set WoWReforgedCalendar__season=SEASON_WINTER + elseif ( WoWReforgedCalendar___days == WINTER_DAY ) then + set WoWReforgedCalendar___season=SEASON_WINTER call Winter() endif endif @@ -70128,111 +70128,111 @@ function WoWReforgedCalendar__TriggerConditionTimeOfDay takes nothing returns bo endfunction function StartCurrentSeason takes nothing returns nothing - if ( WoWReforgedCalendar__days >= FALL_DAY ) then - set WoWReforgedCalendar__season=SEASON_FALL + if ( WoWReforgedCalendar___days >= FALL_DAY ) then + set WoWReforgedCalendar___season=SEASON_FALL call Fall() - elseif ( WoWReforgedCalendar__days >= SUMMER_DAY ) then - set WoWReforgedCalendar__season=SEASON_SUMMER + elseif ( WoWReforgedCalendar___days >= SUMMER_DAY ) then + set WoWReforgedCalendar___season=SEASON_SUMMER call Summer() - elseif ( WoWReforgedCalendar__days >= SPRING_DAY ) then - set WoWReforgedCalendar__season=SEASON_SPRING + elseif ( WoWReforgedCalendar___days >= SPRING_DAY ) then + set WoWReforgedCalendar___season=SEASON_SPRING call Spring() else - set WoWReforgedCalendar__season=SEASON_WINTER + set WoWReforgedCalendar___season=SEASON_WINTER call Winter() endif endfunction function EnableCalendar takes nothing returns nothing - call EnableTrigger(WoWReforgedCalendar__changeDayTrigger) - call TimerStart(WoWReforgedCalendar__changeSecondTimer, 0.01, true, function WoWReforgedCalendar__CheckCalendarEvents) + call EnableTrigger(WoWReforgedCalendar___changeDayTrigger) + call TimerStart(WoWReforgedCalendar___changeSecondTimer, 0.01, true, function WoWReforgedCalendar___CheckCalendarEvents) call StartCurrentSeason() endfunction function DisableCalendar takes nothing returns nothing - call DisableTrigger(WoWReforgedCalendar__changeDayTrigger) - call PauseTimer(WoWReforgedCalendar__changeSecondTimer) - call PauseTimer(WoWReforgedCalendar__weatherTimer) - call PauseTimer(WoWReforgedCalendar__thunderTimer) + call DisableTrigger(WoWReforgedCalendar___changeDayTrigger) + call PauseTimer(WoWReforgedCalendar___changeSecondTimer) + call PauseTimer(WoWReforgedCalendar___weatherTimer) + call PauseTimer(WoWReforgedCalendar___thunderTimer) endfunction function EnableSeasons takes nothing returns nothing - set WoWReforgedCalendar__seasonsEnabled=true + set WoWReforgedCalendar___seasonsEnabled=true call EnableCalendar() endfunction function DisableSeasons takes nothing returns nothing - set WoWReforgedCalendar__seasonsEnabled=false + set WoWReforgedCalendar___seasonsEnabled=false call DisableCalendar() endfunction -function WoWReforgedCalendar__TimerFunctionStartSeason takes nothing returns nothing +function WoWReforgedCalendar___TimerFunctionStartSeason takes nothing returns nothing call StartCurrentSeason() call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) endfunction -function WoWReforgedCalendar__StartEaster takes integer e returns nothing - set WoWReforgedCalendar__easterTrees=true - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , WoWReforgedCalendar__season) +function WoWReforgedCalendar___StartEaster takes integer e returns nothing + set WoWReforgedCalendar___easterTrees=true + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , WoWReforgedCalendar___season) call PlaySoundBJ(gg_snd_EasterIntro) endfunction -function WoWReforgedCalendar__EndEaster takes integer e returns nothing - set WoWReforgedCalendar__easterTrees=false - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , WoWReforgedCalendar__season) +function WoWReforgedCalendar___EndEaster takes integer e returns nothing + set WoWReforgedCalendar___easterTrees=false + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , WoWReforgedCalendar___season) endfunction -function WoWReforgedCalendar__StartChristmas takes integer e returns nothing - set WoWReforgedCalendar__christmasTrees=true - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , WoWReforgedCalendar__season) +function WoWReforgedCalendar___StartChristmas takes integer e returns nothing + set WoWReforgedCalendar___christmasTrees=true + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , WoWReforgedCalendar___season) endfunction -function WoWReforgedCalendar__EndChristmas takes integer e returns nothing - set WoWReforgedCalendar__christmasTrees=false - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , WoWReforgedCalendar__season) +function WoWReforgedCalendar___EndChristmas takes integer e returns nothing + set WoWReforgedCalendar___christmasTrees=false + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , WoWReforgedCalendar___season) endfunction -function WoWReforgedCalendar__StartNewYear takes integer e returns nothing +function WoWReforgedCalendar___StartNewYear takes integer e returns nothing local integer index= 0 local integer zone= 0 local integer i= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer j= 0 local integer max2= 0 loop exitwhen ( i == max ) - set zone=(WoWReforgedZones__zones[(i)]) // INLINED!! + set zone=(WoWReforgedZones___zones[(i)]) // INLINED!! set max2=(s__Zone_rectsCounter[(zone)]) // INLINED!! set j=0 loop exitwhen ( j == max2 ) set index=Index2D(i , j , MAX_ZONE_RECTS) - set WoWReforgedCalendar__newYearEffects[index]=AddSpecialEffect("war3mapImported\\Firework3.mdx", GetRectCenterX((s___Zone_rects[s__Zone_rects[(zone )]+( j)])), GetRectCenterY((s___Zone_rects[s__Zone_rects[(zone )]+( j)]))) // INLINED!! + set WoWReforgedCalendar___newYearEffects[index]=AddSpecialEffect("war3mapImported\\Firework3.mdx", GetRectCenterX((s___Zone_rects[s__Zone_rects[(zone )]+( j)])), GetRectCenterY((s___Zone_rects[s__Zone_rects[(zone )]+( j)]))) // INLINED!! set j=j + 1 endloop set i=i + 1 endloop endfunction -function WoWReforgedCalendar__EndNewYear takes integer e returns nothing +function WoWReforgedCalendar___EndNewYear takes integer e returns nothing local integer index= 0 local integer zone= 0 local integer i= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer j= 0 local integer max2= 0 loop exitwhen ( i == max ) - set zone=(WoWReforgedZones__zones[(i)]) // INLINED!! + set zone=(WoWReforgedZones___zones[(i)]) // INLINED!! set max2=(s__Zone_rectsCounter[(zone)]) // INLINED!! set j=0 loop exitwhen ( j == max2 ) set index=Index2D(i , j , MAX_ZONE_RECTS) - if ( WoWReforgedCalendar__newYearEffects[index] != null ) then - call DestroyEffect(WoWReforgedCalendar__newYearEffects[index]) - set WoWReforgedCalendar__newYearEffects[index]=null + if ( WoWReforgedCalendar___newYearEffects[index] != null ) then + call DestroyEffect(WoWReforgedCalendar___newYearEffects[index]) + set WoWReforgedCalendar___newYearEffects[index]=null endif set j=j + 1 endloop @@ -70241,21 +70241,21 @@ function WoWReforgedCalendar__EndNewYear takes integer e returns nothing endfunction -function WoWReforgedCalendar__IsMineWithResourceWaterNotFull takes nothing returns boolean +function WoWReforgedCalendar___IsMineWithResourceWaterNotFull takes nothing returns boolean return (IsUnitInGroup((GetFilterUnit()), Resources__mines)) and (LoadInteger(Resources__h, GetHandleId((GetFilterUnit() )), Resources__Index2D(( udg_ResourceWater) , Resources__KEY_MAX_RESOURCE , Resources__KEY_MAX))) > 0 and (LoadInteger(Resources__h, GetHandleId((GetFilterUnit() )), Resources__Index2D(( udg_ResourceWater) , Resources__KEY_RESOURCE , Resources__KEY_MAX))) < (LoadInteger(Resources__h, GetHandleId((GetFilterUnit() )), Resources__Index2D(( udg_ResourceWater) , Resources__KEY_MAX_RESOURCE , Resources__KEY_MAX))) // INLINED!! endfunction -function WoWReforgedCalendar__Init takes nothing returns nothing - set WoWReforgedCalendar__rainyRegion=CreateRegion() +function WoWReforgedCalendar___Init takes nothing returns nothing + set WoWReforgedCalendar___rainyRegion=CreateRegion() - call TriggerRegisterGameStateEventTimeOfDay(WoWReforgedCalendar__changeDayTrigger, EQUAL, 0.0) - call TriggerAddCondition(WoWReforgedCalendar__changeDayTrigger, Condition(function WoWReforgedCalendar__TriggerConditionTimeOfDay)) - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedCalendar__TimerFunctionStartSeason) - call TimerStart(WoWReforgedCalendar__changeSecondTimer, 0.01, true, function WoWReforgedCalendar__CheckCalendarEvents) + call TriggerRegisterGameStateEventTimeOfDay(WoWReforgedCalendar___changeDayTrigger, EQUAL, 0.0) + call TriggerAddCondition(WoWReforgedCalendar___changeDayTrigger, Condition(function WoWReforgedCalendar___TriggerConditionTimeOfDay)) + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedCalendar___TimerFunctionStartSeason) + call TimerStart(WoWReforgedCalendar___changeSecondTimer, 0.01, true, function WoWReforgedCalendar___CheckCalendarEvents) - set WoWReforgedCalendar__treeFilter=Filter(function WoWReforgedCalendar__FilterIsTree) + set WoWReforgedCalendar___treeFilter=Filter(function WoWReforgedCalendar___FilterIsTree) - set WoWReforgedCalendar__filterIsMineWithResourceWaterNotFull=Filter(function WoWReforgedCalendar__IsMineWithResourceWaterNotFull) + set WoWReforgedCalendar___filterIsMineWithResourceWaterNotFull=Filter(function WoWReforgedCalendar___IsMineWithResourceWaterNotFull) call AddTreeMapping(SUMMER_TREE_WALL , FALL_TREE_WALL , WINTER_TREE_WALL , SNOWY_TREE_WALL , EASTERN_TREE_WALL_1 , CHRISTMAS_TREE_WALL) call AddTreeMapping(CITYSCAPE_SUMMER_TREE_WALL , CITYSCAPE_FALL_TREE_WALL , CITYSCAPE_WINTER_TREE_WALL , CITYSCAPE_SNOWY_TREE_WALL , CARROT_TREE_WALL_1 , CITYSCAPE_CHRISTMAS_TREE_WALL) @@ -70319,7 +70319,7 @@ endfunction //library WoWReforgedMassForestation: -function WoWReforgedMassForestation__GetMatchingTreeType takes real x,real y returns integer +function WoWReforgedMassForestation___GetMatchingTreeType takes real x,real y returns integer local integer zone= GetZoneByCoordinates(x , y) local string name= null if ( zone != 0 and (s__Zone_treeTypeId[(zone)]) != 0 ) then // INLINED!! @@ -70329,42 +70329,42 @@ function WoWReforgedMassForestation__GetMatchingTreeType takes real x,real y ret return RUINS_TREE_WALL endfunction -function WoWReforgedMassForestation__FilterIsValidEnemyUnit takes nothing returns boolean +function WoWReforgedMassForestation___FilterIsValidEnemyUnit takes nothing returns boolean if ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) ) then return false elseif ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) ) then return false - elseif ( IsUnitAlly(GetFilterUnit(), WoWReforgedMassForestation__owner) ) then + elseif ( IsUnitAlly(GetFilterUnit(), WoWReforgedMassForestation___owner) ) then return false elseif ( GetUnitAbilityLevel(GetFilterUnit(), 'Avul') > 0 ) then return false - elseif ( GetUnitLevel(GetFilterUnit()) > WoWReforgedMassForestation__abilityLevel ) then + elseif ( GetUnitLevel(GetFilterUnit()) > WoWReforgedMassForestation___abilityLevel ) then return false endif return true endfunction -function WoWReforgedMassForestation__ForGroupConvertIntoTree takes nothing returns nothing +function WoWReforgedMassForestation___ForGroupConvertIntoTree takes nothing returns nothing local unit u= GetEnumUnit() local real x= GetUnitX(u) local real y= GetUnitY(u) local real face= GetUnitFacing(u) call h__RemoveUnit(u) set u=null - call QueueDestructableAnimation(CreateDestructable(WoWReforgedMassForestation__GetMatchingTreeType(x , y), x, y, face, 1.0, 0), "birth") + call QueueDestructableAnimation(CreateDestructable(WoWReforgedMassForestation___GetMatchingTreeType(x , y), x, y, face, 1.0, 0), "birth") endfunction function MassForestation takes unit caster,integer abilityId,real x,real y returns boolean local group g= CreateGroup() local boolean result= false - set WoWReforgedMassForestation__owner=GetOwningPlayer(caster) - set WoWReforgedMassForestation__abilityLevel=GetUnitAbilityLevel(caster, abilityId) * 5 - call GroupEnumUnitsInRange(g, x, y, 256.0, Filter(function WoWReforgedMassForestation__FilterIsValidEnemyUnit)) - set WoWReforgedMassForestation__owner=null + set WoWReforgedMassForestation___owner=GetOwningPlayer(caster) + set WoWReforgedMassForestation___abilityLevel=GetUnitAbilityLevel(caster, abilityId) * 5 + call GroupEnumUnitsInRange(g, x, y, 256.0, Filter(function WoWReforgedMassForestation___FilterIsValidEnemyUnit)) + set WoWReforgedMassForestation___owner=null set result=BlzGroupGetSize(g) > 0 if ( result ) then - call ForGroup(g, function WoWReforgedMassForestation__ForGroupConvertIntoTree) + call ForGroup(g, function WoWReforgedMassForestation___ForGroupConvertIntoTree) call GroupClear(g) endif @@ -70374,7 +70374,7 @@ function MassForestation takes unit caster,integer abilityId,real x,real y retur return result endfunction -function WoWReforgedMassForestation__TriggerConditionCast takes nothing returns boolean +function WoWReforgedMassForestation___TriggerConditionCast takes nothing returns boolean if ( GetSpellAbilityId() == WoWReforgedMassForestation_ABILITY_ID and not MassForestation(GetTriggerUnit() , GetSpellAbilityId() , GetSpellTargetX() , GetSpellTargetY()) ) then call IssueImmediateOrder(GetTriggerUnit(), "stop") call SimError(GetOwningPlayer(GetTriggerUnit()) , "No valid targets.") @@ -70382,9 +70382,9 @@ function WoWReforgedMassForestation__TriggerConditionCast takes nothing returns return false endfunction -function WoWReforgedMassForestation__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedMassForestation__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(WoWReforgedMassForestation__castTrigger, Condition(function WoWReforgedMassForestation__TriggerConditionCast)) +function WoWReforgedMassForestation___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedMassForestation___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(WoWReforgedMassForestation___castTrigger, Condition(function WoWReforgedMassForestation___TriggerConditionCast)) endfunction @@ -70630,24 +70630,24 @@ function UpdatePortalNameByItself takes unit whichUnit returns nothing call UpdatePortalName(whichUnit , WaygateIsActive(whichUnit) , WaygateGetDestinationX(whichUnit) , WaygateGetDestinationY(whichUnit)) endfunction -function WoWReforgedPortals__FilterIsPortal takes nothing returns boolean +function WoWReforgedPortals___FilterIsPortal takes nothing returns boolean return IsPortal(GetUnitTypeId(GetFilterUnit())) endfunction -function WoWReforgedPortals__ForGroupUpdateName takes nothing returns nothing +function WoWReforgedPortals___ForGroupUpdateName takes nothing returns nothing call UpdatePortalNameByItself(GetEnumUnit()) endfunction function InitNames takes nothing returns nothing local group g= CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedPortals__FilterIsPortal)) - call ForGroup(g, function WoWReforgedPortals__ForGroupUpdateName) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedPortals___FilterIsPortal)) + call ForGroup(g, function WoWReforgedPortals___ForGroupUpdateName) call GroupClear(g) call DestroyGroup(g) set g=null endfunction -function WoWReforgedPortals__TimerFunctionInitNames takes nothing returns nothing +function WoWReforgedPortals___TimerFunctionInitNames takes nothing returns nothing local timer t= GetExpiredTimer() call InitNames() call PauseTimer(t) @@ -70655,49 +70655,49 @@ function WoWReforgedPortals__TimerFunctionInitNames takes nothing returns nothin set t=null endfunction -function WoWReforgedPortals__TriggerConditionConstructFinished takes nothing returns boolean +function WoWReforgedPortals___TriggerConditionConstructFinished takes nothing returns boolean if ( IsPortal(GetUnitTypeId(GetConstructedStructure())) ) then call UpdatePortalNameByItself(GetConstructedStructure()) endif return false endfunction -function WoWReforgedPortals__Init takes nothing returns nothing - set WoWReforgedPortals__initialized=true - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedPortals__TimerFunctionInitNames) +function WoWReforgedPortals___Init takes nothing returns nothing + set WoWReforgedPortals___initialized=true + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedPortals___TimerFunctionInitNames) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedPortals__constructFinishedTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedPortals__constructFinishedTrigger, Condition(function WoWReforgedPortals__TriggerConditionConstructFinished)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedPortals___constructFinishedTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedPortals___constructFinishedTrigger, Condition(function WoWReforgedPortals___TriggerConditionConstructFinished)) endfunction -function WoWReforgedPortals__HookWaygateActivate takes unit waygate,boolean activate returns nothing - if ( WoWReforgedPortals__initialized and IsPortal(GetUnitTypeId(waygate)) ) then +function WoWReforgedPortals___HookWaygateActivate takes unit waygate,boolean activate returns nothing + if ( WoWReforgedPortals___initialized and IsPortal(GetUnitTypeId(waygate)) ) then call UpdatePortalName(waygate , activate , WaygateGetDestinationX(waygate) , WaygateGetDestinationY(waygate)) endif endfunction -function WoWReforgedPortals__HookWaygateActivateBJ takes boolean activate,unit waygate returns nothing - if ( WoWReforgedPortals__initialized and IsPortal(GetUnitTypeId(waygate)) ) then +function WoWReforgedPortals___HookWaygateActivateBJ takes boolean activate,unit waygate returns nothing + if ( WoWReforgedPortals___initialized and IsPortal(GetUnitTypeId(waygate)) ) then call UpdatePortalName(waygate , activate , WaygateGetDestinationX(waygate) , WaygateGetDestinationY(waygate)) endif endfunction -function WoWReforgedPortals__HookWaygateSetDestination takes unit waygate,real x,real y returns nothing - if ( WoWReforgedPortals__initialized and IsPortal(GetUnitTypeId(waygate)) ) then +function WoWReforgedPortals___HookWaygateSetDestination takes unit waygate,real x,real y returns nothing + if ( WoWReforgedPortals___initialized and IsPortal(GetUnitTypeId(waygate)) ) then call UpdatePortalName(waygate , WaygateIsActive(waygate) , x , y) endif endfunction -function WoWReforgedPortals__HookWaygateSetDestinationLocBJ takes unit waygate,location loc returns nothing - if ( WoWReforgedPortals__initialized and IsPortal(GetUnitTypeId(waygate)) ) then +function WoWReforgedPortals___HookWaygateSetDestinationLocBJ takes unit waygate,location loc returns nothing + if ( WoWReforgedPortals___initialized and IsPortal(GetUnitTypeId(waygate)) ) then call UpdatePortalName(waygate , WaygateIsActive(waygate) , GetLocationX(loc) , GetLocationY(loc)) endif endfunction -//processed hook: hook WaygateActivate WoWReforgedPortals__HookWaygateActivate -//processed hook: hook WaygateActivateBJ WoWReforgedPortals__HookWaygateActivateBJ -//processed hook: hook WaygateSetDestination WoWReforgedPortals__HookWaygateSetDestination -//processed hook: hook WaygateSetDestinationLocBJ WoWReforgedPortals__HookWaygateSetDestinationLocBJ +//processed hook: hook WaygateActivate WoWReforgedPortals___HookWaygateActivate +//processed hook: hook WaygateActivateBJ WoWReforgedPortals___HookWaygateActivateBJ +//processed hook: hook WaygateSetDestination WoWReforgedPortals___HookWaygateSetDestination +//processed hook: hook WaygateSetDestinationLocBJ WoWReforgedPortals___HookWaygateSetDestinationLocBJ //library WoWReforgedPortals ends @@ -70705,52 +70705,52 @@ endfunction function GetCalendarMultiboardTimerHandleId takes nothing returns integer - return GetHandleId(WoWReforgedCalendarMultiboard__t) + return GetHandleId(WoWReforgedCalendarMultiboard___t) endfunction function ShowCalendarMultiboard takes nothing returns nothing - call MultiboardDisplay(WoWReforgedCalendarMultiboard__m, true) + call MultiboardDisplay(WoWReforgedCalendarMultiboard___m, true) endfunction function HideCalendarMultiboard takes nothing returns nothing - call MultiboardDisplay(WoWReforgedCalendarMultiboard__m, false) + call MultiboardDisplay(WoWReforgedCalendarMultiboard___m, false) endfunction function ShowCalendarMultiboardForPlayer takes player whichPlayer returns nothing if ( whichPlayer == GetLocalPlayer() ) then - call MultiboardDisplay(WoWReforgedCalendarMultiboard__m, true) // INLINED!! + call MultiboardDisplay(WoWReforgedCalendarMultiboard___m, true) // INLINED!! endif endfunction function HideCalendarMultiboardForPlayer takes player whichPlayer returns nothing if ( whichPlayer == GetLocalPlayer() ) then - call MultiboardDisplay(WoWReforgedCalendarMultiboard__m, false) // INLINED!! + call MultiboardDisplay(WoWReforgedCalendarMultiboard___m, false) // INLINED!! endif endfunction -function WoWReforgedCalendarMultiboard__UpdateMultiboard takes nothing returns nothing +function WoWReforgedCalendarMultiboard___UpdateMultiboard takes nothing returns nothing local multiboarditem mbitem= null local integer e= GetRunningCalendarEvent() - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 0, 1) - call MultiboardSetItemIcon(mbitem, GetSeasonIcon((WoWReforgedCalendar__season))) // INLINED!! - call MultiboardSetItemValue(mbitem, GetSeasonName((WoWReforgedCalendar__season))) // INLINED!! + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 0, 1) + call MultiboardSetItemIcon(mbitem, GetSeasonIcon((WoWReforgedCalendar___season))) // INLINED!! + call MultiboardSetItemValue(mbitem, GetSeasonName((WoWReforgedCalendar___season))) // INLINED!! call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 1, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 1, 1) call MultiboardSetItemIcon(mbitem, GetCurrentWeatherIcon()) call MultiboardSetItemValue(mbitem, GetCurrentWeatherName()) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 2, 1) - call MultiboardSetItemValue(mbitem, (I2S((WoWReforgedCalendar__years)) + "-" + I2SW((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar__days) , 2))) // INLINED!! + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 2, 1) + call MultiboardSetItemValue(mbitem, (I2S((WoWReforgedCalendar___years)) + "-" + I2SW((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar___days) , 2))) // INLINED!! call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 3, 1) - call MultiboardSetItemValue(mbitem, GetMonthName((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1))) // INLINED!! + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 3, 1) + call MultiboardSetItemValue(mbitem, GetMonthName((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1))) // INLINED!! call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 4, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 4, 1) call MultiboardSetItemValue(mbitem, (FormatTimeOfDayEx(GetTimeOfDay()))) // INLINED!! if ( IsNight() ) then call MultiboardSetItemIcon(mbitem, "ReplaceableTextures\\CommandButtons\\BTNElunesBlessing.blp") @@ -70759,7 +70759,7 @@ function WoWReforgedCalendarMultiboard__UpdateMultiboard takes nothing returns n endif call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 5, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 5, 1) if ( e != 0 ) then call MultiboardSetItemValue(mbitem, s__CalendarEvent_name[e]) call MultiboardSetItemValue(mbitem, s__CalendarEvent_icon[e]) @@ -70771,93 +70771,93 @@ function WoWReforgedCalendarMultiboard__UpdateMultiboard takes nothing returns n call MultiboardReleaseItem(mbitem) endfunction -function WoWReforgedCalendarMultiboard__TimerFunctionCreateMultiboard takes nothing returns nothing +function WoWReforgedCalendarMultiboard___TimerFunctionCreateMultiboard takes nothing returns nothing local multiboarditem mbitem= null - set WoWReforgedCalendarMultiboard__m=CreateMultiboard() - call MultiboardSetTitleText(WoWReforgedCalendarMultiboard__m, "Calendar") - call MultiboardSetColumnCount(WoWReforgedCalendarMultiboard__m, 2) - call MultiboardSetRowCount(WoWReforgedCalendarMultiboard__m, 6) - call MultiboardDisplay(WoWReforgedCalendarMultiboard__m, false) + set WoWReforgedCalendarMultiboard___m=CreateMultiboard() + call MultiboardSetTitleText(WoWReforgedCalendarMultiboard___m, "Calendar") + call MultiboardSetColumnCount(WoWReforgedCalendarMultiboard___m, 2) + call MultiboardSetRowCount(WoWReforgedCalendarMultiboard___m, 6) + call MultiboardDisplay(WoWReforgedCalendarMultiboard___m, false) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 0, 0) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 0, 0) call MultiboardSetItemValue(mbitem, "Season:") call MultiboardSetItemStyle(mbitem, true, false) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 0, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 0, 1) call MultiboardSetItemStyle(mbitem, true, true) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 1, 0) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 1, 0) call MultiboardSetItemValue(mbitem, "Weather:") call MultiboardSetItemStyle(mbitem, true, false) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 1, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 1, 1) call MultiboardSetItemStyle(mbitem, true, true) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 2, 0) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 2, 0) call MultiboardSetItemValue(mbitem, "Date:") call MultiboardSetItemStyle(mbitem, true, false) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 2, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 2, 1) call MultiboardSetItemStyle(mbitem, true, false) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 3, 0) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 3, 0) call MultiboardSetItemValue(mbitem, "Month:") call MultiboardSetItemStyle(mbitem, true, false) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 3, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 3, 1) call MultiboardSetItemStyle(mbitem, true, false) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 4, 0) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 4, 0) call MultiboardSetItemValue(mbitem, "Time:") call MultiboardSetItemStyle(mbitem, true, false) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 4, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 4, 1) call MultiboardSetItemStyle(mbitem, true, true) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 5, 0) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 5, 0) call MultiboardSetItemValue(mbitem, "Event:") call MultiboardSetItemStyle(mbitem, true, false) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard__m, 5, 1) + set mbitem=MultiboardGetItem(WoWReforgedCalendarMultiboard___m, 5, 1) call MultiboardSetItemStyle(mbitem, true, true) - call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard__SIZE) + call MultiboardSetItemWidth(mbitem, WoWReforgedCalendarMultiboard___SIZE) call MultiboardReleaseItem(mbitem) - call TimerStart(WoWReforgedCalendarMultiboard__t, 0.3, true, function WoWReforgedCalendarMultiboard__UpdateMultiboard) + call TimerStart(WoWReforgedCalendarMultiboard___t, 0.3, true, function WoWReforgedCalendarMultiboard___UpdateMultiboard) call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) endfunction function FixCalendarMultiboardTitleColor takes nothing returns nothing - call MultiboardSetTitleTextColorBJ(WoWReforgedCalendarMultiboard__m, 100, 80, 20, 0) + call MultiboardSetTitleTextColorBJ(WoWReforgedCalendarMultiboard___m, 100, 80, 20, 0) endfunction -function WoWReforgedCalendarMultiboard__Init takes nothing returns nothing - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedCalendarMultiboard__TimerFunctionCreateMultiboard) +function WoWReforgedCalendarMultiboard___Init takes nothing returns nothing + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedCalendarMultiboard___TimerFunctionCreateMultiboard) endfunction @@ -70868,17 +70868,17 @@ endfunction function GetMaxProperties takes nothing returns integer - return WoWReforgedProperties__propertiesCounter + return WoWReforgedProperties___propertiesCounter endfunction function GetProperty takes integer index returns integer - return WoWReforgedProperties__properties[index] + return WoWReforgedProperties___properties[index] endfunction function GetPropertyIndex takes unit whichUnit returns integer local integer handleId= GetHandleId(whichUnit) - if ( HaveSavedInteger(WoWReforgedProperties__h, handleId, 0) ) then - return LoadInteger(WoWReforgedProperties__h, GetHandleId(whichUnit), 0) + if ( HaveSavedInteger(WoWReforgedProperties___h, handleId, 0) ) then + return LoadInteger(WoWReforgedProperties___h, GetHandleId(whichUnit), 0) endif return - 1 endfunction @@ -70892,12 +70892,12 @@ function PlayerOwnsPropertyOfRace takes player whichPlayer,integer whichRace ret return true endif - set max=BlzGroupGetSize(WoWReforgedProperties__properiesGroup) + set max=BlzGroupGetSize(WoWReforgedProperties___properiesGroup) loop exitwhen ( i == max ) - set whichUnit=BlzGroupUnitAt(WoWReforgedProperties__properiesGroup, i) + set whichUnit=BlzGroupUnitAt(WoWReforgedProperties___properiesGroup, i) set index=GetPropertyIndex(whichUnit) - if ( index != - 1 and s__Property_soldRace[(WoWReforgedProperties__properties[(index)])] == whichRace ) then // INLINED!! + if ( index != - 1 and s__Property_soldRace[(WoWReforgedProperties___properties[(index)])] == whichRace ) then // INLINED!! return true endif set whichUnit=null @@ -70925,12 +70925,12 @@ function PropertyAllowsItemTypeId takes player whichPlayer,integer whichRace,int return PlayerOwnsPropertyOfRace(whichPlayer , GetObjectRace(itemTypeId)) endfunction -function WoWReforgedProperties__GetPropertyIndexByUnitTypeId takes integer unitTypeId returns integer +function WoWReforgedProperties___GetPropertyIndexByUnitTypeId takes integer unitTypeId returns integer local integer i= 0 - local integer max= (WoWReforgedProperties__propertiesCounter) // INLINED!! + local integer max= (WoWReforgedProperties___propertiesCounter) // INLINED!! loop exitwhen ( i >= max ) - if ( s__Property_unitTypeId[(WoWReforgedProperties__properties[(i)])] == unitTypeId ) then // INLINED!! + if ( s__Property_unitTypeId[(WoWReforgedProperties___properties[(i)])] == unitTypeId ) then // INLINED!! return i endif set i=i + 1 @@ -70939,11 +70939,11 @@ function WoWReforgedProperties__GetPropertyIndexByUnitTypeId takes integer unitT endfunction function IsProperty takes integer unitTypeId returns boolean - return WoWReforgedProperties__GetPropertyIndexByUnitTypeId(unitTypeId) != - 1 + return WoWReforgedProperties___GetPropertyIndexByUnitTypeId(unitTypeId) != - 1 endfunction function IsUnitProperty takes unit whichUnit returns boolean - return (WoWReforgedProperties__GetPropertyIndexByUnitTypeId((GetUnitTypeId(whichUnit))) != - 1) // INLINED!! + return (WoWReforgedProperties___GetPropertyIndexByUnitTypeId((GetUnitTypeId(whichUnit))) != - 1) // INLINED!! endfunction function AddProperty takes integer unitTypeId,integer purchaseUnitTypeId,integer resource,integer maxWorkers,integer soldRace,boolean shipyard returns integer @@ -70955,8 +70955,8 @@ function AddProperty takes integer unitTypeId,integer purchaseUnitTypeId,integer set s__Property_soldRace[property]=soldRace set s__Property_shipyard[property]=shipyard - set WoWReforgedProperties__properties[WoWReforgedProperties__propertiesCounter]=property - set WoWReforgedProperties__propertiesCounter=WoWReforgedProperties__propertiesCounter + 1 + set WoWReforgedProperties___properties[WoWReforgedProperties___propertiesCounter]=property + set WoWReforgedProperties___propertiesCounter=WoWReforgedProperties___propertiesCounter + 1 return property endfunction @@ -70966,7 +70966,7 @@ function AddPropertyWoWReforged takes nothing returns nothing set udg_TmpBoolean=false endfunction -function WoWReforgedProperties__RegisterAllWorkersForLoadedMine takes unit mine returns nothing +function WoWReforgedProperties___RegisterAllWorkersForLoadedMine takes unit mine returns nothing local integer i= 0 local integer max= (udg_MaxRaces) // INLINED!! loop @@ -70988,35 +70988,35 @@ function WoWReforgedProperties__RegisterAllWorkersForLoadedMine takes unit mine endloop endfunction -function WoWReforgedProperties__AddUnitType takes integer index,unit shop,integer t returns nothing - local integer unitTypeId= GetRaceObjectTypeId(s__Property_soldRace[(WoWReforgedProperties__properties[(index)])] , t) // INLINED!! +function WoWReforgedProperties___AddUnitType takes integer index,unit shop,integer t returns nothing + local integer unitTypeId= GetRaceObjectTypeId(s__Property_soldRace[(WoWReforgedProperties___properties[(index)])] , t) // INLINED!! if ( unitTypeId != 0 and GenerateId(unitTypeId) ) then call AddPagedButtonsId((shop ) , ( unitTypeId) , PagedButtons_BUTTON_TYPE_UNIT) // INLINED!! endif endfunction -function WoWReforgedProperties__AddItemType takes integer index,unit shop,integer t returns nothing - local integer itemTypeId= GetRaceObjectTypeId(s__Property_soldRace[(WoWReforgedProperties__properties[(index)])] , t) // INLINED!! +function WoWReforgedProperties___AddItemType takes integer index,unit shop,integer t returns nothing + local integer itemTypeId= GetRaceObjectTypeId(s__Property_soldRace[(WoWReforgedProperties___properties[(index)])] , t) // INLINED!! if ( itemTypeId != 0 and GenerateId(itemTypeId) ) then call AddPagedButtonsId((shop ) , ( itemTypeId) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! endif endfunction -function WoWReforgedProperties__PurchaseProperty takes integer index,unit whichUnit,player whichPlayer returns nothing +function WoWReforgedProperties___PurchaseProperty takes integer index,unit whichUnit,player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) call h__QuestMessageBJ(bj_FORCE_PLAYER[playerId], bj_QUESTMESSAGE_UNITACQUIRED, "Purchased property " + GetUnitName(whichUnit)) call SetUnitOwner(whichUnit, whichPlayer, true) - call ResearchAllForPlayer(whichPlayer , s__Property_soldRace[(WoWReforgedProperties__properties[(index)])]) // INLINED!! + call ResearchAllForPlayer(whichPlayer , s__Property_soldRace[(WoWReforgedProperties___properties[(index)])]) // INLINED!! call AchievementPropertyShark(whichPlayer) - call AchievementPropertyLandowner(whichPlayer , (WoWReforgedProperties__propertiesCounter)) // INLINED!! + call AchievementPropertyLandowner(whichPlayer , (WoWReforgedProperties___propertiesCounter)) // INLINED!! - call RemoveUnitFromStock(whichUnit, s__Property_purchaseUnitTypeId[(WoWReforgedProperties__properties[(index)])]) // INLINED!! + call RemoveUnitFromStock(whichUnit, s__Property_purchaseUnitTypeId[(WoWReforgedProperties___properties[(index)])]) // INLINED!! - call AddLoadedMine(whichUnit , s__Property_resource[(WoWReforgedProperties__properties[(index)])] , 9999999 , s__Property_maxWorkers[(WoWReforgedProperties__properties[(index)])]) // INLINED!! + call AddLoadedMine(whichUnit , s__Property_resource[(WoWReforgedProperties___properties[(index)])] , 9999999 , s__Property_maxWorkers[(WoWReforgedProperties___properties[(index)])]) // INLINED!! call SetMineExplodesOnDeath(whichUnit , false) call UnitAddAbility(whichUnit, WoWReforgedProperties_CARGO_HOLD_ABILITY_ID) call UnitAddAbility(whichUnit, WoWReforgedProperties_LOAD_ABILITY_ID) @@ -71030,54 +71030,54 @@ function WoWReforgedProperties__PurchaseProperty takes integer index,unit whichU call SetPagedButtonsSlotsPerPage(whichUnit , 7) 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) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_FEMALE_CITIZEN) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_CHILD) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_PET) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_FOOTMAN) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_RIFLEMAN) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_KNIGHT) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_BARRACKS_4) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_PRIEST) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SORCERESS) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SPELLBREAKER) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_GRYPHON) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_DRAGONHAWK) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_AVIARY_3) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_AVIARY_4) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_FLYING_MACHINE) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SIEGE_ENGINE) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_MORTAR) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_WORKSHOP_4) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_TAUREN) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SHADE) - - if ( s__Property_shipyard[(WoWReforgedProperties__properties[(index)])] ) then // INLINED!! - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_TRANSPORT_SHIP) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_FRIGATE) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_BATTLESHIP) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SHIP_SPECIAL_1) - call WoWReforgedProperties__AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SHIP_SPECIAL_2) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_TOWN_HALL_3) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_TOWN_HALL_4) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_FEMALE_CITIZEN) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_CHILD) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_PET) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_FOOTMAN) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_RIFLEMAN) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_KNIGHT) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_BARRACKS_4) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_PRIEST) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SORCERESS) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SPELLBREAKER) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_GRYPHON) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_DRAGONHAWK) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_AVIARY_3) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_AVIARY_4) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_FLYING_MACHINE) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SIEGE_ENGINE) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_MORTAR) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_WORKSHOP_4) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_TAUREN) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SHADE) + + if ( s__Property_shipyard[(WoWReforgedProperties___properties[(index)])] ) then // INLINED!! + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_TRANSPORT_SHIP) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_FRIGATE) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_BATTLESHIP) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SHIP_SPECIAL_1) + call WoWReforgedProperties___AddUnitType(index , whichUnit , RACE_OBJECT_TYPE_SHIP_SPECIAL_2) endif call NextPagedButtonsPage(whichUnit , "(Buildings)") - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_FARM_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_ALTAR_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_MILL_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_BLACK_SMITH_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_BARRACKS_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SHOP_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SCOUT_TOWER_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_ARCANE_SANCTUM_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_WORKSHOP_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_GRYPHON_AVIARY_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SACRIFICAL_PIT_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SHIPYARD_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SPECIAL_BUILDING_ITEM) - call WoWReforgedProperties__AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SPECIAL_BUILDING_2_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_FARM_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_ALTAR_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_MILL_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_BLACK_SMITH_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_BARRACKS_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SHOP_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SCOUT_TOWER_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_ARCANE_SANCTUM_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_WORKSHOP_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_GRYPHON_AVIARY_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SACRIFICAL_PIT_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SHIPYARD_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SPECIAL_BUILDING_ITEM) + call WoWReforgedProperties___AddItemType(index , whichUnit , RACE_OBJECT_TYPE_SPECIAL_BUILDING_2_ITEM) - call WoWReforgedProperties__RegisterAllWorkersForLoadedMine(whichUnit) + call WoWReforgedProperties___RegisterAllWorkersForLoadedMine(whichUnit) call ShowPagedButtonsUI(whichPlayer , whichUnit) @@ -71086,20 +71086,20 @@ endfunction function PingProperties takes player whichPlayer returns nothing local integer i= 0 - local integer max= BlzGroupGetSize(WoWReforgedProperties__properiesGroup) + local integer max= BlzGroupGetSize(WoWReforgedProperties___properiesGroup) loop exitwhen ( i >= max ) - call PingUnitForPlayer(BlzGroupUnitAt(WoWReforgedProperties__properiesGroup, i) , whichPlayer) + call PingUnitForPlayer(BlzGroupUnitAt(WoWReforgedProperties___properiesGroup, i) , whichPlayer) set i=i + 1 endloop endfunction -function WoWReforgedProperties__GetPropertyIndexByPurchaseUnitTypeId takes integer unitTypeId returns integer +function WoWReforgedProperties___GetPropertyIndexByPurchaseUnitTypeId takes integer unitTypeId returns integer local integer i= 0 - local integer max= (WoWReforgedProperties__propertiesCounter) // INLINED!! + local integer max= (WoWReforgedProperties___propertiesCounter) // INLINED!! loop exitwhen ( i >= max ) - if ( s__Property_purchaseUnitTypeId[(WoWReforgedProperties__properties[(i)])] == unitTypeId ) then // INLINED!! + if ( s__Property_purchaseUnitTypeId[(WoWReforgedProperties___properties[(i)])] == unitTypeId ) then // INLINED!! return i endif set i=i + 1 @@ -71107,39 +71107,39 @@ function WoWReforgedProperties__GetPropertyIndexByPurchaseUnitTypeId takes integ return - 1 endfunction -function WoWReforgedProperties__TriggerActionPurchase takes nothing returns nothing +function WoWReforgedProperties___TriggerActionPurchase takes nothing returns nothing local integer unitTypeId= GetUnitTypeId(GetSoldUnit()) - local integer index= WoWReforgedProperties__GetPropertyIndexByPurchaseUnitTypeId(unitTypeId) + local integer index= WoWReforgedProperties___GetPropertyIndexByPurchaseUnitTypeId(unitTypeId) if ( index != - 1 ) then call h__RemoveUnit(GetSoldUnit()) - call WoWReforgedProperties__PurchaseProperty(index , GetSellingUnit() , GetOwningPlayer(GetBuyingUnit())) + call WoWReforgedProperties___PurchaseProperty(index , GetSellingUnit() , GetOwningPlayer(GetBuyingUnit())) endif endfunction -function WoWReforgedProperties__FilterIsProperty takes nothing returns boolean - return (WoWReforgedProperties__GetPropertyIndexByUnitTypeId((GetUnitTypeId(GetFilterUnit()))) != - 1) // INLINED!! +function WoWReforgedProperties___FilterIsProperty takes nothing returns boolean + return (WoWReforgedProperties___GetPropertyIndexByUnitTypeId((GetUnitTypeId(GetFilterUnit()))) != - 1) // INLINED!! endfunction -function WoWReforgedProperties__ForGroupUpdateProperties takes nothing returns nothing +function WoWReforgedProperties___ForGroupUpdateProperties takes nothing returns nothing local unit p= GetEnumUnit() - local integer index= WoWReforgedProperties__GetPropertyIndexByUnitTypeId(GetUnitTypeId(p)) + local integer index= WoWReforgedProperties___GetPropertyIndexByUnitTypeId(GetUnitTypeId(p)) if ( index != - 1 ) then - call GroupAddUnit(WoWReforgedProperties__properiesGroup, p) - call SaveInteger(WoWReforgedProperties__h, GetHandleId(p), 0, index) + call GroupAddUnit(WoWReforgedProperties___properiesGroup, p) + call SaveInteger(WoWReforgedProperties___h, GetHandleId(p), 0, index) call UnitAddAbility(p, 'Asud') call UnitAddAbility(p, WoWReforgedProperties_SELECT_UNIT_ABILITY_ID) call UnitAddAbility(p, WoWReforgedProperties_SELECT_HERO_ABILITY_ID) call UnitAddAbility(p, 'Avul') - call AddUnitToStock(p, s__Property_purchaseUnitTypeId[(WoWReforgedProperties__properties[(index)])], 1, 1) // INLINED!! + call AddUnitToStock(p, s__Property_purchaseUnitTypeId[(WoWReforgedProperties___properties[(index)])], 1, 1) // INLINED!! endif set p=null endfunction -function WoWReforgedProperties__TimerFunctionUpdateProperties takes nothing returns nothing +function WoWReforgedProperties___TimerFunctionUpdateProperties takes nothing returns nothing local timer t= GetExpiredTimer() local group g= CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedProperties__FilterIsProperty)) - call ForGroup(g, function WoWReforgedProperties__ForGroupUpdateProperties) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedProperties___FilterIsProperty)) + call ForGroup(g, function WoWReforgedProperties___ForGroupUpdateProperties) call GroupClear(g) call DestroyGroup(g) set g=null @@ -71148,11 +71148,11 @@ function WoWReforgedProperties__TimerFunctionUpdateProperties takes nothing retu set t=null endfunction -function WoWReforgedProperties__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedProperties__purchaseTrigger, EVENT_PLAYER_UNIT_SELL) +function WoWReforgedProperties___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedProperties___purchaseTrigger, EVENT_PLAYER_UNIT_SELL) // Use a trigger action because of ResourcesGui_StartUpdateTimerForUnits and the player selection. - call TriggerAddAction(WoWReforgedProperties__purchaseTrigger, function WoWReforgedProperties__TriggerActionPurchase) - call TimerStart(CreateTimer(), 1.0, false, function WoWReforgedProperties__TimerFunctionUpdateProperties) + call TriggerAddAction(WoWReforgedProperties___purchaseTrigger, function WoWReforgedProperties___TriggerActionPurchase) + call TimerStart(CreateTimer(), 1.0, false, function WoWReforgedProperties___TimerFunctionUpdateProperties) endfunction @@ -71214,19 +71214,19 @@ endfunction function SetPlayerBagInfo takes player whichPlayer,boolean info returns nothing - set WoWReforgedBackpacks___BackpackPlayerBagInfo[GetPlayerId(whichPlayer)]=info + set WoWReforgedBackpacks__BackpackPlayerBagInfo[GetPlayerId(whichPlayer)]=info endfunction function GetPlayerBagInfo takes player whichPlayer returns boolean - return WoWReforgedBackpacks___BackpackPlayerBagInfo[GetPlayerId(whichPlayer)] + return WoWReforgedBackpacks__BackpackPlayerBagInfo[GetPlayerId(whichPlayer)] endfunction function GetPlayerBackpack takes player whichPlayer returns unit - return WoWReforgedBackpacks___Backpack[GetPlayerId(whichPlayer)] + return WoWReforgedBackpacks__Backpack[GetPlayerId(whichPlayer)] endfunction function PlayerHasBackpack takes player whichPlayer returns boolean - return (WoWReforgedBackpacks___Backpack[GetPlayerId((whichPlayer))]) != null // INLINED!! + return (WoWReforgedBackpacks__Backpack[GetPlayerId((whichPlayer))]) != null // INLINED!! endfunction function GetBackpackItemIndex takes integer playerId,integer page,integer slot returns integer @@ -71234,71 +71234,71 @@ function GetBackpackItemIndex takes integer playerId,integer page,integer slot r endfunction function GetBackpackItemTypeId takes integer index returns integer - return WoWReforgedBackpacks___BackpackItemType[index] + return WoWReforgedBackpacks__BackpackItemType[index] endfunction function GetBackpackItemCharges takes integer index returns integer - return WoWReforgedBackpacks___BackpackItemCharges[index] + return WoWReforgedBackpacks__BackpackItemCharges[index] endfunction function GetBackpackItemIsPawnable takes integer index returns boolean - return WoWReforgedBackpacks___BackpackItemPawnable[index] + return WoWReforgedBackpacks__BackpackItemPawnable[index] endfunction function GetBackpackItemTooltipExtended takes integer index returns string - return WoWReforgedBackpacks___BackpackItemTooltipExtended[index] + return WoWReforgedBackpacks__BackpackItemTooltipExtended[index] endfunction function GetBackpackItemPlayer takes integer index returns player - return WoWReforgedBackpacks___BackpackItemPlayer[index] + return WoWReforgedBackpacks__BackpackItemPlayer[index] endfunction function ClearBackpackItem takes integer index returns nothing - set WoWReforgedBackpacks___BackpackItemType[index]=0 - set WoWReforgedBackpacks___BackpackItemCharges[index]=0 - set WoWReforgedBackpacks___BackpackItemPawnable[index]=false - set WoWReforgedBackpacks___BackpackItemInvulnerable[index]=false - set WoWReforgedBackpacks___BackpackItemName[index]="" - set WoWReforgedBackpacks___BackpackItemDescription[index]="" - set WoWReforgedBackpacks___BackpackItemTooltip[index]="" - set WoWReforgedBackpacks___BackpackItemTooltipExtended[index]="" - set WoWReforgedBackpacks___BackpackItemPlayer[index]=null + set WoWReforgedBackpacks__BackpackItemType[index]=0 + set WoWReforgedBackpacks__BackpackItemCharges[index]=0 + set WoWReforgedBackpacks__BackpackItemPawnable[index]=false + set WoWReforgedBackpacks__BackpackItemInvulnerable[index]=false + set WoWReforgedBackpacks__BackpackItemName[index]="" + set WoWReforgedBackpacks__BackpackItemDescription[index]="" + set WoWReforgedBackpacks__BackpackItemTooltip[index]="" + set WoWReforgedBackpacks__BackpackItemTooltipExtended[index]="" + set WoWReforgedBackpacks__BackpackItemPlayer[index]=null endfunction function SetBackpackItemFromItem takes item whichItem,integer index returns nothing - set WoWReforgedBackpacks___BackpackItemType[index]=GetItemTypeId(whichItem) - set WoWReforgedBackpacks___BackpackItemCharges[index]=GetItemCharges(whichItem) - set WoWReforgedBackpacks___BackpackItemPawnable[index]=IsItemPawnable(whichItem) - set WoWReforgedBackpacks___BackpackItemInvulnerable[index]=IsItemInvulnerable(whichItem) - set WoWReforgedBackpacks___BackpackItemName[index]=GetItemName(whichItem) - set WoWReforgedBackpacks___BackpackItemDescription[index]=BlzGetItemDescription(whichItem) - set WoWReforgedBackpacks___BackpackItemTooltip[index]=BlzGetItemTooltip(whichItem) - set WoWReforgedBackpacks___BackpackItemTooltipExtended[index]=BlzGetItemExtendedTooltip(whichItem) - set WoWReforgedBackpacks___BackpackItemPlayer[index]=GetItemPlayer(whichItem) + set WoWReforgedBackpacks__BackpackItemType[index]=GetItemTypeId(whichItem) + set WoWReforgedBackpacks__BackpackItemCharges[index]=GetItemCharges(whichItem) + set WoWReforgedBackpacks__BackpackItemPawnable[index]=IsItemPawnable(whichItem) + set WoWReforgedBackpacks__BackpackItemInvulnerable[index]=IsItemInvulnerable(whichItem) + set WoWReforgedBackpacks__BackpackItemName[index]=GetItemName(whichItem) + set WoWReforgedBackpacks__BackpackItemDescription[index]=BlzGetItemDescription(whichItem) + set WoWReforgedBackpacks__BackpackItemTooltip[index]=BlzGetItemTooltip(whichItem) + set WoWReforgedBackpacks__BackpackItemTooltipExtended[index]=BlzGetItemExtendedTooltip(whichItem) + set WoWReforgedBackpacks__BackpackItemPlayer[index]=GetItemPlayer(whichItem) endfunction function ApplyBackpackItem takes item whichItem,integer index returns nothing - call SetItemCharges(whichItem, WoWReforgedBackpacks___BackpackItemCharges[index]) - call SetItemPawnable(whichItem, WoWReforgedBackpacks___BackpackItemPawnable[index]) + call SetItemCharges(whichItem, WoWReforgedBackpacks__BackpackItemCharges[index]) + call SetItemPawnable(whichItem, WoWReforgedBackpacks__BackpackItemPawnable[index]) call SetItemDroppable(whichItem, true) // all items must be droppable in the backpack! - call SetItemInvulnerable(whichItem, WoWReforgedBackpacks___BackpackItemInvulnerable[index]) - call BlzSetItemName(whichItem, WoWReforgedBackpacks___BackpackItemName[index]) - call BlzSetItemDescription(whichItem, WoWReforgedBackpacks___BackpackItemDescription[index]) - call BlzSetItemTooltip(whichItem, WoWReforgedBackpacks___BackpackItemTooltip[index]) - call BlzSetItemExtendedTooltip(whichItem, WoWReforgedBackpacks___BackpackItemTooltipExtended[index]) - call SetItemPlayer(whichItem, WoWReforgedBackpacks___BackpackItemPlayer[index], false) + call SetItemInvulnerable(whichItem, WoWReforgedBackpacks__BackpackItemInvulnerable[index]) + call BlzSetItemName(whichItem, WoWReforgedBackpacks__BackpackItemName[index]) + call BlzSetItemDescription(whichItem, WoWReforgedBackpacks__BackpackItemDescription[index]) + call BlzSetItemTooltip(whichItem, WoWReforgedBackpacks__BackpackItemTooltip[index]) + call BlzSetItemExtendedTooltip(whichItem, WoWReforgedBackpacks__BackpackItemTooltipExtended[index]) + call SetItemPlayer(whichItem, WoWReforgedBackpacks__BackpackItemPlayer[index], false) endfunction function SetBackpackItemFromIndex takes integer index,integer sourceIndex returns nothing - set WoWReforgedBackpacks___BackpackItemType[index]=WoWReforgedBackpacks___BackpackItemType[sourceIndex] - set WoWReforgedBackpacks___BackpackItemCharges[index]=WoWReforgedBackpacks___BackpackItemCharges[sourceIndex] - set WoWReforgedBackpacks___BackpackItemPawnable[index]=WoWReforgedBackpacks___BackpackItemPawnable[sourceIndex] - set WoWReforgedBackpacks___BackpackItemInvulnerable[index]=WoWReforgedBackpacks___BackpackItemInvulnerable[sourceIndex] - set WoWReforgedBackpacks___BackpackItemName[index]=WoWReforgedBackpacks___BackpackItemName[sourceIndex] - set WoWReforgedBackpacks___BackpackItemDescription[index]=WoWReforgedBackpacks___BackpackItemDescription[sourceIndex] - set WoWReforgedBackpacks___BackpackItemTooltip[index]=WoWReforgedBackpacks___BackpackItemTooltip[sourceIndex] - set WoWReforgedBackpacks___BackpackItemTooltipExtended[index]=WoWReforgedBackpacks___BackpackItemTooltipExtended[sourceIndex] - set WoWReforgedBackpacks___BackpackItemPlayer[index]=WoWReforgedBackpacks___BackpackItemPlayer[sourceIndex] + set WoWReforgedBackpacks__BackpackItemType[index]=WoWReforgedBackpacks__BackpackItemType[sourceIndex] + set WoWReforgedBackpacks__BackpackItemCharges[index]=WoWReforgedBackpacks__BackpackItemCharges[sourceIndex] + set WoWReforgedBackpacks__BackpackItemPawnable[index]=WoWReforgedBackpacks__BackpackItemPawnable[sourceIndex] + set WoWReforgedBackpacks__BackpackItemInvulnerable[index]=WoWReforgedBackpacks__BackpackItemInvulnerable[sourceIndex] + set WoWReforgedBackpacks__BackpackItemName[index]=WoWReforgedBackpacks__BackpackItemName[sourceIndex] + set WoWReforgedBackpacks__BackpackItemDescription[index]=WoWReforgedBackpacks__BackpackItemDescription[sourceIndex] + set WoWReforgedBackpacks__BackpackItemTooltip[index]=WoWReforgedBackpacks__BackpackItemTooltip[sourceIndex] + set WoWReforgedBackpacks__BackpackItemTooltipExtended[index]=WoWReforgedBackpacks__BackpackItemTooltipExtended[sourceIndex] + set WoWReforgedBackpacks__BackpackItemPlayer[index]=WoWReforgedBackpacks__BackpackItemPlayer[sourceIndex] endfunction function BackpackCountItemsOfItemTypeForPlayer takes player whichPlayer,integer itemTypeId returns integer @@ -71314,12 +71314,12 @@ function BackpackCountItemsOfItemTypeForPlayer takes player whichPlayer,integer loop exitwhen ( j == bj_MAX_INVENTORY ) set index=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - if ( WoWReforgedBackpacks___BackpackPageNumber[playerId] == i ) then - if ( UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j) != null and GetItemTypeId(UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j)) == itemTypeId ) then + if ( WoWReforgedBackpacks__BackpackPageNumber[playerId] == i ) then + if ( UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j) != null and GetItemTypeId(UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j)) == itemTypeId ) then set result=result + 1 endif else - if ( WoWReforgedBackpacks___BackpackItemType[index] == itemTypeId ) then + if ( WoWReforgedBackpacks__BackpackItemType[index] == itemTypeId ) then set result=result + 1 endif endif @@ -71440,13 +71440,13 @@ function RemoveAllBackpackItemTypesForPlayer takes player whichPlayer,integer it loop exitwhen ( j == bj_MAX_INVENTORY ) set index=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - if ( WoWReforgedBackpacks___BackpackPageNumber[playerId] == i ) then - if ( UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j) != null and GetItemTypeId(UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j)) == itemTypeId ) then - call h__RemoveItem(UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j)) + if ( WoWReforgedBackpacks__BackpackPageNumber[playerId] == i ) then + if ( UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j) != null and GetItemTypeId(UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j)) == itemTypeId ) then + call h__RemoveItem(UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j)) set result=result + 1 endif else - if ( WoWReforgedBackpacks___BackpackItemType[index] == itemTypeId ) then + if ( WoWReforgedBackpacks__BackpackItemType[index] == itemTypeId ) then call ClearBackpackItem(index) set result=result + 1 endif @@ -71472,18 +71472,18 @@ function DropBackpackForPlayerTo takes player whichPlayer,real x,real y returns loop exitwhen ( j == bj_MAX_INVENTORY ) set index=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - if ( WoWReforgedBackpacks___BackpackPageNumber[playerId] == i ) then - set whichItem=CreateItem(GetItemTypeId(UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j)), x, y) + if ( WoWReforgedBackpacks__BackpackPageNumber[playerId] == i ) then + set whichItem=CreateItem(GetItemTypeId(UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j)), x, y) else - set whichItem=CreateItem(WoWReforgedBackpacks___BackpackItemType[index], x, y) + set whichItem=CreateItem(WoWReforgedBackpacks__BackpackItemType[index], x, y) endif call ApplyBackpackItem(whichItem , index) - if ( WoWReforgedBackpacks___BackpackPageNumber[playerId] == i ) then - call SetItemCharges(whichItem, GetItemCharges(UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j))) + if ( WoWReforgedBackpacks__BackpackPageNumber[playerId] == i ) then + call SetItemCharges(whichItem, GetItemCharges(UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j))) else - call SetItemCharges(whichItem, WoWReforgedBackpacks___BackpackItemCharges[index]) + call SetItemCharges(whichItem, WoWReforgedBackpacks__BackpackItemCharges[index]) endif set j=j + 1 endloop @@ -71503,15 +71503,15 @@ function DropBackpack takes player whichPlayer returns integer local integer j= 0 local integer index= 0 local item whichItem= null - local real x= GetUnitX(WoWReforgedBackpacks___Backpack[playerId]) - local real y= GetUnitY(WoWReforgedBackpacks___Backpack[playerId]) + local real x= GetUnitX(WoWReforgedBackpacks__Backpack[playerId]) + local real y= GetUnitY(WoWReforgedBackpacks__Backpack[playerId]) local integer result= 0 // drop before so they won't have to be cleared or removed - set result=DropAllItemsFromHero(WoWReforgedBackpacks___Backpack[playerId]) + set result=DropAllItemsFromHero(WoWReforgedBackpacks__Backpack[playerId]) set j=0 loop exitwhen ( j == bj_MAX_INVENTORY ) - set index=Index3D(playerId , WoWReforgedBackpacks___BackpackPageNumber[playerId] , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) + set index=Index3D(playerId , WoWReforgedBackpacks__BackpackPageNumber[playerId] , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) call ClearBackpackItem(index) set j=j + 1 endloop @@ -71522,10 +71522,10 @@ function DropBackpack takes player whichPlayer returns integer loop exitwhen ( j == bj_MAX_INVENTORY ) set index=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - if ( WoWReforgedBackpacks___BackpackItemType[index] != 0 ) then - set whichItem=CreateItem(WoWReforgedBackpacks___BackpackItemType[index], x, y) + if ( WoWReforgedBackpacks__BackpackItemType[index] != 0 ) then + set whichItem=CreateItem(WoWReforgedBackpacks__BackpackItemType[index], x, y) call ApplyBackpackItem(whichItem , index) - call SetItemCharges(whichItem, WoWReforgedBackpacks___BackpackItemCharges[index]) + call SetItemCharges(whichItem, WoWReforgedBackpacks__BackpackItemCharges[index]) call ClearBackpackItem(index) set result=result + 1 endif @@ -71586,9 +71586,9 @@ function DropQuestItemFromHeroAtRect takes player whichPlayer,integer itemTypeId loop exitwhen ( j == bj_MAX_INVENTORY or whichItem != null ) set index=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - if ( WoWReforgedBackpacks___BackpackItemType[index] == itemTypeId or ( WoWReforgedBackpacks___BackpackPageNumber[playerId] == i and GetItemTypeId(UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j)) == itemTypeId ) ) then - if ( WoWReforgedBackpacks___BackpackPageNumber[playerId] == i ) then - call h__RemoveItem(UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], j)) + if ( WoWReforgedBackpacks__BackpackItemType[index] == itemTypeId or ( WoWReforgedBackpacks__BackpackPageNumber[playerId] == i and GetItemTypeId(UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j)) == itemTypeId ) ) then + if ( WoWReforgedBackpacks__BackpackPageNumber[playerId] == i ) then + call h__RemoveItem(UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], j)) endif call ClearBackpackItem(index) set whichItem=CreateItem(itemTypeId, GetRectCenterX(whichRect), GetRectCenterY(whichRect)) @@ -71618,7 +71618,7 @@ function ClearCurrentBackpackPageForPlayer takes player whichPlayer returns noth set j=0 loop exitwhen ( j == bj_MAX_INVENTORY ) - set index=Index3D(playerId , WoWReforgedBackpacks___BackpackPageNumber[playerId] , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) + set index=Index3D(playerId , WoWReforgedBackpacks__BackpackPageNumber[playerId] , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) //call BJDebugMsg("Clearing item at index " + I2S(index)) call ClearBackpackItem(index) set j=j + 1 @@ -71657,19 +71657,19 @@ function AddItemToBackpackForPlayer takes player whichPlayer,item whichItem retu loop exitwhen ( i == bj_MAX_INVENTORY ) exitwhen ( whichItem == null ) - set slotItem=UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], i) + set slotItem=UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], i) if ( slotItem == null or ( GetItemCharges(whichItem) > 0 and GetItemTypeId(whichItem) == GetItemTypeId(slotItem) and GetMaxStacksByItemTypeId(GetItemTypeId(whichItem)) >= GetItemCharges(slotItem) + GetItemCharges(whichItem) ) ) then - if ( UnitAddItem(WoWReforgedBackpacks___Backpack[playerId], whichItem) ) then - if ( (WoWReforgedBackpacks___BackpackPlayerBagInfo[GetPlayerId((whichPlayer))]) ) then // INLINED!! - call h__DisplayTimedTextToPlayer(whichPlayer, 0.00, 0.00, 4.00, ( "Added " + GetItemName(whichItem) + " to backpack bag " + I2S(WoWReforgedBackpacks___BackpackPageNumber[playerId] + 1) + " by stacking it to slot " + I2S(i + 1) + "." )) + if ( UnitAddItem(WoWReforgedBackpacks__Backpack[playerId], whichItem) ) then + if ( (WoWReforgedBackpacks__BackpackPlayerBagInfo[GetPlayerId((whichPlayer))]) ) then // INLINED!! + call h__DisplayTimedTextToPlayer(whichPlayer, 0.00, 0.00, 4.00, ( "Added " + GetItemName(whichItem) + " to backpack bag " + I2S(WoWReforgedBackpacks__BackpackPageNumber[playerId] + 1) + " by stacking it to slot " + I2S(i + 1) + "." )) endif set whichItem=null return true else // TODO Seems to happen for slots with the same item type. If this does not work by default, we have to change the charges and update the backpack page. - if ( (WoWReforgedBackpacks___BackpackPlayerBagInfo[GetPlayerId((whichPlayer))]) ) then // INLINED!! - call h__DisplayTimedTextToPlayer(whichPlayer, 0.00, 0.00, 4.00, ( "Problem on adding " + GetItemName(whichItem) + " to backpack bag " + I2S(WoWReforgedBackpacks___BackpackPageNumber[playerId] + 1) + " by stacking it to slot " + I2S(i + 1) + "." )) + if ( (WoWReforgedBackpacks__BackpackPlayerBagInfo[GetPlayerId((whichPlayer))]) ) then // INLINED!! + call h__DisplayTimedTextToPlayer(whichPlayer, 0.00, 0.00, 4.00, ( "Problem on adding " + GetItemName(whichItem) + " to backpack bag " + I2S(WoWReforgedBackpacks__BackpackPageNumber[playerId] + 1) + " by stacking it to slot " + I2S(i + 1) + "." )) endif endif endif @@ -71687,8 +71687,8 @@ function AddItemToBackpackForPlayer takes player whichPlayer,item whichItem retu exitwhen ( whichItem == null ) set index=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) // empty slot - if ( WoWReforgedBackpacks___BackpackItemType[index] == 0 ) then - if ( (WoWReforgedBackpacks___BackpackPlayerBagInfo[GetPlayerId((whichPlayer))]) ) then // INLINED!! + if ( WoWReforgedBackpacks__BackpackItemType[index] == 0 ) then + if ( (WoWReforgedBackpacks__BackpackPlayerBagInfo[GetPlayerId((whichPlayer))]) ) then // INLINED!! 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) @@ -71701,11 +71701,11 @@ function AddItemToBackpackForPlayer takes player whichPlayer,item whichItem retu return true // stack - elseif ( GetItemCharges(whichItem) > 0 and GetItemTypeId(whichItem) == WoWReforgedBackpacks___BackpackItemType[index] and GetMaxStacksByItemTypeId(WoWReforgedBackpacks___BackpackItemType[index]) >= WoWReforgedBackpacks___BackpackItemCharges[index] + GetItemCharges(whichItem) ) then - if ( (WoWReforgedBackpacks___BackpackPlayerBagInfo[GetPlayerId((whichPlayer))]) ) then // INLINED!! + elseif ( GetItemCharges(whichItem) > 0 and GetItemTypeId(whichItem) == WoWReforgedBackpacks__BackpackItemType[index] and GetMaxStacksByItemTypeId(WoWReforgedBackpacks__BackpackItemType[index]) >= WoWReforgedBackpacks__BackpackItemCharges[index] + GetItemCharges(whichItem) ) then + if ( (WoWReforgedBackpacks__BackpackPlayerBagInfo[GetPlayerId((whichPlayer))]) ) then // INLINED!! 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 WoWReforgedBackpacks__BackpackItemCharges[index]=WoWReforgedBackpacks__BackpackItemCharges[index] + GetItemCharges(whichItem) set itemRespawn=(ItemRespawnSystem___GetItemRespawnIndexByHandleID(GetHandleId((whichItem)))) // INLINED!! call h__RemoveItem(whichItem) set whichItem=null @@ -71727,28 +71727,28 @@ endfunction function DestroyBackpackSystemForPlayer takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - if ( WoWReforgedBackpacks___Backpack[playerId] != null ) then - call h__RemoveUnit(WoWReforgedBackpacks___Backpack[playerId]) - set WoWReforgedBackpacks___Backpack[playerId]=null + if ( WoWReforgedBackpacks__Backpack[playerId] != null ) then + call h__RemoveUnit(WoWReforgedBackpacks__Backpack[playerId]) + set WoWReforgedBackpacks__Backpack[playerId]=null endif call ClearBackpackForPlayer(whichPlayer) endfunction function DisableItemPickupTriggers takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - call DisableTrigger(WoWReforgedBackpacks___BackpackTriggerPickup[playerId]) - call DisableTrigger(WoWReforgedBackpacks___BackpackTriggerDrop[playerId]) + call DisableTrigger(WoWReforgedBackpacks__BackpackTriggerPickup[playerId]) + call DisableTrigger(WoWReforgedBackpacks__BackpackTriggerDrop[playerId]) endfunction function EnableItemPickupTriggers takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - call EnableTrigger(WoWReforgedBackpacks___BackpackTriggerPickup[playerId]) - call EnableTrigger(WoWReforgedBackpacks___BackpackTriggerDrop[playerId]) + call EnableTrigger(WoWReforgedBackpacks__BackpackTriggerPickup[playerId]) + call EnableTrigger(WoWReforgedBackpacks__BackpackTriggerDrop[playerId]) endfunction function GetBackpackPageNumber takes player whichPlayer returns integer local integer playerId= GetPlayerId(whichPlayer) - return WoWReforgedBackpacks___BackpackPageNumber[playerId] + return WoWReforgedBackpacks__BackpackPageNumber[playerId] endfunction function RefreshBackpackPage takes player whichPlayer returns nothing @@ -71763,10 +71763,10 @@ function RefreshBackpackPage takes player whichPlayer returns nothing loop exitwhen ( i == bj_MAX_INVENTORY ) set index=Index3D(playerId , page , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - if ( WoWReforgedBackpacks___BackpackItemType[index] != 0 ) then + if ( WoWReforgedBackpacks__BackpackItemType[index] != 0 ) then //call BJDebugMsg("Item type " + GetObjectName(BackpackItemType[index]) + " at index " + I2S(index)) - call UnitAddItemToSlotById(WoWReforgedBackpacks___Backpack[playerId], WoWReforgedBackpacks___BackpackItemType[index], i) - set whichItem=UnitItemInSlot(WoWReforgedBackpacks___Backpack[playerId], i) + call UnitAddItemToSlotById(WoWReforgedBackpacks__Backpack[playerId], WoWReforgedBackpacks__BackpackItemType[index], i) + set whichItem=UnitItemInSlot(WoWReforgedBackpacks__Backpack[playerId], i) call ApplyBackpackItem(whichItem , index) //else //call BJDebugMsg("Empty at index " + I2S(index)) @@ -71786,8 +71786,8 @@ function ChangeBackpackPageEx takes player whichPlayer,integer newBackpackPage r set i=0 loop exitwhen ( i == bj_MAX_INVENTORY ) - set index=Index3D(playerId , WoWReforgedBackpacks___BackpackPageNumber[playerId] , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - set SlotItem=UnitItemInSlot((WoWReforgedBackpacks___Backpack[GetPlayerId((whichPlayer))]), i) // INLINED!! + set index=Index3D(playerId , WoWReforgedBackpacks__BackpackPageNumber[playerId] , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) + set SlotItem=UnitItemInSlot((WoWReforgedBackpacks__Backpack[GetPlayerId((whichPlayer))]), i) // INLINED!! if ( SlotItem != null ) then call SetBackpackItemFromItem(SlotItem , index) //call BJDebugMsg("Storing at index " + I2S(index) + " with type " + GetObjectName(BackpackItemType[index])) @@ -71801,15 +71801,15 @@ function ChangeBackpackPageEx takes player whichPlayer,integer newBackpackPage r endloop call EnableItemPickupTriggers(whichPlayer) // change page - set WoWReforgedBackpacks___BackpackPageNumber[playerId]=newBackpackPage - call BlzSetUnitName((WoWReforgedBackpacks___Backpack[GetPlayerId((whichPlayer))]), "Bag " + I2S(newBackpackPage + 1)) // INLINED!! + set WoWReforgedBackpacks__BackpackPageNumber[playerId]=newBackpackPage + call BlzSetUnitName((WoWReforgedBackpacks__Backpack[GetPlayerId((whichPlayer))]), "Bag " + I2S(newBackpackPage + 1)) // INLINED!! //call DisplayTimedTextToPlayer(whichPlayer, 0.00, 0.00, 4.00, ("Open Bag " + I2S(newBackpackPage + 1) + ".")) call RefreshBackpackPage(whichPlayer) endfunction function ChangeToNextFreeBagInBackpack takes player whichPlayer returns integer local integer playerId= GetPlayerId(whichPlayer) - local integer currentPage= WoWReforgedBackpacks___BackpackPageNumber[playerId] + local integer currentPage= WoWReforgedBackpacks__BackpackPageNumber[playerId] local integer result= - 1 local integer index= 0 local integer j= 0 @@ -71823,7 +71823,7 @@ function ChangeToNextFreeBagInBackpack takes player whichPlayer returns integer exitwhen ( result != - 1 ) set index=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) // empty slot - if ( WoWReforgedBackpacks___BackpackItemType[index] == 0 ) then + if ( WoWReforgedBackpacks__BackpackItemType[index] == 0 ) then set result=i endif set j=j + 1 @@ -71841,7 +71841,7 @@ function ChangeToNextFreeBagInBackpack takes player whichPlayer returns integer exitwhen ( result != - 1 ) set index=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) // empty slot - if ( WoWReforgedBackpacks___BackpackItemType[index] == 0 ) then + if ( WoWReforgedBackpacks__BackpackItemType[index] == 0 ) then set result=i endif set j=j + 1 @@ -71867,7 +71867,7 @@ endfunction function ChangeBackpackPage takes player whichPlayer,boolean next returns nothing local integer playerId= GetPlayerId(whichPlayer) - local integer page= WoWReforgedBackpacks___BackpackPageNumber[playerId] + local integer page= WoWReforgedBackpacks__BackpackPageNumber[playerId] local integer newPage= 0 if ( next ) then if ( page != ( BACKPACK_MAX_PAGES - 1 ) ) then @@ -71925,8 +71925,8 @@ function OrderBackpack takes player whichPlayer returns integer loop exitwhen ( j == bj_MAX_INVENTORY or doneWithAll ) set index1=Index3D(playerId , i , j , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - set itemTypeId1=WoWReforgedBackpacks___BackpackItemType[index1] - set charges1=WoWReforgedBackpacks___BackpackItemCharges[index1] + set itemTypeId1=WoWReforgedBackpacks__BackpackItemType[index1] + set charges1=WoWReforgedBackpacks__BackpackItemCharges[index1] set maxCharges1=GetMaxStacksByItemTypeId(itemTypeId1) set doneWithCurrentSlot=itemTypeId1 != 0 and ( charges1 == 0 ) or ( charges1 >= maxCharges1 ) // stop if the slot is already full set countEmptySlotsAfter=0 @@ -71942,21 +71942,21 @@ function OrderBackpack takes player whichPlayer returns integer loop exitwhen ( l >= bj_MAX_INVENTORY or doneWithCurrentSlot ) set index2=Index3D(playerId , k , l , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) - set itemTypeId2=WoWReforgedBackpacks___BackpackItemType[index2] - set charges2=WoWReforgedBackpacks___BackpackItemCharges[index2] + set itemTypeId2=WoWReforgedBackpacks__BackpackItemType[index2] + set charges2=WoWReforgedBackpacks__BackpackItemCharges[index2] // stack items if ( itemTypeId1 != 0 and itemTypeId1 == itemTypeId2 and charges1 > 0 and charges1 < maxCharges1 ) then set orderedItems=orderedItems + 1 set stackedCharges=IMinBJ(charges2, maxCharges1 - charges1) set charges1=charges1 + stackedCharges - set WoWReforgedBackpacks___BackpackItemCharges[index1]=charges1 + set WoWReforgedBackpacks__BackpackItemCharges[index1]=charges1 if ( stackedCharges == charges2 ) then call ClearBackpackItem(index2) set countEmptySlotsAfter=countEmptySlotsAfter + 1 else - set WoWReforgedBackpacks___BackpackItemCharges[index2]=charges2 - stackedCharges + set WoWReforgedBackpacks__BackpackItemCharges[index2]=charges2 - stackedCharges endif set doneWithCurrentSlot=charges1 >= maxCharges1 @@ -71990,7 +71990,7 @@ function OrderBackpack takes player whichPlayer returns integer endloop set i=i + 1 endloop - call ClearHeroInventory((WoWReforgedBackpacks___Backpack[GetPlayerId((whichPlayer))])) // INLINED!! + call ClearHeroInventory((WoWReforgedBackpacks__Backpack[GetPlayerId((whichPlayer))])) // INLINED!! call RefreshBackpackPage(whichPlayer) call UpdateItemsForBackpackUIEvaluate(whichPlayer) @@ -71999,11 +71999,11 @@ function OrderBackpack takes player whichPlayer returns integer return orderedItems endfunction -function WoWReforgedBackpacks___TriggerConditionChangeBackpackPage takes nothing returns boolean +function WoWReforgedBackpacks__TriggerConditionChangeBackpackPage takes nothing returns boolean return GetSpellAbilityId() == BACKPACK_NEXT_PAGE_ABILITY_ID or GetSpellAbilityId() == BACKPACK_PREVIOUS_PAGE_ABILITY_ID endfunction -function WoWReforgedBackpacks___TriggerFunctionChangeBackpackPage takes nothing returns nothing +function WoWReforgedBackpacks__TriggerFunctionChangeBackpackPage takes nothing returns nothing if ( GetSpellAbilityId() == BACKPACK_NEXT_PAGE_ABILITY_ID ) then call ChangeBackpackPage(GetOwningPlayer(GetTriggerUnit()) , true) elseif ( GetSpellAbilityId() == BACKPACK_PREVIOUS_PAGE_ABILITY_ID ) then @@ -72012,12 +72012,12 @@ function WoWReforgedBackpacks___TriggerFunctionChangeBackpackPage takes nothing call UpdateItemsForBackpackUIEvaluate(GetOwningPlayer(GetTriggerUnit())) endfunction -function WoWReforgedBackpacks___TriggerConditionPickupBackpackItem takes nothing returns boolean +function WoWReforgedBackpacks__TriggerConditionPickupBackpackItem takes nothing returns boolean local integer playerId= GetPlayerId(GetOwningPlayer(GetTriggerUnit())) - return GetTriggerUnit() == WoWReforgedBackpacks___Backpack[playerId] + return GetTriggerUnit() == WoWReforgedBackpacks__Backpack[playerId] endfunction -function WoWReforgedBackpacks___TriggerFunctionPickupBackpackItem takes nothing returns nothing +function WoWReforgedBackpacks__TriggerFunctionPickupBackpackItem takes nothing returns nothing local integer playerId= GetPlayerId(GetOwningPlayer(GetTriggerUnit())) local item whichItem= null local integer index= 0 @@ -72027,7 +72027,7 @@ function WoWReforgedBackpacks___TriggerFunctionPickupBackpackItem takes nothing exitwhen ( i == bj_MAX_INVENTORY ) set whichItem=UnitItemInSlot(GetTriggerUnit(), i) if ( whichItem != null ) then - set index=Index3D(playerId , WoWReforgedBackpacks___BackpackPageNumber[playerId] , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) + set index=Index3D(playerId , WoWReforgedBackpacks__BackpackPageNumber[playerId] , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) call SetBackpackItemFromItem(whichItem , index) set whichItem=null endif @@ -72036,11 +72036,11 @@ function WoWReforgedBackpacks___TriggerFunctionPickupBackpackItem takes nothing call UpdateItemsForBackpackUIEvaluate(GetOwningPlayer(GetTriggerUnit())) endfunction -function WoWReforgedBackpacks___TriggerConditionDropBackpackItem takes nothing returns boolean - return GetTriggerUnit() == WoWReforgedBackpacks___Backpack[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] +function WoWReforgedBackpacks__TriggerConditionDropBackpackItem takes nothing returns boolean + return GetTriggerUnit() == WoWReforgedBackpacks__Backpack[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] endfunction -function WoWReforgedBackpacks___TriggerFunctionDropBackpackItem takes nothing returns nothing +function WoWReforgedBackpacks__TriggerFunctionDropBackpackItem takes nothing returns nothing local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(triggerUnit) local integer playerId= GetPlayerId(owner) @@ -72050,10 +72050,10 @@ function WoWReforgedBackpacks___TriggerFunctionDropBackpackItem takes nothing re loop exitwhen ( i == bj_MAX_INVENTORY ) if ( UnitItemInSlot(triggerUnit, i) == null ) then - set index=Index3D(playerId , WoWReforgedBackpacks___BackpackPageNumber[playerId] , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) + set index=Index3D(playerId , WoWReforgedBackpacks__BackpackPageNumber[playerId] , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) //call BJDebugMsg("Dropping item at index " + I2S(index) + " with type " + GetObjectName(BackpackItemType[index])) - set WoWReforgedBackpacks___BackpackItemType[index]=0 - set WoWReforgedBackpacks___BackpackItemCharges[index]=0 + set WoWReforgedBackpacks__BackpackItemType[index]=0 + set WoWReforgedBackpacks__BackpackItemCharges[index]=0 endif set i=i + 1 endloop @@ -72062,20 +72062,20 @@ function WoWReforgedBackpacks___TriggerFunctionDropBackpackItem takes nothing re set triggerUnit=null endfunction -function WoWReforgedBackpacks___IsMoveItemOrder takes integer orderId returns boolean +function WoWReforgedBackpacks__IsMoveItemOrder takes integer orderId returns boolean return orderId >= A_ORDER_ID_MOVE_SLOT_0 and orderId <= A_ORDER_ID_MOVE_SLOT_5 endfunction -function WoWReforgedBackpacks___IsRedirectOrder takes integer orderId returns boolean +function WoWReforgedBackpacks__IsRedirectOrder takes integer orderId returns boolean return orderId == A_ORDER_ID_SMART or orderId == A_ORDER_ID_MOVE or orderId == A_ORDER_ID_DROP_ITEM endfunction -function WoWReforgedBackpacks___TriggerConditionMoveBackpackItem takes nothing returns boolean +function WoWReforgedBackpacks__TriggerConditionMoveBackpackItem takes nothing returns boolean local integer orderId= GetIssuedOrderId() - return GetTriggerUnit() == WoWReforgedBackpacks___Backpack[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] and ( WoWReforgedBackpacks___IsMoveItemOrder(orderId) or WoWReforgedBackpacks___IsRedirectOrder(orderId) ) + return GetTriggerUnit() == WoWReforgedBackpacks__Backpack[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))] and ( WoWReforgedBackpacks__IsMoveItemOrder(orderId) or WoWReforgedBackpacks__IsRedirectOrder(orderId) ) endfunction -function WoWReforgedBackpacks___TriggerFunctionMoveBackpackItem takes nothing returns nothing +function WoWReforgedBackpacks__TriggerFunctionMoveBackpackItem takes nothing returns nothing local integer orderId= GetIssuedOrderId() local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(triggerUnit) @@ -72085,8 +72085,8 @@ function WoWReforgedBackpacks___TriggerFunctionMoveBackpackItem takes nothing re local integer index= 0 local item orderTargetItem= GetOrderTargetItem() local unit orderTargetUnit= GetOrderTargetUnit() - local boolean smartOrder= WoWReforgedBackpacks___IsRedirectOrder(orderId) - local boolean moveItem= WoWReforgedBackpacks___IsMoveItemOrder(orderId) + local boolean smartOrder= WoWReforgedBackpacks__IsRedirectOrder(orderId) + local boolean moveItem= WoWReforgedBackpacks__IsMoveItemOrder(orderId) if ( moveItem ) then call TriggerSleepAction(0.0) // TODO Apparently the item is still there without sleeping. //call BJDebugMsg("Moved item!") @@ -72094,7 +72094,7 @@ function WoWReforgedBackpacks___TriggerFunctionMoveBackpackItem takes nothing re set i=0 loop exitwhen ( i == bj_MAX_INVENTORY ) - set index=Index3D(playerId , WoWReforgedBackpacks___BackpackPageNumber[playerId] , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) + set index=Index3D(playerId , WoWReforgedBackpacks__BackpackPageNumber[playerId] , i , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY) set whichItem=UnitItemInSlot(triggerUnit, i) if ( whichItem == null ) then //call BJDebugMsg("Dropping item at index " + I2S(index) + " with type " + GetObjectName(BackpackItemType[index])) @@ -72105,7 +72105,7 @@ function WoWReforgedBackpacks___TriggerFunctionMoveBackpackItem takes nothing re set i=i + 1 endloop call UpdateItemsForBackpackUIEvaluate(owner) - elseif ( (udg_Hero[GetPlayerId((owner))]) != null and WoWReforgedBackpacks___IsRedirectOrder(orderId) ) then // INLINED!! + elseif ( (udg_Hero[GetPlayerId((owner))]) != null and WoWReforgedBackpacks__IsRedirectOrder(orderId) ) then // INLINED!! if ( orderTargetItem != null ) then // redirect order to hero call IssueTargetOrderById((udg_Hero[GetPlayerId((owner))]), orderId, orderTargetItem) // INLINED!! @@ -72141,12 +72141,12 @@ function InventoryIsFull takes unit whichUnit,integer itemTypeId returns boolean return true endfunction -function WoWReforgedBackpacks___TriggerConditionOrderBackpackItem takes nothing returns boolean +function WoWReforgedBackpacks__TriggerConditionOrderBackpackItem takes nothing returns boolean return (udg_Hero[GetPlayerId((GetOwningPlayer(GetTriggerUnit())))]) == GetTriggerUnit() and GetIssuedOrderId() == A_ORDER_ID_SMART and GetOrderTargetItem() != null and not IsItemPowerup(GetOrderTargetItem()) and InventoryIsFull(GetTriggerUnit() , GetItemTypeId(GetOrderTargetItem())) // INLINED!! endfunction // This code is directly taken from the system "EasyItemStacknSplit v2.7.4" and allows picking up items even if the inventory is full. -function WoWReforgedBackpacks___TimerFunctionPickupItem takes nothing returns nothing +function WoWReforgedBackpacks__TimerFunctionPickupItem takes nothing returns nothing local integer i= 0 local player slotPlayer= null local unit hero= null @@ -72160,7 +72160,7 @@ function WoWReforgedBackpacks___TimerFunctionPickupItem takes nothing returns no exitwhen ( i >= bj_MAX_PLAYERS ) set slotPlayer=Player(i) set hero=(udg_Hero[GetPlayerId((slotPlayer))]) // INLINED!! - set targetItem=WoWReforgedBackpacks___BackpackTargetItem[i] + set targetItem=WoWReforgedBackpacks__BackpackTargetItem[i] if ( targetItem != null and hero != null ) then //call BJDebugMsg("Update backpack for player " + GetPlayerName(slotPlayer) + " with target item " + GetItemName(targetItem) + ".") if ( GetWidgetLife(hero) > 0.0 and GetWidgetLife(targetItem) > 0.0 ) then @@ -72181,15 +72181,15 @@ function WoWReforgedBackpacks___TimerFunctionPickupItem takes nothing returns no else call SimError(slotPlayer , GetItemName(targetItem) + " cannot be picked up: " + GetItemPickupErrorReason(targetItem , slotPlayer)) endif - set WoWReforgedBackpacks___BackpackTargetItem[i]=null + set WoWReforgedBackpacks__BackpackTargetItem[i]=null endif endif else //call BJDebugMsg("Reset ordering to item with full inventory.") - set WoWReforgedBackpacks___BackpackTargetItem[i]=null + set WoWReforgedBackpacks__BackpackTargetItem[i]=null endif - if ( WoWReforgedBackpacks___BackpackTargetItem[i] != null ) then + if ( WoWReforgedBackpacks__BackpackTargetItem[i] != null ) then set noTargets=false endif endif @@ -72199,21 +72199,21 @@ function WoWReforgedBackpacks___TimerFunctionPickupItem takes nothing returns no set i=i + 1 endloop if ( noTargets ) then - set WoWReforgedBackpacks___BackpackPickupTimerHasStarted=false + set WoWReforgedBackpacks__BackpackPickupTimerHasStarted=false call PauseTimer(GetExpiredTimer()) endif endfunction -function WoWReforgedBackpacks___TriggerFunctionOrderBackpackItem takes nothing returns nothing +function WoWReforgedBackpacks__TriggerFunctionOrderBackpackItem takes nothing returns nothing local unit hero= GetTriggerUnit() local player owner= GetOwningPlayer(hero) local integer playerId= GetPlayerId(owner) local item whichItem= GetOrderTargetItem() //call BJDebugMsg("Order to item with full inventory start.") - set WoWReforgedBackpacks___BackpackTargetItem[playerId]=whichItem - if ( not WoWReforgedBackpacks___BackpackPickupTimerHasStarted ) then - set WoWReforgedBackpacks___BackpackPickupTimerHasStarted=true - call TimerStart(WoWReforgedBackpacks___BackpackPickupTimer, 0.05, true, function WoWReforgedBackpacks___TimerFunctionPickupItem) + set WoWReforgedBackpacks__BackpackTargetItem[playerId]=whichItem + if ( not WoWReforgedBackpacks__BackpackPickupTimerHasStarted ) then + set WoWReforgedBackpacks__BackpackPickupTimerHasStarted=true + call TimerStart(WoWReforgedBackpacks__BackpackPickupTimer, 0.05, true, function WoWReforgedBackpacks__TimerFunctionPickupItem) endif call IssuePointOrder(GetTriggerUnit(), "move", GetItemX(whichItem), GetItemY(whichItem)) set hero=null @@ -72223,49 +72223,49 @@ endfunction function CreateBackpackForPlayer takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - set WoWReforgedBackpacks___Backpack[playerId]=CreateUnit(whichPlayer, BACK_PACK, GetUnitX((udg_Hero[GetPlayerId((whichPlayer))])), GetUnitY((udg_Hero[GetPlayerId((whichPlayer))])), 0.00) // INLINED!! - call SuspendHeroXP(WoWReforgedBackpacks___Backpack[playerId], true) - call SetUnitInvulnerable(WoWReforgedBackpacks___Backpack[playerId], true) - call BlzSetUnitName(WoWReforgedBackpacks___Backpack[playerId], "Bag 1") + set WoWReforgedBackpacks__Backpack[playerId]=CreateUnit(whichPlayer, BACK_PACK, GetUnitX((udg_Hero[GetPlayerId((whichPlayer))])), GetUnitY((udg_Hero[GetPlayerId((whichPlayer))])), 0.00) // INLINED!! + call SuspendHeroXP(WoWReforgedBackpacks__Backpack[playerId], true) + call SetUnitInvulnerable(WoWReforgedBackpacks__Backpack[playerId], true) + call BlzSetUnitName(WoWReforgedBackpacks__Backpack[playerId], "Bag 1") // Change Ruckack Page Trigger - if ( WoWReforgedBackpacks___BackpackTriggerChangePage[playerId] == null ) then - set WoWReforgedBackpacks___BackpackTriggerChangePage[playerId]=CreateTrigger() - call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks___BackpackTriggerChangePage[playerId], whichPlayer, EVENT_PLAYER_UNIT_SPELL_CHANNEL, null) - call TriggerAddCondition(WoWReforgedBackpacks___BackpackTriggerChangePage[playerId], Condition(function WoWReforgedBackpacks___TriggerConditionChangeBackpackPage)) - call TriggerAddAction(WoWReforgedBackpacks___BackpackTriggerChangePage[playerId], function WoWReforgedBackpacks___TriggerFunctionChangeBackpackPage) - endif - if ( WoWReforgedBackpacks___BackpackTriggerPickup[playerId] == null ) then - set WoWReforgedBackpacks___BackpackTriggerPickup[playerId]=CreateTrigger() - call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks___BackpackTriggerPickup[playerId], whichPlayer, EVENT_PLAYER_UNIT_PICKUP_ITEM, null) - call TriggerAddCondition(WoWReforgedBackpacks___BackpackTriggerPickup[playerId], Condition(function WoWReforgedBackpacks___TriggerConditionPickupBackpackItem)) - call TriggerAddAction(WoWReforgedBackpacks___BackpackTriggerPickup[playerId], function WoWReforgedBackpacks___TriggerFunctionPickupBackpackItem) - endif - if ( WoWReforgedBackpacks___BackpackTriggerDrop[playerId] == null ) then - set WoWReforgedBackpacks___BackpackTriggerDrop[playerId]=CreateTrigger() - call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks___BackpackTriggerDrop[playerId], whichPlayer, EVENT_PLAYER_UNIT_DROP_ITEM, null) - call TriggerAddCondition(WoWReforgedBackpacks___BackpackTriggerDrop[playerId], Condition(function WoWReforgedBackpacks___TriggerConditionDropBackpackItem)) - call TriggerAddAction(WoWReforgedBackpacks___BackpackTriggerDrop[playerId], function WoWReforgedBackpacks___TriggerFunctionDropBackpackItem) - endif - if ( WoWReforgedBackpacks___BackpackTriggerMove[playerId] == null ) then - set WoWReforgedBackpacks___BackpackTriggerMove[playerId]=CreateTrigger() - call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks___BackpackTriggerMove[playerId], whichPlayer, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER, null) - call TriggerAddCondition(WoWReforgedBackpacks___BackpackTriggerMove[playerId], Condition(function WoWReforgedBackpacks___TriggerConditionMoveBackpackItem)) - call TriggerAddAction(WoWReforgedBackpacks___BackpackTriggerMove[playerId], function WoWReforgedBackpacks___TriggerFunctionMoveBackpackItem) - endif - if ( WoWReforgedBackpacks___BackpackTriggerOrder[playerId] == null ) then - set WoWReforgedBackpacks___BackpackTriggerOrder[playerId]=CreateTrigger() - call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks___BackpackTriggerOrder[playerId], whichPlayer, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER, null) - call TriggerAddCondition(WoWReforgedBackpacks___BackpackTriggerOrder[playerId], Condition(function WoWReforgedBackpacks___TriggerConditionOrderBackpackItem)) - call TriggerAddAction(WoWReforgedBackpacks___BackpackTriggerOrder[playerId], function WoWReforgedBackpacks___TriggerFunctionOrderBackpackItem) + if ( WoWReforgedBackpacks__BackpackTriggerChangePage[playerId] == null ) then + set WoWReforgedBackpacks__BackpackTriggerChangePage[playerId]=CreateTrigger() + call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks__BackpackTriggerChangePage[playerId], whichPlayer, EVENT_PLAYER_UNIT_SPELL_CHANNEL, null) + call TriggerAddCondition(WoWReforgedBackpacks__BackpackTriggerChangePage[playerId], Condition(function WoWReforgedBackpacks__TriggerConditionChangeBackpackPage)) + call TriggerAddAction(WoWReforgedBackpacks__BackpackTriggerChangePage[playerId], function WoWReforgedBackpacks__TriggerFunctionChangeBackpackPage) + endif + if ( WoWReforgedBackpacks__BackpackTriggerPickup[playerId] == null ) then + set WoWReforgedBackpacks__BackpackTriggerPickup[playerId]=CreateTrigger() + call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks__BackpackTriggerPickup[playerId], whichPlayer, EVENT_PLAYER_UNIT_PICKUP_ITEM, null) + call TriggerAddCondition(WoWReforgedBackpacks__BackpackTriggerPickup[playerId], Condition(function WoWReforgedBackpacks__TriggerConditionPickupBackpackItem)) + call TriggerAddAction(WoWReforgedBackpacks__BackpackTriggerPickup[playerId], function WoWReforgedBackpacks__TriggerFunctionPickupBackpackItem) + endif + if ( WoWReforgedBackpacks__BackpackTriggerDrop[playerId] == null ) then + set WoWReforgedBackpacks__BackpackTriggerDrop[playerId]=CreateTrigger() + call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks__BackpackTriggerDrop[playerId], whichPlayer, EVENT_PLAYER_UNIT_DROP_ITEM, null) + call TriggerAddCondition(WoWReforgedBackpacks__BackpackTriggerDrop[playerId], Condition(function WoWReforgedBackpacks__TriggerConditionDropBackpackItem)) + call TriggerAddAction(WoWReforgedBackpacks__BackpackTriggerDrop[playerId], function WoWReforgedBackpacks__TriggerFunctionDropBackpackItem) + endif + if ( WoWReforgedBackpacks__BackpackTriggerMove[playerId] == null ) then + set WoWReforgedBackpacks__BackpackTriggerMove[playerId]=CreateTrigger() + call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks__BackpackTriggerMove[playerId], whichPlayer, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER, null) + call TriggerAddCondition(WoWReforgedBackpacks__BackpackTriggerMove[playerId], Condition(function WoWReforgedBackpacks__TriggerConditionMoveBackpackItem)) + call TriggerAddAction(WoWReforgedBackpacks__BackpackTriggerMove[playerId], function WoWReforgedBackpacks__TriggerFunctionMoveBackpackItem) + endif + if ( WoWReforgedBackpacks__BackpackTriggerOrder[playerId] == null ) then + set WoWReforgedBackpacks__BackpackTriggerOrder[playerId]=CreateTrigger() + call TriggerRegisterPlayerUnitEvent(WoWReforgedBackpacks__BackpackTriggerOrder[playerId], whichPlayer, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER, null) + call TriggerAddCondition(WoWReforgedBackpacks__BackpackTriggerOrder[playerId], Condition(function WoWReforgedBackpacks__TriggerConditionOrderBackpackItem)) + call TriggerAddAction(WoWReforgedBackpacks__BackpackTriggerOrder[playerId], function WoWReforgedBackpacks__TriggerFunctionOrderBackpackItem) endif endfunction function RefreshBackpackForPlayer takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - if ( WoWReforgedBackpacks___Backpack[playerId] != null ) then + if ( WoWReforgedBackpacks__Backpack[playerId] != null ) then call DisableItemPickupTriggers(whichPlayer) - call h__RemoveUnit(WoWReforgedBackpacks___Backpack[playerId]) - set WoWReforgedBackpacks___Backpack[playerId]=null + call h__RemoveUnit(WoWReforgedBackpacks__Backpack[playerId]) + set WoWReforgedBackpacks__Backpack[playerId]=null call EnableItemPickupTriggers(whichPlayer) endif call CreateBackpackForPlayer(whichPlayer) @@ -72273,7 +72273,7 @@ function RefreshBackpackForPlayer takes player whichPlayer returns nothing call UpdateItemsForBackpackUIEvaluate(whichPlayer) endfunction -function WoWReforgedBackpacks___TimerFunctionUpdateLocationsOfBackpackAndEquipmentBags takes nothing returns nothing +function WoWReforgedBackpacks__TimerFunctionUpdateLocationsOfBackpackAndEquipmentBags takes nothing returns nothing local player slotPlayer= null local unit hero1= null local integer countEquipmentBags= 0 @@ -72296,8 +72296,8 @@ function WoWReforgedBackpacks___TimerFunctionUpdateLocationsOfBackpackAndEquipme set y=GetStartLocationY(i) endif - if ( WoWReforgedBackpacks___Backpack[i] != null ) then - set bag=WoWReforgedBackpacks___Backpack[i] + if ( WoWReforgedBackpacks__Backpack[i] != null ) then + set bag=WoWReforgedBackpacks__Backpack[i] call SetUnitX(bag, x) call SetUnitY(bag, y) set bag=null @@ -72339,40 +72339,40 @@ function WoWReforgedBackpacks___TimerFunctionUpdateLocationsOfBackpackAndEquipme endfunction function GetBackpackUpdateLocatiomTimerHandleId takes nothing returns integer - return GetHandleId(WoWReforgedBackpacks___BackpackUpdateLocationTimer) + return GetHandleId(WoWReforgedBackpacks__BackpackUpdateLocationTimer) endfunction -function WoWReforgedBackpacks___Init takes nothing returns nothing +function WoWReforgedBackpacks__Init takes nothing returns nothing local integer i= 0 loop - set WoWReforgedBackpacks___BackpackPlayerBagInfo[i]=true + set WoWReforgedBackpacks__BackpackPlayerBagInfo[i]=true set i=i + 1 exitwhen ( i == bj_MAX_PLAYERS ) endloop - call TimerStart(WoWReforgedBackpacks___BackpackUpdateLocationTimer, BACKPACK_MOVE_INTERVAL, true, function WoWReforgedBackpacks___TimerFunctionUpdateLocationsOfBackpackAndEquipmentBags) + call TimerStart(WoWReforgedBackpacks__BackpackUpdateLocationTimer, BACKPACK_MOVE_INTERVAL, true, function WoWReforgedBackpacks__TimerFunctionUpdateLocationsOfBackpackAndEquipmentBags) endfunction //library WoWReforgedBackpacks ends //library WoWReforgedAllRaces: -function WoWReforgedAllRaces__FilterIsUnitMineOrHousingOfRace takes nothing returns boolean +function WoWReforgedAllRaces___FilterIsUnitMineOrHousingOfRace takes nothing returns boolean local integer r= (udg_PlayerRace[GetConvertedPlayerId((GetOwningPlayer(GetFilterUnit())))]) // INLINED!! local integer unitTypeId= GetUnitTypeId(GetFilterUnit()) return r != udg_RaceNone and ( unitTypeId == (GetRaceObjectType((r) , RACE_OBJECT_TYPE_MINE)) or unitTypeId == (GetRaceObjectType((r) , RACE_OBJECT_TYPE_HOUSING)) ) // INLINED!! endfunction -function WoWReforgedAllRaces__FilterIsUnitFreeWorker takes nothing returns boolean +function WoWReforgedAllRaces___FilterIsUnitFreeWorker takes nothing returns boolean local integer r= (udg_PlayerRace[GetConvertedPlayerId((GetOwningPlayer(GetFilterUnit())))]) // INLINED!! local integer unitTypeId= GetUnitTypeId(GetFilterUnit()) return r != udg_RaceNone and unitTypeId == (GetRaceObjectType((r) , RACE_OBJECT_TYPE_WORKER)) and not IsUnitLoaded(GetFilterUnit()) // INLINED!! endfunction -function WoWReforgedAllRaces__AutoLoadMineAI takes unit mine returns nothing +function WoWReforgedAllRaces___AutoLoadMineAI takes unit mine returns nothing local group workers= CreateGroup() local integer i= 0 local integer max= 0 - call GroupEnumUnitsOfPlayer(workers, GetOwningPlayer(mine), Filter(function WoWReforgedAllRaces__FilterIsUnitFreeWorker)) + call GroupEnumUnitsOfPlayer(workers, GetOwningPlayer(mine), Filter(function WoWReforgedAllRaces___FilterIsUnitFreeWorker)) set max=BlzGroupGetSize(workers) set i=0 loop @@ -72385,14 +72385,14 @@ function WoWReforgedAllRaces__AutoLoadMineAI takes unit mine returns nothing set workers=null endfunction -function WoWReforgedAllRaces__ForGroupAutoLoadMine takes nothing returns nothing - call WoWReforgedAllRaces__AutoLoadMineAI(GetEnumUnit()) +function WoWReforgedAllRaces___ForGroupAutoLoadMine takes nothing returns nothing + call WoWReforgedAllRaces___AutoLoadMineAI(GetEnumUnit()) endfunction function AutloadWorkersIntoMinesAI takes player whichPlayer returns nothing local group mines= CreateGroup() - call GroupEnumUnitsOfPlayer(mines, whichPlayer, Filter(function WoWReforgedAllRaces__FilterIsUnitMineOrHousingOfRace)) - call ForGroup(mines, function WoWReforgedAllRaces__ForGroupAutoLoadMine) + call GroupEnumUnitsOfPlayer(mines, whichPlayer, Filter(function WoWReforgedAllRaces___FilterIsUnitMineOrHousingOfRace)) + call ForGroup(mines, function WoWReforgedAllRaces___ForGroupAutoLoadMine) call GroupClear(mines) call DestroyGroup(mines) set mines=null @@ -72417,7 +72417,7 @@ function StartingUnitsPeons takes player whichPlayer,location l,integer whichRac if ( (udg_RaceHasFootmanWorker[(whichRace)]) ) then // INLINED!! set peon=CreateUnit(whichPlayer, ghoulId, peonX - 1.00 * unitSpacing, peonY + 0.00 * unitSpacing, bj_UNIT_FACING) call GroupAddUnit(udg_ComputerUnits[convertedPlayerId], peon) - set WoWReforgedAllRaces__ghoul[GetPlayerId(whichPlayer)]=peon + set WoWReforgedAllRaces___ghoul[GetPlayerId(whichPlayer)]=peon else set peon=CreateUnit(whichPlayer, peonId, peonX - 1.00 * unitSpacing, peonY + 0.00 * unitSpacing, bj_UNIT_FACING) call GroupAddUnit(udg_ComputerUnits[convertedPlayerId], peon) @@ -72441,7 +72441,7 @@ function StartingUnitsShredders takes player whichPlayer,location l,integer whic call GroupAddUnit(udg_ComputerUnits[convertedPlayerId], peon) endfunction -function WoWReforgedAllRaces__FilterFunctionIsMine takes nothing returns boolean +function WoWReforgedAllRaces___FilterFunctionIsMine takes nothing returns boolean return GetUnitTypeId(GetFilterUnit()) == GOLD_MINE endfunction @@ -72463,7 +72463,7 @@ function StartingUnitsReplaceMine takes player whichPlayer,unit mine,integer whi endfunction function StartingUnitsReplaceAllMines takes player whichPlayer,location l,integer whichRace returns nothing - local group mines= GetUnitsInRangeOfLocMatching(2048.00, l, Filter(function WoWReforgedAllRaces__FilterFunctionIsMine)) + local group mines= GetUnitsInRangeOfLocMatching(2048.00, l, Filter(function WoWReforgedAllRaces___FilterFunctionIsMine)) local integer max= BlzGroupGetSize(mines) local integer i= 0 loop @@ -72487,7 +72487,7 @@ function StartingUnitsAndPickAIStandard takes player whichPlayer,location l,inte call StartingUnitsShredders(whichPlayer , l , whichRace) call StartCampaignAI(whichPlayer, (udg_RaceAIScript[(whichRace)])) // INLINED!! if ( (udg_RaceHasFootmanWorker[(whichRace)]) ) then // INLINED!! - call RecycleGuardPosition(WoWReforgedAllRaces__ghoul[GetPlayerId(whichPlayer)]) + call RecycleGuardPosition(WoWReforgedAllRaces___ghoul[GetPlayerId(whichPlayer)]) endif endfunction @@ -72503,12 +72503,12 @@ function StartingUnitsAndPickAI takes player whichPlayer,location l,integer whic endif endfunction -function WoWReforgedAllRaces__FilterIsRemovableUnit takes nothing returns boolean +function WoWReforgedAllRaces___FilterIsRemovableUnit takes nothing returns boolean local integer unitTypeId= GetUnitTypeId(GetFilterUnit()) return unitTypeId != FOUNTAIN_OF_LIFE and unitTypeId != GNOMISH_LOCOMOTIVE_TRAIN and not IsUnitInGroup(GetFilterUnit(), udg_ClanHalls) endfunction -function WoWReforgedAllRaces__ForGroupRemoveUnit takes nothing returns nothing +function WoWReforgedAllRaces___ForGroupRemoveUnit takes nothing returns nothing call DropItemsFromHero(GetEnumUnit()) call h__RemoveUnit(GetEnumUnit()) endfunction @@ -72518,8 +72518,8 @@ function RemovePlayerUnits takes player whichPlayer returns nothing call KillAllHauntedGoldMines(whichPlayer) call MountKillAll(whichPlayer) call DropBackpackForPlayer(whichPlayer , gg_rct_redirect_forbidden_zone) - call GroupEnumUnitsOfPlayer(g, whichPlayer, Filter(function WoWReforgedAllRaces__FilterIsRemovableUnit)) - call ForGroup(g, function WoWReforgedAllRaces__ForGroupRemoveUnit) + call GroupEnumUnitsOfPlayer(g, whichPlayer, Filter(function WoWReforgedAllRaces___FilterIsRemovableUnit)) + call ForGroup(g, function WoWReforgedAllRaces___ForGroupRemoveUnit) call GroupClear(g) call DestroyGroup(g) set g=null @@ -73408,19 +73408,19 @@ function UpdateItemsForBackpackUI takes player whichPlayer returns nothing loop exitwhen ( j == bj_MAX_INVENTORY ) set index=Index2D(i , j , bj_MAX_INVENTORY) - set itemTypeId=(WoWReforgedBackpacks___BackpackItemType[(index)]) // INLINED!! + set itemTypeId=(WoWReforgedBackpacks__BackpackItemType[(index)]) // INLINED!! //call BlzFrameSetTexture(BackpackItemFrame[index], GetIconByItemType(udg_RucksackItemType[index]), 0, true) if ( itemTypeId == 0 ) then - call BlzFrameSetTexture(WoWReforgedBackpackUI___BackpackItemBackdropFrame[index], "UI\\Widgets\\Console\\Human\\human-inventory-slotfiller.blp", 0, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], false) + call BlzFrameSetTexture(WoWReforgedBackpackUI__BackpackItemBackdropFrame[index], "UI\\Widgets\\Console\\Human\\human-inventory-slotfiller.blp", 0, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], false) else - call BlzFrameSetTexture(WoWReforgedBackpackUI___BackpackItemBackdropFrame[index], GetIconByItemType(itemTypeId), 0, true) - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], I2S((WoWReforgedBackpacks___BackpackItemCharges[(index)]))) // INLINED!! - if ( WoWReforgedBackpackUI___BackpackUIVisible[playerId] and (WoWReforgedBackpacks___BackpackItemCharges[(index)]) > 0 ) then // INLINED!! + call BlzFrameSetTexture(WoWReforgedBackpackUI__BackpackItemBackdropFrame[index], GetIconByItemType(itemTypeId), 0, true) + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], I2S((WoWReforgedBackpacks__BackpackItemCharges[(index)]))) // INLINED!! + if ( WoWReforgedBackpackUI__BackpackUIVisible[playerId] and (WoWReforgedBackpacks__BackpackItemCharges[(index)]) > 0 ) then // INLINED!! if ( whichPlayer == GetLocalPlayer() ) then - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], true) endif endif endif @@ -73431,10 +73431,10 @@ function UpdateItemsForBackpackUI takes player whichPlayer returns nothing endfunction function BackpackUIExists takes nothing returns boolean - return WoWReforgedBackpackUI___BackpackBackgroundFrame != null + return WoWReforgedBackpackUI__BackpackBackgroundFrame != null endfunction -function WoWReforgedBackpackUI___TriggerActionSyncData takes nothing returns nothing +function WoWReforgedBackpackUI__TriggerActionSyncData takes nothing returns nothing local player whichPlayer= GetTriggerPlayer() local string prefix= BlzGetTriggerSyncPrefix() local string data= BlzGetTriggerSyncData() @@ -73443,12 +73443,12 @@ function WoWReforgedBackpackUI___TriggerActionSyncData takes nothing returns not set whichPlayer=null endfunction -function WoWReforgedBackpackUI___SyncBag takes nothing returns nothing +function WoWReforgedBackpackUI__SyncBag takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 1))) // INLINED!! local integer bag= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 2))) // INLINED!! local integer slot= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 3))) // INLINED!! if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackTooltipText, "Changed to bag " + I2S(bag + 1) + ".") + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackTooltipText, "Changed to bag " + I2S(bag + 1) + ".") call BlzSendSyncData("BackpackUI", I2S(bag)) endif endfunction @@ -73458,20 +73458,20 @@ function ShowBackpackUI takes player whichPlayer returns nothing local integer j= 0 local integer index= 0 local integer playerId= GetPlayerId(whichPlayer) - if ( not (WoWReforgedBackpackUI___BackpackBackgroundFrame != null) ) then // INLINED!! + if ( not (WoWReforgedBackpackUI__BackpackBackgroundFrame != null) ) then // INLINED!! return endif - set WoWReforgedBackpackUI___BackpackUIVisible[playerId]=true + set WoWReforgedBackpackUI__BackpackUIVisible[playerId]=true call UpdateItemsForBackpackUI(whichPlayer) if ( whichPlayer == GetLocalPlayer() ) then - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackBackgroundFrame, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTitleFrame, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___Checkbox, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackCloseButton, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackBackgroundFrame, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTitleFrame, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__Checkbox, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackCloseButton, true) //call BlzFrameSetVisible(BackpackItemGoldFrame[GetPlayerId(whichPlayer)], true) //call BlzFrameSetVisible(BackpackItemGoldIconFrame[GetPlayerId(whichPlayer)], true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipIcon, false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipModel, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipIcon, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipModel, false) endif set i=0 loop @@ -73481,15 +73481,15 @@ function ShowBackpackUI takes player whichPlayer returns nothing exitwhen ( j == bj_MAX_INVENTORY ) set index=Index2D(i , j , bj_MAX_INVENTORY) if ( whichPlayer == GetLocalPlayer() ) then - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemFrame[index], true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBackdropFrame[index], true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index], WoWReforgedBackpackUI___Checked[playerId]) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBagFrame[index], WoWReforgedBackpackUI___Checked[playerId]) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemFrame[index], true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBackdropFrame[index], true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index], WoWReforgedBackpackUI__Checked[playerId]) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBagFrame[index], WoWReforgedBackpackUI__Checked[playerId]) endif - if ( (WoWReforgedBackpacks___BackpackItemType[(index)]) != 0 and GetItemTypePerishable((WoWReforgedBackpacks___BackpackItemType[(index)])) ) then // INLINED!! + if ( (WoWReforgedBackpacks__BackpackItemType[(index)]) != 0 and GetItemTypePerishable((WoWReforgedBackpacks__BackpackItemType[(index)])) ) then // INLINED!! if ( whichPlayer == GetLocalPlayer() ) then - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], true) endif endif set j=j + 1 @@ -73503,19 +73503,19 @@ function HideBackpackUI takes player whichPlayer returns nothing local integer i= 0 local integer j= 0 local integer index= 0 - if ( not (WoWReforgedBackpackUI___BackpackBackgroundFrame != null) ) then // INLINED!! + if ( not (WoWReforgedBackpackUI__BackpackBackgroundFrame != null) ) then // INLINED!! return endif - set WoWReforgedBackpackUI___BackpackUIVisible[playerId]=false + set WoWReforgedBackpackUI__BackpackUIVisible[playerId]=false if ( whichPlayer == GetLocalPlayer() ) then - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackBackgroundFrame, false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTitleFrame, false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___Checkbox, false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackCloseButton, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackBackgroundFrame, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTitleFrame, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__Checkbox, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackCloseButton, false) //call BlzFrameSetVisible(BackpackItemGoldFrame[GetPlayerId(whichPlayer)], false) //call BlzFrameSetVisible(BackpackItemGoldIconFrame[GetPlayerId(whichPlayer)], false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipIcon, false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipModel, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipIcon, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipModel, false) endif set i=0 loop @@ -73525,12 +73525,12 @@ function HideBackpackUI takes player whichPlayer returns nothing exitwhen ( j == bj_MAX_INVENTORY ) set index=Index2D(i , j , bj_MAX_INVENTORY) if ( whichPlayer == GetLocalPlayer() ) then - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemFrame[index], false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBackdropFrame[index], false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index], false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBagFrame[index], false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemFrame[index], false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBackdropFrame[index], false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index], false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBagFrame[index], false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], false) endif set j=j + 1 endloop @@ -73540,7 +73540,7 @@ endfunction function HideBackpackUIForAllPlayers takes nothing returns nothing local integer i= 0 - if ( (WoWReforgedBackpackUI___BackpackBackgroundFrame != null) ) then // INLINED!! + if ( (WoWReforgedBackpackUI__BackpackBackgroundFrame != null) ) then // INLINED!! loop exitwhen ( i == bj_MAX_PLAYERS ) call HideBackpackUI(Player(i)) @@ -73551,34 +73551,34 @@ endfunction function BackpackClickItemFunction takes nothing returns nothing if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call WoWReforgedBackpackUI___SyncBag() + call WoWReforgedBackpackUI__SyncBag() endif endfunction -function WoWReforgedBackpackUI___EnterItemFunction takes nothing returns nothing +function WoWReforgedBackpackUI__EnterItemFunction takes nothing returns nothing local integer playerId= GetPlayerId(GetTriggerPlayer()) local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 1))) // INLINED!! local integer bag= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 2))) // INLINED!! local integer slot= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 3))) // INLINED!! local string tooltip= "Empty slot " + I2S(slot + 1) + " at bag " + I2S(bag + 1) + "." - local integer itemTypeId= (WoWReforgedBackpacks___BackpackItemType[(index)]) // INLINED!! + local integer itemTypeId= (WoWReforgedBackpacks__BackpackItemType[(index)]) // INLINED!! local integer c= 0 local integer cDefault= 0 //call BJDebugMsg("Entering item " + I2S(index)) if ( itemTypeId != 0 ) then - if ( (WoWReforgedBackpacks___BackpackItemPawnable[(index)]) ) then // INLINED!! + if ( (WoWReforgedBackpacks__BackpackItemPawnable[(index)]) ) then // INLINED!! set tooltip=GetObjectName(itemTypeId) - if ( (WoWReforgedBackpacks___BackpackItemCharges[(index)]) > 1 ) then // INLINED!! - set tooltip=tooltip + " (|cffffcc00" + I2S((WoWReforgedBackpacks___BackpackItemCharges[(index)])) + "|r)" // INLINED!! + if ( (WoWReforgedBackpacks__BackpackItemCharges[(index)]) > 1 ) then // INLINED!! + set tooltip=tooltip + " (|cffffcc00" + I2S((WoWReforgedBackpacks__BackpackItemCharges[(index)])) + "|r)" // INLINED!! endif set tooltip=tooltip + "|n" if ( GetItemValueGold(itemTypeId) > 0 ) then //call BlzFrameSetVisible(BackpackItemGoldIconFrame[playerId], true) - set tooltip=tooltip + "|cffFCD20D" + I2S(IMaxBJ(1, (WoWReforgedBackpacks___BackpackItemCharges[(index)])) * GetItemValueGold(itemTypeId)) + " Gold|r" // INLINED!! + set tooltip=tooltip + "|cffFCD20D" + I2S(IMaxBJ(1, (WoWReforgedBackpacks__BackpackItemCharges[(index)])) * GetItemValueGold(itemTypeId)) + " Gold|r" // INLINED!! else //call BlzFrameSetVisible(BackpackItemGoldIconFrame[playerId], false) endif @@ -73588,11 +73588,11 @@ function WoWReforgedBackpackUI___EnterItemFunction takes nothing returns nothing set tooltip=tooltip + " " endif - set tooltip=tooltip + "|cffFCD20D" + I2S(IMaxBJ(1, (WoWReforgedBackpacks___BackpackItemCharges[(index)])) * GetItemValueLumber(itemTypeId)) + " Lumber|r" // INLINED!! + set tooltip=tooltip + "|cffFCD20D" + I2S(IMaxBJ(1, (WoWReforgedBackpacks__BackpackItemCharges[(index)])) * GetItemValueLumber(itemTypeId)) + " Lumber|r" // INLINED!! endif else //call BlzFrameSetVisible(BackpackItemGoldIconFrame[playerId], false) - set tooltip=GetObjectName(itemTypeId) + "|n|n" + (WoWReforgedBackpacks___BackpackItemTooltipExtended[(index)]) // INLINED!! + set tooltip=GetObjectName(itemTypeId) + "|n|n" + (WoWReforgedBackpacks__BackpackItemTooltipExtended[(index)]) // INLINED!! endif else //call BlzFrameSetVisible(BackpackItemGoldIconFrame[playerId], false) @@ -73602,84 +73602,84 @@ function WoWReforgedBackpackUI___EnterItemFunction takes nothing returns nothing set c=GetPagedButtonsConfig(itemTypeId) set cDefault=GetPagedButtonsConfig(0) - if ( (WoWReforgedBackpacks___BackpackItemPawnable[(index)]) ) then // INLINED!! - set tooltip=tooltip + "|n|n|cff808080Drop item on shop to sell|R|n" + (WoWReforgedBackpacks___BackpackItemTooltipExtended[(index)]) // INLINED!! + if ( (WoWReforgedBackpacks__BackpackItemPawnable[(index)]) ) then // INLINED!! + set tooltip=tooltip + "|n|n|cff808080Drop item on shop to sell|R|n" + (WoWReforgedBackpacks__BackpackItemTooltipExtended[(index)]) // INLINED!! endif - if ( (WoWReforgedBackpacks___BackpackItemPlayer[(index)]) != null and (WoWReforgedBackpacks___BackpackItemPlayer[(index)]) != Player(PLAYER_NEUTRAL_PASSIVE) ) then // INLINED!! - set tooltip=tooltip + "|n|nOwner: " + GetPlayerNameColored((WoWReforgedBackpacks___BackpackItemPlayer[(index)])) // INLINED!! + if ( (WoWReforgedBackpacks__BackpackItemPlayer[(index)]) != null and (WoWReforgedBackpacks__BackpackItemPlayer[(index)]) != Player(PLAYER_NEUTRAL_PASSIVE) ) then // INLINED!! + set tooltip=tooltip + "|n|nOwner: " + GetPlayerNameColored((WoWReforgedBackpacks__BackpackItemPlayer[(index)])) // INLINED!! endif if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetTexture(WoWReforgedBackpackUI___BackpackTooltipIcon, GetIconByItemType(itemTypeId), 0, false) + call BlzFrameSetTexture(WoWReforgedBackpackUI__BackpackTooltipIcon, GetIconByItemType(itemTypeId), 0, false) //call BJDebugMsg("Icon " + GetIconByItemType(itemTypeId) + " for item type " + GetObjectName(itemTypeId)) if ( c != 0 ) then - call BlzFrameSetModel(WoWReforgedBackpackUI___BackpackTooltipModel, s__PagedButtonsConfig_modelPath[c], 1) - call BlzFrameSetScale(WoWReforgedBackpackUI___BackpackTooltipModel, s__PagedButtonsConfig_modelScale[c]) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipModel, FRAMEPOINT_CENTER, s__PagedButtonsConfig_modelX[c], s__PagedButtonsConfig_modelY[c]) + call BlzFrameSetModel(WoWReforgedBackpackUI__BackpackTooltipModel, s__PagedButtonsConfig_modelPath[c], 1) + call BlzFrameSetScale(WoWReforgedBackpackUI__BackpackTooltipModel, s__PagedButtonsConfig_modelScale[c]) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipModel, FRAMEPOINT_CENTER, s__PagedButtonsConfig_modelX[c], s__PagedButtonsConfig_modelY[c]) else - call BlzFrameSetModel(WoWReforgedBackpackUI___BackpackTooltipModel, GetItemTypeModel(itemTypeId), 0) - call BlzFrameSetScale(WoWReforgedBackpackUI___BackpackTooltipModel, s__PagedButtonsConfig_modelScale[cDefault]) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipModel, FRAMEPOINT_CENTER, s__PagedButtonsConfig_modelX[cDefault], s__PagedButtonsConfig_modelY[cDefault]) + call BlzFrameSetModel(WoWReforgedBackpackUI__BackpackTooltipModel, GetItemTypeModel(itemTypeId), 0) + call BlzFrameSetScale(WoWReforgedBackpackUI__BackpackTooltipModel, s__PagedButtonsConfig_modelScale[cDefault]) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipModel, FRAMEPOINT_CENTER, s__PagedButtonsConfig_modelX[cDefault], s__PagedButtonsConfig_modelY[cDefault]) endif - call BlzFrameSetSpriteAnimate(WoWReforgedBackpackUI___BackpackTooltipModel, 2, 0) + call BlzFrameSetSpriteAnimate(WoWReforgedBackpackUI__BackpackTooltipModel, 2, 0) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipIcon, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipModel, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipIcon, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipModel, true) endif else if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipIcon, false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipModel, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipIcon, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipModel, false) endif endif set tooltip=tooltip + "|n|n|cff808080Click to open the bag.|R|n" if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackTooltipText, tooltip) + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackTooltipText, tooltip) endif endfunction -function WoWReforgedBackpackUI___LeaveItemFunction takes nothing returns nothing +function WoWReforgedBackpackUI__LeaveItemFunction takes nothing returns nothing local integer playerId= GetPlayerId(GetTriggerPlayer()) local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 1))) // INLINED!! //call BJDebugMsg("Leave item " + I2S(index)) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetTexture(WoWReforgedBackpackUI___BackpackTooltipIcon, "", 0, false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipIcon, false) - call BlzFrameSetModel(WoWReforgedBackpackUI___BackpackTooltipModel, "", 0) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipModel, false) - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackTooltipText, "") + call BlzFrameSetTexture(WoWReforgedBackpackUI__BackpackTooltipIcon, "", 0, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipIcon, false) + call BlzFrameSetModel(WoWReforgedBackpackUI__BackpackTooltipModel, "", 0) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipModel, false) + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackTooltipText, "") endif endfunction -function WoWReforgedBackpackUI___CheckedFunction takes nothing returns nothing - set WoWReforgedBackpackUI___Checked[GetPlayerId(GetTriggerPlayer())]=true +function WoWReforgedBackpackUI__CheckedFunction takes nothing returns nothing + set WoWReforgedBackpackUI__Checked[GetPlayerId(GetTriggerPlayer())]=true call ShowBackpackUI(GetTriggerPlayer()) endfunction -function WoWReforgedBackpackUI___UncheckedFunction takes nothing returns nothing - set WoWReforgedBackpackUI___Checked[GetPlayerId(GetTriggerPlayer())]=false +function WoWReforgedBackpackUI__UncheckedFunction takes nothing returns nothing + set WoWReforgedBackpackUI__Checked[GetPlayerId(GetTriggerPlayer())]=false call ShowBackpackUI(GetTriggerPlayer()) endfunction -function WoWReforgedBackpackUI___CheckboxEnterItemFunction takes nothing returns nothing +function WoWReforgedBackpackUI__CheckboxEnterItemFunction takes nothing returns nothing local integer playerId= GetPlayerId(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackTooltipText, "Hide bag numbers.") + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackTooltipText, "Hide bag numbers.") endif endfunction -function WoWReforgedBackpackUI___CheckboxLeaveItemFunction takes nothing returns nothing +function WoWReforgedBackpackUI__CheckboxLeaveItemFunction takes nothing returns nothing local integer playerId= GetPlayerId(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackTooltipText, "") + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackTooltipText, "") endif endfunction -function WoWReforgedBackpackUI___CloseFunction takes nothing returns nothing +function WoWReforgedBackpackUI__CloseFunction takes nothing returns nothing call HideBackpackUI(GetTriggerPlayer()) endfunction @@ -73690,12 +73690,12 @@ function CreateBackpackUI takes nothing returns nothing local real y= 0.0 local integer index= 0 - set WoWReforgedBackpackUI___BackpackBackgroundFrame=CreateFullScreenFrame() - set WoWReforgedBackpackUI___BackpackTitleFrame=CreateFullScreenTitle("BackpackTitle" , "Backpack") - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTitleFrame, false) + set WoWReforgedBackpackUI__BackpackBackgroundFrame=CreateFullScreenFrame() + set WoWReforgedBackpackUI__BackpackTitleFrame=CreateFullScreenTitle("BackpackTitle" , "Backpack") + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTitleFrame, false) - set x=WoWReforgedBackpackUI___UI_SLOT_X - set y=WoWReforgedBackpackUI___UI_SLOT_Y + set x=WoWReforgedBackpackUI__UI_SLOT_X + set y=WoWReforgedBackpackUI__UI_SLOT_Y set i=0 loop exitwhen ( i == BACKPACK_MAX_PAGES ) @@ -73703,72 +73703,72 @@ function CreateBackpackUI takes nothing returns nothing loop exitwhen ( j == bj_MAX_INVENTORY ) set index=Index2D(i , j , bj_MAX_INVENTORY) - set WoWReforgedBackpackUI___BackpackItemFrame[index]=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemFrame[index], FRAMEPOINT_TOPLEFT, x, y) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemFrame[index], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE, y - WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE) + set WoWReforgedBackpackUI__BackpackItemFrame[index]=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemFrame[index], FRAMEPOINT_TOPLEFT, x, y) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemFrame[index], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE, y - WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE) //call BlzFrameSetTexture(BackpackItemFrame[index], GetIconByItemType(0), 0, true) //call BlzFrameSetText(BackpackItemFrame[index], I2S(index)) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemFrame[index], false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemFrame[index], false) - set WoWReforgedBackpackUI___BackpackItemBackdropFrame[index]=BlzCreateFrameByType("BACKDROP", "BackdropFrame" + I2S(index), WoWReforgedBackpackUI___BackpackItemFrame[index], "", 1) - call BlzFrameSetAllPoints(WoWReforgedBackpackUI___BackpackItemBackdropFrame[index], WoWReforgedBackpackUI___BackpackItemFrame[index]) + set WoWReforgedBackpackUI__BackpackItemBackdropFrame[index]=BlzCreateFrameByType("BACKDROP", "BackdropFrame" + I2S(index), WoWReforgedBackpackUI__BackpackItemFrame[index], "", 1) + call BlzFrameSetAllPoints(WoWReforgedBackpackUI__BackpackItemBackdropFrame[index], WoWReforgedBackpackUI__BackpackItemFrame[index]) // call BlzFrameSetTexture(BackpackItemBackdropFrame[index], "UI\\Widgets\\Console\\Human\\human-inventory-slotfiller.blp", 0, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBackdropFrame[index], false) - - set WoWReforgedBackpackUI___BackpackItemTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI___BackpackItemTrigger[index], WoWReforgedBackpackUI___BackpackItemFrame[index], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedBackpackUI___BackpackItemTrigger[index], function BackpackClickItemFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI___BackpackItemTrigger[index] )), ( 1 ), ( index)) // INLINED!! - call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI___BackpackItemTrigger[index] )), ( 2 ), ( i)) // INLINED!! - call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI___BackpackItemTrigger[index] )), ( 3 ), ( j)) // INLINED!! - - set WoWReforgedBackpackUI___BackpackItemTooltipOnTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI___BackpackItemTooltipOnTrigger[index], WoWReforgedBackpackUI___BackpackItemFrame[index], FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedBackpackUI___BackpackItemTooltipOnTrigger[index], function WoWReforgedBackpackUI___EnterItemFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI___BackpackItemTooltipOnTrigger[index] )), ( 1 ), ( index)) // INLINED!! - call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI___BackpackItemTooltipOnTrigger[index] )), ( 2 ), ( i)) // INLINED!! - call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI___BackpackItemTooltipOnTrigger[index] )), ( 3 ), ( j)) // INLINED!! - - set WoWReforgedBackpackUI___BackpackItemTooltipOffTrigger[index]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI___BackpackItemTooltipOffTrigger[index], WoWReforgedBackpackUI___BackpackItemFrame[index], FRAMEEVENT_MOUSE_LEAVE) - call TriggerAddAction(WoWReforgedBackpackUI___BackpackItemTooltipOffTrigger[index], function WoWReforgedBackpackUI___LeaveItemFunction) - call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI___BackpackItemTooltipOffTrigger[index] )), ( 1 ), ( index)) // INLINED!! + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBackdropFrame[index], false) + + set WoWReforgedBackpackUI__BackpackItemTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI__BackpackItemTrigger[index], WoWReforgedBackpackUI__BackpackItemFrame[index], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedBackpackUI__BackpackItemTrigger[index], function BackpackClickItemFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI__BackpackItemTrigger[index] )), ( 1 ), ( index)) // INLINED!! + call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI__BackpackItemTrigger[index] )), ( 2 ), ( i)) // INLINED!! + call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI__BackpackItemTrigger[index] )), ( 3 ), ( j)) // INLINED!! + + set WoWReforgedBackpackUI__BackpackItemTooltipOnTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI__BackpackItemTooltipOnTrigger[index], WoWReforgedBackpackUI__BackpackItemFrame[index], FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedBackpackUI__BackpackItemTooltipOnTrigger[index], function WoWReforgedBackpackUI__EnterItemFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI__BackpackItemTooltipOnTrigger[index] )), ( 1 ), ( index)) // INLINED!! + call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI__BackpackItemTooltipOnTrigger[index] )), ( 2 ), ( i)) // INLINED!! + call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI__BackpackItemTooltipOnTrigger[index] )), ( 3 ), ( j)) // INLINED!! + + set WoWReforgedBackpackUI__BackpackItemTooltipOffTrigger[index]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI__BackpackItemTooltipOffTrigger[index], WoWReforgedBackpackUI__BackpackItemFrame[index], FRAMEEVENT_MOUSE_LEAVE) + call TriggerAddAction(WoWReforgedBackpackUI__BackpackItemTooltipOffTrigger[index], function WoWReforgedBackpackUI__LeaveItemFunction) + call SaveInteger(udg_DB, GetHandleId((WoWReforgedBackpackUI__BackpackItemTooltipOffTrigger[index] )), ( 1 ), ( index)) // INLINED!! // TODO Mouse down and mouse up to drag & drop to another bag or switch or do it like Warcraft's inventory with right click and left click. Add the icon of the item to the mouse cursor. If you click on the map it is dropped, if you click on the inventory it is dropped there. - set WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index]=BlzCreateFrameByType("BACKDROP", "ItemBagBackrgroundFrame" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index], FRAMEPOINT_TOPLEFT, x, y) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedBackpackUI___BACKPACK_UI_CHARGES_BACKGROUND_SIZE, y - WoWReforgedBackpackUI___BACKPACK_UI_CHARGES_BACKGROUND_SIZE) - call BlzFrameSetTexture(WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index], "ui\\widgets\\console\\human\\commandbutton\\human-button-lvls-overlay.blp", 0, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index], false) - call BlzFrameSetLevel(WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index], 1) - - set WoWReforgedBackpackUI___BackpackItemBagFrame[index]=BlzCreateFrameByType("TEXT", "bag" + I2S(index), WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index], "", 0) - call BlzFrameSetAllPoints(WoWReforgedBackpackUI___BackpackItemBagFrame[index], WoWReforgedBackpackUI___BackpackItemBagBackgroundFrame[index]) - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackItemBagFrame[index], I2S(i + 1)) - call BlzFrameSetTextAlignment(WoWReforgedBackpackUI___BackpackItemBagFrame[index], TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_CENTER) - call BlzFrameSetScale(WoWReforgedBackpackUI___BackpackItemBagFrame[index], 0.7) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemBagFrame[index], false) - call BlzFrameSetEnable(WoWReforgedBackpackUI___BackpackItemBagFrame[index], false) - call BlzFrameSetLevel(WoWReforgedBackpackUI___BackpackItemBagFrame[index], 2) + set WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index]=BlzCreateFrameByType("BACKDROP", "ItemBagBackrgroundFrame" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index], FRAMEPOINT_TOPLEFT, x, y) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedBackpackUI__BACKPACK_UI_CHARGES_BACKGROUND_SIZE, y - WoWReforgedBackpackUI__BACKPACK_UI_CHARGES_BACKGROUND_SIZE) + call BlzFrameSetTexture(WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index], "ui\\widgets\\console\\human\\commandbutton\\human-button-lvls-overlay.blp", 0, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index], false) + call BlzFrameSetLevel(WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index], 1) + + set WoWReforgedBackpackUI__BackpackItemBagFrame[index]=BlzCreateFrameByType("TEXT", "bag" + I2S(index), WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index], "", 0) + call BlzFrameSetAllPoints(WoWReforgedBackpackUI__BackpackItemBagFrame[index], WoWReforgedBackpackUI__BackpackItemBagBackgroundFrame[index]) + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackItemBagFrame[index], I2S(i + 1)) + call BlzFrameSetTextAlignment(WoWReforgedBackpackUI__BackpackItemBagFrame[index], TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_CENTER) + call BlzFrameSetScale(WoWReforgedBackpackUI__BackpackItemBagFrame[index], 0.7) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemBagFrame[index], false) + call BlzFrameSetEnable(WoWReforgedBackpackUI__BackpackItemBagFrame[index], false) + call BlzFrameSetLevel(WoWReforgedBackpackUI__BackpackItemBagFrame[index], 2) - set WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index]=BlzCreateFrameByType("BACKDROP", "ItemChargesBackrgroundFrame" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], FRAMEPOINT_TOPLEFT, x + WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE - WoWReforgedBackpackUI___BACKPACK_UI_CHARGES_BACKGROUND_SIZE, y - WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE + WoWReforgedBackpackUI___BACKPACK_UI_CHARGES_BACKGROUND_SIZE) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE, y - WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE) - call BlzFrameSetTexture(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], "ui\\widgets\\console\\human\\commandbutton\\human-button-lvls-overlay.blp", 0, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], false) - call BlzFrameSetLevel(WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], 1) - - set WoWReforgedBackpackUI___BackpackItemChargesFrame[index]=BlzCreateFrameByType("TEXT", "charges" + I2S(index), WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index], "", 0) - call BlzFrameSetAllPoints(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], WoWReforgedBackpackUI___BackpackItemChargesBackgroundFrame[index]) - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], "|cffFFFFFFCharges|r") - call BlzFrameSetTextAlignment(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_CENTER) - call BlzFrameSetScale(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], 0.7) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], false) - call BlzFrameSetEnable(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], false) - call BlzFrameSetLevel(WoWReforgedBackpackUI___BackpackItemChargesFrame[index], 2) - - set x=x + WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE + WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SPACE + set WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index]=BlzCreateFrameByType("BACKDROP", "ItemChargesBackrgroundFrame" + I2S(index), BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], FRAMEPOINT_TOPLEFT, x + WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE - WoWReforgedBackpackUI__BACKPACK_UI_CHARGES_BACKGROUND_SIZE, y - WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE + WoWReforgedBackpackUI__BACKPACK_UI_CHARGES_BACKGROUND_SIZE) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE, y - WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE) + call BlzFrameSetTexture(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], "ui\\widgets\\console\\human\\commandbutton\\human-button-lvls-overlay.blp", 0, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], false) + call BlzFrameSetLevel(WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], 1) + + set WoWReforgedBackpackUI__BackpackItemChargesFrame[index]=BlzCreateFrameByType("TEXT", "charges" + I2S(index), WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index], "", 0) + call BlzFrameSetAllPoints(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], WoWReforgedBackpackUI__BackpackItemChargesBackgroundFrame[index]) + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], "|cffFFFFFFCharges|r") + call BlzFrameSetTextAlignment(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_CENTER) + call BlzFrameSetScale(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], 0.7) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], false) + call BlzFrameSetEnable(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], false) + call BlzFrameSetLevel(WoWReforgedBackpackUI__BackpackItemChargesFrame[index], 2) + + set x=x + WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE + WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SPACE set j=j + 1 endloop @@ -73777,84 +73777,84 @@ function CreateBackpackUI takes nothing returns nothing // every 3 bags start another line if ( ModuloInteger(i, 3) == 0 ) then - set x=WoWReforgedBackpackUI___UI_SLOT_X - set y=y - WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SIZE - WoWReforgedBackpackUI___BACKPACK_UI_BUTTON_SPACE + set x=WoWReforgedBackpackUI__UI_SLOT_X + set y=y - WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SIZE - WoWReforgedBackpackUI__BACKPACK_UI_BUTTON_SPACE endif endloop - set WoWReforgedBackpackUI___BackpackTooltipFrame=BlzCreateFrame("EscMenuBackdrop", WoWReforgedBackpackUI___BackpackBackgroundFrame, 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipFrame, FRAMEPOINT_TOPLEFT, WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_X, WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_Y) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_X + WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_WIDTH, WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_Y - WoWReforgedBackpackUI___UI_TOOLTIP_FRAME_HEIGHT) + set WoWReforgedBackpackUI__BackpackTooltipFrame=BlzCreateFrame("EscMenuBackdrop", WoWReforgedBackpackUI__BackpackBackgroundFrame, 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipFrame, FRAMEPOINT_TOPLEFT, WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_X, WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_Y) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_X + WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_WIDTH, WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_Y - WoWReforgedBackpackUI__UI_TOOLTIP_FRAME_HEIGHT) - set WoWReforgedBackpackUI___BackpackItemGoldFrame=BlzCreateFrame("BACKDROP", WoWReforgedBackpackUI___BackpackBackgroundFrame, 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemGoldFrame, FRAMEPOINT_TOPLEFT, 0.69, 0.50) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemGoldFrame, FRAMEPOINT_BOTTOMRIGHT, 0.71, 0.48) + set WoWReforgedBackpackUI__BackpackItemGoldFrame=BlzCreateFrame("BACKDROP", WoWReforgedBackpackUI__BackpackBackgroundFrame, 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemGoldFrame, FRAMEPOINT_TOPLEFT, 0.69, 0.50) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemGoldFrame, FRAMEPOINT_BOTTOMRIGHT, 0.71, 0.48) //call BlzFrameSetAllPoints(BackpackItemGoldFrame, BackpackBackgroundFrame) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemGoldFrame, false) - - set WoWReforgedBackpackUI___BackpackItemGoldIconFrame=BlzCreateFrameByType("BACKDROP", "TooltipGoldFrame", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemGoldIconFrame, FRAMEPOINT_TOPLEFT, 0.67, 0.50) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackItemGoldIconFrame, FRAMEPOINT_BOTTOMRIGHT, 0.69, 0.48) - call BlzFrameSetTexture(WoWReforgedBackpackUI___BackpackItemGoldIconFrame, "UI\\Feedback\\Resources\\ResourceGold.blp", 0, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackItemGoldIconFrame, false) - - set WoWReforgedBackpackUI___BackpackTooltipIcon=BlzCreateFrameByType("BACKDROP", "TooltipIconFrame", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipIcon, FRAMEPOINT_TOPLEFT, WoWReforgedBackpackUI___UI_TOOLTIP_ICON_X, WoWReforgedBackpackUI___UI_TOOLTIP_ICON_Y) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipIcon, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedBackpackUI___UI_TOOLTIP_ICON_X + WoWReforgedBackpackUI___UI_TOOLTIP_ICON_SIZE, WoWReforgedBackpackUI___UI_TOOLTIP_ICON_Y - WoWReforgedBackpackUI___UI_TOOLTIP_ICON_SIZE) - call BlzFrameSetTexture(WoWReforgedBackpackUI___BackpackTooltipIcon, "ReplaceableTextures\\WorldEditUI\\Editor-Random-Item.blp", 0, true) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipIcon, false) - - - set WoWReforgedBackpackUI___BackpackTooltipModel=BlzCreateFrameByType("SPRITE", "TooltipModelFrame", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipModel, FRAMEPOINT_TOPLEFT, 0.65, 0.20) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipModel, FRAMEPOINT_BOTTOMRIGHT, 0.70, 0.12) - call BlzFrameSetModel(WoWReforgedBackpackUI___BackpackTooltipModel, "Abilities\\Weapons\\RockBoltMissile\\RockBoltMissile.mdl", 0) - call BlzFrameSetScale(WoWReforgedBackpackUI___BackpackTooltipModel, 0.00006) - call BlzFrameSetSpriteAnimate(WoWReforgedBackpackUI___BackpackTooltipModel, 2, 0) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackTooltipModel, false) - - set WoWReforgedBackpackUI___BackpackTooltipText=BlzCreateFrameByType("TEXT", "BackpackTooltipText", WoWReforgedBackpackUI___BackpackBackgroundFrame, "", 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipText, FRAMEPOINT_TOPLEFT, WoWReforgedBackpackUI___UI_TOOLTIP_X, WoWReforgedBackpackUI___UI_TOOLTIP_Y) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___BackpackTooltipText, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedBackpackUI___UI_TOOLTIP_X + WoWReforgedBackpackUI___UI_TOOLTIP_WIDTH, WoWReforgedBackpackUI___UI_TOOLTIP_Y - WoWReforgedBackpackUI___UI_TOOLTIP_HEIGHT) - call BlzFrameSetText(WoWReforgedBackpackUI___BackpackTooltipText, "") - call BlzFrameSetEnable(WoWReforgedBackpackUI___BackpackTooltipText, false) - call BlzFrameSetScale(WoWReforgedBackpackUI___BackpackTooltipText, 1.00) - call BlzFrameSetTextAlignment(WoWReforgedBackpackUI___BackpackTooltipText, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemGoldFrame, false) + + set WoWReforgedBackpackUI__BackpackItemGoldIconFrame=BlzCreateFrameByType("BACKDROP", "TooltipGoldFrame", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemGoldIconFrame, FRAMEPOINT_TOPLEFT, 0.67, 0.50) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackItemGoldIconFrame, FRAMEPOINT_BOTTOMRIGHT, 0.69, 0.48) + call BlzFrameSetTexture(WoWReforgedBackpackUI__BackpackItemGoldIconFrame, "UI\\Feedback\\Resources\\ResourceGold.blp", 0, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackItemGoldIconFrame, false) + + set WoWReforgedBackpackUI__BackpackTooltipIcon=BlzCreateFrameByType("BACKDROP", "TooltipIconFrame", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipIcon, FRAMEPOINT_TOPLEFT, WoWReforgedBackpackUI__UI_TOOLTIP_ICON_X, WoWReforgedBackpackUI__UI_TOOLTIP_ICON_Y) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipIcon, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedBackpackUI__UI_TOOLTIP_ICON_X + WoWReforgedBackpackUI__UI_TOOLTIP_ICON_SIZE, WoWReforgedBackpackUI__UI_TOOLTIP_ICON_Y - WoWReforgedBackpackUI__UI_TOOLTIP_ICON_SIZE) + call BlzFrameSetTexture(WoWReforgedBackpackUI__BackpackTooltipIcon, "ReplaceableTextures\\WorldEditUI\\Editor-Random-Item.blp", 0, true) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipIcon, false) + + + set WoWReforgedBackpackUI__BackpackTooltipModel=BlzCreateFrameByType("SPRITE", "TooltipModelFrame", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipModel, FRAMEPOINT_TOPLEFT, 0.65, 0.20) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipModel, FRAMEPOINT_BOTTOMRIGHT, 0.70, 0.12) + call BlzFrameSetModel(WoWReforgedBackpackUI__BackpackTooltipModel, "Abilities\\Weapons\\RockBoltMissile\\RockBoltMissile.mdl", 0) + call BlzFrameSetScale(WoWReforgedBackpackUI__BackpackTooltipModel, 0.00006) + call BlzFrameSetSpriteAnimate(WoWReforgedBackpackUI__BackpackTooltipModel, 2, 0) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackTooltipModel, false) + + set WoWReforgedBackpackUI__BackpackTooltipText=BlzCreateFrameByType("TEXT", "BackpackTooltipText", WoWReforgedBackpackUI__BackpackBackgroundFrame, "", 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipText, FRAMEPOINT_TOPLEFT, WoWReforgedBackpackUI__UI_TOOLTIP_X, WoWReforgedBackpackUI__UI_TOOLTIP_Y) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__BackpackTooltipText, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedBackpackUI__UI_TOOLTIP_X + WoWReforgedBackpackUI__UI_TOOLTIP_WIDTH, WoWReforgedBackpackUI__UI_TOOLTIP_Y - WoWReforgedBackpackUI__UI_TOOLTIP_HEIGHT) + call BlzFrameSetText(WoWReforgedBackpackUI__BackpackTooltipText, "") + call BlzFrameSetEnable(WoWReforgedBackpackUI__BackpackTooltipText, false) + call BlzFrameSetScale(WoWReforgedBackpackUI__BackpackTooltipText, 1.00) + call BlzFrameSetTextAlignment(WoWReforgedBackpackUI__BackpackTooltipText, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) //call BlzFrameSetTooltip(Frame05, BackpackTooltipText) - set WoWReforgedBackpackUI___Checkbox=BlzCreateFrame("QuestCheckBox2", WoWReforgedBackpackUI___BackpackBackgroundFrame, 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___Checkbox, FRAMEPOINT_TOPLEFT, WoWReforgedBackpackUI___UI_CHECKBOX_X, WoWReforgedBackpackUI___UI_CHECKBOX_Y) - call BlzFrameSetAbsPoint(WoWReforgedBackpackUI___Checkbox, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedBackpackUI___UI_CHECKBOX_X + WoWReforgedBackpackUI___UI_CHECKBOX_SIZE, WoWReforgedBackpackUI___UI_CHECKBOX_Y - WoWReforgedBackpackUI___UI_CHECKBOX_SIZE) - call BlzFrameSetScale(WoWReforgedBackpackUI___Checkbox, 1.00) + set WoWReforgedBackpackUI__Checkbox=BlzCreateFrame("QuestCheckBox2", WoWReforgedBackpackUI__BackpackBackgroundFrame, 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__Checkbox, FRAMEPOINT_TOPLEFT, WoWReforgedBackpackUI__UI_CHECKBOX_X, WoWReforgedBackpackUI__UI_CHECKBOX_Y) + call BlzFrameSetAbsPoint(WoWReforgedBackpackUI__Checkbox, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedBackpackUI__UI_CHECKBOX_X + WoWReforgedBackpackUI__UI_CHECKBOX_SIZE, WoWReforgedBackpackUI__UI_CHECKBOX_Y - WoWReforgedBackpackUI__UI_CHECKBOX_SIZE) + call BlzFrameSetScale(WoWReforgedBackpackUI__Checkbox, 1.00) - set WoWReforgedBackpackUI___CheckTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI___CheckTrigger, WoWReforgedBackpackUI___Checkbox, FRAMEEVENT_CHECKBOX_CHECKED) - call TriggerAddAction(WoWReforgedBackpackUI___CheckTrigger, function WoWReforgedBackpackUI___CheckedFunction) + set WoWReforgedBackpackUI__CheckTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI__CheckTrigger, WoWReforgedBackpackUI__Checkbox, FRAMEEVENT_CHECKBOX_CHECKED) + call TriggerAddAction(WoWReforgedBackpackUI__CheckTrigger, function WoWReforgedBackpackUI__CheckedFunction) - set WoWReforgedBackpackUI___UncheckTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI___UncheckTrigger, WoWReforgedBackpackUI___Checkbox, FRAMEEVENT_CHECKBOX_UNCHECKED) - call TriggerAddAction(WoWReforgedBackpackUI___UncheckTrigger, function WoWReforgedBackpackUI___UncheckedFunction) + set WoWReforgedBackpackUI__UncheckTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI__UncheckTrigger, WoWReforgedBackpackUI__Checkbox, FRAMEEVENT_CHECKBOX_UNCHECKED) + call TriggerAddAction(WoWReforgedBackpackUI__UncheckTrigger, function WoWReforgedBackpackUI__UncheckedFunction) - set WoWReforgedBackpackUI___CheckboxTooltipOnTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI___CheckboxTooltipOnTrigger, WoWReforgedBackpackUI___Checkbox, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedBackpackUI___CheckboxTooltipOnTrigger, function WoWReforgedBackpackUI___CheckboxEnterItemFunction) + set WoWReforgedBackpackUI__CheckboxTooltipOnTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI__CheckboxTooltipOnTrigger, WoWReforgedBackpackUI__Checkbox, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedBackpackUI__CheckboxTooltipOnTrigger, function WoWReforgedBackpackUI__CheckboxEnterItemFunction) - set WoWReforgedBackpackUI___CheckboxTooltipOffTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI___CheckboxTooltipOffTrigger, WoWReforgedBackpackUI___Checkbox, FRAMEEVENT_MOUSE_LEAVE) - call TriggerAddAction(WoWReforgedBackpackUI___CheckboxTooltipOffTrigger, function WoWReforgedBackpackUI___CheckboxLeaveItemFunction) + set WoWReforgedBackpackUI__CheckboxTooltipOffTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI__CheckboxTooltipOffTrigger, WoWReforgedBackpackUI__Checkbox, FRAMEEVENT_MOUSE_LEAVE) + call TriggerAddAction(WoWReforgedBackpackUI__CheckboxTooltipOffTrigger, function WoWReforgedBackpackUI__CheckboxLeaveItemFunction) - set WoWReforgedBackpackUI___BackpackCloseButton=CreateFullScreenCloseButton() + set WoWReforgedBackpackUI__BackpackCloseButton=CreateFullScreenCloseButton() - set WoWReforgedBackpackUI___BackpackCloseTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI___BackpackCloseTrigger, WoWReforgedBackpackUI___BackpackCloseButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedBackpackUI___BackpackCloseTrigger, function WoWReforgedBackpackUI___CloseFunction) + set WoWReforgedBackpackUI__BackpackCloseTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedBackpackUI__BackpackCloseTrigger, WoWReforgedBackpackUI__BackpackCloseButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedBackpackUI__BackpackCloseTrigger, function WoWReforgedBackpackUI__CloseFunction) - set WoWReforgedBackpackUI___BackpackSyncTrigger=CreateTrigger() - call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedBackpackUI___BackpackSyncTrigger , "BackpackUI" , false) - call TriggerAddAction(WoWReforgedBackpackUI___BackpackSyncTrigger, function WoWReforgedBackpackUI___TriggerActionSyncData) + set WoWReforgedBackpackUI__BackpackSyncTrigger=CreateTrigger() + call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedBackpackUI__BackpackSyncTrigger , "BackpackUI" , false) + call TriggerAddAction(WoWReforgedBackpackUI__BackpackSyncTrigger, function WoWReforgedBackpackUI__TriggerActionSyncData) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackBackgroundFrame, false) - call BlzFrameSetVisible(WoWReforgedBackpackUI___BackpackCloseButton, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackBackgroundFrame, false) + call BlzFrameSetVisible(WoWReforgedBackpackUI__BackpackCloseButton, false) //call FrameSaverAdd(function HideBackpackUIForAllPlayers) endfunction @@ -73905,7 +73905,7 @@ endfunction //library WoWReforgedDemigod ends //library WoWReforgedHeroTransformation: -function WoWReforgedHeroTransformation__GetHeroIndex takes unit hero returns integer +function WoWReforgedHeroTransformation___GetHeroIndex takes unit hero returns integer local player owner= GetOwningPlayer(hero) local integer result= - 1 if ( (udg_Hero[GetPlayerId((owner))]) == hero ) then // INLINED!! @@ -73928,7 +73928,7 @@ function ReplaceHeroForTransformation takes unit hero,integer unitTypeId returns local unit replacedUnit= ReplaceHero(hero , unitTypeId , bj_UNIT_STATE_METHOD_RELATIVE , true , false) if ( heroStandardAbilityIndex != - 1 ) then call RemoveStandardHeroAbilitiesForHero(replacedUnit) - call UnitAddAbility(replacedUnit, (s__WoWReforgedStandardHeroAbilities___A_abilityId[WoWReforgedStandardHeroAbilities___standardHeroAbilities[(heroStandardAbilityIndex)]])) // INLINED!! + call UnitAddAbility(replacedUnit, (s__WoWReforgedStandardHeroAbilities__A_abilityId[WoWReforgedStandardHeroAbilities__standardHeroAbilities[(heroStandardAbilityIndex)]])) // INLINED!! endif if ( IsPlayerInForce(GetLocalPlayer(), selectedForce) ) then // Use only local code (no net traffic) within this block to avoid desyncs. @@ -73943,32 +73943,32 @@ function ReplaceHeroForTransformation takes unit hero,integer unitTypeId returns endfunction - function s__WoWReforgedHeroTransformation__HeroTransformationItemType_getUnitTypeId takes integer this,unit source returns integer + function s__WoWReforgedHeroTransformation___HeroTransformationItemType_getUnitTypeId takes integer this,unit source returns integer local integer sourcePrimaryAttribute= BlzGetUnitIntegerField(source, UNIT_IF_PRIMARY_ATTRIBUTE) if ( sourcePrimaryAttribute == 3 ) then - return s__WoWReforgedHeroTransformation__HeroTransformationItemType_agilityUnitTypeId[this] + return s__WoWReforgedHeroTransformation___HeroTransformationItemType_agilityUnitTypeId[this] elseif ( sourcePrimaryAttribute == 2 ) then - return s__WoWReforgedHeroTransformation__HeroTransformationItemType_intelligenceUnitTypeId[this] + return s__WoWReforgedHeroTransformation___HeroTransformationItemType_intelligenceUnitTypeId[this] endif - return s__WoWReforgedHeroTransformation__HeroTransformationItemType_strengthUnitTypeId[this] + return s__WoWReforgedHeroTransformation___HeroTransformationItemType_strengthUnitTypeId[this] endfunction - function s__WoWReforgedHeroTransformation__HeroTransformationItemType_matchesUnit takes integer this,unit whichUnit returns boolean + function s__WoWReforgedHeroTransformation___HeroTransformationItemType_matchesUnit takes integer this,unit whichUnit returns boolean local integer unitTypeId= GetUnitTypeId(whichUnit) - return unitTypeId == s__WoWReforgedHeroTransformation__HeroTransformationItemType_strengthUnitTypeId[this] or unitTypeId == s__WoWReforgedHeroTransformation__HeroTransformationItemType_agilityUnitTypeId[this] or unitTypeId == s__WoWReforgedHeroTransformation__HeroTransformationItemType_intelligenceUnitTypeId[this] + return unitTypeId == s__WoWReforgedHeroTransformation___HeroTransformationItemType_strengthUnitTypeId[this] or unitTypeId == s__WoWReforgedHeroTransformation___HeroTransformationItemType_agilityUnitTypeId[this] or unitTypeId == s__WoWReforgedHeroTransformation___HeroTransformationItemType_intelligenceUnitTypeId[this] endfunction function AddHeroTransformationItemTypeIdEx takes integer id,integer strengthUnitTypeId,integer agilityUnitTypeId,integer intelligenceUnitTypeId returns integer - local integer index= WoWReforgedHeroTransformation__typesCounter - local integer t= s__WoWReforgedHeroTransformation__HeroTransformationItemType__allocate() - set s__WoWReforgedHeroTransformation__HeroTransformationItemType_id[t]=id - set s__WoWReforgedHeroTransformation__HeroTransformationItemType_strengthUnitTypeId[t]=strengthUnitTypeId - set s__WoWReforgedHeroTransformation__HeroTransformationItemType_agilityUnitTypeId[t]=agilityUnitTypeId - set s__WoWReforgedHeroTransformation__HeroTransformationItemType_intelligenceUnitTypeId[t]=intelligenceUnitTypeId - set WoWReforgedHeroTransformation__types[index]=t - set WoWReforgedHeroTransformation__typesCounter=WoWReforgedHeroTransformation__typesCounter + 1 + local integer index= WoWReforgedHeroTransformation___typesCounter + local integer t= s__WoWReforgedHeroTransformation___HeroTransformationItemType__allocate() + set s__WoWReforgedHeroTransformation___HeroTransformationItemType_id[t]=id + set s__WoWReforgedHeroTransformation___HeroTransformationItemType_strengthUnitTypeId[t]=strengthUnitTypeId + set s__WoWReforgedHeroTransformation___HeroTransformationItemType_agilityUnitTypeId[t]=agilityUnitTypeId + set s__WoWReforgedHeroTransformation___HeroTransformationItemType_intelligenceUnitTypeId[t]=intelligenceUnitTypeId + set WoWReforgedHeroTransformation___types[index]=t + set WoWReforgedHeroTransformation___typesCounter=WoWReforgedHeroTransformation___typesCounter + 1 return index endfunction @@ -73981,57 +73981,57 @@ function AddHeroTransformationAbilityId takes nothing returns integer endfunction function SetHeroOriginalUnitType takes player owner,integer heroIndex,integer unitTypeId returns nothing - set WoWReforgedHeroTransformation__playerHeroOriginalUnitTypeId[Index2D(GetPlayerId(owner) , 0 , WoWReforgedHeroTransformation__MAX_HEROES)]=unitTypeId + set WoWReforgedHeroTransformation___playerHeroOriginalUnitTypeId[Index2D(GetPlayerId(owner) , 0 , WoWReforgedHeroTransformation___MAX_HEROES)]=unitTypeId endfunction function GetHeroOriginalUnitType takes player owner,integer heroIndex returns integer - return WoWReforgedHeroTransformation__playerHeroOriginalUnitTypeId[Index2D(GetPlayerId(owner) , 0 , WoWReforgedHeroTransformation__MAX_HEROES)] + return WoWReforgedHeroTransformation___playerHeroOriginalUnitTypeId[Index2D(GetPlayerId(owner) , 0 , WoWReforgedHeroTransformation___MAX_HEROES)] endfunction function IsOriginalUnitTypeCustomizableAttributesHero takes unit hero returns boolean - local integer heroIndex= WoWReforgedHeroTransformation__GetHeroIndex(hero) + local integer heroIndex= WoWReforgedHeroTransformation___GetHeroIndex(hero) return heroIndex != - 1 and IsCustomizableAttributesHero(GetHeroOriginalUnitType(GetOwningPlayer(hero) , heroIndex)) endfunction -function WoWReforgedHeroTransformation__FindMatchingType takes integer id returns integer +function WoWReforgedHeroTransformation___FindMatchingType takes integer id returns integer local integer i= 0 loop - exitwhen ( i >= WoWReforgedHeroTransformation__typesCounter ) - if ( s__WoWReforgedHeroTransformation__HeroTransformationItemType_id[(WoWReforgedHeroTransformation__types[i])] == id ) then - return (WoWReforgedHeroTransformation__types[i]) + exitwhen ( i >= WoWReforgedHeroTransformation___typesCounter ) + if ( s__WoWReforgedHeroTransformation___HeroTransformationItemType_id[(WoWReforgedHeroTransformation___types[i])] == id ) then + return (WoWReforgedHeroTransformation___types[i]) endif set i=i + 1 endloop return 0 endfunction -function WoWReforgedHeroTransformation__TransformForId takes unit hero,integer id returns boolean +function WoWReforgedHeroTransformation___TransformForId takes unit hero,integer id returns boolean local player owner= GetOwningPlayer(hero) - local integer heroIndex= WoWReforgedHeroTransformation__GetHeroIndex(hero) - local integer matchingType= WoWReforgedHeroTransformation__FindMatchingType(id) + local integer heroIndex= WoWReforgedHeroTransformation___GetHeroIndex(hero) + local integer matchingType= WoWReforgedHeroTransformation___FindMatchingType(id) local boolean result= false if ( matchingType != 0 and heroIndex != - 1 ) then - call DisableTrigger(WoWReforgedHeroTransformation__pickupTrigger) + call DisableTrigger(WoWReforgedHeroTransformation___pickupTrigger) if ( GetHeroOriginalUnitType(owner , heroIndex) == 0 ) then //call BJDebugMsg("Hero original unit type: " + GetObjectName(GetUnitTypeId(hero))) call SetHeroOriginalUnitType(owner , heroIndex , GetUnitTypeId(hero)) endif - call ReplaceHeroForTransformation(hero , s__WoWReforgedHeroTransformation__HeroTransformationItemType_getUnitTypeId(matchingType,hero)) + call ReplaceHeroForTransformation(hero , s__WoWReforgedHeroTransformation___HeroTransformationItemType_getUnitTypeId(matchingType,hero)) call RefreshBackpackForPlayer(owner) call RecreateAllEquipmentBags(owner) - call EnableTrigger(WoWReforgedHeroTransformation__pickupTrigger) + call EnableTrigger(WoWReforgedHeroTransformation___pickupTrigger) set result=true endif set owner=null return result endfunction -function WoWReforgedHeroTransformation__TransformByHeroInventory takes unit hero returns nothing +function WoWReforgedHeroTransformation___TransformByHeroInventory takes unit hero returns nothing local item slotItem= null local integer i= 0 loop set slotItem=UnitItemInSlot(hero, i) - if ( slotItem != null and WoWReforgedHeroTransformation__TransformForId(hero , GetItemTypeId(slotItem)) ) then + if ( slotItem != null and WoWReforgedHeroTransformation___TransformForId(hero , GetItemTypeId(slotItem)) ) then call h__BJDebugMsg("Still transforming because of item " + GetItemName(slotItem) + " in inventory.") set slotItem=null exitwhen ( true ) @@ -74046,18 +74046,18 @@ endfunction function TransformHeroBack takes unit hero returns unit local player owner= GetOwningPlayer(hero) - local integer heroIndex= WoWReforgedHeroTransformation__GetHeroIndex(hero) + local integer heroIndex= WoWReforgedHeroTransformation___GetHeroIndex(hero) local integer i= 0 if ( heroIndex != - 1 ) then loop - exitwhen ( i >= WoWReforgedHeroTransformation__typesCounter ) + exitwhen ( i >= WoWReforgedHeroTransformation___typesCounter ) //call BJDebugMsg("Matching transform type for ability " + GetObjectName(GetSpellAbilityId()) + ": " + I2S(matchingType) + " and hero Index " + I2S(heroIndex)) - if ( heroIndex != - 1 and s__WoWReforgedHeroTransformation__HeroTransformationItemType_matchesUnit((WoWReforgedHeroTransformation__types[i]),hero) ) then + if ( heroIndex != - 1 and s__WoWReforgedHeroTransformation___HeroTransformationItemType_matchesUnit((WoWReforgedHeroTransformation___types[i]),hero) ) then call ReplaceHeroForTransformation(hero , GetHeroOriginalUnitType(owner , heroIndex)) call SetHeroOriginalUnitType(owner , heroIndex , 0) // allows transforming again call RefreshBackpackForPlayer(owner) call RecreateAllEquipmentBags(owner) - call WoWReforgedHeroTransformation__TransformByHeroInventory(GetLastReplacedUnitBJ()) + call WoWReforgedHeroTransformation___TransformByHeroInventory(GetLastReplacedUnitBJ()) return GetLastReplacedUnitBJ() endif @@ -74068,17 +74068,17 @@ function TransformHeroBack takes unit hero returns unit return hero endfunction -function WoWReforgedHeroTransformation__TriggerConditionPickup takes nothing returns boolean +function WoWReforgedHeroTransformation___TriggerConditionPickup takes nothing returns boolean local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(triggerUnit) - local integer heroIndex= WoWReforgedHeroTransformation__GetHeroIndex(triggerUnit) + local integer heroIndex= WoWReforgedHeroTransformation___GetHeroIndex(triggerUnit) local boolean result= IsUnitType(triggerUnit, UNIT_TYPE_HERO) and heroIndex != - 1 and GetHeroOriginalUnitType(owner , heroIndex) == 0 set triggerUnit=null set owner=null return result endfunction -function WoWReforgedHeroTransformation__TriggerActionPickup takes nothing returns nothing +function WoWReforgedHeroTransformation___TriggerActionPickup takes nothing returns nothing local unit hero= GetTriggerUnit() local player owner= GetOwningPlayer(hero) local item whichItem= GetManipulatedItem() @@ -74086,29 +74086,29 @@ function WoWReforgedHeroTransformation__TriggerActionPickup takes nothing return // wait for picking the item up into the inventory call TriggerSleepAction(0.0) if ( UnitHasItem(hero, whichItem) ) then - call WoWReforgedHeroTransformation__TransformForId(hero , itemTypeId) + call WoWReforgedHeroTransformation___TransformForId(hero , itemTypeId) endif set hero=null set owner=null set whichItem=null endfunction -function WoWReforgedHeroTransformation__TriggerConditionDrop takes nothing returns boolean - return IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and WoWReforgedHeroTransformation__GetHeroIndex(GetTriggerUnit()) != - 1 +function WoWReforgedHeroTransformation___TriggerConditionDrop takes nothing returns boolean + return IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and WoWReforgedHeroTransformation___GetHeroIndex(GetTriggerUnit()) != - 1 endfunction -function WoWReforgedHeroTransformation__TriggerActionDrop takes nothing returns nothing +function WoWReforgedHeroTransformation___TriggerActionDrop takes nothing returns nothing local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(triggerUnit) - local integer heroIndex= WoWReforgedHeroTransformation__GetHeroIndex(triggerUnit) - local integer matchingType= WoWReforgedHeroTransformation__FindMatchingType(GetItemTypeId(GetManipulatedItem())) - if ( matchingType != 0 and heroIndex != - 1 and s__WoWReforgedHeroTransformation__HeroTransformationItemType_matchesUnit(matchingType,triggerUnit) ) then + local integer heroIndex= WoWReforgedHeroTransformation___GetHeroIndex(triggerUnit) + local integer matchingType= WoWReforgedHeroTransformation___FindMatchingType(GetItemTypeId(GetManipulatedItem())) + if ( matchingType != 0 and heroIndex != - 1 and s__WoWReforgedHeroTransformation___HeroTransformationItemType_matchesUnit(matchingType,triggerUnit) ) then // wait for dropping the item from the inventory call TriggerSleepAction(0.0) // refresh values - set heroIndex=WoWReforgedHeroTransformation__GetHeroIndex(triggerUnit) + set heroIndex=WoWReforgedHeroTransformation___GetHeroIndex(triggerUnit) if ( heroIndex != - 1 ) then - call DisableTrigger(WoWReforgedHeroTransformation__dropTrigger) + call DisableTrigger(WoWReforgedHeroTransformation___dropTrigger) if ( GetHeroOriginalUnitType(owner , heroIndex) == 0 ) then call h__BJDebugMsg("Warning: Original unit type has not been stored.") @@ -74118,57 +74118,57 @@ function WoWReforgedHeroTransformation__TriggerActionDrop takes nothing returns call SetHeroOriginalUnitType(owner , heroIndex , 0) // allows transforming again call RefreshBackpackForPlayer(owner) call RecreateAllEquipmentBags(owner) - call EnableTrigger(WoWReforgedHeroTransformation__dropTrigger) - call WoWReforgedHeroTransformation__TransformByHeroInventory(GetLastReplacedUnitBJ()) + call EnableTrigger(WoWReforgedHeroTransformation___dropTrigger) + call WoWReforgedHeroTransformation___TransformByHeroInventory(GetLastReplacedUnitBJ()) endif endif set triggerUnit=null set owner=null endfunction -function WoWReforgedHeroTransformation__TriggerConditionCast takes nothing returns boolean - return IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and WoWReforgedHeroTransformation__GetHeroIndex(GetTriggerUnit()) != - 1 +function WoWReforgedHeroTransformation___TriggerConditionCast takes nothing returns boolean + return IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and WoWReforgedHeroTransformation___GetHeroIndex(GetTriggerUnit()) != - 1 endfunction -function WoWReforgedHeroTransformation__TriggerActionCast takes nothing returns nothing +function WoWReforgedHeroTransformation___TriggerActionCast takes nothing returns nothing local unit triggerUnit= GetTriggerUnit() local player owner= GetOwningPlayer(triggerUnit) - local integer heroIndex= WoWReforgedHeroTransformation__GetHeroIndex(triggerUnit) + local integer heroIndex= WoWReforgedHeroTransformation___GetHeroIndex(triggerUnit) local integer abilityId= GetSpellAbilityId() - local integer matchingType= WoWReforgedHeroTransformation__FindMatchingType(abilityId) + local integer matchingType= WoWReforgedHeroTransformation___FindMatchingType(abilityId) local unit u= null //call BJDebugMsg("Matching transform type for ability " + GetObjectName(GetSpellAbilityId()) + ": " + I2S(matchingType) + " and hero Index " + I2S(heroIndex)) if ( matchingType != 0 and heroIndex != - 1 ) then //if (GetHeroOriginalUnitType(owner, heroIndex) == 0) then //call TransformForId(triggerUnit, abilityId) // restore - if ( s__WoWReforgedHeroTransformation__HeroTransformationItemType_matchesUnit(matchingType,triggerUnit) ) then + if ( s__WoWReforgedHeroTransformation___HeroTransformationItemType_matchesUnit(matchingType,triggerUnit) ) then call ReplaceHeroForTransformation(triggerUnit , GetHeroOriginalUnitType(owner , heroIndex)) call SetHeroOriginalUnitType(owner , heroIndex , 0) // allows transforming again call RefreshBackpackForPlayer(owner) call RecreateAllEquipmentBags(owner) - call WoWReforgedHeroTransformation__TransformByHeroInventory(GetLastReplacedUnitBJ()) + call WoWReforgedHeroTransformation___TransformByHeroInventory(GetLastReplacedUnitBJ()) // transform else - call WoWReforgedHeroTransformation__TransformForId(triggerUnit , abilityId) + call WoWReforgedHeroTransformation___TransformForId(triggerUnit , abilityId) endif endif set triggerUnit=null set owner=null endfunction -function WoWReforgedHeroTransformation__Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroTransformation__pickupTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) - call TriggerAddCondition(WoWReforgedHeroTransformation__pickupTrigger, Condition(function WoWReforgedHeroTransformation__TriggerConditionPickup)) - call TriggerAddAction(WoWReforgedHeroTransformation__pickupTrigger, function WoWReforgedHeroTransformation__TriggerActionPickup) +function WoWReforgedHeroTransformation___Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroTransformation___pickupTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) + call TriggerAddCondition(WoWReforgedHeroTransformation___pickupTrigger, Condition(function WoWReforgedHeroTransformation___TriggerConditionPickup)) + call TriggerAddAction(WoWReforgedHeroTransformation___pickupTrigger, function WoWReforgedHeroTransformation___TriggerActionPickup) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroTransformation__dropTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) - call TriggerAddCondition(WoWReforgedHeroTransformation__dropTrigger, Condition(function WoWReforgedHeroTransformation__TriggerConditionDrop)) - call TriggerAddAction(WoWReforgedHeroTransformation__dropTrigger, function WoWReforgedHeroTransformation__TriggerActionDrop) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroTransformation___dropTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) + call TriggerAddCondition(WoWReforgedHeroTransformation___dropTrigger, Condition(function WoWReforgedHeroTransformation___TriggerConditionDrop)) + call TriggerAddAction(WoWReforgedHeroTransformation___dropTrigger, function WoWReforgedHeroTransformation___TriggerActionDrop) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroTransformation__castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) - call TriggerAddCondition(WoWReforgedHeroTransformation__castTrigger, Condition(function WoWReforgedHeroTransformation__TriggerConditionCast)) - call TriggerAddAction(WoWReforgedHeroTransformation__castTrigger, function WoWReforgedHeroTransformation__TriggerActionCast) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedHeroTransformation___castTrigger, EVENT_PLAYER_UNIT_SPELL_CAST) + call TriggerAddCondition(WoWReforgedHeroTransformation___castTrigger, Condition(function WoWReforgedHeroTransformation___TriggerConditionCast)) + call TriggerAddAction(WoWReforgedHeroTransformation___castTrigger, function WoWReforgedHeroTransformation___TriggerActionCast) endfunction @@ -74177,27 +74177,27 @@ endfunction function ActionFunctionPickupItem takes nothing returns nothing - if ( CanItemBePickedUp(GetEnumItem() , WoWReforgedItemUtils__pickedupItemsPlayer) and AddItemToBackpackForPlayer(WoWReforgedItemUtils__pickedupItemsPlayer , GetEnumItem()) ) then - set WoWReforgedItemUtils__pickedupItemsCounter=WoWReforgedItemUtils__pickedupItemsCounter + 1 + if ( CanItemBePickedUp(GetEnumItem() , WoWReforgedItemUtils___pickedupItemsPlayer) and AddItemToBackpackForPlayer(WoWReforgedItemUtils___pickedupItemsPlayer , GetEnumItem()) ) then + set WoWReforgedItemUtils___pickedupItemsCounter=WoWReforgedItemUtils___pickedupItemsCounter + 1 endif endfunction function PickupAllItemsAround takes unit hero returns integer local location tmpLocation= GetUnitLoc(hero) local rect tmpRect= RectFromCenterSizeBJ(tmpLocation, 2200.00, 2200.00) - set WoWReforgedItemUtils__pickedupItemsCounter=0 - set WoWReforgedItemUtils__pickedupItemsPlayer=GetOwningPlayer(hero) + set WoWReforgedItemUtils___pickedupItemsCounter=0 + set WoWReforgedItemUtils___pickedupItemsPlayer=GetOwningPlayer(hero) call EnumItemsInRect(tmpRect, null, function ActionFunctionPickupItem) - if ( WoWReforgedItemUtils__pickedupItemsCounter == 1 ) then + if ( WoWReforgedItemUtils___pickedupItemsCounter == 1 ) then call h__DisplayTextToPlayer(GetOwningPlayer(hero), 0, 0, "Picked up 1 item.") else - call h__DisplayTextToPlayer(GetOwningPlayer(hero), 0, 0, "Picked up " + I2S(WoWReforgedItemUtils__pickedupItemsCounter) + " items.") + call h__DisplayTextToPlayer(GetOwningPlayer(hero), 0, 0, "Picked up " + I2S(WoWReforgedItemUtils___pickedupItemsCounter) + " items.") endif call RemoveRect(tmpRect) set tmpRect=null call RemoveLocation(tmpLocation) set tmpLocation=null - return WoWReforgedItemUtils__pickedupItemsCounter + return WoWReforgedItemUtils___pickedupItemsCounter endfunction function PickupAllItemsAroundByPlayer takes player whichPlayer returns integer @@ -74440,42 +74440,42 @@ endfunction function GetEquipmentItemTypeId takes integer index returns integer - return WoWReforgedEquipment___equipmentItemTypeId[index] + return WoWReforgedEquipment__equipmentItemTypeId[index] endfunction function GetEquipmentItemTypeCategoryName takes integer index returns string - return WoWReforgedEquipment___equipmentItemTypeCategoryName[index] + return WoWReforgedEquipment__equipmentItemTypeCategoryName[index] endfunction function GetEquipmentItemTypeCategory takes integer index returns integer - return WoWReforgedEquipment___equipmentItemTypeCategory[index] + return WoWReforgedEquipment__equipmentItemTypeCategory[index] endfunction function GetEquipmentItemTypeCategoryType takes integer index,integer category returns boolean local integer i= Index2D(index , category , WoWReforgedEquipment_CATEGORY_TYPE_MAX) - return WoWReforgedEquipment___equipmentItemTypeCategoryType[i] + return WoWReforgedEquipment__equipmentItemTypeCategoryType[i] endfunction function SetEquipmentItemTypeCategoryType takes integer index,integer category,boolean value returns nothing local integer i= Index2D(index , category , WoWReforgedEquipment_CATEGORY_TYPE_MAX) - set WoWReforgedEquipment___equipmentItemTypeCategoryType[i]=value + set WoWReforgedEquipment__equipmentItemTypeCategoryType[i]=value endfunction function GetEquipmentTypeAnimation takes integer index returns integer - return WoWReforgedEquipment___equipmentItemTypeAnimation[index] + return WoWReforgedEquipment__equipmentItemTypeAnimation[index] endfunction function SetEquipmentTypeAnimation takes integer index,integer animation returns nothing - set WoWReforgedEquipment___equipmentItemTypeAnimation[index]=animation + set WoWReforgedEquipment__equipmentItemTypeAnimation[index]=animation endfunction function AddEquipmentItemType takes integer itemTypeId,string categoryName,integer category,integer animation returns integer - set WoWReforgedEquipment___equipmentItemTypeId[WoWReforgedEquipment___equipmentTypesCounter]=itemTypeId - set WoWReforgedEquipment___equipmentItemTypeCategoryName[WoWReforgedEquipment___equipmentTypesCounter]=categoryName - set WoWReforgedEquipment___equipmentItemTypeCategory[WoWReforgedEquipment___equipmentTypesCounter]=category - set WoWReforgedEquipment___equipmentItemTypeAnimation[WoWReforgedEquipment___equipmentTypesCounter]=animation - set WoWReforgedEquipment___equipmentTypesCounter=WoWReforgedEquipment___equipmentTypesCounter + 1 - return WoWReforgedEquipment___equipmentTypesCounter + set WoWReforgedEquipment__equipmentItemTypeId[WoWReforgedEquipment__equipmentTypesCounter]=itemTypeId + set WoWReforgedEquipment__equipmentItemTypeCategoryName[WoWReforgedEquipment__equipmentTypesCounter]=categoryName + set WoWReforgedEquipment__equipmentItemTypeCategory[WoWReforgedEquipment__equipmentTypesCounter]=category + set WoWReforgedEquipment__equipmentItemTypeAnimation[WoWReforgedEquipment__equipmentTypesCounter]=animation + set WoWReforgedEquipment__equipmentTypesCounter=WoWReforgedEquipment__equipmentTypesCounter + 1 + return WoWReforgedEquipment__equipmentTypesCounter endfunction // VILLAGER_255_ANIMATION_ATTACK_NO_WEAPON @@ -74486,11 +74486,11 @@ function AddEquipmentItemTypeWoWReforged takes nothing returns integer endfunction function EquipmentCategoryTwoHanded takes nothing returns nothing - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) endfunction function EquipmentCategoryRange takes nothing returns nothing - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) endfunction function EquipmentCategoryHead takes nothing returns nothing @@ -74550,14 +74550,14 @@ function EquipmentAnimationGun takes nothing returns nothing endfunction function GetMaxEquipmentItemTypes takes nothing returns integer - return WoWReforgedEquipment___equipmentTypesCounter + return WoWReforgedEquipment__equipmentTypesCounter endfunction function GetEquipmentItemTypeByItemTypeId takes integer itemTypeId returns integer local integer i= 0 loop - exitwhen ( i >= WoWReforgedEquipment___equipmentTypesCounter ) - if ( WoWReforgedEquipment___equipmentItemTypeId[i] == itemTypeId ) then + exitwhen ( i >= WoWReforgedEquipment__equipmentTypesCounter ) + if ( WoWReforgedEquipment__equipmentItemTypeId[i] == itemTypeId ) then return i endif set i=i + 1 @@ -74565,39 +74565,39 @@ function GetEquipmentItemTypeByItemTypeId takes integer itemTypeId returns integ return 0 endfunction -function WoWReforgedEquipment___SetUnitEquipmentType takes unit hero,integer c,integer index returns nothing - call SaveInteger(WoWReforgedEquipment___h, GetHandleId(hero), c, index) +function WoWReforgedEquipment__SetUnitEquipmentType takes unit hero,integer c,integer index returns nothing + call SaveInteger(WoWReforgedEquipment__h, GetHandleId(hero), c, index) endfunction -function WoWReforgedEquipment___SetUnitEquipmentTypeItem takes unit hero,integer c,item whichItem returns nothing - call SaveItemHandle(WoWReforgedEquipment___h2, GetHandleId(hero), c, whichItem) +function WoWReforgedEquipment__SetUnitEquipmentTypeItem takes unit hero,integer c,item whichItem returns nothing + call SaveItemHandle(WoWReforgedEquipment__h2, GetHandleId(hero), c, whichItem) endfunction function GetUnitEquipmentType takes unit hero,integer c returns integer - return LoadInteger(WoWReforgedEquipment___h, GetHandleId(hero), c) + return LoadInteger(WoWReforgedEquipment__h, GetHandleId(hero), c) endfunction function GetUnitEquipmentTypeItem takes unit hero,integer c returns item - return LoadItemHandle(WoWReforgedEquipment___h2, GetHandleId(hero), c) + return LoadItemHandle(WoWReforgedEquipment__h2, GetHandleId(hero), c) endfunction function GetUnitEquipmentTypeByHandleId takes integer handleId,integer c returns integer - return LoadInteger(WoWReforgedEquipment___h, handleId, c) + return LoadInteger(WoWReforgedEquipment__h, handleId, c) endfunction function GetUnitEquipmentTypeItemByHandleId takes integer handleId,integer c returns item - return LoadItemHandle(WoWReforgedEquipment___h2, handleId, c) + return LoadItemHandle(WoWReforgedEquipment__h2, handleId, c) endfunction function DropEquipment takes unit hero,integer c returns nothing - local integer index= (LoadInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( c))) // INLINED!! + local integer index= (LoadInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( c))) // INLINED!! if ( index != 0 ) then //call BJDebugMsg("Drop item " + GetItemName(GetUnitEquipmentTypeItem(hero, c))) - call DisableTrigger(WoWReforgedEquipment___dropTrigger) - call UnitDropItemPoint(hero, (LoadItemHandle(WoWReforgedEquipment___h2, GetHandleId((hero )), ( c))), GetUnitX(hero), GetUnitY(hero)) // INLINED!! - call EnableTrigger(WoWReforgedEquipment___dropTrigger) - call SaveInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( c ), ( 0)) // INLINED!! - call SaveItemHandle(WoWReforgedEquipment___h2, GetHandleId((hero )), ( c ), ( null)) // INLINED!! + call DisableTrigger(WoWReforgedEquipment__dropTrigger) + call UnitDropItemPoint(hero, (LoadItemHandle(WoWReforgedEquipment__h2, GetHandleId((hero )), ( c))), GetUnitX(hero), GetUnitY(hero)) // INLINED!! + call EnableTrigger(WoWReforgedEquipment__dropTrigger) + call SaveInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( c ), ( 0)) // INLINED!! + call SaveItemHandle(WoWReforgedEquipment__h2, GetHandleId((hero )), ( c ), ( null)) // INLINED!! else //call BJDebugMsg("Item in category " + I2S(c) + " is null") endif @@ -74644,29 +74644,29 @@ function ReplaceHeroForEquipment takes unit hero,integer unitTypeId returns unit local integer oldHandleId= GetHandleId(hero) local player owner= GetOwningPlayer(hero) local unit replaced= null - call DisableTrigger(WoWReforgedEquipment___pickupTrigger) - call DisableTrigger(WoWReforgedEquipment___dropTrigger) + call DisableTrigger(WoWReforgedEquipment__pickupTrigger) + call DisableTrigger(WoWReforgedEquipment__dropTrigger) set replaced=ReplaceHeroForTransformation(hero , unitTypeId) call RefreshBackpackForPlayer(owner) call RecreateAllEquipmentBags(owner) set i=0 loop exitwhen ( i == WoWReforgedEquipment_CATEGORY_MAX ) - call SaveInteger(WoWReforgedEquipment___h, GetHandleId((replaced )), ( i ), ( (LoadInteger(WoWReforgedEquipment___h, (oldHandleId ), ( i))))) // INLINED!! - call SaveItemHandle(WoWReforgedEquipment___h2, GetHandleId((replaced )), ( i ), ( (LoadItemHandle(WoWReforgedEquipment___h2, (oldHandleId ), ( i))))) // INLINED!! + call SaveInteger(WoWReforgedEquipment__h, GetHandleId((replaced )), ( i ), ( (LoadInteger(WoWReforgedEquipment__h, (oldHandleId ), ( i))))) // INLINED!! + call SaveItemHandle(WoWReforgedEquipment__h2, GetHandleId((replaced )), ( i ), ( (LoadItemHandle(WoWReforgedEquipment__h2, (oldHandleId ), ( i))))) // INLINED!! set i=i + 1 endloop if ( oldHandleId != GetHandleId(replaced) ) then - call FlushChildHashtable(WoWReforgedEquipment___h, oldHandleId) - call FlushChildHashtable(WoWReforgedEquipment___h2, oldHandleId) + call FlushChildHashtable(WoWReforgedEquipment__h, oldHandleId) + call FlushChildHashtable(WoWReforgedEquipment__h2, oldHandleId) endif - call EnableTrigger(WoWReforgedEquipment___pickupTrigger) - call EnableTrigger(WoWReforgedEquipment___dropTrigger) + call EnableTrigger(WoWReforgedEquipment__pickupTrigger) + call EnableTrigger(WoWReforgedEquipment__dropTrigger) set owner=null return replaced endfunction -function WoWReforgedEquipment___UpdateEquipmentFromInventory takes unit hero returns nothing +function WoWReforgedEquipment__UpdateEquipmentFromInventory takes unit hero returns nothing local item slotItem= null local integer c= 0 local integer index= 0 @@ -74677,9 +74677,9 @@ function WoWReforgedEquipment___UpdateEquipmentFromInventory takes unit hero ret if ( slotItem != null ) then set index=GetEquipmentItemTypeByItemTypeId(GetItemTypeId(slotItem)) if ( index != 0 ) then - set c=(WoWReforgedEquipment___equipmentItemTypeCategory[(index)]) // INLINED!! - call SaveInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( c ), ( index)) // INLINED!! - call SaveItemHandle(WoWReforgedEquipment___h2, GetHandleId((hero )), ( c ), ( slotItem)) // INLINED!! + set c=(WoWReforgedEquipment__equipmentItemTypeCategory[(index)]) // INLINED!! + call SaveInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( c ), ( index)) // INLINED!! + call SaveItemHandle(WoWReforgedEquipment__h2, GetHandleId((hero )), ( c ), ( slotItem)) // INLINED!! endif endif set slotItem=null @@ -74687,12 +74687,12 @@ function WoWReforgedEquipment___UpdateEquipmentFromInventory takes unit hero ret endloop endfunction -function WoWReforgedEquipment___TriggerConditionIsCustomizableAttriburesHero takes nothing returns boolean +function WoWReforgedEquipment__TriggerConditionIsCustomizableAttriburesHero takes nothing returns boolean local integer unitTypeId= GetUnitTypeId(GetTriggerUnit()) return IsCustomizableAttributesHero(unitTypeId) or unitTypeId == ITEM_VALUES_DUMMY_HERO endfunction -function WoWReforgedEquipment___TriggerActionPickupItem takes nothing returns nothing +function WoWReforgedEquipment__TriggerActionPickupItem takes nothing returns nothing local unit hero= GetTriggerUnit() local item whichItem= GetManipulatedItem() local integer unitTypeId= GetUnitTypeId(hero) @@ -74700,18 +74700,18 @@ function WoWReforgedEquipment___TriggerActionPickupItem takes nothing returns no local integer indexOld= 0 local integer index= GetEquipmentItemTypeByItemTypeId(GetItemTypeId(whichItem)) if ( index != 0 ) then - set c=(WoWReforgedEquipment___equipmentItemTypeCategory[(index)]) // INLINED!! + set c=(WoWReforgedEquipment__equipmentItemTypeCategory[(index)]) // INLINED!! if ( GetEquipmentItemTypeCategoryType(index , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED) ) then //call BJDebugMsg("Drop all weapons.") call DropEquipment(hero , WoWReforgedEquipment_CATEGORY_LEFT_HAND) call DropEquipment(hero , WoWReforgedEquipment_CATEGORY_RIGHT_HAND) else // drop equipped two hand weapons if necessary - if ( (LoadInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_LEFT_HAND))) != 0 and GetEquipmentItemTypeCategoryType((LoadInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_LEFT_HAND))) , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED) ) then // INLINED!! + if ( (LoadInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_LEFT_HAND))) != 0 and GetEquipmentItemTypeCategoryType((LoadInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_LEFT_HAND))) , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED) ) then // INLINED!! call DropEquipment(hero , WoWReforgedEquipment_CATEGORY_LEFT_HAND) endif - if ( (LoadInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_RIGHT_HAND))) != 0 and GetEquipmentItemTypeCategoryType((LoadInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_RIGHT_HAND))) , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED) ) then // INLINED!! + if ( (LoadInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_RIGHT_HAND))) != 0 and GetEquipmentItemTypeCategoryType((LoadInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_RIGHT_HAND))) , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED) ) then // INLINED!! call DropEquipment(hero , WoWReforgedEquipment_CATEGORY_RIGHT_HAND) endif @@ -74720,8 +74720,8 @@ function WoWReforgedEquipment___TriggerActionPickupItem takes nothing returns no call DropEquipment(hero , c) endif - call SaveInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( c ), ( index)) // INLINED!! - call SaveItemHandle(WoWReforgedEquipment___h2, GetHandleId((hero )), ( c ), ( whichItem)) // INLINED!! + call SaveInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( c ), ( index)) // INLINED!! + call SaveItemHandle(WoWReforgedEquipment__h2, GetHandleId((hero )), ( c ), ( whichItem)) // INLINED!! //call BJDebugMsg("Set equipment " + I2S(c) + " to " + GetItemName(whichItem)) @@ -74743,81 +74743,81 @@ function WoWReforgedEquipment___TriggerActionPickupItem takes nothing returns no set hero=null endfunction -function WoWReforgedEquipment___TriggerActionDropItem takes nothing returns nothing +function WoWReforgedEquipment__TriggerActionDropItem takes nothing returns nothing local unit hero= GetTriggerUnit() local integer index= GetEquipmentItemTypeByItemTypeId(GetItemTypeId(GetManipulatedItem())) local integer c= 0 if ( index != 0 ) then - set c=(WoWReforgedEquipment___equipmentItemTypeCategory[(index)]) // INLINED!! + set c=(WoWReforgedEquipment__equipmentItemTypeCategory[(index)]) // INLINED!! //call BJDebugMsg("Drop " + I2S(c) + " with item " + GetItemName(GetUnitEquipmentTypeItem(hero, c))) - call SaveInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( c ), ( 0)) // INLINED!! - call SaveItemHandle(WoWReforgedEquipment___h2, GetHandleId((hero )), ( c ), ( null)) // INLINED!! + call SaveInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( c ), ( 0)) // INLINED!! + call SaveItemHandle(WoWReforgedEquipment__h2, GetHandleId((hero )), ( c ), ( null)) // INLINED!! //call UpdateEquipmentFromInventory(hero) endif set hero=null endfunction -function WoWReforgedEquipment___TriggerConditionAttack takes nothing returns boolean +function WoWReforgedEquipment__TriggerConditionAttack takes nothing returns boolean return IsCustomizableAttributesHero(BlzGetUnitSkin(GetAttacker())) endfunction -function WoWReforgedEquipment___TriggerActionAttack takes nothing returns nothing +function WoWReforgedEquipment__TriggerActionAttack takes nothing returns nothing local unit hero= GetAttacker() - local integer leftHandIndex= (LoadInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_LEFT_HAND))) // INLINED!! - local integer rightHandIndex= (LoadInteger(WoWReforgedEquipment___h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_RIGHT_HAND))) // INLINED!! + local integer leftHandIndex= (LoadInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_LEFT_HAND))) // INLINED!! + local integer rightHandIndex= (LoadInteger(WoWReforgedEquipment__h, GetHandleId((hero )), ( WoWReforgedEquipment_CATEGORY_RIGHT_HAND))) // INLINED!! if ( rightHandIndex != 0 ) then - if ( leftHandIndex != 0 and (WoWReforgedEquipment___equipmentItemTypeAnimation[(rightHandIndex)]) == VILLAGER_255_ANIMATION_ATTACK_NO_WEAPON ) then // INLINED!! + if ( leftHandIndex != 0 and (WoWReforgedEquipment__equipmentItemTypeAnimation[(rightHandIndex)]) == VILLAGER_255_ANIMATION_ATTACK_NO_WEAPON ) then // INLINED!! //call BJDebugMsg("Left hand weapon even with right.") - call SetVillager255Animation(hero , (WoWReforgedEquipment___equipmentItemTypeAnimation[(leftHandIndex)])) // INLINED!! + call SetVillager255Animation(hero , (WoWReforgedEquipment__equipmentItemTypeAnimation[(leftHandIndex)])) // INLINED!! else //call BJDebugMsg("Right hand weapon.") - call SetVillager255Animation(hero , (WoWReforgedEquipment___equipmentItemTypeAnimation[(rightHandIndex)])) // INLINED!! + call SetVillager255Animation(hero , (WoWReforgedEquipment__equipmentItemTypeAnimation[(rightHandIndex)])) // INLINED!! endif elseif ( leftHandIndex != 0 ) then //call BJDebugMsg("Left hand weapon.") //call BJDebugMsg("Left hand weapon index " + I2S(leftHandIndex)) //call BJDebugMsg("Left hand weapon animation index " + I2S(GetEquipmentTypeAnimation(leftHandIndex))) - call SetVillager255Animation(hero , (WoWReforgedEquipment___equipmentItemTypeAnimation[(leftHandIndex)])) // INLINED!! + call SetVillager255Animation(hero , (WoWReforgedEquipment__equipmentItemTypeAnimation[(leftHandIndex)])) // INLINED!! else call SetVillager255Animation(hero , VILLAGER_255_ANIMATION_ATTACK_NO_WEAPON) endif set hero=null endfunction -function WoWReforgedEquipment___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedEquipment___pickupTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) - call TriggerAddCondition(WoWReforgedEquipment___pickupTrigger, Condition(function WoWReforgedEquipment___TriggerConditionIsCustomizableAttriburesHero)) - call TriggerAddAction(WoWReforgedEquipment___pickupTrigger, function WoWReforgedEquipment___TriggerActionPickupItem) +function WoWReforgedEquipment__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedEquipment__pickupTrigger, EVENT_PLAYER_UNIT_PICKUP_ITEM) + call TriggerAddCondition(WoWReforgedEquipment__pickupTrigger, Condition(function WoWReforgedEquipment__TriggerConditionIsCustomizableAttriburesHero)) + call TriggerAddAction(WoWReforgedEquipment__pickupTrigger, function WoWReforgedEquipment__TriggerActionPickupItem) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedEquipment___dropTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) - call TriggerAddCondition(WoWReforgedEquipment___dropTrigger, Condition(function WoWReforgedEquipment___TriggerConditionIsCustomizableAttriburesHero)) - call TriggerAddAction(WoWReforgedEquipment___dropTrigger, function WoWReforgedEquipment___TriggerActionDropItem) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedEquipment__dropTrigger, EVENT_PLAYER_UNIT_DROP_ITEM) + call TriggerAddCondition(WoWReforgedEquipment__dropTrigger, Condition(function WoWReforgedEquipment__TriggerConditionIsCustomizableAttriburesHero)) + call TriggerAddAction(WoWReforgedEquipment__dropTrigger, function WoWReforgedEquipment__TriggerActionDropItem) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedEquipment___attackTrigger, EVENT_PLAYER_UNIT_ATTACKED) - call TriggerAddCondition(WoWReforgedEquipment___attackTrigger, Condition(function WoWReforgedEquipment___TriggerConditionAttack)) - call TriggerAddAction(WoWReforgedEquipment___attackTrigger, function WoWReforgedEquipment___TriggerActionAttack) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedEquipment__attackTrigger, EVENT_PLAYER_UNIT_ATTACKED) + call TriggerAddCondition(WoWReforgedEquipment__attackTrigger, Condition(function WoWReforgedEquipment__TriggerConditionAttack)) + call TriggerAddAction(WoWReforgedEquipment__attackTrigger, function WoWReforgedEquipment__TriggerActionAttack) endfunction function AddSaveObjectItemTypesFromEquipment takes nothing returns nothing local integer i= 0 - local integer max= (WoWReforgedEquipment___equipmentTypesCounter) // INLINED!! + local integer max= (WoWReforgedEquipment__equipmentTypesCounter) // INLINED!! loop exitwhen ( i == max ) - if ( (WoWReforgedEquipment___equipmentItemTypeId[(i)]) != 0 ) then // INLINED!! - set udg_TmpItemTypeId=(WoWReforgedEquipment___equipmentItemTypeId[(i)]) // INLINED!! + if ( (WoWReforgedEquipment__equipmentItemTypeId[(i)]) != 0 ) then // INLINED!! + set udg_TmpItemTypeId=(WoWReforgedEquipment__equipmentItemTypeId[(i)]) // INLINED!! call AddSaveObjectItemTypeEx(GetObjectName(udg_TmpItemTypeId) , udg_TmpItemTypeId) // INLINED!! endif set i=i + 1 endloop endfunction -function WoWReforgedEquipment___RemoveUnitHook takes unit whichUnit returns nothing +function WoWReforgedEquipment__RemoveUnitHook takes unit whichUnit returns nothing local integer handleId= GetHandleId(whichUnit) - call FlushChildHashtable(WoWReforgedEquipment___h, handleId) - call FlushChildHashtable(WoWReforgedEquipment___h2, handleId) + call FlushChildHashtable(WoWReforgedEquipment__h, handleId) + call FlushChildHashtable(WoWReforgedEquipment__h2, handleId) endfunction -//processed hook: hook RemoveUnit WoWReforgedEquipment___RemoveUnitHook +//processed hook: hook RemoveUnit WoWReforgedEquipment__RemoveUnitHook //library WoWReforgedEquipment ends @@ -76601,7 +76601,7 @@ function GetSaveCodeItemsForIndex takes player whichPlayer,boolean writeFile,int elseif ( index > 3 and index < 3 + BACKPACK_MAX_PAGES ) then set i=index - 3 //call BJDebugMsg("Backpack item " + I2S(i)) - return GetSaveCodeItemsEx3(playerName , isSinglePlayer , isWarlord , gameType , xpRate , writeFile , index , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 0) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 0) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 1) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 1) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 2) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 2) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 3) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 3) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 4) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 4) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 5) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 5) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))])) // INLINED!! + return GetSaveCodeItemsEx3(playerName , isSinglePlayer , isWarlord , gameType , xpRate , writeFile , index , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 0) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 0) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 1) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 1) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 2) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 2) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 3) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 3) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 4) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 4) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 5) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 5) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))])) // INLINED!! elseif ( index >= 3 + BACKPACK_MAX_PAGES and index < BlzGroupGetSize(udg_EquipmentBags[GetConvertedPlayerId(whichPlayer)]) ) then set i=index - 3 + BACKPACK_MAX_PAGES return GetSaveCodeItemsEx(playerName , isSinglePlayer , isWarlord , gameType , xpRate , BlzGroupUnitAt(udg_EquipmentBags[GetConvertedPlayerId(whichPlayer)], i) , writeFile , index) @@ -76632,7 +76632,7 @@ function GetAllSaveCodeItems takes player whichPlayer returns string set max=BACKPACK_MAX_PAGES loop exitwhen ( i == max ) - call GetSaveCodeItemsEx3(GetPlayerName(whichPlayer) , isSinglePlayer , isWarlord , gameType , xpRate , true , index , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 0) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 0) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 1) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 1) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 2) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 2) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 3) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 3) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 4) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 4) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemType[((Index3D((playerId ) , ( i ) , ( 5) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks___BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 5) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))])) // INLINED!! + call GetSaveCodeItemsEx3(GetPlayerName(whichPlayer) , isSinglePlayer , isWarlord , gameType , xpRate , true , index , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 0) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 0) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 1) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 1) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 2) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 2) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 3) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 3) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 4) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 4) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemType[((Index3D((playerId ) , ( i ) , ( 5) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))]) , (WoWReforgedBackpacks__BackpackItemCharges[((Index3D((playerId ) , ( i ) , ( 5) , BACKPACK_MAX_PAGES , bj_MAX_INVENTORY)))])) // INLINED!! set index=index + 1 set i=i + 1 endloop @@ -78531,13 +78531,13 @@ endfunction //library WoWReforgedSkillUI: -function WoWReforgedSkillUI___SetSkillUIVisibleAll takes boolean visible returns nothing +function WoWReforgedSkillUI__SetSkillUIVisibleAll takes boolean visible returns nothing local integer i= 0 local integer max= 3 loop exitwhen ( i == max ) - call BlzFrameSetVisible(WoWReforgedSkillUI___IconFrameUp[i], visible) - call BlzFrameSetVisible(WoWReforgedSkillUI___IconFrameDown[i], visible) + call BlzFrameSetVisible(WoWReforgedSkillUI__IconFrameUp[i], visible) + call BlzFrameSetVisible(WoWReforgedSkillUI__IconFrameDown[i], visible) set i=i + 1 endloop endfunction @@ -78545,183 +78545,183 @@ endfunction // use in trigger action because of GetSingleSelectedUnit function UpdateSkillPointsUI takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - local string attributePoints= I2S(R2I((LoadReal(Attributes__h, GetHandleId((WoWReforgedSkillUI___currentHero[playerId] )), ( udg_AttributeAttributePoints))))) // INLINED!! - local boolean visible= not WoWReforgedSkillUI___hidden[playerId] + local string attributePoints= I2S(R2I((LoadReal(Attributes__h, GetHandleId((WoWReforgedSkillUI__currentHero[playerId] )), ( udg_AttributeAttributePoints))))) // INLINED!! + local boolean visible= not WoWReforgedSkillUI__hidden[playerId] //call BJDebugMsg("Selection for player " + I2S(playerId)) - if ( WoWReforgedSkillUI___currentHero[playerId] != null and ( IsCustomizableAttributesHero(GetUnitTypeId(WoWReforgedSkillUI___currentHero[playerId])) or IsOriginalUnitTypeCustomizableAttributesHero(WoWReforgedSkillUI___currentHero[playerId]) ) and GetSingleSelectedUnit(whichPlayer) == WoWReforgedSkillUI___currentHero[playerId] ) then + if ( WoWReforgedSkillUI__currentHero[playerId] != null and ( IsCustomizableAttributesHero(GetUnitTypeId(WoWReforgedSkillUI__currentHero[playerId])) or IsOriginalUnitTypeCustomizableAttributesHero(WoWReforgedSkillUI__currentHero[playerId]) ) and GetSingleSelectedUnit(whichPlayer) == WoWReforgedSkillUI__currentHero[playerId] ) then if ( whichPlayer == GetLocalPlayer() ) then - call WoWReforgedSkillUI___SetSkillUIVisibleAll(visible) - call BlzFrameSetVisible(WoWReforgedSkillUI___IconFrameToggle, true) - call BlzFrameSetVisible(WoWReforgedSkillUI___IconFrameAttributePoints, true) - call BlzFrameSetText(WoWReforgedSkillUI___IconFrameAttributePoints, attributePoints) + call WoWReforgedSkillUI__SetSkillUIVisibleAll(visible) + call BlzFrameSetVisible(WoWReforgedSkillUI__IconFrameToggle, true) + call BlzFrameSetVisible(WoWReforgedSkillUI__IconFrameAttributePoints, true) + call BlzFrameSetText(WoWReforgedSkillUI__IconFrameAttributePoints, attributePoints) endif else //call BJDebugMsg("Hide mine " + GetUnitName(selected)) if ( whichPlayer == GetLocalPlayer() ) then - call WoWReforgedSkillUI___SetSkillUIVisibleAll(false) - call BlzFrameSetVisible(WoWReforgedSkillUI___IconFrameToggle, false) - call BlzFrameSetVisible(WoWReforgedSkillUI___IconFrameAttributePoints, false) + call WoWReforgedSkillUI__SetSkillUIVisibleAll(false) + call BlzFrameSetVisible(WoWReforgedSkillUI__IconFrameToggle, false) + call BlzFrameSetVisible(WoWReforgedSkillUI__IconFrameAttributePoints, false) endif endif endfunction -function WoWReforgedSkillUI___TriggerActionUpdateSkillPointsUI takes nothing returns nothing - call UpdateSkillPointsUI(WoWReforgedSkillUI___tmpPlayer) +function WoWReforgedSkillUI__TriggerActionUpdateSkillPointsUI takes nothing returns nothing + call UpdateSkillPointsUI(WoWReforgedSkillUI__tmpPlayer) endfunction -function WoWReforgedSkillUI___UpdateSkillPointsUIExec takes player whichPlayer returns nothing - set WoWReforgedSkillUI___tmpPlayer=whichPlayer - call TriggerExecute(WoWReforgedSkillUI___tmpTrigger) +function WoWReforgedSkillUI__UpdateSkillPointsUIExec takes player whichPlayer returns nothing + set WoWReforgedSkillUI__tmpPlayer=whichPlayer + call TriggerExecute(WoWReforgedSkillUI__tmpTrigger) endfunction -function WoWReforgedSkillUI___SetSkillUIVisible takes player whichPlayer,boolean visible returns nothing +function WoWReforgedSkillUI__SetSkillUIVisible takes player whichPlayer,boolean visible returns nothing if ( whichPlayer == GetLocalPlayer() ) then - call WoWReforgedSkillUI___SetSkillUIVisibleAll(visible) + call WoWReforgedSkillUI__SetSkillUIVisibleAll(visible) endif call UpdateSkillPointsUI(whichPlayer) endfunction -function WoWReforgedSkillUI___TriggerActionUp takes nothing returns nothing - local integer a= LoadInteger(WoWReforgedSkillUI___h, GetHandleId(GetTriggeringTrigger()), 0) +function WoWReforgedSkillUI__TriggerActionUp takes nothing returns nothing + local integer a= LoadInteger(WoWReforgedSkillUI__h, GetHandleId(GetTriggeringTrigger()), 0) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedSkillUI___PREFIX, "Up" + I2S(a)) + call BlzSendSyncData(WoWReforgedSkillUI__PREFIX, "Up" + I2S(a)) endif endfunction -function WoWReforgedSkillUI___TriggerActionDown takes nothing returns nothing - local integer a= LoadInteger(WoWReforgedSkillUI___h, GetHandleId(GetTriggeringTrigger()), 0) +function WoWReforgedSkillUI__TriggerActionDown takes nothing returns nothing + local integer a= LoadInteger(WoWReforgedSkillUI__h, GetHandleId(GetTriggeringTrigger()), 0) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedSkillUI___PREFIX, "Down" + I2S(a)) + call BlzSendSyncData(WoWReforgedSkillUI__PREFIX, "Down" + I2S(a)) endif endfunction -function WoWReforgedSkillUI___TriggerActionToggle takes nothing returns nothing +function WoWReforgedSkillUI__TriggerActionToggle takes nothing returns nothing local integer playerId= GetPlayerId(GetTriggerPlayer()) - local boolean visible= WoWReforgedSkillUI___hidden[playerId] - set WoWReforgedSkillUI___hidden[playerId]=not WoWReforgedSkillUI___hidden[playerId] - call WoWReforgedSkillUI___SetSkillUIVisible(GetTriggerPlayer() , not WoWReforgedSkillUI___hidden[playerId]) + local boolean visible= WoWReforgedSkillUI__hidden[playerId] + set WoWReforgedSkillUI__hidden[playerId]=not WoWReforgedSkillUI__hidden[playerId] + call WoWReforgedSkillUI__SetSkillUIVisible(GetTriggerPlayer() , not WoWReforgedSkillUI__hidden[playerId]) if ( GetTriggerPlayer() == GetLocalPlayer() ) then if ( visible ) then - call BlzFrameSetTexture(WoWReforgedSkillUI___IconFrameToggleFrame, "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-DownArrow.blp", 0, true) + call BlzFrameSetTexture(WoWReforgedSkillUI__IconFrameToggleFrame, "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-DownArrow.blp", 0, true) else - call BlzFrameSetTexture(WoWReforgedSkillUI___IconFrameToggleFrame, "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-UpArrow.blp", 0, true) + call BlzFrameSetTexture(WoWReforgedSkillUI__IconFrameToggleFrame, "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-UpArrow.blp", 0, true) endif endif call UpdateSkillPointsUI(GetTriggerPlayer()) //call BJDebugMsg("Click toggle.") endfunction -function WoWReforgedSkillUI___CreateSkillUIButtons takes integer a,real x,real y returns nothing - set WoWReforgedSkillUI___IconFrameUp[a]=BlzCreateFrameByType("BUTTON", "AttributeUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSkillUI___IconFrameUp[a], FRAMEPOINT_TOPLEFT, x, y) - call BlzFrameSetAbsPoint(WoWReforgedSkillUI___IconFrameUp[a], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedSkillUI___WIDTH, y - WoWReforgedSkillUI___HEIGHT) - call BlzFrameSetLevel(WoWReforgedSkillUI___IconFrameUp[a], 2) +function WoWReforgedSkillUI__CreateSkillUIButtons takes integer a,real x,real y returns nothing + set WoWReforgedSkillUI__IconFrameUp[a]=BlzCreateFrameByType("BUTTON", "AttributeUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSkillUI__IconFrameUp[a], FRAMEPOINT_TOPLEFT, x, y) + call BlzFrameSetAbsPoint(WoWReforgedSkillUI__IconFrameUp[a], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedSkillUI__WIDTH, y - WoWReforgedSkillUI__HEIGHT) + call BlzFrameSetLevel(WoWReforgedSkillUI__IconFrameUp[a], 2) - set WoWReforgedSkillUI___IconFrameUpFrame[a]=BlzCreateFrameByType("BACKDROP", "AttributeUpButtonFrame", WoWReforgedSkillUI___IconFrameUp[a], "", 0) - call BlzFrameSetAllPoints(WoWReforgedSkillUI___IconFrameUpFrame[a], WoWReforgedSkillUI___IconFrameUp[a]) - call BlzFrameSetTexture(WoWReforgedSkillUI___IconFrameUpFrame[a], "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-UpArrow.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedSkillUI___IconFrameUpFrame[a], true) + set WoWReforgedSkillUI__IconFrameUpFrame[a]=BlzCreateFrameByType("BACKDROP", "AttributeUpButtonFrame", WoWReforgedSkillUI__IconFrameUp[a], "", 0) + call BlzFrameSetAllPoints(WoWReforgedSkillUI__IconFrameUpFrame[a], WoWReforgedSkillUI__IconFrameUp[a]) + call BlzFrameSetTexture(WoWReforgedSkillUI__IconFrameUpFrame[a], "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-UpArrow.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedSkillUI__IconFrameUpFrame[a], true) - set WoWReforgedSkillUI___upTrigger[a]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSkillUI___upTrigger[a], WoWReforgedSkillUI___IconFrameUp[a], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSkillUI___upTrigger[a], function WoWReforgedSkillUI___TriggerActionUp) - call SaveInteger(WoWReforgedSkillUI___h, GetHandleId(WoWReforgedSkillUI___upTrigger[a]), 0, a) + set WoWReforgedSkillUI__upTrigger[a]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSkillUI__upTrigger[a], WoWReforgedSkillUI__IconFrameUp[a], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSkillUI__upTrigger[a], function WoWReforgedSkillUI__TriggerActionUp) + call SaveInteger(WoWReforgedSkillUI__h, GetHandleId(WoWReforgedSkillUI__upTrigger[a]), 0, a) - set WoWReforgedSkillUI___IconFrameDown[a]=BlzCreateFrameByType("BUTTON", "AttributeDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSkillUI___IconFrameDown[a], FRAMEPOINT_TOPLEFT, x, y - WoWReforgedSkillUI___HEIGHT - WoWReforgedSkillUI___SPACING) - call BlzFrameSetAbsPoint(WoWReforgedSkillUI___IconFrameDown[a], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedSkillUI___WIDTH, y - WoWReforgedSkillUI___HEIGHT - WoWReforgedSkillUI___SPACING - WoWReforgedSkillUI___HEIGHT) - call BlzFrameSetLevel(WoWReforgedSkillUI___IconFrameDown[a], 2) + set WoWReforgedSkillUI__IconFrameDown[a]=BlzCreateFrameByType("BUTTON", "AttributeDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSkillUI__IconFrameDown[a], FRAMEPOINT_TOPLEFT, x, y - WoWReforgedSkillUI__HEIGHT - WoWReforgedSkillUI__SPACING) + call BlzFrameSetAbsPoint(WoWReforgedSkillUI__IconFrameDown[a], FRAMEPOINT_BOTTOMRIGHT, x + WoWReforgedSkillUI__WIDTH, y - WoWReforgedSkillUI__HEIGHT - WoWReforgedSkillUI__SPACING - WoWReforgedSkillUI__HEIGHT) + call BlzFrameSetLevel(WoWReforgedSkillUI__IconFrameDown[a], 2) - set WoWReforgedSkillUI___IconFrameDownFrame[a]=BlzCreateFrameByType("BACKDROP", "AttributeDownButtonFrame", WoWReforgedSkillUI___IconFrameDown[a], "", 0) - call BlzFrameSetAllPoints(WoWReforgedSkillUI___IconFrameDownFrame[a], WoWReforgedSkillUI___IconFrameDown[a]) - call BlzFrameSetTexture(WoWReforgedSkillUI___IconFrameDownFrame[a], "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-DownArrow.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedSkillUI___IconFrameDownFrame[a], true) + set WoWReforgedSkillUI__IconFrameDownFrame[a]=BlzCreateFrameByType("BACKDROP", "AttributeDownButtonFrame", WoWReforgedSkillUI__IconFrameDown[a], "", 0) + call BlzFrameSetAllPoints(WoWReforgedSkillUI__IconFrameDownFrame[a], WoWReforgedSkillUI__IconFrameDown[a]) + call BlzFrameSetTexture(WoWReforgedSkillUI__IconFrameDownFrame[a], "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-DownArrow.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedSkillUI__IconFrameDownFrame[a], true) - set WoWReforgedSkillUI___downTrigger[a]=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSkillUI___downTrigger[a], WoWReforgedSkillUI___IconFrameDown[a], FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSkillUI___downTrigger[a], function WoWReforgedSkillUI___TriggerActionDown) - call SaveInteger(WoWReforgedSkillUI___h, GetHandleId(WoWReforgedSkillUI___downTrigger[a]), 0, a) + set WoWReforgedSkillUI__downTrigger[a]=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSkillUI__downTrigger[a], WoWReforgedSkillUI__IconFrameDown[a], FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSkillUI__downTrigger[a], function WoWReforgedSkillUI__TriggerActionDown) + call SaveInteger(WoWReforgedSkillUI__h, GetHandleId(WoWReforgedSkillUI__downTrigger[a]), 0, a) endfunction -function WoWReforgedSkillUI___HideSkillUI takes nothing returns nothing - call WoWReforgedSkillUI___SetSkillUIVisibleAll(false) - call BlzFrameSetVisible(WoWReforgedSkillUI___IconFrameToggle, false) - call BlzFrameSetVisible(WoWReforgedSkillUI___IconFrameAttributePoints, false) +function WoWReforgedSkillUI__HideSkillUI takes nothing returns nothing + call WoWReforgedSkillUI__SetSkillUIVisibleAll(false) + call BlzFrameSetVisible(WoWReforgedSkillUI__IconFrameToggle, false) + call BlzFrameSetVisible(WoWReforgedSkillUI__IconFrameAttributePoints, false) endfunction -function WoWReforgedSkillUI___CreateSkillUI takes nothing returns nothing - call WoWReforgedSkillUI___CreateSkillUIButtons(bj_HEROSTAT_STR , WoWReforgedSkillUI___X , WoWReforgedSkillUI___Y) - call WoWReforgedSkillUI___CreateSkillUIButtons(bj_HEROSTAT_AGI , WoWReforgedSkillUI___X , WoWReforgedSkillUI___Y2) - call WoWReforgedSkillUI___CreateSkillUIButtons(bj_HEROSTAT_INT , WoWReforgedSkillUI___X , WoWReforgedSkillUI___Y3) +function WoWReforgedSkillUI__CreateSkillUI takes nothing returns nothing + call WoWReforgedSkillUI__CreateSkillUIButtons(bj_HEROSTAT_STR , WoWReforgedSkillUI__X , WoWReforgedSkillUI__Y) + call WoWReforgedSkillUI__CreateSkillUIButtons(bj_HEROSTAT_AGI , WoWReforgedSkillUI__X , WoWReforgedSkillUI__Y2) + call WoWReforgedSkillUI__CreateSkillUIButtons(bj_HEROSTAT_INT , WoWReforgedSkillUI__X , WoWReforgedSkillUI__Y3) - set WoWReforgedSkillUI___IconFrameToggle=BlzCreateFrameByType("BUTTON", "AttributeToggleButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSkillUI___IconFrameToggle, FRAMEPOINT_TOPLEFT, WoWReforgedSkillUI___TOGGLE_X, WoWReforgedSkillUI___TOGGLE_Y) - call BlzFrameSetAbsPoint(WoWReforgedSkillUI___IconFrameToggle, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSkillUI___TOGGLE_X + WoWReforgedSkillUI___WIDTH, WoWReforgedSkillUI___TOGGLE_Y - WoWReforgedSkillUI___HEIGHT) - call BlzFrameSetLevel(WoWReforgedSkillUI___IconFrameToggle, 2) + set WoWReforgedSkillUI__IconFrameToggle=BlzCreateFrameByType("BUTTON", "AttributeToggleButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSkillUI__IconFrameToggle, FRAMEPOINT_TOPLEFT, WoWReforgedSkillUI__TOGGLE_X, WoWReforgedSkillUI__TOGGLE_Y) + call BlzFrameSetAbsPoint(WoWReforgedSkillUI__IconFrameToggle, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSkillUI__TOGGLE_X + WoWReforgedSkillUI__WIDTH, WoWReforgedSkillUI__TOGGLE_Y - WoWReforgedSkillUI__HEIGHT) + call BlzFrameSetLevel(WoWReforgedSkillUI__IconFrameToggle, 2) - set WoWReforgedSkillUI___IconFrameToggleFrame=BlzCreateFrameByType("BACKDROP", "AttributeToggleButtonFrame", WoWReforgedSkillUI___IconFrameToggle, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSkillUI___IconFrameToggleFrame, WoWReforgedSkillUI___IconFrameToggle) - call BlzFrameSetTexture(WoWReforgedSkillUI___IconFrameToggleFrame, "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-DownArrow.blp", 0, true) + set WoWReforgedSkillUI__IconFrameToggleFrame=BlzCreateFrameByType("BACKDROP", "AttributeToggleButtonFrame", WoWReforgedSkillUI__IconFrameToggle, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSkillUI__IconFrameToggleFrame, WoWReforgedSkillUI__IconFrameToggle) + call BlzFrameSetTexture(WoWReforgedSkillUI__IconFrameToggleFrame, "UI\\Widgets\\Glues\\Gluescreen-Scrollbar-DownArrow.blp", 0, true) - set WoWReforgedSkillUI___toggleTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSkillUI___toggleTrigger, WoWReforgedSkillUI___IconFrameToggle, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSkillUI___toggleTrigger, function WoWReforgedSkillUI___TriggerActionToggle) + set WoWReforgedSkillUI__toggleTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSkillUI__toggleTrigger, WoWReforgedSkillUI__IconFrameToggle, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSkillUI__toggleTrigger, function WoWReforgedSkillUI__TriggerActionToggle) - set WoWReforgedSkillUI___IconFrameAttributePoints=BlzCreateFrameByType("TEXT", "AttributePoints", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSkillUI___IconFrameAttributePoints, FRAMEPOINT_TOPLEFT, WoWReforgedSkillUI___ATTRIBUTE_POINTS_X, WoWReforgedSkillUI___TOGGLE_Y) - call BlzFrameSetAbsPoint(WoWReforgedSkillUI___IconFrameAttributePoints, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSkillUI___ATTRIBUTE_POINTS_X + WoWReforgedSkillUI___ATTRIBUTE_POINTS_WIDTH, WoWReforgedSkillUI___TOGGLE_Y - WoWReforgedSkillUI___HEIGHT) - call BlzFrameSetText(WoWReforgedSkillUI___IconFrameAttributePoints, "0") - call BlzFrameSetTextAlignment(WoWReforgedSkillUI___IconFrameAttributePoints, TEXT_JUSTIFY_MIDDLE, TEXT_JUSTIFY_LEFT) + set WoWReforgedSkillUI__IconFrameAttributePoints=BlzCreateFrameByType("TEXT", "AttributePoints", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSkillUI__IconFrameAttributePoints, FRAMEPOINT_TOPLEFT, WoWReforgedSkillUI__ATTRIBUTE_POINTS_X, WoWReforgedSkillUI__TOGGLE_Y) + call BlzFrameSetAbsPoint(WoWReforgedSkillUI__IconFrameAttributePoints, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSkillUI__ATTRIBUTE_POINTS_X + WoWReforgedSkillUI__ATTRIBUTE_POINTS_WIDTH, WoWReforgedSkillUI__TOGGLE_Y - WoWReforgedSkillUI__HEIGHT) + call BlzFrameSetText(WoWReforgedSkillUI__IconFrameAttributePoints, "0") + call BlzFrameSetTextAlignment(WoWReforgedSkillUI__IconFrameAttributePoints, TEXT_JUSTIFY_MIDDLE, TEXT_JUSTIFY_LEFT) // hide for all players - call WoWReforgedSkillUI___HideSkillUI() + call WoWReforgedSkillUI__HideSkillUI() endfunction -function WoWReforgedSkillUI___TriggerConditionSync takes nothing returns boolean +function WoWReforgedSkillUI__TriggerConditionSync takes nothing returns boolean local string data= BlzGetTriggerSyncData() local integer playerId= GetPlayerId(GetTriggerPlayer()) local integer a= bj_HEROSTAT_STR if ( StringStartsWith(data , "Up") ) then set a=S2I(StringRemoveFromStart(data , "Up")) - call WoWReforgedSkillAttribute(WoWReforgedSkillUI___currentHero[playerId] , a , 1.0) + call WoWReforgedSkillAttribute(WoWReforgedSkillUI__currentHero[playerId] , a , 1.0) call UpdateSkillPointsUI(GetTriggerPlayer()) elseif ( StringStartsWith(data , "Down") ) then set a=S2I(StringRemoveFromStart(data , "Down")) - call WoWReforgedSkillAttribute(WoWReforgedSkillUI___currentHero[playerId] , a , - 1.0) + call WoWReforgedSkillAttribute(WoWReforgedSkillUI__currentHero[playerId] , a , - 1.0) call UpdateSkillPointsUI(GetTriggerPlayer()) endif return false endfunction -function WoWReforgedSkillUI___TriggerConditionSelected takes nothing returns boolean +function WoWReforgedSkillUI__TriggerConditionSelected takes nothing returns boolean local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSkillUI___currentHero[playerId]=GetTriggerUnit() + set WoWReforgedSkillUI__currentHero[playerId]=GetTriggerUnit() - call WoWReforgedSkillUI___UpdateSkillPointsUIExec(GetTriggerPlayer()) + call WoWReforgedSkillUI__UpdateSkillPointsUIExec(GetTriggerPlayer()) return false endfunction -function WoWReforgedSkillUI___TriggerConditionDeselected takes nothing returns boolean +function WoWReforgedSkillUI__TriggerConditionDeselected takes nothing returns boolean local integer playerId= GetPlayerId(GetTriggerPlayer()) //call BJDebugMsg("Selection for player " + I2S(playerId)) - if ( WoWReforgedSkillUI___currentHero[playerId] == GetTriggerUnit() ) then - set WoWReforgedSkillUI___currentHero[playerId]=null + if ( WoWReforgedSkillUI__currentHero[playerId] == GetTriggerUnit() ) then + set WoWReforgedSkillUI__currentHero[playerId]=null endif - call WoWReforgedSkillUI___UpdateSkillPointsUIExec(GetTriggerPlayer()) + call WoWReforgedSkillUI__UpdateSkillPointsUIExec(GetTriggerPlayer()) return false endfunction -function WoWReforgedSkillUI___UpdateSkillPointsUIForAllPlayersForHero takes unit hero returns nothing +function WoWReforgedSkillUI__UpdateSkillPointsUIForAllPlayersForHero takes unit hero returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) - if ( WoWReforgedSkillUI___currentHero[i] == hero ) then - call WoWReforgedSkillUI___UpdateSkillPointsUIExec(Player(i)) + if ( WoWReforgedSkillUI__currentHero[i] == hero ) then + call WoWReforgedSkillUI__UpdateSkillPointsUIExec(Player(i)) endif set i=i + 1 endloop @@ -78731,63 +78731,63 @@ function UpdateSkillPointsUIForAllPlayers takes nothing returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) - call WoWReforgedSkillUI___UpdateSkillPointsUIExec(Player(i)) + call WoWReforgedSkillUI__UpdateSkillPointsUIExec(Player(i)) set i=i + 1 endloop endfunction -function WoWReforgedSkillUI___TriggerConditioLoaded takes nothing returns boolean - call WoWReforgedSkillUI___UpdateSkillPointsUIForAllPlayersForHero(GetTriggerUnit()) +function WoWReforgedSkillUI__TriggerConditioLoaded takes nothing returns boolean + call WoWReforgedSkillUI__UpdateSkillPointsUIForAllPlayersForHero(GetTriggerUnit()) return false endfunction function EnableSkillUITriggers takes nothing returns nothing - call EnableTrigger(WoWReforgedSkillUI___selectionTrigger) - call EnableTrigger(WoWReforgedSkillUI___deselectionTrigger) - call EnableTrigger(WoWReforgedSkillUI___loadTrigger) + call EnableTrigger(WoWReforgedSkillUI__selectionTrigger) + call EnableTrigger(WoWReforgedSkillUI__deselectionTrigger) + call EnableTrigger(WoWReforgedSkillUI__loadTrigger) endfunction function DisableSkillUITriggers takes nothing returns nothing - call DisableTrigger(WoWReforgedSkillUI___selectionTrigger) - call DisableTrigger(WoWReforgedSkillUI___deselectionTrigger) - call DisableTrigger(WoWReforgedSkillUI___loadTrigger) + call DisableTrigger(WoWReforgedSkillUI__selectionTrigger) + call DisableTrigger(WoWReforgedSkillUI__deselectionTrigger) + call DisableTrigger(WoWReforgedSkillUI__loadTrigger) endfunction function CreateAndEnableSkillUI takes nothing returns nothing - call WoWReforgedSkillUI___CreateSkillUI() + call WoWReforgedSkillUI__CreateSkillUI() call EnableSkillUITriggers() endfunction -function WoWReforgedSkillUI___AboutToSave takes nothing returns nothing +function WoWReforgedSkillUI__AboutToSave takes nothing returns nothing call DisableSkillUITriggers() - call WoWReforgedSkillUI___HideSkillUI() + call WoWReforgedSkillUI__HideSkillUI() endfunction -function WoWReforgedSkillUI___AfterSaving takes nothing returns nothing +function WoWReforgedSkillUI__AfterSaving takes nothing returns nothing call EnableSkillUITriggers() call UpdateSkillPointsUIForAllPlayers() endfunction -function WoWReforgedSkillUI___Init takes nothing returns nothing - call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedSkillUI___syncTrigger , WoWReforgedSkillUI___PREFIX , false) - call TriggerAddCondition(WoWReforgedSkillUI___syncTrigger, Condition(function WoWReforgedSkillUI___TriggerConditionSync)) +function WoWReforgedSkillUI__Init takes nothing returns nothing + call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedSkillUI__syncTrigger , WoWReforgedSkillUI__PREFIX , false) + call TriggerAddCondition(WoWReforgedSkillUI__syncTrigger, Condition(function WoWReforgedSkillUI__TriggerConditionSync)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkillUI___selectionTrigger, EVENT_PLAYER_UNIT_SELECTED) - call TriggerAddCondition(WoWReforgedSkillUI___selectionTrigger, Condition(function WoWReforgedSkillUI___TriggerConditionSelected)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkillUI__selectionTrigger, EVENT_PLAYER_UNIT_SELECTED) + call TriggerAddCondition(WoWReforgedSkillUI__selectionTrigger, Condition(function WoWReforgedSkillUI__TriggerConditionSelected)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkillUI___deselectionTrigger, EVENT_PLAYER_UNIT_DESELECTED) - call TriggerAddCondition(WoWReforgedSkillUI___deselectionTrigger, Condition(function WoWReforgedSkillUI___TriggerConditionDeselected)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkillUI__deselectionTrigger, EVENT_PLAYER_UNIT_DESELECTED) + call TriggerAddCondition(WoWReforgedSkillUI__deselectionTrigger, Condition(function WoWReforgedSkillUI__TriggerConditionDeselected)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkillUI___loadTrigger, EVENT_PLAYER_UNIT_LOADED) - call TriggerAddCondition(WoWReforgedSkillUI___loadTrigger, Condition(function WoWReforgedSkillUI___TriggerConditioLoaded)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedSkillUI__loadTrigger, EVENT_PLAYER_UNIT_LOADED) + call TriggerAddCondition(WoWReforgedSkillUI__loadTrigger, Condition(function WoWReforgedSkillUI__TriggerConditioLoaded)) // leveling is done by UpdateSkillUIEvaluate call DisableSkillUITriggers() - call TriggerAddAction(WoWReforgedSkillUI___tmpTrigger, function WoWReforgedSkillUI___TriggerActionUpdateSkillPointsUI) + 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!! @@ -78799,12 +78799,12 @@ endfunction //library WoWReforgedUpdateBackpackUI: -function WoWReforgedUpdateBackpackUI___TriggerActionUpdateBackpackUI takes nothing returns nothing +function WoWReforgedUpdateBackpackUI__TriggerActionUpdateBackpackUI takes nothing returns nothing call UpdateItemsForBackpackUI(updateBackpackUIPlayer) endfunction -function WoWReforgedUpdateBackpackUI___Init takes nothing returns nothing - call TriggerAddAction(updateBackpackUITrigger, function WoWReforgedUpdateBackpackUI___TriggerActionUpdateBackpackUI) +function WoWReforgedUpdateBackpackUI__Init takes nothing returns nothing + call TriggerAddAction(updateBackpackUITrigger, function WoWReforgedUpdateBackpackUI__TriggerActionUpdateBackpackUI) endfunction @@ -78812,21 +78812,21 @@ endfunction //library WoWReforgedArmory: -function WoWReforgedArmory___AddEquipmentItemsToShop takes unit shop returns nothing +function WoWReforgedArmory__AddEquipmentItemsToShop takes unit shop returns nothing local integer i= 1 - local integer max= (WoWReforgedEquipment___equipmentTypesCounter) // INLINED!! + local integer max= (WoWReforgedEquipment__equipmentTypesCounter) // INLINED!! local string pageName= "" //call BJDebugMsg("Before enabling shop " + GetUnitName(shop) + " with " + I2S(max) + " total learnable skills.") call EnablePagedButtons(shop) call SetPagedButtonsSlotsPerPage(shop , 9) loop exitwhen ( i >= max ) - if ( i > 1 and (WoWReforgedEquipment___equipmentItemTypeCategoryName[(i)]) != "" and (WoWReforgedEquipment___equipmentItemTypeCategoryName[(i)]) != null and (WoWReforgedEquipment___equipmentItemTypeCategoryName[(i)]) != pageName ) then // INLINED!! + if ( i > 1 and (WoWReforgedEquipment__equipmentItemTypeCategoryName[(i)]) != "" and (WoWReforgedEquipment__equipmentItemTypeCategoryName[(i)]) != null and (WoWReforgedEquipment__equipmentItemTypeCategoryName[(i)]) != pageName ) then // INLINED!! call AddPagedButtonsSpacersRemaining(shop) endif -call AddPagedButtonsId((shop ) , ( (WoWReforgedEquipment___equipmentItemTypeId[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! - if ( (WoWReforgedEquipment___equipmentItemTypeCategoryName[(i)]) != "" and (WoWReforgedEquipment___equipmentItemTypeCategoryName[(i)]) != null ) then // INLINED!! - set pageName=(WoWReforgedEquipment___equipmentItemTypeCategoryName[(i)]) // INLINED!! +call AddPagedButtonsId((shop ) , ( (WoWReforgedEquipment__equipmentItemTypeId[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! + if ( (WoWReforgedEquipment__equipmentItemTypeCategoryName[(i)]) != "" and (WoWReforgedEquipment__equipmentItemTypeCategoryName[(i)]) != null ) then // INLINED!! + set pageName=(WoWReforgedEquipment__equipmentItemTypeCategoryName[(i)]) // INLINED!! call SetPagedButtonsCurrentPageName(shop , pageName) endif set i=i + 1 @@ -78845,11 +78845,11 @@ function IsUnitArmory takes unit whichUnit returns boolean return IsArmory(GetUnitTypeId(whichUnit)) endfunction -function WoWReforgedArmory___TriggerConditionSellItem takes nothing returns boolean +function WoWReforgedArmory__TriggerConditionSellItem takes nothing returns boolean return (IsArmory(GetUnitTypeId((GetTriggerUnit())))) // INLINED!! endfunction -function WoWReforgedArmory___TriggerAction1SellItem takes nothing returns nothing +function WoWReforgedArmory__TriggerAction1SellItem takes nothing returns nothing local unit hero= GetBuyingUnit() local player owner= GetOwningPlayer(hero) local integer unitTypeId= GetUnitTypeId(hero) @@ -78867,33 +78867,33 @@ function WoWReforgedArmory___TriggerAction1SellItem takes nothing returns nothin set owner=null endfunction -function WoWReforgedArmory___TriggerConditionConstructed takes nothing returns boolean +function WoWReforgedArmory__TriggerConditionConstructed takes nothing returns boolean if ( (IsArmory(GetUnitTypeId((GetTriggerUnit())))) ) then // INLINED!! - call WoWReforgedArmory___AddEquipmentItemsToShop(GetConstructedStructure()) + call WoWReforgedArmory__AddEquipmentItemsToShop(GetConstructedStructure()) endif return false endfunction -function WoWReforgedArmory___TriggerConditionSummoned takes nothing returns boolean +function WoWReforgedArmory__TriggerConditionSummoned takes nothing returns boolean if ( (IsArmory(GetUnitTypeId((GetSummonedUnit())))) ) then // INLINED!! - call WoWReforgedArmory___AddEquipmentItemsToShop(GetSummonedUnit()) + call WoWReforgedArmory__AddEquipmentItemsToShop(GetSummonedUnit()) endif return false endfunction -function WoWReforgedArmory___ForGroupEnableArmory takes nothing returns nothing - call WoWReforgedArmory___AddEquipmentItemsToShop(GetEnumUnit()) +function WoWReforgedArmory__ForGroupEnableArmory takes nothing returns nothing + call WoWReforgedArmory__AddEquipmentItemsToShop(GetEnumUnit()) endfunction -function WoWReforgedArmory___FilterBuilding takes nothing returns boolean +function WoWReforgedArmory__FilterBuilding takes nothing returns boolean return (IsArmory(GetUnitTypeId((GetFilterUnit())))) // INLINED!! endfunction -function WoWReforgedArmory___UpdateAllShops takes nothing returns nothing +function WoWReforgedArmory__UpdateAllShops takes nothing returns nothing local group g= CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedArmory___FilterBuilding)) - call ForGroup(g, function WoWReforgedArmory___ForGroupEnableArmory) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedArmory__FilterBuilding)) + call ForGroup(g, function WoWReforgedArmory__ForGroupEnableArmory) call GroupClear(g) call DestroyGroup(g) @@ -78903,18 +78903,18 @@ function WoWReforgedArmory___UpdateAllShops takes nothing returns nothing call DestroyTimer(GetExpiredTimer()) endfunction -function WoWReforgedArmory___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedArmory___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedArmory___sellTrigger, Condition(function WoWReforgedArmory___TriggerConditionSellItem)) - call TriggerAddAction(WoWReforgedArmory___sellTrigger, function WoWReforgedArmory___TriggerAction1SellItem) +function WoWReforgedArmory__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedArmory__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedArmory__sellTrigger, Condition(function WoWReforgedArmory__TriggerConditionSellItem)) + call TriggerAddAction(WoWReforgedArmory__sellTrigger, function WoWReforgedArmory__TriggerAction1SellItem) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedArmory___constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) - call TriggerAddCondition(WoWReforgedArmory___constructionTrigger, Condition(function WoWReforgedArmory___TriggerConditionConstructed)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedArmory__constructionTrigger, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) + call TriggerAddCondition(WoWReforgedArmory__constructionTrigger, Condition(function WoWReforgedArmory__TriggerConditionConstructed)) - call TriggerRegisterAnyUnitEventBJ(WoWReforgedArmory___summonTrigger, EVENT_PLAYER_UNIT_SUMMON) - call TriggerAddCondition(WoWReforgedArmory___summonTrigger, Condition(function WoWReforgedArmory___TriggerConditionSummoned)) + call TriggerRegisterAnyUnitEventBJ(WoWReforgedArmory__summonTrigger, EVENT_PLAYER_UNIT_SUMMON) + call TriggerAddCondition(WoWReforgedArmory__summonTrigger, Condition(function WoWReforgedArmory__TriggerConditionSummoned)) - call TimerStart(CreateTimer(), 2.0, false, function WoWReforgedArmory___UpdateAllShops) + call TimerStart(CreateTimer(), 2.0, false, function WoWReforgedArmory__UpdateAllShops) endfunction @@ -79072,12 +79072,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 @@ -79124,17 +79124,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 @@ -79608,7 +79608,7 @@ endfunction //library WoWReforgedPrestoredSaveCodes ends //library WoWReforgedRandomSaveCode: -function WoWReforgedRandomSaveCode__CreateRandomUnits takes player whichPlayer returns group +function WoWReforgedRandomSaveCode___CreateRandomUnits takes player whichPlayer returns group local location tmpLocation= Location(0.0, 0.0) local group allCreeps= CreateGroup() local integer i= 0 @@ -79625,9 +79625,9 @@ function WoWReforgedRandomSaveCode__CreateRandomUnits takes player whichPlayer r return allCreeps endfunction -function WoWReforgedRandomSaveCode__GetSaveCodeRandomUnits takes player whichPlayer returns string +function WoWReforgedRandomSaveCode___GetSaveCodeRandomUnits takes player whichPlayer returns string local location tmpLocation= Location(0.0, 0.0) - local group allCreeps= WoWReforgedRandomSaveCode__CreateRandomUnits(whichPlayer) + local group allCreeps= WoWReforgedRandomSaveCode___CreateRandomUnits(whichPlayer) local group allCreepsDistinct= DistinctGroup(allCreeps) local string result= GetSaveCodeUnitsEx2(GetPlayerName(whichPlayer) , IsInSinglePlayer() , IsPlayerWarlord(whichPlayer) , udg_GameType , R2I(GetPlayerHandicapXP(whichPlayer)) , true , 0 , whichPlayer , allCreepsDistinct) @@ -79647,7 +79647,7 @@ function WoWReforgedRandomSaveCode__GetSaveCodeRandomUnits takes player whichPla return result endfunction -function WoWReforgedRandomSaveCode__GetSaveCodeRandomItems takes player whichPlayer returns string +function WoWReforgedRandomSaveCode___GetSaveCodeRandomItems takes player whichPlayer returns string local item item0= CreateItem(ChooseRandomItem(GetRandomInt(0, 8)), 0.0, 0.0) local item item1= CreateItem(ChooseRandomItem(GetRandomInt(0, 8)), 0.0, 0.0) local item item2= CreateItem(ChooseRandomItem(GetRandomInt(0, 8)), 0.0, 0.0) @@ -79686,7 +79686,7 @@ function WoWReforgedRandomSaveCode__GetSaveCodeRandomItems takes player whichPla return result endfunction -function WoWReforgedRandomSaveCode__ShowUrl takes player whichPlayer,string title,string saveCode returns nothing +function WoWReforgedRandomSaveCode___ShowUrl takes player whichPlayer,string title,string saveCode returns nothing call ShowUrlUi(whichPlayer , title , saveCode) @@ -79696,9 +79696,9 @@ endfunction function GenerateRandomSaveCode takes unit hero returns nothing if ( GetRandomInt(0, 1) == 0 ) then - call ShowUrlUi((GetOwningPlayer(hero) ) , ( "Units Save Code" ) , ( WoWReforgedRandomSaveCode__GetSaveCodeRandomUnits(GetOwningPlayer(hero)))) // INLINED!! + call ShowUrlUi((GetOwningPlayer(hero) ) , ( "Units Save Code" ) , ( WoWReforgedRandomSaveCode___GetSaveCodeRandomUnits(GetOwningPlayer(hero)))) // INLINED!! else - call ShowUrlUi((GetOwningPlayer(hero) ) , ( "Items Save Code" ) , ( WoWReforgedRandomSaveCode__GetSaveCodeRandomItems(GetOwningPlayer(hero)))) // INLINED!! + call ShowUrlUi((GetOwningPlayer(hero) ) , ( "Items Save Code" ) , ( WoWReforgedRandomSaveCode___GetSaveCodeRandomItems(GetOwningPlayer(hero)))) // INLINED!! endif endfunction @@ -79991,7 +79991,7 @@ endfunction //library WoWReforgedUpdateSkillUI: -function WoWReforgedUpdateSkillUI___Init takes nothing returns nothing +function WoWReforgedUpdateSkillUI__Init takes nothing returns nothing call TriggerAddAction(updateSkillUITrigger, function UpdateSkillPointsUIForAllPlayers) endfunction @@ -80584,17 +80584,17 @@ endfunction function GetMaxStartLocations takes nothing returns integer - return WoWReforgedStartLocations__startLocationsCounter + return WoWReforgedStartLocations___startLocationsCounter endfunction function AddStartLocation takes integer itemTypeId,real x,real y,real facing,boolean isClanArea returns integer - local integer index= WoWReforgedStartLocations__startLocationsCounter - set WoWReforgedStartLocations__startLocationsItemTypeIds[index]=itemTypeId - set WoWReforgedStartLocations__startLocationsX[index]=x - set WoWReforgedStartLocations__startLocationsY[index]=y - set WoWReforgedStartLocations__startLocationsFacing[index]=facing - set WoWReforgedStartLocations__startLocationsIsClanArea[index]=isClanArea - set WoWReforgedStartLocations__startLocationsCounter=WoWReforgedStartLocations__startLocationsCounter + 1 + local integer index= WoWReforgedStartLocations___startLocationsCounter + set WoWReforgedStartLocations___startLocationsItemTypeIds[index]=itemTypeId + set WoWReforgedStartLocations___startLocationsX[index]=x + set WoWReforgedStartLocations___startLocationsY[index]=y + set WoWReforgedStartLocations___startLocationsFacing[index]=facing + set WoWReforgedStartLocations___startLocationsIsClanArea[index]=isClanArea + set WoWReforgedStartLocations___startLocationsCounter=WoWReforgedStartLocations___startLocationsCounter + 1 return index endfunction @@ -80606,29 +80606,29 @@ function AddWoWReforgedStartLocation takes nothing returns integer endfunction function GetStartLocationItemTypeId takes integer startLocation returns integer - return WoWReforgedStartLocations__startLocationsItemTypeIds[startLocation] + return WoWReforgedStartLocations___startLocationsItemTypeIds[startLocation] endfunction function GetStartLocationIsClanArea takes integer startLocation returns boolean - return WoWReforgedStartLocations__startLocationsIsClanArea[startLocation] + return WoWReforgedStartLocations___startLocationsIsClanArea[startLocation] endfunction function GetStartLocationName takes integer startLocation returns string - return GetObjectName((WoWReforgedStartLocations__startLocationsItemTypeIds[(startLocation)])) // INLINED!! + return GetObjectName((WoWReforgedStartLocations___startLocationsItemTypeIds[(startLocation)])) // INLINED!! endfunction function MoveUnitToStartLocation takes unit whichUnit,integer startLocation returns nothing - call SetUnitX(whichUnit, WoWReforgedStartLocations__startLocationsX[startLocation]) - call SetUnitY(whichUnit, WoWReforgedStartLocations__startLocationsY[startLocation]) - call SetUnitFacing(whichUnit, WoWReforgedStartLocations__startLocationsFacing[startLocation]) + call SetUnitX(whichUnit, WoWReforgedStartLocations___startLocationsX[startLocation]) + call SetUnitY(whichUnit, WoWReforgedStartLocations___startLocationsY[startLocation]) + call SetUnitFacing(whichUnit, WoWReforgedStartLocations___startLocationsFacing[startLocation]) endfunction function GetStartLocationByItemTypeId takes integer itemTypeId returns integer local integer i= 0 - local integer max= (WoWReforgedStartLocations__startLocationsCounter) // INLINED!! + local integer max= (WoWReforgedStartLocations___startLocationsCounter) // INLINED!! loop exitwhen ( i == max ) - if ( itemTypeId == (WoWReforgedStartLocations__startLocationsItemTypeIds[(i)]) ) then // INLINED!! + if ( itemTypeId == (WoWReforgedStartLocations___startLocationsItemTypeIds[(i)]) ) then // INLINED!! return i endif set i=i + 1 @@ -80639,7 +80639,7 @@ endfunction function PlayerCanBuyStartLocationEx takes player whichPlayer,integer itemTypeId returns boolean local integer index= GetStartLocationByItemTypeId(itemTypeId) if ( index >= 0 ) then - return not (WoWReforgedStartLocations__startLocationsIsClanArea[(index)]) or (IsPlayerInForce((whichPlayer), prestoredElvenClanMembers)) // INLINED!! + return not (WoWReforgedStartLocations___startLocationsIsClanArea[(index)]) or (IsPlayerInForce((whichPlayer), prestoredElvenClanMembers)) // INLINED!! endif return false endfunction @@ -80893,7 +80893,7 @@ function GetPlayerSelectionSettings takes player whichPlayer returns string set profession3=udg_ProfessionName[udg_PlayerSelectionProfession3[convertedPlayerId]] endif - set startLocation=(GetObjectName((WoWReforgedStartLocations__startLocationsItemTypeIds[((udg_PlayerSelectionStartLocation[convertedPlayerId]))]))) // INLINED!! + set startLocation=(GetObjectName((WoWReforgedStartLocations___startLocationsItemTypeIds[((udg_PlayerSelectionStartLocation[convertedPlayerId]))]))) // INLINED!! return "- Mode: " + mode + "\n- Heroes: " + hero1 + "/" + hero2 + "/" + hero3 + "\n- Races: " + race1 + "/" + race2 + "/" + race3 + "\n- Professions: " + profession1 + "/" + profession2 + "/" + profession3 + "\n- Start Location: " + startLocation endfunction @@ -80906,18 +80906,18 @@ endfunction function SetTooltip takes player whichPlayer,string tooltip returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, tooltip) + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, tooltip) endif endfunction function SetHeroesText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxHeroes, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxHeroes, txt) endif endfunction function GetHeroesText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxHeroes) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxHeroes) endfunction function UpdateHeroesText takes player whichPlayer returns nothing @@ -80949,12 +80949,12 @@ endfunction function SetItemsText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxItems, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxItems, txt) endif endfunction function GetItemsText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxItems) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxItems) endfunction function UpdateItemsText takes player whichPlayer returns nothing @@ -80981,12 +80981,12 @@ endfunction function SetUnitsText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxUnits, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxUnits, txt) endif endfunction function GetUnitsText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxUnits) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxUnits) endfunction function UpdateUnitsText takes player whichPlayer returns nothing @@ -81013,12 +81013,12 @@ endfunction function SetResearchesText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxResearches, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxResearches, txt) endif endfunction function GetResearchesText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxResearches) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxResearches) endfunction function UpdateResearchesText takes player whichPlayer returns nothing @@ -81044,12 +81044,12 @@ endfunction function SetBuildingsText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxBuildings, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxBuildings, txt) endif endfunction function GetBuildingsText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxBuildings) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxBuildings) endfunction function UpdateBuildingsText takes player whichPlayer returns nothing @@ -81075,12 +81075,12 @@ endfunction function SetResourcesText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxResources, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxResources, txt) endif endfunction function GetResourcesText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxResources) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxResources) endfunction function UpdateResourcesText takes player whichPlayer returns nothing @@ -81110,12 +81110,12 @@ endfunction function SetClanText takes player whichPlayer,string txt returns nothing if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxClan, txt) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxClan, txt) endif endfunction function GetClanText takes player whichPlayer returns string - return BlzFrameGetText(WoWReforgedSaveCodeUI___EditBoxClan) + return BlzFrameGetText(WoWReforgedSaveCodeUI__EditBoxClan) endfunction function UpdateClanText takes player whichPlayer returns nothing @@ -81140,21 +81140,21 @@ function UpdateAll takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) call UpdateHeroesText(whichPlayer) call UpdateItemsText(whichPlayer) - set WoWReforgedSaveCodeUI___itemsIndex=0 + set WoWReforgedSaveCodeUI__itemsIndex=0 call UpdateUnitsText(whichPlayer) - set WoWReforgedSaveCodeUI___unitsIndex=0 + set WoWReforgedSaveCodeUI__unitsIndex=0 call UpdateResearchesText(whichPlayer) - set WoWReforgedSaveCodeUI___researchesIndex=0 + set WoWReforgedSaveCodeUI__researchesIndex=0 call UpdateBuildingsText(whichPlayer) - set WoWReforgedSaveCodeUI___buildingsIndex=0 + set WoWReforgedSaveCodeUI__buildingsIndex=0 call UpdateResourcesText(whichPlayer) call UpdateClanText(whichPlayer) if ( GetLocalPlayer() == whichPlayer ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ItemsEditIndex, I2S(WoWReforgedSaveCodeUI___itemsIndex)) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UnitsEditIndex, I2S(WoWReforgedSaveCodeUI___unitsIndex)) - call BlzFrameSetText(WoWReforgedSaveCodeUI___ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI___researchesIndex)) - call BlzFrameSetText(WoWReforgedSaveCodeUI___BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI___buildingsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ItemsEditIndex, I2S(WoWReforgedSaveCodeUI__itemsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UnitsEditIndex, I2S(WoWReforgedSaveCodeUI__unitsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI__researchesIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI__buildingsIndex)) endif endfunction @@ -81353,78 +81353,78 @@ function SyncLoadClan takes player whichPlayer returns nothing endfunction function SetSaveCodeUIVisibleAll takes boolean visible returns nothing - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BackgroundFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___TitleFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___TooltipBackgroundFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___TooltipLabelFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BackgroundFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__TitleFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__TooltipBackgroundFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__TooltipLabelFrame, visible) // heroes - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameHeroes, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxHeroes, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameHeroes, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxHeroes, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, visible) // items - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameItems, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditIndex, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditArrowUp, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditArrowDown, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxItems, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameItems, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameItems, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameItems, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditIndex, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditArrowUp, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditArrowDown, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxItems, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameItems, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameItems, visible) // units - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameUnits, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditIndex, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditArrowUp, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditArrowDown, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxUnits, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameUnits, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameUnits, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditIndex, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditArrowUp, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditArrowDown, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxUnits, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameUnits, visible) // researches - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameResearches, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditIndex, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditArrowUp, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditArrowDown, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxResearches, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameResearches, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameResearches, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditIndex, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditArrowUp, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditArrowDown, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxResearches, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameResearches, visible) // buildings - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameBuildings, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditIndex, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditArrowUp, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditArrowDown, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxBuildings, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameBuildings, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditIndex, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditArrowUp, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditArrowDown, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxBuildings, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, visible) // resources - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameResources, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxResources, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameResources, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameResources, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameResources, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxResources, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameResources, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameResources, visible) // clan - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameClan, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxClan, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameClan, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameClan, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameClan, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxClan, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameClan, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameClan, visible) // directory - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameDirectory, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___EditBoxDirectory, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameDirectory, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__EditBoxDirectory, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, visible) // all - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LabelFrameAll, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___UpdateButtonFrameAll, visible) - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___LoadButtonFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LabelFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__UpdateButtonFrameAll, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__LoadButtonFrameAll, visible) // close - call BlzFrameSetVisible(WoWReforgedSaveCodeUI___CloseButton, visible) + call BlzFrameSetVisible(WoWReforgedSaveCodeUI__CloseButton, visible) endfunction function SetSaveCodeUIVisible takes player whichPlayer,boolean visible returns nothing @@ -81461,7 +81461,7 @@ function UpdateFunctionHeroes takes nothing returns nothing //call BJDebugMsg("Click update heroes") call UpdateHeroesText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for heroes.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for heroes.") endif endfunction @@ -81473,9 +81473,9 @@ function SaveCodeEnterFunctionItemsIndex takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSaveCodeUI___itemsIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI___ItemsEditIndex)))) + set WoWReforgedSaveCodeUI__itemsIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI__ItemsEditIndex)))) - call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___itemsIndex) + call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__itemsIndex) endfunction function ItemsUpFunction takes nothing returns nothing @@ -81483,17 +81483,17 @@ function ItemsUpFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___itemsIndex == 0 ) then - set WoWReforgedSaveCodeUI___itemsIndex=(3 + BACKPACK_MAX_PAGES + 3) // INLINED!! + if ( WoWReforgedSaveCodeUI__itemsIndex == 0 ) then + set WoWReforgedSaveCodeUI__itemsIndex=(3 + BACKPACK_MAX_PAGES + 3) // INLINED!! else - set WoWReforgedSaveCodeUI___itemsIndex=WoWReforgedSaveCodeUI___itemsIndex - 1 + set WoWReforgedSaveCodeUI__itemsIndex=WoWReforgedSaveCodeUI__itemsIndex - 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ItemsEditIndex, I2S(WoWReforgedSaveCodeUI___itemsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ItemsEditIndex, I2S(WoWReforgedSaveCodeUI__itemsIndex)) endif - call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___itemsIndex) + call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__itemsIndex) endfunction function ItemsDownFunction takes nothing returns nothing @@ -81501,17 +81501,17 @@ function ItemsDownFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___itemsIndex == (3 + BACKPACK_MAX_PAGES + 3) ) then // INLINED!! - set WoWReforgedSaveCodeUI___itemsIndex=0 + if ( WoWReforgedSaveCodeUI__itemsIndex == (3 + BACKPACK_MAX_PAGES + 3) ) then // INLINED!! + set WoWReforgedSaveCodeUI__itemsIndex=0 else - set WoWReforgedSaveCodeUI___itemsIndex=WoWReforgedSaveCodeUI___itemsIndex + 1 + set WoWReforgedSaveCodeUI__itemsIndex=WoWReforgedSaveCodeUI__itemsIndex + 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ItemsEditIndex, I2S(WoWReforgedSaveCodeUI___itemsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ItemsEditIndex, I2S(WoWReforgedSaveCodeUI__itemsIndex)) endif - call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___itemsIndex) + call UpdateItemsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__itemsIndex) endfunction function EditBoxEnterItems takes player whichPlayer returns nothing @@ -81536,9 +81536,9 @@ function SaveCodeEnterFunctionUnitsIndex takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSaveCodeUI___unitsIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI___UnitsEditIndex)))) + set WoWReforgedSaveCodeUI__unitsIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI__UnitsEditIndex)))) - call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___unitsIndex) + call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__unitsIndex) endfunction function UnitsUpFunction takes nothing returns nothing @@ -81546,17 +81546,17 @@ function UnitsUpFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___unitsIndex == 0 ) then - set WoWReforgedSaveCodeUI___unitsIndex=(8) // INLINED!! + if ( WoWReforgedSaveCodeUI__unitsIndex == 0 ) then + set WoWReforgedSaveCodeUI__unitsIndex=(8) // INLINED!! else - set WoWReforgedSaveCodeUI___unitsIndex=WoWReforgedSaveCodeUI___unitsIndex - 1 + set WoWReforgedSaveCodeUI__unitsIndex=WoWReforgedSaveCodeUI__unitsIndex - 1 endif if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___UnitsEditIndex, I2S(WoWReforgedSaveCodeUI___unitsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UnitsEditIndex, I2S(WoWReforgedSaveCodeUI__unitsIndex)) endif - call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___unitsIndex) + call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__unitsIndex) endfunction function UnitsDownFunction takes nothing returns nothing @@ -81564,17 +81564,17 @@ function UnitsDownFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___unitsIndex == (8) ) then // INLINED!! - set WoWReforgedSaveCodeUI___unitsIndex=0 + if ( WoWReforgedSaveCodeUI__unitsIndex == (8) ) then // INLINED!! + set WoWReforgedSaveCodeUI__unitsIndex=0 else - set WoWReforgedSaveCodeUI___unitsIndex=WoWReforgedSaveCodeUI___unitsIndex + 1 + set WoWReforgedSaveCodeUI__unitsIndex=WoWReforgedSaveCodeUI__unitsIndex + 1 endif if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___UnitsEditIndex, I2S(WoWReforgedSaveCodeUI___unitsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UnitsEditIndex, I2S(WoWReforgedSaveCodeUI__unitsIndex)) endif - call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___unitsIndex) + call UpdateUnitsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__unitsIndex) endfunction function EditBoxEnterUnits takes player whichPlayer returns nothing @@ -81589,7 +81589,7 @@ function UpdateFunctionUnits takes nothing returns nothing //call BJDebugMsg("Click update units") call UpdateUnitsText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for units.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for units.") endif endfunction @@ -81601,9 +81601,9 @@ function SaveCodeEnterFunctionResearchesIndex takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSaveCodeUI___researchesIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI___ResearchesEditIndex)))) + set WoWReforgedSaveCodeUI__researchesIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI__ResearchesEditIndex)))) - call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___researchesIndex) + call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__researchesIndex) endfunction function ResearchesUpFunction takes nothing returns nothing @@ -81611,17 +81611,17 @@ function ResearchesUpFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___researchesIndex == 0 ) then - set WoWReforgedSaveCodeUI___researchesIndex=(8) // INLINED!! + if ( WoWReforgedSaveCodeUI__researchesIndex == 0 ) then + set WoWReforgedSaveCodeUI__researchesIndex=(8) // INLINED!! else - set WoWReforgedSaveCodeUI___researchesIndex=WoWReforgedSaveCodeUI___researchesIndex - 1 + set WoWReforgedSaveCodeUI__researchesIndex=WoWReforgedSaveCodeUI__researchesIndex - 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI___researchesIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI__researchesIndex)) endif - call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___researchesIndex) + call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__researchesIndex) endfunction function ResearchesDownFunction takes nothing returns nothing @@ -81629,17 +81629,17 @@ function ResearchesDownFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___researchesIndex == (8) ) then // INLINED!! - set WoWReforgedSaveCodeUI___researchesIndex=0 + if ( WoWReforgedSaveCodeUI__researchesIndex == (8) ) then // INLINED!! + set WoWReforgedSaveCodeUI__researchesIndex=0 else - set WoWReforgedSaveCodeUI___researchesIndex=WoWReforgedSaveCodeUI___researchesIndex + 1 + set WoWReforgedSaveCodeUI__researchesIndex=WoWReforgedSaveCodeUI__researchesIndex + 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI___researchesIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ResearchesEditIndex, I2S(WoWReforgedSaveCodeUI__researchesIndex)) endif - call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___researchesIndex) + call UpdateResearchesTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__researchesIndex) endfunction function EditBoxEnterResearches takes player whichPlayer returns nothing @@ -81655,7 +81655,7 @@ function UpdateFunctionResearches takes nothing returns nothing call UpdateResearchesText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for researches.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for researches.") endif endfunction @@ -81667,9 +81667,9 @@ function SaveCodeEnterFunctionBuildingsIndex takes nothing returns nothing local integer index= (LoadInteger(udg_DB, GetHandleId((GetTriggeringTrigger() )), ( 0))) // INLINED!! local integer playerId= GetPlayerId(GetTriggerPlayer()) - set WoWReforgedSaveCodeUI___researchesIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI___BuildingsEditIndex)))) + set WoWReforgedSaveCodeUI__researchesIndex=IMaxBJ(0, IMinBJ(30, S2I(BlzFrameGetText(WoWReforgedSaveCodeUI__BuildingsEditIndex)))) - call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___researchesIndex) + call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__researchesIndex) endfunction function BuildingsUpFunction takes nothing returns nothing @@ -81677,17 +81677,17 @@ function BuildingsUpFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___buildingsIndex == 0 ) then - set WoWReforgedSaveCodeUI___buildingsIndex=(8) // INLINED!! + if ( WoWReforgedSaveCodeUI__buildingsIndex == 0 ) then + set WoWReforgedSaveCodeUI__buildingsIndex=(8) // INLINED!! else - set WoWReforgedSaveCodeUI___buildingsIndex=WoWReforgedSaveCodeUI___buildingsIndex - 1 + set WoWReforgedSaveCodeUI__buildingsIndex=WoWReforgedSaveCodeUI__buildingsIndex - 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI___buildingsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI__buildingsIndex)) endif - call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___buildingsIndex) + call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__buildingsIndex) endfunction function BuildingsDownFunction takes nothing returns nothing @@ -81695,17 +81695,17 @@ function BuildingsDownFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) - if ( WoWReforgedSaveCodeUI___buildingsIndex == (8) ) then // INLINED!! - set WoWReforgedSaveCodeUI___buildingsIndex=0 + if ( WoWReforgedSaveCodeUI__buildingsIndex == (8) ) then // INLINED!! + set WoWReforgedSaveCodeUI__buildingsIndex=0 else - set WoWReforgedSaveCodeUI___buildingsIndex=WoWReforgedSaveCodeUI___buildingsIndex + 1 + set WoWReforgedSaveCodeUI__buildingsIndex=WoWReforgedSaveCodeUI__buildingsIndex + 1 endif if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI___buildingsIndex)) + call BlzFrameSetText(WoWReforgedSaveCodeUI__BuildingsEditIndex, I2S(WoWReforgedSaveCodeUI__buildingsIndex)) endif - call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI___buildingsIndex) + call UpdateBuildingsTextForIndex(GetTriggerPlayer() , WoWReforgedSaveCodeUI__buildingsIndex) endfunction function EditBoxEnterBuildings takes player whichPlayer returns nothing @@ -81721,7 +81721,7 @@ function UpdateFunctionBuildings takes nothing returns nothing call UpdateBuildingsText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for buildings.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for buildings.") endif endfunction @@ -81743,7 +81743,7 @@ function UpdateFunctionResources takes nothing returns nothing call UpdateResourcesText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for resources.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for resources.") endif endfunction @@ -81764,7 +81764,7 @@ function UpdateFunctionClan takes nothing returns nothing call UpdateClanText(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated savecode for clan.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated savecode for clan.") endif endfunction @@ -81784,7 +81784,7 @@ function LoadAllFunctionAll takes nothing returns nothing local string fileName= GetSaveCodeAllFileNameForPlayer(GetTriggerPlayer()) //call BJDebugMsg("Click load auto") if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Trying to load all savecodes from \"" + fileName + "\".") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Trying to load all savecodes from \"" + fileName + "\".") endif call GetSaveCodeAllTextFile(GetTriggerPlayer()) endfunction @@ -81793,21 +81793,21 @@ function WriteAllFunctionAll takes nothing returns nothing local string fileName= GetSaveCodeAllFileNameForPlayer(GetTriggerPlayer()) //call BJDebugMsg("Click write auto") if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Saved all save codes into \"" + fileName + "\".") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Saved all save codes into \"" + fileName + "\".") endif call CreateSaveCodeAllTextFile(GetTriggerPlayer()) endfunction -function WoWReforgedSaveCodeUI___UpdateFunctionAll takes nothing returns nothing +function WoWReforgedSaveCodeUI__UpdateFunctionAll takes nothing returns nothing //call BJDebugMsg("Click update all") call UpdateAll(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Updated all savecodes.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Updated all savecodes.") endif endfunction -function WoWReforgedSaveCodeUI___LoadFunctionAll takes nothing returns nothing +function WoWReforgedSaveCodeUI__LoadFunctionAll takes nothing returns nothing //call BJDebugMsg("Click load all") call SyncLoadHeroes(GetTriggerPlayer()) call SyncLoadItems(GetTriggerPlayer()) @@ -81817,11 +81817,11 @@ function WoWReforgedSaveCodeUI___LoadFunctionAll takes nothing returns nothing call SyncLoadClan(GetTriggerPlayer()) if ( GetLocalPlayer() == GetTriggerPlayer() ) then - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Tried to load all savecodes.") + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Tried to load all savecodes.") endif endfunction -function WoWReforgedSaveCodeUI___CloseFunction takes nothing returns nothing +function WoWReforgedSaveCodeUI__CloseFunction takes nothing returns nothing call SetSaveCodeUIVisible((GetTriggerPlayer()) , false) // INLINED!! endfunction @@ -81829,530 +81829,530 @@ function CreateSaveCodeUI takes nothing returns nothing local real x= 0.0 local real y= 0.0 - set WoWReforgedSaveCodeUI___BackgroundFrame=CreateFullScreenFrame() + set WoWReforgedSaveCodeUI__BackgroundFrame=CreateFullScreenFrame() - set WoWReforgedSaveCodeUI___TitleFrame=CreateFullScreenTitle("SaveGuiTitle" , "Save Codes") + set WoWReforgedSaveCodeUI__TitleFrame=CreateFullScreenTitle("SaveGuiTitle" , "Save Codes") - set WoWReforgedSaveCodeUI___TooltipBackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___TooltipBackgroundFrame, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___TOOLTIP_X, WoWReforgedSaveCodeUI___LINE_START_Y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___TooltipBackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___TOOLTIP_X + WoWReforgedSaveCodeUI___TOOLTIP_WIDTH, WoWReforgedSaveCodeUI___LINE_START_Y - WoWReforgedSaveCodeUI___TOOLTIP_HEIGHT) + set WoWReforgedSaveCodeUI__TooltipBackgroundFrame=BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__TooltipBackgroundFrame, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__TOOLTIP_X, WoWReforgedSaveCodeUI__LINE_START_Y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__TooltipBackgroundFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__TOOLTIP_X + WoWReforgedSaveCodeUI__TOOLTIP_WIDTH, WoWReforgedSaveCodeUI__LINE_START_Y - WoWReforgedSaveCodeUI__TOOLTIP_HEIGHT) - set WoWReforgedSaveCodeUI___TooltipLabelFrame=BlzCreateFrameByType("TEXT", "SaveGuiTooltipLabel", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___TooltipLabelFrame, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___TOOLTIP_LABEL_X, WoWReforgedSaveCodeUI___TOOLTIP_LABEL_Y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___TooltipLabelFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___TOOLTIP_LABEL_X + WoWReforgedSaveCodeUI___TOOLTIP_LABEL_WIDTH, WoWReforgedSaveCodeUI___TOOLTIP_LABEL_Y - WoWReforgedSaveCodeUI___TOOLTIP_LABEL_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___TooltipLabelFrame, "Save Code Info") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___TooltipLabelFrame, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__TooltipLabelFrame=BlzCreateFrameByType("TEXT", "SaveGuiTooltipLabel", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__TooltipLabelFrame, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__TOOLTIP_LABEL_X, WoWReforgedSaveCodeUI__TOOLTIP_LABEL_Y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__TooltipLabelFrame, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__TOOLTIP_LABEL_X + WoWReforgedSaveCodeUI__TOOLTIP_LABEL_WIDTH, WoWReforgedSaveCodeUI__TOOLTIP_LABEL_Y - WoWReforgedSaveCodeUI__TOOLTIP_LABEL_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__TooltipLabelFrame, "Save Code Info") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__TooltipLabelFrame, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) // line 1: heroes - set y=WoWReforgedSaveCodeUI___LINE_START_Y + set y=WoWReforgedSaveCodeUI__LINE_START_Y - set WoWReforgedSaveCodeUI___LabelFrameHeroes=BlzCreateFrameByType("TEXT", "SaveGuiLabelHeroes", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameHeroes, "|cffFFCC00Heroes:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameHeroes, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__LabelFrameHeroes=BlzCreateFrameByType("TEXT", "SaveGuiLabelHeroes", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameHeroes, "|cffFFCC00Heroes:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameHeroes, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - set WoWReforgedSaveCodeUI___EditBoxHeroes=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxHeroes, "-load xxx") + set WoWReforgedSaveCodeUI__EditBoxHeroes=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxHeroes, "-load xxx") - set WoWReforgedSaveCodeUI___TriggerEditBoxHeroes=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxHeroes, function SaveCodeEnterFunctionHeroes) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxHeroes, WoWReforgedSaveCodeUI___EditBoxHeroes, FRAMEEVENT_EDITBOX_ENTER) + set WoWReforgedSaveCodeUI__TriggerEditBoxHeroes=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxHeroes, function SaveCodeEnterFunctionHeroes) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxHeroes, WoWReforgedSaveCodeUI__EditBoxHeroes, FRAMEEVENT_EDITBOX_ENTER) - set WoWReforgedSaveCodeUI___EnterTriggerHeroes=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerHeroes, WoWReforgedSaveCodeUI___EditBoxHeroes, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerHeroes, function SaveCodeEnterFunctionHeroes) + set WoWReforgedSaveCodeUI__EnterTriggerHeroes=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerHeroes, WoWReforgedSaveCodeUI__EditBoxHeroes, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerHeroes, function SaveCodeEnterFunctionHeroes) - set WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, "|cffFCD20DUpdate|r") + set WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, "|cffFCD20DUpdate|r") - set WoWReforgedSaveCodeUI___UpdateTriggerHeroes=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerHeroes, WoWReforgedSaveCodeUI___UpdateButtonFrameHeroes, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerHeroes, function UpdateFunctionHeroes) + set WoWReforgedSaveCodeUI__UpdateTriggerHeroes=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerHeroes, WoWReforgedSaveCodeUI__UpdateButtonFrameHeroes, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerHeroes, function UpdateFunctionHeroes) - set WoWReforgedSaveCodeUI___LoadButtonFrameHeroes=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, "|cffFCD20DLoad|r") + set WoWReforgedSaveCodeUI__LoadButtonFrameHeroes=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, "|cffFCD20DLoad|r") - set WoWReforgedSaveCodeUI___LoadTriggerHeroes=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerHeroes, WoWReforgedSaveCodeUI___LoadButtonFrameHeroes, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerHeroes, function LoadFunctionHeroes) + set WoWReforgedSaveCodeUI__LoadTriggerHeroes=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerHeroes, WoWReforgedSaveCodeUI__LoadButtonFrameHeroes, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerHeroes, function LoadFunctionHeroes) // line 2: items - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameItems=BlzCreateFrameByType("TEXT", "SaveGuiLabelItems", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameItems, "|cffFFCC00Items:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameItems, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___EditBoxItems=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxItems, "-load xxx") - - set WoWReforgedSaveCodeUI___TriggerEditBoxItems=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxItems, function SaveCodeEnterFunctionItems) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxItems, WoWReforgedSaveCodeUI___EditBoxItems, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___EnterTriggerItems=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerItems, WoWReforgedSaveCodeUI___EditBoxItems, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerItems, function SaveCodeEnterFunctionItems) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameItems=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameItems, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerItems=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerItems, WoWReforgedSaveCodeUI___UpdateButtonFrameItems, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerItems, function UpdateFunctionItems) - - set WoWReforgedSaveCodeUI___LoadButtonFrameItems=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameItems, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerItems=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerItems, WoWReforgedSaveCodeUI___LoadButtonFrameItems, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerItems, function LoadFunctionItems) - - set WoWReforgedSaveCodeUI___ItemsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___INDEX_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___ItemsEditIndex, "0") - - set WoWReforgedSaveCodeUI___TriggerEditBoxItemsIndex=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxItemsIndex, function SaveCodeEnterFunctionItemsIndex) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxItemsIndex, WoWReforgedSaveCodeUI___ItemsEditIndex, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___ItemsEditArrowUp=BlzCreateFrameByType("BUTTON", "ItemsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_UP_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - - set WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "ItemsUpFrame", WoWReforgedSaveCodeUI___ItemsEditArrowUp, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame, WoWReforgedSaveCodeUI___ItemsEditArrowUp) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___ItemsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - - set WoWReforgedSaveCodeUI___ItemsUpTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___ItemsUpTrigger, WoWReforgedSaveCodeUI___ItemsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___ItemsUpTrigger, function ItemsUpFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameItems=BlzCreateFrameByType("TEXT", "SaveGuiLabelItems", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameItems, "|cffFFCC00Items:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameItems, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__EditBoxItems=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxItems, "-load xxx") + + set WoWReforgedSaveCodeUI__TriggerEditBoxItems=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxItems, function SaveCodeEnterFunctionItems) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxItems, WoWReforgedSaveCodeUI__EditBoxItems, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__EnterTriggerItems=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerItems, WoWReforgedSaveCodeUI__EditBoxItems, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerItems, function SaveCodeEnterFunctionItems) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameItems=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameItems, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerItems=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerItems, WoWReforgedSaveCodeUI__UpdateButtonFrameItems, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerItems, function UpdateFunctionItems) + + set WoWReforgedSaveCodeUI__LoadButtonFrameItems=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameItems, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameItems, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameItems, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerItems=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerItems, WoWReforgedSaveCodeUI__LoadButtonFrameItems, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerItems, function LoadFunctionItems) + + set WoWReforgedSaveCodeUI__ItemsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__INDEX_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ItemsEditIndex, "0") + + set WoWReforgedSaveCodeUI__TriggerEditBoxItemsIndex=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxItemsIndex, function SaveCodeEnterFunctionItemsIndex) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxItemsIndex, WoWReforgedSaveCodeUI__ItemsEditIndex, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__ItemsEditArrowUp=BlzCreateFrameByType("BUTTON", "ItemsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_UP_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + + set WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "ItemsUpFrame", WoWReforgedSaveCodeUI__ItemsEditArrowUp, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame, WoWReforgedSaveCodeUI__ItemsEditArrowUp) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__ItemsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + + set WoWReforgedSaveCodeUI__ItemsUpTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__ItemsUpTrigger, WoWReforgedSaveCodeUI__ItemsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__ItemsUpTrigger, function ItemsUpFunction) - set WoWReforgedSaveCodeUI___ItemsEditArrowDown=BlzCreateFrameByType("BUTTON", "ItemsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ItemsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) + set WoWReforgedSaveCodeUI__ItemsEditArrowDown=BlzCreateFrameByType("BUTTON", "ItemsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ItemsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) - set WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "ItemsDownFrame", WoWReforgedSaveCodeUI___ItemsEditArrowDown, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame, WoWReforgedSaveCodeUI___ItemsEditArrowDown) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___ItemsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + set WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "ItemsDownFrame", WoWReforgedSaveCodeUI__ItemsEditArrowDown, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame, WoWReforgedSaveCodeUI__ItemsEditArrowDown) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__ItemsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - set WoWReforgedSaveCodeUI___ItemsDownTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___ItemsDownTrigger, WoWReforgedSaveCodeUI___ItemsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___ItemsDownTrigger, function ItemsDownFunction) + set WoWReforgedSaveCodeUI__ItemsDownTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__ItemsDownTrigger, WoWReforgedSaveCodeUI__ItemsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__ItemsDownTrigger, function ItemsDownFunction) // line 3: units - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameUnits=BlzCreateFrameByType("TEXT", "SaveGuiLabelUnits", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameUnits, "|cffFFCC00Units:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameUnits, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___EditBoxUnits=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxUnits, "-load xxx") - - set WoWReforgedSaveCodeUI___TriggerEditBoxUnits=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxUnits, function SaveCodeEnterFunctionUnits) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxUnits, WoWReforgedSaveCodeUI___EditBoxUnits, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___EnterTriggerUnits=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerUnits, WoWReforgedSaveCodeUI___EditBoxUnits, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerUnits, function SaveCodeEnterFunctionUnits) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameUnits=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerUnits=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerUnits, WoWReforgedSaveCodeUI___UpdateButtonFrameUnits, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerUnits, function UpdateFunctionUnits) - - set WoWReforgedSaveCodeUI___LoadButtonFrameUnits=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameUnits, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerUnits=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerUnits, WoWReforgedSaveCodeUI___LoadButtonFrameUnits, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerUnits, function LoadFunctionUnits) - - set WoWReforgedSaveCodeUI___UnitsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___INDEX_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UnitsEditIndex, "0") - - set WoWReforgedSaveCodeUI___TriggerEditBoxUnitsIndex=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxUnitsIndex, function SaveCodeEnterFunctionUnitsIndex) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxUnitsIndex, WoWReforgedSaveCodeUI___UnitsEditIndex, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___UnitsEditArrowUp=BlzCreateFrameByType("BUTTON", "UnitsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_UP_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - - set WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "UnitsUpFrame", WoWReforgedSaveCodeUI___UnitsEditArrowUp, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame, WoWReforgedSaveCodeUI___UnitsEditArrowUp) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___UnitsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - - set WoWReforgedSaveCodeUI___UnitsUpTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UnitsUpTrigger, WoWReforgedSaveCodeUI___UnitsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UnitsUpTrigger, function UnitsUpFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameUnits=BlzCreateFrameByType("TEXT", "SaveGuiLabelUnits", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameUnits, "|cffFFCC00Units:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameUnits, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__EditBoxUnits=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxUnits, "-load xxx") + + set WoWReforgedSaveCodeUI__TriggerEditBoxUnits=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxUnits, function SaveCodeEnterFunctionUnits) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxUnits, WoWReforgedSaveCodeUI__EditBoxUnits, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__EnterTriggerUnits=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerUnits, WoWReforgedSaveCodeUI__EditBoxUnits, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerUnits, function SaveCodeEnterFunctionUnits) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameUnits=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerUnits=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerUnits, WoWReforgedSaveCodeUI__UpdateButtonFrameUnits, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerUnits, function UpdateFunctionUnits) + + set WoWReforgedSaveCodeUI__LoadButtonFrameUnits=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameUnits, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameUnits, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameUnits, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerUnits=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerUnits, WoWReforgedSaveCodeUI__LoadButtonFrameUnits, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerUnits, function LoadFunctionUnits) + + set WoWReforgedSaveCodeUI__UnitsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__INDEX_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UnitsEditIndex, "0") + + set WoWReforgedSaveCodeUI__TriggerEditBoxUnitsIndex=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxUnitsIndex, function SaveCodeEnterFunctionUnitsIndex) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxUnitsIndex, WoWReforgedSaveCodeUI__UnitsEditIndex, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__UnitsEditArrowUp=BlzCreateFrameByType("BUTTON", "UnitsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_UP_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + + set WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "UnitsUpFrame", WoWReforgedSaveCodeUI__UnitsEditArrowUp, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame, WoWReforgedSaveCodeUI__UnitsEditArrowUp) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__UnitsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + + set WoWReforgedSaveCodeUI__UnitsUpTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UnitsUpTrigger, WoWReforgedSaveCodeUI__UnitsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UnitsUpTrigger, function UnitsUpFunction) - set WoWReforgedSaveCodeUI___UnitsEditArrowDown=BlzCreateFrameByType("BUTTON", "UnitsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UnitsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) + set WoWReforgedSaveCodeUI__UnitsEditArrowDown=BlzCreateFrameByType("BUTTON", "UnitsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UnitsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) - set WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "UnitsDownFrame", WoWReforgedSaveCodeUI___UnitsEditArrowDown, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame, WoWReforgedSaveCodeUI___UnitsEditArrowDown) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___UnitsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + set WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "UnitsDownFrame", WoWReforgedSaveCodeUI__UnitsEditArrowDown, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame, WoWReforgedSaveCodeUI__UnitsEditArrowDown) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__UnitsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - set WoWReforgedSaveCodeUI___UnitsDownTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UnitsDownTrigger, WoWReforgedSaveCodeUI___UnitsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UnitsDownTrigger, function UnitsDownFunction) + set WoWReforgedSaveCodeUI__UnitsDownTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UnitsDownTrigger, WoWReforgedSaveCodeUI__UnitsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UnitsDownTrigger, function UnitsDownFunction) // line 4: researches - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameResearches=BlzCreateFrameByType("TEXT", "SaveGuiLabelResearches", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameResearches, "|cffFFCC00Researches:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameResearches, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___EditBoxResearches=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxResearches, "-load xxx") - - set WoWReforgedSaveCodeUI___TriggerEditBoxResearches=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxResearches, function EnterFunctionResearches) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxResearches, WoWReforgedSaveCodeUI___EditBoxResearches, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___EnterTriggerResearches=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerResearches, WoWReforgedSaveCodeUI___EditBoxResearches, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerResearches, function EnterFunctionResearches) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameResearches=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerResearches=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerResearches, WoWReforgedSaveCodeUI___UpdateButtonFrameResearches, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerResearches, function UpdateFunctionResearches) - - set WoWReforgedSaveCodeUI___LoadButtonFrameResearches=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameResearches, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerResearches=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerResearches, WoWReforgedSaveCodeUI___LoadButtonFrameResearches, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerResearches, function LoadFunctionResearches) - - set WoWReforgedSaveCodeUI___ResearchesEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___INDEX_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___ResearchesEditIndex, "0") - - set WoWReforgedSaveCodeUI___TriggerEditBoxResearchesIndex=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxResearchesIndex, function SaveCodeEnterFunctionResearchesIndex) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxResearchesIndex, WoWReforgedSaveCodeUI___ResearchesEditIndex, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___ResearchesEditArrowUp=BlzCreateFrameByType("BUTTON", "ResearchesUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_UP_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - - set WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "ResearchesUpFrame", WoWReforgedSaveCodeUI___ResearchesEditArrowUp, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame, WoWReforgedSaveCodeUI___ResearchesEditArrowUp) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___ResearchesEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - - set WoWReforgedSaveCodeUI___ResearchesUpTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___ResearchesUpTrigger, WoWReforgedSaveCodeUI___ResearchesEditArrowUp, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___ResearchesUpTrigger, function ResearchesUpFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameResearches=BlzCreateFrameByType("TEXT", "SaveGuiLabelResearches", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameResearches, "|cffFFCC00Researches:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameResearches, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__EditBoxResearches=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxResearches, "-load xxx") + + set WoWReforgedSaveCodeUI__TriggerEditBoxResearches=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxResearches, function EnterFunctionResearches) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxResearches, WoWReforgedSaveCodeUI__EditBoxResearches, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__EnterTriggerResearches=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerResearches, WoWReforgedSaveCodeUI__EditBoxResearches, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerResearches, function EnterFunctionResearches) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameResearches=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerResearches=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerResearches, WoWReforgedSaveCodeUI__UpdateButtonFrameResearches, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerResearches, function UpdateFunctionResearches) + + set WoWReforgedSaveCodeUI__LoadButtonFrameResearches=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameResearches, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameResearches, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameResearches, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerResearches=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerResearches, WoWReforgedSaveCodeUI__LoadButtonFrameResearches, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerResearches, function LoadFunctionResearches) + + set WoWReforgedSaveCodeUI__ResearchesEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__INDEX_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__ResearchesEditIndex, "0") + + set WoWReforgedSaveCodeUI__TriggerEditBoxResearchesIndex=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxResearchesIndex, function SaveCodeEnterFunctionResearchesIndex) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxResearchesIndex, WoWReforgedSaveCodeUI__ResearchesEditIndex, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__ResearchesEditArrowUp=BlzCreateFrameByType("BUTTON", "ResearchesUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_UP_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + + set WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "ResearchesUpFrame", WoWReforgedSaveCodeUI__ResearchesEditArrowUp, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame, WoWReforgedSaveCodeUI__ResearchesEditArrowUp) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__ResearchesEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + + set WoWReforgedSaveCodeUI__ResearchesUpTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__ResearchesUpTrigger, WoWReforgedSaveCodeUI__ResearchesEditArrowUp, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__ResearchesUpTrigger, function ResearchesUpFunction) - set WoWReforgedSaveCodeUI___ResearchesEditArrowDown=BlzCreateFrameByType("BUTTON", "ResearchesDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___ResearchesEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) + set WoWReforgedSaveCodeUI__ResearchesEditArrowDown=BlzCreateFrameByType("BUTTON", "ResearchesDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__ResearchesEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) - set WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "ResearchesDownFrame", WoWReforgedSaveCodeUI___ResearchesEditArrowDown, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame, WoWReforgedSaveCodeUI___ResearchesEditArrowDown) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___ResearchesEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + set WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "ResearchesDownFrame", WoWReforgedSaveCodeUI__ResearchesEditArrowDown, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame, WoWReforgedSaveCodeUI__ResearchesEditArrowDown) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__ResearchesEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - set WoWReforgedSaveCodeUI___ResearchesDownTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___ResearchesDownTrigger, WoWReforgedSaveCodeUI___ResearchesEditArrowDown, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___ResearchesDownTrigger, function ResearchesDownFunction) + set WoWReforgedSaveCodeUI__ResearchesDownTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__ResearchesDownTrigger, WoWReforgedSaveCodeUI__ResearchesEditArrowDown, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__ResearchesDownTrigger, function ResearchesDownFunction) // line 4: buildings - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameBuildings=BlzCreateFrameByType("TEXT", "SaveGuiLabelBuildings", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameBuildings, "|cffFFCC00Buildings:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameBuildings, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___EditBoxBuildings=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxBuildings, "-load xxx") - - set WoWReforgedSaveCodeUI___TriggerEditBoxBuildings=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxBuildings, function SaveCodeEnterFunctionBuildings) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxBuildings, WoWReforgedSaveCodeUI___EditBoxBuildings, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___EnterTriggerBuildings=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerBuildings, WoWReforgedSaveCodeUI___EditBoxBuildings, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerBuildings, function SaveCodeEnterFunctionBuildings) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerBuildings=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerBuildings, WoWReforgedSaveCodeUI___UpdateButtonFrameBuildings, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerBuildings, function UpdateFunctionBuildings) - - set WoWReforgedSaveCodeUI___LoadButtonFrameBuildings=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerBuildings=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerBuildings, WoWReforgedSaveCodeUI___LoadButtonFrameBuildings, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerBuildings, function LoadFunctionBuildings) - - set WoWReforgedSaveCodeUI___BuildingsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___INDEX_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___INDEX_X + WoWReforgedSaveCodeUI___INDEX_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___BuildingsEditIndex, "0") - - set WoWReforgedSaveCodeUI___TriggerEditBoxBuildingsIndex=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxBuildingsIndex, function SaveCodeEnterFunctionBuildingsIndex) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxBuildingsIndex, WoWReforgedSaveCodeUI___BuildingsEditIndex, FRAMEEVENT_EDITBOX_ENTER) - - set WoWReforgedSaveCodeUI___BuildingsEditArrowUp=BlzCreateFrameByType("BUTTON", "BuildingsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_UP_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_UP_X + WoWReforgedSaveCodeUI___BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - - set WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "BuildingsUpFrame", WoWReforgedSaveCodeUI___BuildingsEditArrowUp, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame, WoWReforgedSaveCodeUI___BuildingsEditArrowUp) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___BuildingsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) - - set WoWReforgedSaveCodeUI___BuildingsUpTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___BuildingsUpTrigger, WoWReforgedSaveCodeUI___BuildingsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___BuildingsUpTrigger, function BuildingsUpFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameBuildings=BlzCreateFrameByType("TEXT", "SaveGuiLabelBuildings", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameBuildings, "|cffFFCC00Buildings:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameBuildings, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__EditBoxBuildings=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxBuildings, "-load xxx") + + set WoWReforgedSaveCodeUI__TriggerEditBoxBuildings=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxBuildings, function SaveCodeEnterFunctionBuildings) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxBuildings, WoWReforgedSaveCodeUI__EditBoxBuildings, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__EnterTriggerBuildings=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerBuildings, WoWReforgedSaveCodeUI__EditBoxBuildings, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerBuildings, function SaveCodeEnterFunctionBuildings) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerBuildings=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerBuildings, WoWReforgedSaveCodeUI__UpdateButtonFrameBuildings, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerBuildings, function UpdateFunctionBuildings) + + set WoWReforgedSaveCodeUI__LoadButtonFrameBuildings=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerBuildings=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerBuildings, WoWReforgedSaveCodeUI__LoadButtonFrameBuildings, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerBuildings, function LoadFunctionBuildings) + + set WoWReforgedSaveCodeUI__BuildingsEditIndex=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditIndex, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__INDEX_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditIndex, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__INDEX_X + WoWReforgedSaveCodeUI__INDEX_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__BuildingsEditIndex, "0") + + set WoWReforgedSaveCodeUI__TriggerEditBoxBuildingsIndex=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxBuildingsIndex, function SaveCodeEnterFunctionBuildingsIndex) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxBuildingsIndex, WoWReforgedSaveCodeUI__BuildingsEditIndex, FRAMEEVENT_EDITBOX_ENTER) + + set WoWReforgedSaveCodeUI__BuildingsEditArrowUp=BlzCreateFrameByType("BUTTON", "BuildingsUpButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditArrowUp, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_UP_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditArrowUp, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_UP_X + WoWReforgedSaveCodeUI__BUTTON_UP_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + + set WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame=BlzCreateFrameByType("BACKDROP", "BuildingsUpFrame", WoWReforgedSaveCodeUI__BuildingsEditArrowUp, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame, WoWReforgedSaveCodeUI__BuildingsEditArrowUp) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__BuildingsEditArrowUpFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp", 0, true) + + set WoWReforgedSaveCodeUI__BuildingsUpTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__BuildingsUpTrigger, WoWReforgedSaveCodeUI__BuildingsEditArrowUp, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__BuildingsUpTrigger, function BuildingsUpFunction) - set WoWReforgedSaveCodeUI___BuildingsEditArrowDown=BlzCreateFrameByType("BUTTON", "BuildingsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___BuildingsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___BUTTON_DOWN_X + WoWReforgedSaveCodeUI___BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) + set WoWReforgedSaveCodeUI__BuildingsEditArrowDown=BlzCreateFrameByType("BUTTON", "BuildingsDownButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditArrowDown, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__BuildingsEditArrowDown, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__BUTTON_DOWN_X + WoWReforgedSaveCodeUI__BUTTON_DOWN_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) - set WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "BuildingsDownFrame", WoWReforgedSaveCodeUI___BuildingsEditArrowDown, "", 0) - call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame, WoWReforgedSaveCodeUI___BuildingsEditArrowDown) - call BlzFrameSetTexture(WoWReforgedSaveCodeUI___BuildingsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) + set WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame=BlzCreateFrameByType("BACKDROP", "BuildingsDownFrame", WoWReforgedSaveCodeUI__BuildingsEditArrowDown, "", 0) + call BlzFrameSetAllPoints(WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame, WoWReforgedSaveCodeUI__BuildingsEditArrowDown) + call BlzFrameSetTexture(WoWReforgedSaveCodeUI__BuildingsEditArrowDownFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp", 0, true) - set WoWReforgedSaveCodeUI___BuildingsDownTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___BuildingsDownTrigger, WoWReforgedSaveCodeUI___BuildingsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___BuildingsDownTrigger, function BuildingsDownFunction) + set WoWReforgedSaveCodeUI__BuildingsDownTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__BuildingsDownTrigger, WoWReforgedSaveCodeUI__BuildingsEditArrowDown, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__BuildingsDownTrigger, function BuildingsDownFunction) // line 5: resources - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING - set WoWReforgedSaveCodeUI___LabelFrameResources=BlzCreateFrameByType("TEXT", "SaveGuiLabelResources", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameResources, "|cffFFCC00Resources:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameResources, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__LabelFrameResources=BlzCreateFrameByType("TEXT", "SaveGuiLabelResources", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameResources, "|cffFFCC00Resources:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameResources, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - set WoWReforgedSaveCodeUI___EditBoxResources=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxResources, "-loadres xxx") + set WoWReforgedSaveCodeUI__EditBoxResources=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxResources, "-loadres xxx") - set WoWReforgedSaveCodeUI___TriggerEditBoxResources=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxResources, function SaveCodeEnterFunctionResources) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxResources, WoWReforgedSaveCodeUI___EditBoxResources, FRAMEEVENT_EDITBOX_ENTER) + set WoWReforgedSaveCodeUI__TriggerEditBoxResources=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxResources, function SaveCodeEnterFunctionResources) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxResources, WoWReforgedSaveCodeUI__EditBoxResources, FRAMEEVENT_EDITBOX_ENTER) - set WoWReforgedSaveCodeUI___EnterTriggerResources=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerResources, WoWReforgedSaveCodeUI___EditBoxResources, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerResources, function SaveCodeEnterFunctionResources) + set WoWReforgedSaveCodeUI__EnterTriggerResources=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerResources, WoWReforgedSaveCodeUI__EditBoxResources, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerResources, function SaveCodeEnterFunctionResources) - set WoWReforgedSaveCodeUI___UpdateButtonFrameResources=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameResources, "|cffFCD20DUpdate|r") + set WoWReforgedSaveCodeUI__UpdateButtonFrameResources=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameResources, "|cffFCD20DUpdate|r") - set WoWReforgedSaveCodeUI___UpdateTriggerResources=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerResources, WoWReforgedSaveCodeUI___UpdateButtonFrameResources, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerResources, function UpdateFunctionResources) + set WoWReforgedSaveCodeUI__UpdateTriggerResources=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerResources, WoWReforgedSaveCodeUI__UpdateButtonFrameResources, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerResources, function UpdateFunctionResources) - set WoWReforgedSaveCodeUI___LoadButtonFrameResources=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameResources, "|cffFCD20DLoad|r") + set WoWReforgedSaveCodeUI__LoadButtonFrameResources=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameResources, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameResources, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameResources, "|cffFCD20DLoad|r") - set WoWReforgedSaveCodeUI___LoadTriggerResources=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerResources, WoWReforgedSaveCodeUI___LoadButtonFrameResources, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerResources, function LoadFunctionResources) + set WoWReforgedSaveCodeUI__LoadTriggerResources=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerResources, WoWReforgedSaveCodeUI__LoadButtonFrameResources, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerResources, function LoadFunctionResources) // line 6: clan - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING - set WoWReforgedSaveCodeUI___LabelFrameClan=BlzCreateFrameByType("TEXT", "SaveGuiLabelClan", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameClan, "|cffFFCC00Clan:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameClan, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__LabelFrameClan=BlzCreateFrameByType("TEXT", "SaveGuiLabelClan", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameClan, "|cffFFCC00Clan:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameClan, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - set WoWReforgedSaveCodeUI___EditBoxClan=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxClan, "-loadc xxx") + set WoWReforgedSaveCodeUI__EditBoxClan=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxClan, "-loadc xxx") - set WoWReforgedSaveCodeUI___TriggerEditBoxClan=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxClan, function SaveCodeEnterFunctionClan) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxClan, WoWReforgedSaveCodeUI___EditBoxClan, FRAMEEVENT_EDITBOX_ENTER) + set WoWReforgedSaveCodeUI__TriggerEditBoxClan=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxClan, function SaveCodeEnterFunctionClan) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxClan, WoWReforgedSaveCodeUI__EditBoxClan, FRAMEEVENT_EDITBOX_ENTER) - set WoWReforgedSaveCodeUI___EnterTriggerClan=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerClan, WoWReforgedSaveCodeUI___EditBoxClan, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerClan, function SaveCodeEnterFunctionClan) + set WoWReforgedSaveCodeUI__EnterTriggerClan=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerClan, WoWReforgedSaveCodeUI__EditBoxClan, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerClan, function SaveCodeEnterFunctionClan) - set WoWReforgedSaveCodeUI___UpdateButtonFrameClan=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameClan, "|cffFCD20DUpdate|r") + set WoWReforgedSaveCodeUI__UpdateButtonFrameClan=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameClan, "|cffFCD20DUpdate|r") - set WoWReforgedSaveCodeUI___UpdateTriggerClan=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerClan, WoWReforgedSaveCodeUI___UpdateButtonFrameClan, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerClan, function UpdateFunctionClan) + set WoWReforgedSaveCodeUI__UpdateTriggerClan=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerClan, WoWReforgedSaveCodeUI__UpdateButtonFrameClan, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerClan, function UpdateFunctionClan) - set WoWReforgedSaveCodeUI___LoadButtonFrameClan=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameClan, "|cffFCD20DLoad|r") + set WoWReforgedSaveCodeUI__LoadButtonFrameClan=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameClan, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameClan, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameClan, "|cffFCD20DLoad|r") - set WoWReforgedSaveCodeUI___LoadTriggerClan=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerClan, WoWReforgedSaveCodeUI___LoadButtonFrameClan, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerClan, function LoadFunctionClan) + set WoWReforgedSaveCodeUI__LoadTriggerClan=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerClan, WoWReforgedSaveCodeUI__LoadButtonFrameClan, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerClan, function LoadFunctionClan) // line 7: directory - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING - set WoWReforgedSaveCodeUI___LabelFrameDirectory=BlzCreateFrameByType("TEXT", "SaveGuiLabelDirectory", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameDirectory, "|cffFFCC00Directory:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameDirectory, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + set WoWReforgedSaveCodeUI__LabelFrameDirectory=BlzCreateFrameByType("TEXT", "SaveGuiLabelDirectory", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameDirectory, "|cffFFCC00Directory:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameDirectory, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - set WoWReforgedSaveCodeUI___EditBoxDirectory=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LINEEDIT_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___EditBoxDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LINEEDIT_X + WoWReforgedSaveCodeUI___LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___EditBoxDirectory, "%userprofile%\\Documents\\Warcraft III\\CustomMapData") + set WoWReforgedSaveCodeUI__EditBoxDirectory=BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LINEEDIT_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__EditBoxDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LINEEDIT_X + WoWReforgedSaveCodeUI__LINEEDIT_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__EditBoxDirectory, "%userprofile%\\Documents\\Warcraft III\\CustomMapData") - set WoWReforgedSaveCodeUI___TriggerEditBoxDirectory=CreateTrigger() - call TriggerAddAction(WoWReforgedSaveCodeUI___TriggerEditBoxDirectory, function SaveCodeEnterFunctionDirectory) - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___TriggerEditBoxDirectory, WoWReforgedSaveCodeUI___EditBoxDirectory, FRAMEEVENT_EDITBOX_ENTER) + set WoWReforgedSaveCodeUI__TriggerEditBoxDirectory=CreateTrigger() + call TriggerAddAction(WoWReforgedSaveCodeUI__TriggerEditBoxDirectory, function SaveCodeEnterFunctionDirectory) + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__TriggerEditBoxDirectory, WoWReforgedSaveCodeUI__EditBoxDirectory, FRAMEEVENT_EDITBOX_ENTER) - set WoWReforgedSaveCodeUI___EnterTriggerDirectory=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___EnterTriggerDirectory, WoWReforgedSaveCodeUI___EditBoxDirectory, FRAMEEVENT_MOUSE_ENTER) - call TriggerAddAction(WoWReforgedSaveCodeUI___EnterTriggerDirectory, function SaveCodeEnterFunctionDirectory) + set WoWReforgedSaveCodeUI__EnterTriggerDirectory=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__EnterTriggerDirectory, WoWReforgedSaveCodeUI__EditBoxDirectory, FRAMEEVENT_MOUSE_ENTER) + call TriggerAddAction(WoWReforgedSaveCodeUI__EnterTriggerDirectory, function SaveCodeEnterFunctionDirectory) - set WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, "|cffFCD20DUpdate|r") + set WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, "|cffFCD20DUpdate|r") - set WoWReforgedSaveCodeUI___UpdateTriggerDirectory=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerDirectory, WoWReforgedSaveCodeUI___UpdateButtonFrameDirectory, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerDirectory, function WoWReforgedSaveCodeUI___UpdateFunctionAll) + set WoWReforgedSaveCodeUI__UpdateTriggerDirectory=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerDirectory, WoWReforgedSaveCodeUI__UpdateButtonFrameDirectory, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerDirectory, function WoWReforgedSaveCodeUI__UpdateFunctionAll) - set WoWReforgedSaveCodeUI___LoadButtonFrameDirectory=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, "|cffFCD20DLoad|r") + set WoWReforgedSaveCodeUI__LoadButtonFrameDirectory=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, "|cffFCD20DLoad|r") - set WoWReforgedSaveCodeUI___LoadTriggerDirectory=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerDirectory, WoWReforgedSaveCodeUI___LoadButtonFrameDirectory, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerDirectory, function WoWReforgedSaveCodeUI___LoadFunctionAll) + set WoWReforgedSaveCodeUI__LoadTriggerDirectory=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerDirectory, WoWReforgedSaveCodeUI__LoadButtonFrameDirectory, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerDirectory, function WoWReforgedSaveCodeUI__LoadFunctionAll) // final line: all - set y=y - WoWReforgedSaveCodeUI___LINE_HEIGHT - WoWReforgedSaveCodeUI___LINE_SPACING - - set WoWReforgedSaveCodeUI___LabelFrameAll=BlzCreateFrameByType("TEXT", "SaveGuiLabelAll", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LABEL_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LabelFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LABEL_X + WoWReforgedSaveCodeUI___LABEL_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LabelFrameAll, "|cffFFCC00All:|r") - call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI___LabelFrameAll, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) - - set WoWReforgedSaveCodeUI___LoadAllButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_AUTO_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_AUTO_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_AUTO_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, "|cffFCD20DLoad All|r") - - set WoWReforgedSaveCodeUI___LoadAllTriggerAll=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadAllTriggerAll, WoWReforgedSaveCodeUI___LoadAllButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadAllTriggerAll, function LoadAllFunctionAll) - - set WoWReforgedSaveCodeUI___WriteAllButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___WRITE_AUTO_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___WRITE_AUTO_BUTTON_X + WoWReforgedSaveCodeUI___WRITE_AUTO_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, "|cffFCD20DWrite All|r") - - set WoWReforgedSaveCodeUI___WriteAllTriggerAll=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___WriteAllTriggerAll, WoWReforgedSaveCodeUI___WriteAllButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___WriteAllTriggerAll, function WriteAllFunctionAll) - - set WoWReforgedSaveCodeUI___UpdateButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___UpdateButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___UPDATE_BUTTON_X + WoWReforgedSaveCodeUI___UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___UpdateButtonFrameAll, "|cffFCD20DUpdate|r") - - set WoWReforgedSaveCodeUI___UpdateTriggerAll=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___UpdateTriggerAll, WoWReforgedSaveCodeUI___UpdateButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___UpdateTriggerAll, function WoWReforgedSaveCodeUI___UpdateFunctionAll) - - set WoWReforgedSaveCodeUI___LoadButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X, y) - call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI___LoadButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI___LOAD_BUTTON_X + WoWReforgedSaveCodeUI___LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI___LINE_HEIGHT) - call BlzFrameSetText(WoWReforgedSaveCodeUI___LoadButtonFrameAll, "|cffFCD20DLoad|r") - - set WoWReforgedSaveCodeUI___LoadTriggerAll=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___LoadTriggerAll, WoWReforgedSaveCodeUI___LoadButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___LoadTriggerAll, function WoWReforgedSaveCodeUI___LoadFunctionAll) - - set WoWReforgedSaveCodeUI___CloseButton=CreateFullScreenCloseButton() - set WoWReforgedSaveCodeUI___CloseTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI___CloseTrigger, WoWReforgedSaveCodeUI___CloseButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedSaveCodeUI___CloseTrigger, function WoWReforgedSaveCodeUI___CloseFunction) + set y=y - WoWReforgedSaveCodeUI__LINE_HEIGHT - WoWReforgedSaveCodeUI__LINE_SPACING + + set WoWReforgedSaveCodeUI__LabelFrameAll=BlzCreateFrameByType("TEXT", "SaveGuiLabelAll", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LABEL_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LabelFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LABEL_X + WoWReforgedSaveCodeUI__LABEL_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LabelFrameAll, "|cffFFCC00All:|r") + call BlzFrameSetTextAlignment(WoWReforgedSaveCodeUI__LabelFrameAll, TEXT_JUSTIFY_TOP, TEXT_JUSTIFY_LEFT) + + set WoWReforgedSaveCodeUI__LoadAllButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_AUTO_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_AUTO_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_AUTO_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, "|cffFCD20DLoad All|r") + + set WoWReforgedSaveCodeUI__LoadAllTriggerAll=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadAllTriggerAll, WoWReforgedSaveCodeUI__LoadAllButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadAllTriggerAll, function LoadAllFunctionAll) + + set WoWReforgedSaveCodeUI__WriteAllButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__WRITE_AUTO_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__WRITE_AUTO_BUTTON_X + WoWReforgedSaveCodeUI__WRITE_AUTO_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, "|cffFCD20DWrite All|r") + + set WoWReforgedSaveCodeUI__WriteAllTriggerAll=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__WriteAllTriggerAll, WoWReforgedSaveCodeUI__WriteAllButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__WriteAllTriggerAll, function WriteAllFunctionAll) + + set WoWReforgedSaveCodeUI__UpdateButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__UpdateButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__UPDATE_BUTTON_X + WoWReforgedSaveCodeUI__UPDATE_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__UpdateButtonFrameAll, "|cffFCD20DUpdate|r") + + set WoWReforgedSaveCodeUI__UpdateTriggerAll=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__UpdateTriggerAll, WoWReforgedSaveCodeUI__UpdateButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__UpdateTriggerAll, function WoWReforgedSaveCodeUI__UpdateFunctionAll) + + set WoWReforgedSaveCodeUI__LoadButtonFrameAll=BlzCreateFrame("ScriptDialogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameAll, FRAMEPOINT_TOPLEFT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X, y) + call BlzFrameSetAbsPoint(WoWReforgedSaveCodeUI__LoadButtonFrameAll, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedSaveCodeUI__LOAD_BUTTON_X + WoWReforgedSaveCodeUI__LOAD_BUTTON_WIDTH, y - WoWReforgedSaveCodeUI__LINE_HEIGHT) + call BlzFrameSetText(WoWReforgedSaveCodeUI__LoadButtonFrameAll, "|cffFCD20DLoad|r") + + set WoWReforgedSaveCodeUI__LoadTriggerAll=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__LoadTriggerAll, WoWReforgedSaveCodeUI__LoadButtonFrameAll, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__LoadTriggerAll, function WoWReforgedSaveCodeUI__LoadFunctionAll) + + set WoWReforgedSaveCodeUI__CloseButton=CreateFullScreenCloseButton() + set WoWReforgedSaveCodeUI__CloseTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedSaveCodeUI__CloseTrigger, WoWReforgedSaveCodeUI__CloseButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedSaveCodeUI__CloseTrigger, function WoWReforgedSaveCodeUI__CloseFunction) // hide for all players call SetSaveCodeUIVisibleAll(false) // INLINED!! endfunction -function WoWReforgedSaveCodeUI___Init takes nothing returns nothing - set WoWReforgedSaveCodeUI___SyncTrigger=CreateTrigger() - call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedSaveCodeUI___SyncTrigger , "" , false) - call TriggerAddAction(WoWReforgedSaveCodeUI___SyncTrigger, function TriggerActionSyncData) +function WoWReforgedSaveCodeUI__Init takes nothing returns nothing + set WoWReforgedSaveCodeUI__SyncTrigger=CreateTrigger() + call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedSaveCodeUI__SyncTrigger , "" , false) + call TriggerAddAction(WoWReforgedSaveCodeUI__SyncTrigger, function TriggerActionSyncData) //call FrameSaverAdd(function HideSaveCodeUIAll) @@ -82364,26 +82364,26 @@ endfunction //library WoWReforgedStartLocationsTavern: -function WoWReforgedStartLocationsTavern___AddStartLocationsTavern takes unit tavern returns nothing +function WoWReforgedStartLocationsTavern__AddStartLocationsTavern takes unit tavern returns nothing local integer i= 0 call EnablePagedButtons(tavern) call SetPagedButtonsSlotsPerPage(tavern , 10) call AddPagedButtonsId((tavern ) , ( ITEM_TYPE_RANDOM_START_LOCATION) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! set i=0 loop - exitwhen ( i >= (WoWReforgedStartLocations__startLocationsCounter) ) // INLINED!! -call AddPagedButtonsId((tavern ) , ( (WoWReforgedStartLocations__startLocationsItemTypeIds[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! + exitwhen ( i >= (WoWReforgedStartLocations___startLocationsCounter) ) // INLINED!! +call AddPagedButtonsId((tavern ) , ( (WoWReforgedStartLocations___startLocationsItemTypeIds[(i)])) , PagedButtons_BUTTON_TYPE_ITEM) // INLINED!! set i=i + 1 endloop call SetPagedButtonsPage(tavern , 0) endfunction -function WoWReforgedStartLocationsTavern___ForGroupAddStartLocationsTavern takes nothing returns nothing - call WoWReforgedStartLocationsTavern___AddStartLocationsTavern(GetEnumUnit()) +function WoWReforgedStartLocationsTavern__ForGroupAddStartLocationsTavern takes nothing returns nothing + call WoWReforgedStartLocationsTavern__AddStartLocationsTavern(GetEnumUnit()) endfunction -function WoWReforgedStartLocationsTavern___TimerFunctionAddStartLocationsTaverns takes nothing returns nothing - call ForGroupBJ(GetUnitsOfTypeIdAll(START_LOCATIONS_TAVERN), function WoWReforgedStartLocationsTavern___ForGroupAddStartLocationsTavern) +function WoWReforgedStartLocationsTavern__TimerFunctionAddStartLocationsTaverns takes nothing returns nothing + call ForGroupBJ(GetUnitsOfTypeIdAll(START_LOCATIONS_TAVERN), function WoWReforgedStartLocationsTavern__ForGroupAddStartLocationsTavern) call PauseTimer(GetExpiredTimer()) call DestroyTimer(GetExpiredTimer()) @@ -82398,10 +82398,10 @@ function SelectRandomStartLocation takes unit buyingUnit,unit tavern returns not local integer page= 0 local integer index= 0 local integer i= 1 - local integer max= (WoWReforgedStartLocations__startLocationsCounter) // INLINED!! + local integer max= (WoWReforgedStartLocations___startLocationsCounter) // INLINED!! loop exitwhen ( i >= max ) - set id=(WoWReforgedStartLocations__startLocationsItemTypeIds[(i)]) // INLINED!! + set id=(WoWReforgedStartLocations___startLocationsItemTypeIds[(i)]) // INLINED!! if ( PlayerCanBuyStartLocationEx(owner , id) ) then set availableIds[availableIdsCounter]=id set availableIdsCounter=availableIdsCounter + 1 @@ -82422,7 +82422,7 @@ function SelectRandomStartLocation takes unit buyingUnit,unit tavern returns not set owner=null endfunction -function WoWReforgedStartLocationsTavern___TriggerConditionSellItem takes nothing returns boolean +function WoWReforgedStartLocationsTavern__TriggerConditionSellItem takes nothing returns boolean if ( GetItemTypeId(GetSoldItem()) == ITEM_TYPE_RANDOM_START_LOCATION ) then call SelectRandomStartLocation(GetBuyingUnit() , GetTriggerUnit()) call h__RemoveItem(GetSoldItem()) @@ -82431,11 +82431,11 @@ function WoWReforgedStartLocationsTavern___TriggerConditionSellItem takes nothin endfunction -function WoWReforgedStartLocationsTavern___Init takes nothing returns nothing - call TriggerRegisterAnyUnitEventBJ(WoWReforgedStartLocationsTavern___sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) - call TriggerAddCondition(WoWReforgedStartLocationsTavern___sellTrigger, Condition(function WoWReforgedStartLocationsTavern___TriggerConditionSellItem)) +function WoWReforgedStartLocationsTavern__Init takes nothing returns nothing + call TriggerRegisterAnyUnitEventBJ(WoWReforgedStartLocationsTavern__sellTrigger, EVENT_PLAYER_UNIT_SELL_ITEM) + call TriggerAddCondition(WoWReforgedStartLocationsTavern__sellTrigger, Condition(function WoWReforgedStartLocationsTavern__TriggerConditionSellItem)) - call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedStartLocationsTavern___TimerFunctionAddStartLocationsTaverns) + call TimerStart(CreateTimer(), 0.0, false, function WoWReforgedStartLocationsTavern__TimerFunctionAddStartLocationsTaverns) endfunction @@ -82444,13 +82444,13 @@ endfunction function SetActionsBarUIRaceTextures takes string mountsTexture,string summonedUnitsTexture,string townHallsTexture,string altarsTexture returns nothing - call BlzFrameSetTexture(WoWReforgedActionsBarUI___MountsFrame, WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH + mountsTexture, 0, true) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___SummonedUnitsFrame, WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH + summonedUnitsTexture, 0, true) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___TownHallsFrame, WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH + townHallsTexture, 0, true) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___AltarsFrame, WoWReforgedActionsBarUI___REPLACEABLE_TEXTURES_PATH + altarsTexture, 0, true) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__MountsFrame, WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH + mountsTexture, 0, true) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__SummonedUnitsFrame, WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH + summonedUnitsTexture, 0, true) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__TownHallsFrame, WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH + townHallsTexture, 0, true) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__AltarsFrame, WoWReforgedActionsBarUI__REPLACEABLE_TEXTURES_PATH + altarsTexture, 0, true) endfunction -function WoWReforgedActionsBarUI___GetMax takes nothing returns integer +function WoWReforgedActionsBarUI__GetMax takes nothing returns integer local integer max= 3 @@ -82464,11 +82464,11 @@ function WoWReforgedActionsBarUI___GetMax takes nothing returns integer return max endfunction -function WoWReforgedActionsBarUI___GetIndex2 takes nothing returns integer +function WoWReforgedActionsBarUI__GetIndex2 takes nothing returns integer return 3 endfunction -function WoWReforgedActionsBarUI___GetIndex3 takes nothing returns integer +function WoWReforgedActionsBarUI__GetIndex3 takes nothing returns integer local integer result= 3 @@ -82490,38 +82490,38 @@ endfunction function SetActionsBarUIVisible takes boolean visible,boolean includeChecbox returns nothing if ( includeChecbox ) then - call BlzFrameSetVisible(WoWReforgedActionsBarUI___CheckboxButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__CheckboxButton, visible) endif if ( visible ) then - set visible=WoWReforgedActionsBarUI___checked[GetPlayerId(GetLocalPlayer())] - endif - call BlzFrameSetVisible(WoWReforgedActionsBarUI___ClearButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___ClearFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___PickupItemsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___DropItemsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___PickupItemsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___BackpackButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___BackpackFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___MountsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___MountsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___SummonedUnitsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___SummonedUnitsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___TownHallsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___TownHallsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___AltarsButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___AltarsFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___SaveCodesButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___SaveCodesFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___LockCameraButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___LockCameraFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___RpgCameraButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___RpgCameraFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___AutoSkillButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___AutoSkillFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___LogButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___LogFrame, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___MultiboardButton, visible) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___MultiboardFrame, visible) + set visible=WoWReforgedActionsBarUI__checked[GetPlayerId(GetLocalPlayer())] + endif + call BlzFrameSetVisible(WoWReforgedActionsBarUI__ClearButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__ClearFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__PickupItemsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__DropItemsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__PickupItemsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__BackpackButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__BackpackFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__MountsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__MountsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__SummonedUnitsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__SummonedUnitsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__TownHallsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__TownHallsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__AltarsButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__AltarsFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__SaveCodesButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__SaveCodesFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__LockCameraButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__LockCameraFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__RpgCameraButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__RpgCameraFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__AutoSkillButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__AutoSkillFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__LogButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__LogFrame, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__MultiboardButton, visible) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__MultiboardFrame, visible) endfunction function SetActionsBarUIVisibleForPlayer takes player whichPlayer,boolean visible returns nothing @@ -82538,154 +82538,154 @@ function HideActionsBarUI takes player whichPlayer returns nothing call SetActionsBarUIVisibleForPlayer(whichPlayer , false) endfunction -function WoWReforgedActionsBarUI___CheckedFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__CheckedFunction takes nothing returns nothing if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Checked") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Checked") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___UncheckedFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__UncheckedFunction takes nothing returns nothing if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Unchecked") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Unchecked") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___EnumPlayersUpdateActionBar takes nothing returns nothing - set WoWReforgedActionsBarUI___checked[GetPlayerId(GetEnumPlayer())]=false +function WoWReforgedActionsBarUI__EnumPlayersUpdateActionBar takes nothing returns nothing + set WoWReforgedActionsBarUI__checked[GetPlayerId(GetEnumPlayer())]=false call SetActionsBarUIVisibleForPlayer((GetEnumPlayer()) , true) // INLINED!! endfunction -function WoWReforgedActionsBarUI___UpdateAllActionBars takes nothing returns nothing - call ForForce(GetPlayersAll(), function WoWReforgedActionsBarUI___EnumPlayersUpdateActionBar) +function WoWReforgedActionsBarUI__UpdateAllActionBars takes nothing returns nothing + call ForForce(GetPlayersAll(), function WoWReforgedActionsBarUI__EnumPlayersUpdateActionBar) endfunction -function WoWReforgedActionsBarUI___ClearClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__ClearClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then call ClearTextMessages() endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___ClearFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__ClearFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___PickupItemsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__PickupItemsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "PickupItems") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "PickupItems") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___PickupItemsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__PickupItemsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___DropItemsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__DropItemsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "DropBackpack") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "DropBackpack") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___DropItemsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__DropItemsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___BackpackClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__BackpackClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Backpack") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Backpack") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___BackpackFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__BackpackFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___MountsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__MountsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Mount") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Mount") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___MountsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__MountsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___SummonedUnitsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__SummonedUnitsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "SummonedUnit") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "SummonedUnit") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___SummonedUnitsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__SummonedUnitsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___TownHallsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__TownHallsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "TownHall") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "TownHall") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___TownHallsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__TownHallsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___AltarsClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__AltarsClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Altar") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Altar") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___AltarsFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__AltarsFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___SaveCodesClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__SaveCodesClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "SaveCodes") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "SaveCodes") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___SaveCodesFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__SaveCodesFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___LockCameraClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__LockCameraClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "LockCamera") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "LockCamera") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___LockCameraFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__LockCameraFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___RpgCameraClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__RpgCameraClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "RpgCamera") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "RpgCamera") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___RpgCameraFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__RpgCameraFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___AutoSkillClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__AutoSkillClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "AutoSkill") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "AutoSkill") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___AutoSkillFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__AutoSkillFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___LogClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__LogClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Log") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Log") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___LogFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__LogFrame , GetTriggerPlayer()) endfunction -function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer returns nothing +function WoWReforgedActionsBarUI__UpdateMultiboard takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) //call BJDebugMsg("Current multiboard index " + I2S(currentMultiboard[playerId]) + " with index 2 " + I2S(GetIndex2()) + " and index 3 " + I2S(GetIndex3())) - if ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == 0 ) then + if ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == 0 ) then // stats call HideCalendarMultiboardForPlayer(whichPlayer) if ( whichPlayer == GetLocalPlayer() ) then @@ -82698,7 +82698,7 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret call SetStatsMultiboardVisible((whichPlayer) , true) // INLINED!! - elseif ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == 1 ) then + elseif ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == 1 ) then // resources UI call SetStatsMultiboardVisible((whichPlayer) , false) // INLINED!! call HideCalendarMultiboardForPlayer(whichPlayer) @@ -82711,7 +82711,7 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret if ( whichPlayer == GetLocalPlayer() ) then call MultiboardDisplay((ResourcesMultiboardGui__playerMultiboards[GetPlayerId(((whichPlayer)))]), true) // INLINED!! endif - elseif ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == 2 ) then + elseif ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == 2 ) then // calendar UI if ( whichPlayer == GetLocalPlayer() ) then call MultiboardDisplay((ResourcesMultiboardGui__playerMultiboards[GetPlayerId(((whichPlayer)))]), false) // INLINED!! @@ -82724,7 +82724,7 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret call ShowCalendarMultiboardForPlayer(whichPlayer) - elseif ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == (3) and WoWReforgedActionsBarUI___currentMultiboard[playerId] != WoWReforgedActionsBarUI___GetIndex3() ) then // INLINED!! + elseif ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == (3) and WoWReforgedActionsBarUI__currentMultiboard[playerId] != WoWReforgedActionsBarUI__GetIndex3() ) then // INLINED!! // handles UI if ( whichPlayer == GetLocalPlayer() ) then call MultiboardDisplay((ResourcesMultiboardGui__playerMultiboards[GetPlayerId(((whichPlayer)))]), false) // INLINED!! @@ -82737,7 +82737,7 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret - elseif ( WoWReforgedActionsBarUI___currentMultiboard[playerId] == WoWReforgedActionsBarUI___GetIndex3() ) then + elseif ( WoWReforgedActionsBarUI__currentMultiboard[playerId] == WoWReforgedActionsBarUI__GetIndex3() ) then // timers UI if ( whichPlayer == GetLocalPlayer() ) then call MultiboardDisplay((ResourcesMultiboardGui__playerMultiboards[GetPlayerId(((whichPlayer)))]), false) // INLINED!! @@ -82753,377 +82753,377 @@ function WoWReforgedActionsBarUI___UpdateMultiboard takes player whichPlayer ret endif endfunction -function WoWReforgedActionsBarUI___EnumPlayersUpdateMultiboard takes nothing returns nothing - call WoWReforgedActionsBarUI___UpdateMultiboard(GetEnumPlayer()) +function WoWReforgedActionsBarUI__EnumPlayersUpdateMultiboard takes nothing returns nothing + call WoWReforgedActionsBarUI__UpdateMultiboard(GetEnumPlayer()) endfunction -function WoWReforgedActionsBarUI___UpdateAllMultiboards takes nothing returns nothing - call ForForce(GetPlayersAll(), function WoWReforgedActionsBarUI___EnumPlayersUpdateMultiboard) +function WoWReforgedActionsBarUI__UpdateAllMultiboards takes nothing returns nothing + call ForForce(GetPlayersAll(), function WoWReforgedActionsBarUI__EnumPlayersUpdateMultiboard) endfunction -function WoWReforgedActionsBarUI___Multiboard takes player whichPlayer returns nothing +function WoWReforgedActionsBarUI__Multiboard takes player whichPlayer returns nothing local integer playerId= GetPlayerId(whichPlayer) - set WoWReforgedActionsBarUI___currentMultiboard[playerId]=ModuloInteger(WoWReforgedActionsBarUI___currentMultiboard[playerId] + 1, WoWReforgedActionsBarUI___GetMax()) + set WoWReforgedActionsBarUI__currentMultiboard[playerId]=ModuloInteger(WoWReforgedActionsBarUI__currentMultiboard[playerId] + 1, WoWReforgedActionsBarUI__GetMax()) - call WoWReforgedActionsBarUI___UpdateMultiboard(whichPlayer) + call WoWReforgedActionsBarUI__UpdateMultiboard(whichPlayer) endfunction -function WoWReforgedActionsBarUI___MultiboardClickFunction takes nothing returns nothing +function WoWReforgedActionsBarUI__MultiboardClickFunction takes nothing returns nothing call PlayClickSound(GetTriggerPlayer()) if ( GetTriggerPlayer() == GetLocalPlayer() ) then - call BlzSendSyncData(WoWReforgedActionsBarUI___PREFIX, "Multiboard") + call BlzSendSyncData(WoWReforgedActionsBarUI__PREFIX, "Multiboard") endif call RemoveActionsBarUIFocus(GetTriggerPlayer()) - call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI___MultiboardFrame , GetTriggerPlayer()) + call RemoveActionsBarUIFocusEx(WoWReforgedActionsBarUI__MultiboardFrame , GetTriggerPlayer()) endfunction function CreateActionsBarUI takes nothing returns nothing // checkbox - set WoWReforgedActionsBarUI___CheckboxButton=BlzCreateFrame("QuestCheckBox2", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___CheckboxButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_CHECKBOX_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___CheckboxButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_CHECKBOX_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___CheckboxButton, true) - call BlzFrameSetValue(WoWReforgedActionsBarUI___CheckboxButton, 1.0) - - set WoWReforgedActionsBarUI___CheckboxTooltip=BlzCreateFrameByType("TEXT", "CheckboxTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___CheckboxButton, WoWReforgedActionsBarUI___CheckboxTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___CheckboxTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___CheckboxButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___CheckboxTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___CheckboxTooltip, "Toggle action bar.") - - set WoWReforgedActionsBarUI___CheckboxCheckTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___CheckboxCheckTrigger, WoWReforgedActionsBarUI___CheckboxButton, FRAMEEVENT_CHECKBOX_CHECKED) - call TriggerAddAction(WoWReforgedActionsBarUI___CheckboxCheckTrigger, function WoWReforgedActionsBarUI___CheckedFunction) - - set WoWReforgedActionsBarUI___CheckboxUncheckTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___CheckboxUncheckTrigger, WoWReforgedActionsBarUI___CheckboxButton, FRAMEEVENT_CHECKBOX_UNCHECKED) - call TriggerAddAction(WoWReforgedActionsBarUI___CheckboxUncheckTrigger, function WoWReforgedActionsBarUI___UncheckedFunction) + set WoWReforgedActionsBarUI__CheckboxButton=BlzCreateFrame("QuestCheckBox2", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__CheckboxButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_CHECKBOX_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__CheckboxButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_CHECKBOX_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__CheckboxButton, true) + call BlzFrameSetValue(WoWReforgedActionsBarUI__CheckboxButton, 1.0) + + set WoWReforgedActionsBarUI__CheckboxTooltip=BlzCreateFrameByType("TEXT", "CheckboxTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__CheckboxButton, WoWReforgedActionsBarUI__CheckboxTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__CheckboxTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__CheckboxButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__CheckboxTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__CheckboxTooltip, "Toggle action bar.") + + set WoWReforgedActionsBarUI__CheckboxCheckTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__CheckboxCheckTrigger, WoWReforgedActionsBarUI__CheckboxButton, FRAMEEVENT_CHECKBOX_CHECKED) + call TriggerAddAction(WoWReforgedActionsBarUI__CheckboxCheckTrigger, function WoWReforgedActionsBarUI__CheckedFunction) + + set WoWReforgedActionsBarUI__CheckboxUncheckTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__CheckboxUncheckTrigger, WoWReforgedActionsBarUI__CheckboxButton, FRAMEEVENT_CHECKBOX_UNCHECKED) + call TriggerAddAction(WoWReforgedActionsBarUI__CheckboxUncheckTrigger, function WoWReforgedActionsBarUI__UncheckedFunction) // clear - set WoWReforgedActionsBarUI___ClearButton=BlzCreateFrameByType("BUTTON", "ClearButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___ClearButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_CLEAR_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___ClearButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_CLEAR_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___ClearButton, true) - - set WoWReforgedActionsBarUI___ClearFrame=BlzCreateFrameByType("BACKDROP", "ClearFrame", WoWReforgedActionsBarUI___ClearButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___ClearFrame, WoWReforgedActionsBarUI___ClearButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___ClearFrame, "ReplaceableTextures\\CommandButtons\\BTNCancel.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___ClearFrame, true) - - set WoWReforgedActionsBarUI___ClearTooltip=BlzCreateFrameByType("TEXT", "ClearTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___ClearButton, WoWReforgedActionsBarUI___ClearTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___ClearTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___ClearButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___ClearTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___ClearTooltip, "Clear screen text.") - - set WoWReforgedActionsBarUI___ClearTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___ClearTrigger, WoWReforgedActionsBarUI___ClearButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___ClearTrigger, function WoWReforgedActionsBarUI___ClearClickFunction) + set WoWReforgedActionsBarUI__ClearButton=BlzCreateFrameByType("BUTTON", "ClearButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__ClearButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_CLEAR_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__ClearButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_CLEAR_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__ClearButton, true) + + set WoWReforgedActionsBarUI__ClearFrame=BlzCreateFrameByType("BACKDROP", "ClearFrame", WoWReforgedActionsBarUI__ClearButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__ClearFrame, WoWReforgedActionsBarUI__ClearButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__ClearFrame, "ReplaceableTextures\\CommandButtons\\BTNCancel.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__ClearFrame, true) + + set WoWReforgedActionsBarUI__ClearTooltip=BlzCreateFrameByType("TEXT", "ClearTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__ClearButton, WoWReforgedActionsBarUI__ClearTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__ClearTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__ClearButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__ClearTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__ClearTooltip, "Clear screen text.") + + set WoWReforgedActionsBarUI__ClearTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__ClearTrigger, WoWReforgedActionsBarUI__ClearButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__ClearTrigger, function WoWReforgedActionsBarUI__ClearClickFunction) // pickup items - set WoWReforgedActionsBarUI___PickupItemsButton=BlzCreateFrameByType("BUTTON", "PickupItemsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___PickupItemsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_PICKUP_ITEMS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___PickupItemsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_PICKUP_ITEMS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___PickupItemsButton, true) - - set WoWReforgedActionsBarUI___PickupItemsFrame=BlzCreateFrameByType("BACKDROP", "PickupItemsFrame", WoWReforgedActionsBarUI___PickupItemsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___PickupItemsFrame, WoWReforgedActionsBarUI___PickupItemsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___PickupItemsFrame, "ReplaceableTextures\\CommandButtons\\BTNPickUpItem.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___PickupItemsFrame, true) - - set WoWReforgedActionsBarUI___PickupItemsTooltip=BlzCreateFrameByType("TEXT", "PickupItemsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___PickupItemsButton, WoWReforgedActionsBarUI___PickupItemsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___PickupItemsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___PickupItemsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___PickupItemsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___PickupItemsTooltip, "Pick up all items nearby.") - - set WoWReforgedActionsBarUI___PickupItemsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___PickupItemsTrigger, WoWReforgedActionsBarUI___PickupItemsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___PickupItemsTrigger, function WoWReforgedActionsBarUI___PickupItemsClickFunction) + set WoWReforgedActionsBarUI__PickupItemsButton=BlzCreateFrameByType("BUTTON", "PickupItemsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__PickupItemsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_PICKUP_ITEMS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__PickupItemsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_PICKUP_ITEMS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__PickupItemsButton, true) + + set WoWReforgedActionsBarUI__PickupItemsFrame=BlzCreateFrameByType("BACKDROP", "PickupItemsFrame", WoWReforgedActionsBarUI__PickupItemsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__PickupItemsFrame, WoWReforgedActionsBarUI__PickupItemsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__PickupItemsFrame, "ReplaceableTextures\\CommandButtons\\BTNPickUpItem.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__PickupItemsFrame, true) + + set WoWReforgedActionsBarUI__PickupItemsTooltip=BlzCreateFrameByType("TEXT", "PickupItemsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__PickupItemsButton, WoWReforgedActionsBarUI__PickupItemsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__PickupItemsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__PickupItemsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__PickupItemsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__PickupItemsTooltip, "Pick up all items nearby.") + + set WoWReforgedActionsBarUI__PickupItemsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__PickupItemsTrigger, WoWReforgedActionsBarUI__PickupItemsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__PickupItemsTrigger, function WoWReforgedActionsBarUI__PickupItemsClickFunction) // drop items - set WoWReforgedActionsBarUI___DropItemsButton=BlzCreateFrameByType("BUTTON", "PickupItemsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___DropItemsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_DROP_ITEMS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___DropItemsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_DROP_ITEMS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___DropItemsButton, true) - - set WoWReforgedActionsBarUI___DropItemsFrame=BlzCreateFrameByType("BACKDROP", "DropItemsFrame", WoWReforgedActionsBarUI___DropItemsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___DropItemsFrame, WoWReforgedActionsBarUI___DropItemsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___DropItemsFrame, "ReplaceableTextures\\CommandButtons\\BTNUndeadUnLoad.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___DropItemsFrame, true) - - set WoWReforgedActionsBarUI___DropItemsTooltip=BlzCreateFrameByType("TEXT", "DropItemsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___DropItemsButton, WoWReforgedActionsBarUI___DropItemsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___DropItemsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___DropItemsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___DropItemsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___DropItemsTooltip, "Drop all items from backpack.") - - set WoWReforgedActionsBarUI___DropItemsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___DropItemsTrigger, WoWReforgedActionsBarUI___DropItemsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___DropItemsTrigger, function WoWReforgedActionsBarUI___DropItemsClickFunction) + set WoWReforgedActionsBarUI__DropItemsButton=BlzCreateFrameByType("BUTTON", "PickupItemsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__DropItemsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_DROP_ITEMS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__DropItemsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_DROP_ITEMS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__DropItemsButton, true) + + set WoWReforgedActionsBarUI__DropItemsFrame=BlzCreateFrameByType("BACKDROP", "DropItemsFrame", WoWReforgedActionsBarUI__DropItemsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__DropItemsFrame, WoWReforgedActionsBarUI__DropItemsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__DropItemsFrame, "ReplaceableTextures\\CommandButtons\\BTNUndeadUnLoad.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__DropItemsFrame, true) + + set WoWReforgedActionsBarUI__DropItemsTooltip=BlzCreateFrameByType("TEXT", "DropItemsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__DropItemsButton, WoWReforgedActionsBarUI__DropItemsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__DropItemsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__DropItemsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__DropItemsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__DropItemsTooltip, "Drop all items from backpack.") + + set WoWReforgedActionsBarUI__DropItemsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__DropItemsTrigger, WoWReforgedActionsBarUI__DropItemsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__DropItemsTrigger, function WoWReforgedActionsBarUI__DropItemsClickFunction) // backpack - set WoWReforgedActionsBarUI___BackpackButton=BlzCreateFrameByType("BUTTON", "BackpackButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___BackpackButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_BACKPACK_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___BackpackButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_BACKPACK_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___BackpackButton, true) - - set WoWReforgedActionsBarUI___BackpackFrame=BlzCreateFrameByType("BACKDROP", "BackpackFrame", WoWReforgedActionsBarUI___BackpackButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___BackpackFrame, WoWReforgedActionsBarUI___BackpackButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___BackpackFrame, "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bag_09.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___BackpackFrame, true) - - set WoWReforgedActionsBarUI___BackpackTooltip=BlzCreateFrameByType("TEXT", "BackpackTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___BackpackButton, WoWReforgedActionsBarUI___BackpackTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___BackpackTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___BackpackButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___BackpackTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___BackpackTooltip, "Backpack items.") - - set WoWReforgedActionsBarUI___BackpackTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___BackpackTrigger, WoWReforgedActionsBarUI___BackpackButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___BackpackTrigger, function WoWReforgedActionsBarUI___BackpackClickFunction) + set WoWReforgedActionsBarUI__BackpackButton=BlzCreateFrameByType("BUTTON", "BackpackButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__BackpackButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_BACKPACK_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__BackpackButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_BACKPACK_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__BackpackButton, true) + + set WoWReforgedActionsBarUI__BackpackFrame=BlzCreateFrameByType("BACKDROP", "BackpackFrame", WoWReforgedActionsBarUI__BackpackButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__BackpackFrame, WoWReforgedActionsBarUI__BackpackButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__BackpackFrame, "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bag_09.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__BackpackFrame, true) + + set WoWReforgedActionsBarUI__BackpackTooltip=BlzCreateFrameByType("TEXT", "BackpackTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__BackpackButton, WoWReforgedActionsBarUI__BackpackTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__BackpackTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__BackpackButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__BackpackTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__BackpackTooltip, "Backpack items.") + + set WoWReforgedActionsBarUI__BackpackTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__BackpackTrigger, WoWReforgedActionsBarUI__BackpackButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__BackpackTrigger, function WoWReforgedActionsBarUI__BackpackClickFunction) // mounts - set WoWReforgedActionsBarUI___MountsButton=BlzCreateFrameByType("BUTTON", "MountsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___MountsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_MOUNTS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___MountsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_MOUNTS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MountsButton, true) - - set WoWReforgedActionsBarUI___MountsFrame=BlzCreateFrameByType("BACKDROP", "MountsFrame", WoWReforgedActionsBarUI___MountsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___MountsFrame, WoWReforgedActionsBarUI___MountsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___MountsFrame, "ReplaceableTextures\\CommandButtons\\BTNGryphonRider.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MountsFrame, true) - - set WoWReforgedActionsBarUI___MountsTooltip=BlzCreateFrameByType("TEXT", "MountsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___MountsButton, WoWReforgedActionsBarUI___MountsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___MountsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___MountsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MountsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___MountsTooltip, "Mounts.") - - set WoWReforgedActionsBarUI___MountsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___MountsTrigger, WoWReforgedActionsBarUI___MountsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___MountsTrigger, function WoWReforgedActionsBarUI___MountsClickFunction) + set WoWReforgedActionsBarUI__MountsButton=BlzCreateFrameByType("BUTTON", "MountsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__MountsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_MOUNTS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__MountsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_MOUNTS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MountsButton, true) + + set WoWReforgedActionsBarUI__MountsFrame=BlzCreateFrameByType("BACKDROP", "MountsFrame", WoWReforgedActionsBarUI__MountsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__MountsFrame, WoWReforgedActionsBarUI__MountsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__MountsFrame, "ReplaceableTextures\\CommandButtons\\BTNGryphonRider.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MountsFrame, true) + + set WoWReforgedActionsBarUI__MountsTooltip=BlzCreateFrameByType("TEXT", "MountsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__MountsButton, WoWReforgedActionsBarUI__MountsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__MountsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__MountsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MountsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__MountsTooltip, "Mounts.") + + set WoWReforgedActionsBarUI__MountsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__MountsTrigger, WoWReforgedActionsBarUI__MountsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__MountsTrigger, function WoWReforgedActionsBarUI__MountsClickFunction) // summoned units - set WoWReforgedActionsBarUI___SummonedUnitsButton=BlzCreateFrameByType("BUTTON", "SummonedUnitsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___SummonedUnitsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_SUMMONED_UNITS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___SummonedUnitsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_SUMMONED_UNITS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SummonedUnitsButton, true) - - set WoWReforgedActionsBarUI___SummonedUnitsFrame=BlzCreateFrameByType("BACKDROP", "SummonedUnitsFrame", WoWReforgedActionsBarUI___SummonedUnitsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___SummonedUnitsFrame, WoWReforgedActionsBarUI___SummonedUnitsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___SummonedUnitsFrame, "ReplaceableTextures\\CommandButtons\\BTNSummonWaterElemental.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SummonedUnitsFrame, true) - - set WoWReforgedActionsBarUI___SummonedUnitsTooltip=BlzCreateFrameByType("TEXT", "SummonedUnitsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___SummonedUnitsButton, WoWReforgedActionsBarUI___SummonedUnitsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___SummonedUnitsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___SummonedUnitsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SummonedUnitsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___SummonedUnitsTooltip, "Summoned units.") - - set WoWReforgedActionsBarUI___SummonedUnitsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___SummonedUnitsTrigger, WoWReforgedActionsBarUI___SummonedUnitsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___SummonedUnitsTrigger, function WoWReforgedActionsBarUI___SummonedUnitsClickFunction) + set WoWReforgedActionsBarUI__SummonedUnitsButton=BlzCreateFrameByType("BUTTON", "SummonedUnitsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__SummonedUnitsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_SUMMONED_UNITS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__SummonedUnitsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_SUMMONED_UNITS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SummonedUnitsButton, true) + + set WoWReforgedActionsBarUI__SummonedUnitsFrame=BlzCreateFrameByType("BACKDROP", "SummonedUnitsFrame", WoWReforgedActionsBarUI__SummonedUnitsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__SummonedUnitsFrame, WoWReforgedActionsBarUI__SummonedUnitsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__SummonedUnitsFrame, "ReplaceableTextures\\CommandButtons\\BTNSummonWaterElemental.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SummonedUnitsFrame, true) + + set WoWReforgedActionsBarUI__SummonedUnitsTooltip=BlzCreateFrameByType("TEXT", "SummonedUnitsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__SummonedUnitsButton, WoWReforgedActionsBarUI__SummonedUnitsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__SummonedUnitsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__SummonedUnitsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SummonedUnitsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__SummonedUnitsTooltip, "Summoned units.") + + set WoWReforgedActionsBarUI__SummonedUnitsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__SummonedUnitsTrigger, WoWReforgedActionsBarUI__SummonedUnitsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__SummonedUnitsTrigger, function WoWReforgedActionsBarUI__SummonedUnitsClickFunction) // town halls - set WoWReforgedActionsBarUI___TownHallsButton=BlzCreateFrameByType("BUTTON", "TownHallsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___TownHallsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_TOWN_HALLS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___TownHallsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_TOWN_HALLS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___TownHallsButton, true) - - set WoWReforgedActionsBarUI___TownHallsFrame=BlzCreateFrameByType("BACKDROP", "TownHallsFrame", WoWReforgedActionsBarUI___TownHallsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___TownHallsFrame, WoWReforgedActionsBarUI___TownHallsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___TownHallsFrame, "ReplaceableTextures\\CommandButtons\\BTNCastle.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___TownHallsFrame, true) - - set WoWReforgedActionsBarUI___TownHallsTooltip=BlzCreateFrameByType("TEXT", "TownHallsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___TownHallsButton, WoWReforgedActionsBarUI___TownHallsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___TownHallsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___TownHallsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___TownHallsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___TownHallsTooltip, "Town Halls.") - - set WoWReforgedActionsBarUI___TownHallsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___TownHallsTrigger, WoWReforgedActionsBarUI___TownHallsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___TownHallsTrigger, function WoWReforgedActionsBarUI___TownHallsClickFunction) + set WoWReforgedActionsBarUI__TownHallsButton=BlzCreateFrameByType("BUTTON", "TownHallsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__TownHallsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_TOWN_HALLS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__TownHallsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_TOWN_HALLS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__TownHallsButton, true) + + set WoWReforgedActionsBarUI__TownHallsFrame=BlzCreateFrameByType("BACKDROP", "TownHallsFrame", WoWReforgedActionsBarUI__TownHallsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__TownHallsFrame, WoWReforgedActionsBarUI__TownHallsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__TownHallsFrame, "ReplaceableTextures\\CommandButtons\\BTNCastle.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__TownHallsFrame, true) + + set WoWReforgedActionsBarUI__TownHallsTooltip=BlzCreateFrameByType("TEXT", "TownHallsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__TownHallsButton, WoWReforgedActionsBarUI__TownHallsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__TownHallsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__TownHallsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__TownHallsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__TownHallsTooltip, "Town Halls.") + + set WoWReforgedActionsBarUI__TownHallsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__TownHallsTrigger, WoWReforgedActionsBarUI__TownHallsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__TownHallsTrigger, function WoWReforgedActionsBarUI__TownHallsClickFunction) // altars - set WoWReforgedActionsBarUI___AltarsButton=BlzCreateFrameByType("BUTTON", "AltarsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___AltarsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_ALTARS_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___AltarsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_ALTARS_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AltarsButton, true) - - set WoWReforgedActionsBarUI___AltarsFrame=BlzCreateFrameByType("BACKDROP", "AltarsFrame", WoWReforgedActionsBarUI___AltarsButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___AltarsFrame, WoWReforgedActionsBarUI___AltarsButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___AltarsFrame, "ReplaceableTextures\\CommandButtons\\BTNAltarOfKings.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AltarsFrame, true) - - set WoWReforgedActionsBarUI___AltarsTooltip=BlzCreateFrameByType("TEXT", "TownHallsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___AltarsButton, WoWReforgedActionsBarUI___AltarsTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___AltarsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___AltarsButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AltarsTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___AltarsTooltip, "Altars.") - - set WoWReforgedActionsBarUI___AltarsTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___AltarsTrigger, WoWReforgedActionsBarUI___AltarsButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___AltarsTrigger, function WoWReforgedActionsBarUI___AltarsClickFunction) + set WoWReforgedActionsBarUI__AltarsButton=BlzCreateFrameByType("BUTTON", "AltarsButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__AltarsButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_ALTARS_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__AltarsButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_ALTARS_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AltarsButton, true) + + set WoWReforgedActionsBarUI__AltarsFrame=BlzCreateFrameByType("BACKDROP", "AltarsFrame", WoWReforgedActionsBarUI__AltarsButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__AltarsFrame, WoWReforgedActionsBarUI__AltarsButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__AltarsFrame, "ReplaceableTextures\\CommandButtons\\BTNAltarOfKings.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AltarsFrame, true) + + set WoWReforgedActionsBarUI__AltarsTooltip=BlzCreateFrameByType("TEXT", "TownHallsTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__AltarsButton, WoWReforgedActionsBarUI__AltarsTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__AltarsTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__AltarsButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AltarsTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__AltarsTooltip, "Altars.") + + set WoWReforgedActionsBarUI__AltarsTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__AltarsTrigger, WoWReforgedActionsBarUI__AltarsButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__AltarsTrigger, function WoWReforgedActionsBarUI__AltarsClickFunction) // save codes - set WoWReforgedActionsBarUI___SaveCodesButton=BlzCreateFrameByType("BUTTON", "SaveCodesButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___SaveCodesButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_SAVECODES_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___SaveCodesButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_SAVECODES_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SaveCodesButton, true) - - set WoWReforgedActionsBarUI___SaveCodesFrame=BlzCreateFrameByType("BACKDROP", "SaveCodesFrame", WoWReforgedActionsBarUI___SaveCodesButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___SaveCodesFrame, WoWReforgedActionsBarUI___SaveCodesButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___SaveCodesFrame, "ReplaceableTextures\\CommandButtons\\BTNIconSave.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SaveCodesFrame, true) - - set WoWReforgedActionsBarUI___SaveCodesTooltip=BlzCreateFrameByType("TEXT", "SaveCodesTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___SaveCodesButton, WoWReforgedActionsBarUI___SaveCodesTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___SaveCodesTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___SaveCodesButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___SaveCodesTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___SaveCodesTooltip, "Save Codes.") - - set WoWReforgedActionsBarUI___SaveCodesTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___SaveCodesTrigger, WoWReforgedActionsBarUI___SaveCodesButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___SaveCodesTrigger, function WoWReforgedActionsBarUI___SaveCodesClickFunction) + set WoWReforgedActionsBarUI__SaveCodesButton=BlzCreateFrameByType("BUTTON", "SaveCodesButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__SaveCodesButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_SAVECODES_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__SaveCodesButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_SAVECODES_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SaveCodesButton, true) + + set WoWReforgedActionsBarUI__SaveCodesFrame=BlzCreateFrameByType("BACKDROP", "SaveCodesFrame", WoWReforgedActionsBarUI__SaveCodesButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__SaveCodesFrame, WoWReforgedActionsBarUI__SaveCodesButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__SaveCodesFrame, "ReplaceableTextures\\CommandButtons\\BTNIconSave.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SaveCodesFrame, true) + + set WoWReforgedActionsBarUI__SaveCodesTooltip=BlzCreateFrameByType("TEXT", "SaveCodesTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__SaveCodesButton, WoWReforgedActionsBarUI__SaveCodesTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__SaveCodesTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__SaveCodesButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__SaveCodesTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__SaveCodesTooltip, "Save Codes.") + + set WoWReforgedActionsBarUI__SaveCodesTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__SaveCodesTrigger, WoWReforgedActionsBarUI__SaveCodesButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__SaveCodesTrigger, function WoWReforgedActionsBarUI__SaveCodesClickFunction) // lock camera - set WoWReforgedActionsBarUI___LockCameraButton=BlzCreateFrameByType("BUTTON", "LockCameraButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___LockCameraButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_LOCK_CAMERA_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___LockCameraButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_LOCK_CAMERA_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LockCameraButton, true) - - set WoWReforgedActionsBarUI___LockCameraFrame=BlzCreateFrameByType("BACKDROP", "LockCameraFrame", WoWReforgedActionsBarUI___LockCameraButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___LockCameraFrame, WoWReforgedActionsBarUI___LockCameraButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___LockCameraFrame, "ReplaceableTextures\\CommandButtons\\BTNCameraReset.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LockCameraFrame, true) - - set WoWReforgedActionsBarUI___LockCameraTooltip=BlzCreateFrameByType("TEXT", "LockCameraTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___LockCameraButton, WoWReforgedActionsBarUI___LockCameraTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___LockCameraTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___LockCameraButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LockCameraTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___LockCameraTooltip, "Lock/unlock camera.") - - set WoWReforgedActionsBarUI___LockCameraTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___LockCameraTrigger, WoWReforgedActionsBarUI___LockCameraButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___LockCameraTrigger, function WoWReforgedActionsBarUI___LockCameraClickFunction) + set WoWReforgedActionsBarUI__LockCameraButton=BlzCreateFrameByType("BUTTON", "LockCameraButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__LockCameraButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_LOCK_CAMERA_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__LockCameraButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_LOCK_CAMERA_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LockCameraButton, true) + + set WoWReforgedActionsBarUI__LockCameraFrame=BlzCreateFrameByType("BACKDROP", "LockCameraFrame", WoWReforgedActionsBarUI__LockCameraButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__LockCameraFrame, WoWReforgedActionsBarUI__LockCameraButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__LockCameraFrame, "ReplaceableTextures\\CommandButtons\\BTNCameraReset.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LockCameraFrame, true) + + set WoWReforgedActionsBarUI__LockCameraTooltip=BlzCreateFrameByType("TEXT", "LockCameraTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__LockCameraButton, WoWReforgedActionsBarUI__LockCameraTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__LockCameraTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__LockCameraButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LockCameraTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__LockCameraTooltip, "Lock/unlock camera.") + + set WoWReforgedActionsBarUI__LockCameraTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__LockCameraTrigger, WoWReforgedActionsBarUI__LockCameraButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__LockCameraTrigger, function WoWReforgedActionsBarUI__LockCameraClickFunction) // rpg camera - set WoWReforgedActionsBarUI___RpgCameraButton=BlzCreateFrameByType("BUTTON", "RpgCameraButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___RpgCameraButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_RPG_CAMERA_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___RpgCameraButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_RPG_CAMERA_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___RpgCameraButton, true) - - set WoWReforgedActionsBarUI___RpgCameraFrame=BlzCreateFrameByType("BACKDROP", "RpgCameraFrame", WoWReforgedActionsBarUI___RpgCameraButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___RpgCameraFrame, WoWReforgedActionsBarUI___RpgCameraButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___RpgCameraFrame, "ReplaceableTextures\\CommandButtons\\BTNCameraReset.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___RpgCameraFrame, true) - - set WoWReforgedActionsBarUI___RpgCameraTooltip=BlzCreateFrameByType("TEXT", "RpgCameraTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___RpgCameraButton, WoWReforgedActionsBarUI___RpgCameraTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___RpgCameraTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___RpgCameraButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___RpgCameraTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___RpgCameraTooltip, "Enable/disable RPG camera.") - - set WoWReforgedActionsBarUI___RpgCameraTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___RpgCameraTrigger, WoWReforgedActionsBarUI___RpgCameraButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___RpgCameraTrigger, function WoWReforgedActionsBarUI___RpgCameraClickFunction) + set WoWReforgedActionsBarUI__RpgCameraButton=BlzCreateFrameByType("BUTTON", "RpgCameraButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__RpgCameraButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_RPG_CAMERA_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__RpgCameraButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_RPG_CAMERA_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__RpgCameraButton, true) + + set WoWReforgedActionsBarUI__RpgCameraFrame=BlzCreateFrameByType("BACKDROP", "RpgCameraFrame", WoWReforgedActionsBarUI__RpgCameraButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__RpgCameraFrame, WoWReforgedActionsBarUI__RpgCameraButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__RpgCameraFrame, "ReplaceableTextures\\CommandButtons\\BTNCameraReset.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__RpgCameraFrame, true) + + set WoWReforgedActionsBarUI__RpgCameraTooltip=BlzCreateFrameByType("TEXT", "RpgCameraTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__RpgCameraButton, WoWReforgedActionsBarUI__RpgCameraTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__RpgCameraTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__RpgCameraButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__RpgCameraTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__RpgCameraTooltip, "Enable/disable RPG camera.") + + set WoWReforgedActionsBarUI__RpgCameraTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__RpgCameraTrigger, WoWReforgedActionsBarUI__RpgCameraButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__RpgCameraTrigger, function WoWReforgedActionsBarUI__RpgCameraClickFunction) // auto skill - set WoWReforgedActionsBarUI___AutoSkillButton=BlzCreateFrameByType("BUTTON", "AutoSkillButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___AutoSkillButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_AUTO_SKILL_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___AutoSkillButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_AUTO_SKILL_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AutoSkillButton, true) - - set WoWReforgedActionsBarUI___AutoSkillFrame=BlzCreateFrameByType("BACKDROP", "AutoSkillFrame", WoWReforgedActionsBarUI___AutoSkillButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___AutoSkillFrame, WoWReforgedActionsBarUI___AutoSkillButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___AutoSkillFrame, "ReplaceableTextures\\CommandButtons\\BTNSkillz.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AutoSkillFrame, true) - - set WoWReforgedActionsBarUI___AutoSkillTooltip=BlzCreateFrameByType("TEXT", "AutoSkillTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___AutoSkillButton, WoWReforgedActionsBarUI___AutoSkillTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___AutoSkillTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___AutoSkillButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___AutoSkillTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___AutoSkillTooltip, "Auto skill.") - - set WoWReforgedActionsBarUI___AutoSkillTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___AutoSkillTrigger, WoWReforgedActionsBarUI___AutoSkillButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___AutoSkillTrigger, function WoWReforgedActionsBarUI___AutoSkillClickFunction) + set WoWReforgedActionsBarUI__AutoSkillButton=BlzCreateFrameByType("BUTTON", "AutoSkillButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__AutoSkillButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_AUTO_SKILL_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__AutoSkillButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_AUTO_SKILL_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AutoSkillButton, true) + + set WoWReforgedActionsBarUI__AutoSkillFrame=BlzCreateFrameByType("BACKDROP", "AutoSkillFrame", WoWReforgedActionsBarUI__AutoSkillButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__AutoSkillFrame, WoWReforgedActionsBarUI__AutoSkillButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__AutoSkillFrame, "ReplaceableTextures\\CommandButtons\\BTNSkillz.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AutoSkillFrame, true) + + set WoWReforgedActionsBarUI__AutoSkillTooltip=BlzCreateFrameByType("TEXT", "AutoSkillTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__AutoSkillButton, WoWReforgedActionsBarUI__AutoSkillTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__AutoSkillTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__AutoSkillButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__AutoSkillTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__AutoSkillTooltip, "Auto skill.") + + set WoWReforgedActionsBarUI__AutoSkillTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__AutoSkillTrigger, WoWReforgedActionsBarUI__AutoSkillButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__AutoSkillTrigger, function WoWReforgedActionsBarUI__AutoSkillClickFunction) // log - set WoWReforgedActionsBarUI___LogButton=BlzCreateFrameByType("BUTTON", "LogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___LogButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_LOG_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___LogButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_LOG_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LogButton, true) - - set WoWReforgedActionsBarUI___LogFrame=BlzCreateFrameByType("BACKDROP", "LogFrame", WoWReforgedActionsBarUI___LogButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___LogFrame, WoWReforgedActionsBarUI___LogButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___LogFrame, "ReplaceableTextures\\CommandButtons\\BTNSpy.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LogFrame, true) - - set WoWReforgedActionsBarUI___LogTooltip=BlzCreateFrameByType("TEXT", "LogTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___LogButton, WoWReforgedActionsBarUI___LogTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___LogTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___LogButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___LogTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___LogTooltip, "Multiplayer Log.") - - set WoWReforgedActionsBarUI___LogTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___LogTrigger, WoWReforgedActionsBarUI___LogButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___LogTrigger, function WoWReforgedActionsBarUI___LogClickFunction) + set WoWReforgedActionsBarUI__LogButton=BlzCreateFrameByType("BUTTON", "LogButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__LogButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_LOG_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__LogButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_LOG_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LogButton, true) + + set WoWReforgedActionsBarUI__LogFrame=BlzCreateFrameByType("BACKDROP", "LogFrame", WoWReforgedActionsBarUI__LogButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__LogFrame, WoWReforgedActionsBarUI__LogButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__LogFrame, "ReplaceableTextures\\CommandButtons\\BTNSpy.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LogFrame, true) + + set WoWReforgedActionsBarUI__LogTooltip=BlzCreateFrameByType("TEXT", "LogTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__LogButton, WoWReforgedActionsBarUI__LogTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__LogTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__LogButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__LogTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__LogTooltip, "Multiplayer Log.") + + set WoWReforgedActionsBarUI__LogTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__LogTrigger, WoWReforgedActionsBarUI__LogButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__LogTrigger, function WoWReforgedActionsBarUI__LogClickFunction) // calendar - set WoWReforgedActionsBarUI___MultiboardButton=BlzCreateFrameByType("BUTTON", "MultiboardButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___MultiboardButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI___UI_MULTIBOARD_X, WoWReforgedActionsBarUI___UI_Y) - call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI___MultiboardButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI___UI_MULTIBOARD_X + WoWReforgedActionsBarUI___UI_BUTTON_SIZE, WoWReforgedActionsBarUI___UI_Y - WoWReforgedActionsBarUI___UI_BUTTON_SIZE) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MultiboardButton, true) - - set WoWReforgedActionsBarUI___MultiboardFrame=BlzCreateFrameByType("BACKDROP", "MultiboardFrame", WoWReforgedActionsBarUI___MultiboardButton, "", 0) - call BlzFrameSetAllPoints(WoWReforgedActionsBarUI___MultiboardFrame, WoWReforgedActionsBarUI___MultiboardButton) - call BlzFrameSetTexture(WoWReforgedActionsBarUI___MultiboardFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-Play.blp", 0, true) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MultiboardFrame, true) - - set WoWReforgedActionsBarUI___MultiboardTooltip=BlzCreateFrameByType("TEXT", "BlzFrameSetTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) - call BlzFrameSetTooltip(WoWReforgedActionsBarUI___MultiboardButton, WoWReforgedActionsBarUI___MultiboardTooltip) - call BlzFrameSetPoint(WoWReforgedActionsBarUI___MultiboardTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI___MultiboardButton, FRAMEPOINT_TOP, 0, 0.01) - call BlzFrameSetEnable(WoWReforgedActionsBarUI___MultiboardTooltip, false) - call BlzFrameSetText(WoWReforgedActionsBarUI___MultiboardTooltip, "Toggle multiboards.") - - set WoWReforgedActionsBarUI___MultiboardTrigger=CreateTrigger() - call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI___MultiboardTrigger, WoWReforgedActionsBarUI___MultiboardButton, FRAMEEVENT_CONTROL_CLICK) - call TriggerAddAction(WoWReforgedActionsBarUI___MultiboardTrigger, function WoWReforgedActionsBarUI___MultiboardClickFunction) + set WoWReforgedActionsBarUI__MultiboardButton=BlzCreateFrameByType("BUTTON", "MultiboardButton", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "ScoreScreenTabButtonTemplate", 0) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__MultiboardButton, FRAMEPOINT_TOPLEFT, WoWReforgedActionsBarUI__UI_MULTIBOARD_X, WoWReforgedActionsBarUI__UI_Y) + call BlzFrameSetAbsPoint(WoWReforgedActionsBarUI__MultiboardButton, FRAMEPOINT_BOTTOMRIGHT, WoWReforgedActionsBarUI__UI_MULTIBOARD_X + WoWReforgedActionsBarUI__UI_BUTTON_SIZE, WoWReforgedActionsBarUI__UI_Y - WoWReforgedActionsBarUI__UI_BUTTON_SIZE) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MultiboardButton, true) + + set WoWReforgedActionsBarUI__MultiboardFrame=BlzCreateFrameByType("BACKDROP", "MultiboardFrame", WoWReforgedActionsBarUI__MultiboardButton, "", 0) + call BlzFrameSetAllPoints(WoWReforgedActionsBarUI__MultiboardFrame, WoWReforgedActionsBarUI__MultiboardButton) + call BlzFrameSetTexture(WoWReforgedActionsBarUI__MultiboardFrame, "ReplaceableTextures\\CommandButtons\\BTNReplay-Play.blp", 0, true) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MultiboardFrame, true) + + set WoWReforgedActionsBarUI__MultiboardTooltip=BlzCreateFrameByType("TEXT", "BlzFrameSetTooltip", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0) + call BlzFrameSetTooltip(WoWReforgedActionsBarUI__MultiboardButton, WoWReforgedActionsBarUI__MultiboardTooltip) + call BlzFrameSetPoint(WoWReforgedActionsBarUI__MultiboardTooltip, FRAMEPOINT_BOTTOM, WoWReforgedActionsBarUI__MultiboardButton, FRAMEPOINT_TOP, 0, 0.01) + call BlzFrameSetEnable(WoWReforgedActionsBarUI__MultiboardTooltip, false) + call BlzFrameSetText(WoWReforgedActionsBarUI__MultiboardTooltip, "Toggle multiboards.") + + set WoWReforgedActionsBarUI__MultiboardTrigger=CreateTrigger() + call BlzTriggerRegisterFrameEvent(WoWReforgedActionsBarUI__MultiboardTrigger, WoWReforgedActionsBarUI__MultiboardButton, FRAMEEVENT_CONTROL_CLICK) + call TriggerAddAction(WoWReforgedActionsBarUI__MultiboardTrigger, function WoWReforgedActionsBarUI__MultiboardClickFunction) call SetActionsBarUIVisible(false , false) - call BlzFrameSetVisible(WoWReforgedActionsBarUI___CheckboxButton, true) + call BlzFrameSetVisible(WoWReforgedActionsBarUI__CheckboxButton, true) endfunction -function WoWReforgedActionsBarUI___DropAllBackpackItems takes player whichPlayer returns nothing +function WoWReforgedActionsBarUI__DropAllBackpackItems takes player whichPlayer returns nothing local integer count= DropBackpack(whichPlayer) call h__DisplayTextToPlayer(whichPlayer, 0.0, 0.0, "Dropped all items (" + I2S(count) + ") from backpack.") endfunction -function WoWReforgedActionsBarUI___TriggerConditionSync takes nothing returns boolean +function WoWReforgedActionsBarUI__TriggerConditionSync takes nothing returns boolean local integer playerId= GetPlayerId(GetTriggerPlayer()) local string data= BlzGetTriggerSyncData() if ( data == "Checked" ) then - set WoWReforgedActionsBarUI___checked[playerId]=true + set WoWReforgedActionsBarUI__checked[playerId]=true if ( GetTriggerPlayer() == GetLocalPlayer() ) then call SetActionsBarUIVisible(true , true) endif elseif ( data == "Unchecked" ) then - set WoWReforgedActionsBarUI___checked[playerId]=false + set WoWReforgedActionsBarUI__checked[playerId]=false if ( GetTriggerPlayer() == GetLocalPlayer() ) then call SetActionsBarUIVisible(false , false) endif elseif ( data == "PickupItems" ) then call PickupAllItemsAroundByPlayer(GetTriggerPlayer()) elseif ( data == "DropBackpack" ) then - call WoWReforgedActionsBarUI___DropAllBackpackItems(GetTriggerPlayer()) + call WoWReforgedActionsBarUI__DropAllBackpackItems(GetTriggerPlayer()) elseif ( data == "Backpack" ) then - if ( (WoWReforgedBackpacks___Backpack[GetPlayerId((GetTriggerPlayer()))]) != null ) then // INLINED!! - call SelectUnitForPlayerSingle((WoWReforgedBackpacks___Backpack[GetPlayerId((GetTriggerPlayer()))]), GetTriggerPlayer()) // INLINED!! + if ( (WoWReforgedBackpacks__Backpack[GetPlayerId((GetTriggerPlayer()))]) != null ) then // INLINED!! + call SelectUnitForPlayerSingle((WoWReforgedBackpacks__Backpack[GetPlayerId((GetTriggerPlayer()))]), GetTriggerPlayer()) // INLINED!! call ShowBackpackUI(GetTriggerPlayer()) else call SimError(GetTriggerPlayer() , "No backpack.") @@ -83151,19 +83151,19 @@ function WoWReforgedActionsBarUI___TriggerConditionSync takes nothing returns bo elseif ( data == "Log" ) then call ShowLogUIForPlayer(GetTriggerPlayer()) elseif ( data == "Multiboard" ) then - call WoWReforgedActionsBarUI___Multiboard(GetTriggerPlayer()) + call WoWReforgedActionsBarUI__Multiboard(GetTriggerPlayer()) endif return false endfunction -function WoWReforgedActionsBarUI___Init takes nothing returns nothing - call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedActionsBarUI___SyncTrigger , WoWReforgedActionsBarUI___PREFIX , false) - call TriggerAddCondition(WoWReforgedActionsBarUI___SyncTrigger, Condition(function WoWReforgedActionsBarUI___TriggerConditionSync)) +function WoWReforgedActionsBarUI__Init takes nothing returns nothing + call TriggerRegisterAnyPlayerSyncEvent(WoWReforgedActionsBarUI__SyncTrigger , WoWReforgedActionsBarUI__PREFIX , false) + call TriggerAddCondition(WoWReforgedActionsBarUI__SyncTrigger, Condition(function WoWReforgedActionsBarUI__TriggerConditionSync)) call TriggerAddAction(FrameLoader__actionTrigger, (function CreateActionsBarUI)) // INLINED!! - call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedActionsBarUI___UpdateAllMultiboards)) // INLINED!! - call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedActionsBarUI___UpdateAllActionBars)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedActionsBarUI__UpdateAllMultiboards)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedActionsBarUI__UpdateAllActionBars)) // INLINED!! endfunction @@ -83172,36 +83172,36 @@ endfunction //library WoWReforgedCinematic: -function WoWReforgedCinematic__StorePlayerSelections takes nothing returns nothing +function WoWReforgedCinematic___StorePlayerSelections takes nothing returns nothing local player slotPlayer= null local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) set slotPlayer=Player(i) - if ( WoWReforgedCinematic__playerSelections[i] != null ) then - call GroupClear(WoWReforgedCinematic__playerSelections[i]) - call DestroyGroup(WoWReforgedCinematic__playerSelections[i]) - set WoWReforgedCinematic__playerSelections[i]=null + if ( WoWReforgedCinematic___playerSelections[i] != null ) then + call GroupClear(WoWReforgedCinematic___playerSelections[i]) + call DestroyGroup(WoWReforgedCinematic___playerSelections[i]) + set WoWReforgedCinematic___playerSelections[i]=null endif if ( GetPlayerSlotState(slotPlayer) == PLAYER_SLOT_STATE_PLAYING and GetPlayerController(slotPlayer) == MAP_CONTROL_COMPUTER ) then - set WoWReforgedCinematic__playerSelections[i]=GetUnitsSelectedAll(slotPlayer) + set WoWReforgedCinematic___playerSelections[i]=GetUnitsSelectedAll(slotPlayer) endif set slotPlayer=null set i=i + 1 endloop endfunction -function WoWReforgedCinematic__RestorePlayerSelections takes nothing returns nothing +function WoWReforgedCinematic___RestorePlayerSelections takes nothing returns nothing local player slotPlayer= null local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) set slotPlayer=Player(i) - if ( WoWReforgedCinematic__playerSelections[i] != null and GetPlayerSlotState(slotPlayer) == PLAYER_SLOT_STATE_PLAYING and GetPlayerController(slotPlayer) == MAP_CONTROL_COMPUTER ) then - call SelectGroupForPlayerBJ(WoWReforgedCinematic__playerSelections[i], slotPlayer) + if ( WoWReforgedCinematic___playerSelections[i] != null and GetPlayerSlotState(slotPlayer) == PLAYER_SLOT_STATE_PLAYING and GetPlayerController(slotPlayer) == MAP_CONTROL_COMPUTER ) then + call SelectGroupForPlayerBJ(WoWReforgedCinematic___playerSelections[i], slotPlayer) endif set slotPlayer=null @@ -83209,35 +83209,35 @@ function WoWReforgedCinematic__RestorePlayerSelections takes nothing returns not endloop endfunction -function WoWReforgedCinematic__ForForceEnableCinematic takes nothing returns nothing +function WoWReforgedCinematic___ForForceEnableCinematic takes nothing returns nothing call ShowAllTextTagsForPlayer(GetEnumPlayer() , false) call SetActionsBarUIVisibleForPlayer((GetEnumPlayer()) , false) // INLINED!! endfunction function EnableCinematic takes nothing returns nothing - call WoWReforgedCinematic__StorePlayerSelections() - call ForForce(GetPlayersAll(), function WoWReforgedCinematic__ForForceEnableCinematic) + call WoWReforgedCinematic___StorePlayerSelections() + call ForForce(GetPlayersAll(), function WoWReforgedCinematic___ForForceEnableCinematic) call DisableCalendar() endfunction -function WoWReforgedCinematic__ForForceDisableCinematic takes nothing returns nothing +function WoWReforgedCinematic___ForForceDisableCinematic takes nothing returns nothing call ShowAllTextTagsForPlayer(GetEnumPlayer() , true) call SetActionsBarUIVisibleForPlayer((GetEnumPlayer()) , true) // INLINED!! endfunction function DisableCinematic takes nothing returns nothing - call WoWReforgedCinematic__RestorePlayerSelections() - call ForForce(GetPlayersAll(), function WoWReforgedCinematic__ForForceDisableCinematic) - if ( (WoWReforgedCalendar__seasonsEnabled) ) then // INLINED!! + call WoWReforgedCinematic___RestorePlayerSelections() + call ForForce(GetPlayersAll(), function WoWReforgedCinematic___ForForceDisableCinematic) + if ( (WoWReforgedCalendar___seasonsEnabled) ) then // INLINED!! call EnableCalendar() endif endfunction -function WoWReforgedCinematic__Init takes nothing returns nothing +function WoWReforgedCinematic___Init takes nothing returns nothing local integer i= 0 loop exitwhen ( i == bj_MAX_PLAYERS ) - set WoWReforgedCinematic__playerSelections[i]=CreateGroup() + set WoWReforgedCinematic___playerSelections[i]=CreateGroup() set i=i + 1 endloop endfunction @@ -83308,7 +83308,7 @@ function SetActionsBarRaceTexturesFromRace takes integer whichRace returns nothi endif endfunction -function WoWReforgedRacesUI___ForForceUpdateIdleWorkerIcons takes nothing returns nothing +function WoWReforgedRacesUI__ForForceUpdateIdleWorkerIcons takes nothing returns nothing local player slotPlayer= GetEnumPlayer() local integer size= (BlzGroupGetSize(IdleWorkersSystem___idleWorkers[GetPlayerId((slotPlayer))])) // INLINED!! call RefreshIdleWorkers(slotPlayer) @@ -83320,8 +83320,8 @@ function WoWReforgedRacesUI___ForForceUpdateIdleWorkerIcons takes nothing return set slotPlayer=null endfunction -function WoWReforgedRacesUI___TimerFunctionUpdateIdleWorkerIcons takes nothing returns nothing - call ForForce((ForceUtils__allPlayingUsers), function WoWReforgedRacesUI___ForForceUpdateIdleWorkerIcons) // INLINED!! +function WoWReforgedRacesUI__TimerFunctionUpdateIdleWorkerIcons takes nothing returns nothing + call ForForce((ForceUtils__allPlayingUsers), function WoWReforgedRacesUI__ForForceUpdateIdleWorkerIcons) // INLINED!! endfunction function UseCustomConsoleUIForCustomRace takes player whichPlayer,integer whichRace returns nothing @@ -83334,7 +83334,7 @@ function UseCustomConsoleUIForCustomRace takes player whichPlayer,integer whichR if ( GetLocalPlayer() == whichPlayer ) then call SetActionsBarRaceTexturesFromRace(whichRace) endif - call ForForce((ForceUtils__allPlayingUsers), function WoWReforgedRacesUI___ForForceUpdateIdleWorkerIcons) // INLINED!! + call ForForce((ForceUtils__allPlayingUsers), function WoWReforgedRacesUI__ForForceUpdateIdleWorkerIcons) // INLINED!! endfunction function ConsoleUIExistsForCustomRace takes integer whichRace returns boolean @@ -83345,7 +83345,7 @@ function ConsoleUIExistsForCustomRace takes integer whichRace returns boolean endfunction -function WoWReforgedRacesUI___AddCustomConsoleWrapper takes integer index,string path returns nothing +function WoWReforgedRacesUI__AddCustomConsoleWrapper takes integer index,string path returns nothing @@ -83357,307 +83357,307 @@ function InitRacesUI takes nothing returns nothing local integer index= 0 set index=startIndex + udg_RaceHuman - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNPeasant") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNPeasant") set index=startIndex + udg_RaceOrc - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNPeon") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNPeon") set index=startIndex + udg_RaceUndead - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNAcolyte") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\undead\\undeaduitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNAcolyte") set index=startIndex + udg_RaceNightElf - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNWisp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNWisp") set index=startIndex + udg_RaceBloodElf - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile-TimeIndicatorFrame_V4") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNBloodElfPeasant.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile-TimeIndicatorFrame_V4") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\BloodElfHumanUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNBloodElfPeasant.blp") set index=startIndex + udg_RaceNaga - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile04") // TODO Adapt for Reforged. //call AddCustomConsoleWrapper(index, "war3mapImported\\HumanUITile05") //call AddCustomConsoleWrapper(index, "war3mapImported\\HumanUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNMurgalSlave.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\HumanUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNMurgalSlave.blp") call AddCustomRaceSound(index , SOUND_TYPE_RESEARCH_COMPLETE , gg_snd_NagaResearchComplete1) call AddCustomRaceSound(index , SOUND_TYPE_UPGRADE_COMPLETE , gg_snd_NagaUpgradeComplete1) set index=startIndex + udg_RaceDemon - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNGanarg.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNGanarg.blp") call AddCustomRaceSoundsGeneric(index) set index=startIndex + udg_RaceDraenei - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNDranai.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\LostUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNDranai.blp") call AddCustomRaceSoundsGeneric(index) set index=startIndex + udg_RaceGoblin - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile2") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile3") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile4") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNGoblinWorker.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile2") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile3") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile4") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\GoblinUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNGoblinWorker.blp") call AddCustomRaceSoundsGeneric(index) set index=startIndex + udg_RaceDwarf - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNDwarfMiner.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\human\\humanuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNDwarfMiner.blp") call AddCustomRaceSoundsGeneric(index) set index=startIndex + udg_RacePandaren - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\PaundaUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNPandaVillager.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\PandaUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\PaundaUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNPandaVillager.blp") call AddCustomRaceSoundsGeneric(index) set index=startIndex + udg_RaceVrykul - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNVrykulWorker.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNVrykulWorker.blp") call AddCustomRaceSoundsGeneric(index) set index=startIndex + udg_RaceNerubian - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNnerubianSpiderLord.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\NerubianUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNnerubianSpiderLord.blp") call AddCustomRaceSoundsGeneric(index) set index=startIndex + udg_RaceTuskarr - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNTuskaarBrown.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\IceHumanUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNTuskaarBrown.blp") call AddCustomRaceSoundsGeneric(index) set index=startIndex + udg_RaceOgre - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNOgreMagi") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNOgreMagi") set index=startIndex + udg_RaceEredar - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiInventoryCover.blp") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNArtificer") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiInventoryCover.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNArtificer") set index=startIndex + udg_RaceFelOrc - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNChaosPeon") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNChaosPeon") set index=startIndex + udg_RaceFacelessOne - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile-TimeIndicatorFrame.blp") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiInventoryCover.blp") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNFacelessOne.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\FacelessOneUITile-TimeIndicatorFrame.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DraeneiInventoryCover.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNFacelessOne.blp") set index=startIndex + udg_RaceSatyr - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNSatyr.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\nightelf\\nightelfuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNSatyr.blp") set index=startIndex + udg_RaceCentaur - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNCentaur.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNCentaur.blp") set index=startIndex + udg_RaceGnoll - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNGnollKing.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNGnollKing.blp") set index=startIndex + udg_RaceKobold - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNKobold.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNKobold.blp") set index=startIndex + udg_RaceQuillboar - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNRazorback.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-timeindicatorframe") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ui\\console\\orc\\orcuitile-inventorycover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTNRazorback.blp") set index=startIndex + udg_RaceDungeon - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile01") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile02") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile03") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile04") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile05") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile06") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile-TimeIndicatorFrame") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile-InventoryCover") - call WoWReforgedRacesUI___AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTN_SkeletonPeasant.blp") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile01") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile02") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile03") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile04") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile05") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile06") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile-TimeIndicatorFrame") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "war3mapImported\\DemonUITile-InventoryCover") + call WoWReforgedRacesUI__AddCustomConsoleWrapper(index , "ReplaceableTextures\\CommandButtons\\BTN_SkeletonPeasant.blp") call AddCustomRaceSoundsGeneric(index) endfunction function GetRacesUIUpdateTimerHandleId takes nothing returns integer - return GetHandleId(WoWReforgedRacesUI___updateTimer) + return GetHandleId(WoWReforgedRacesUI__updateTimer) endfunction -function WoWReforgedRacesUI___BeforeSave takes nothing returns nothing - call PauseTimer(WoWReforgedRacesUI___updateTimer) +function WoWReforgedRacesUI__BeforeSave takes nothing returns nothing + call PauseTimer(WoWReforgedRacesUI__updateTimer) endfunction -function WoWReforgedRacesUI___AfterSave takes nothing returns nothing - call ResumeTimer(WoWReforgedRacesUI___updateTimer) +function WoWReforgedRacesUI__AfterSave takes nothing returns nothing + call ResumeTimer(WoWReforgedRacesUI__updateTimer) endfunction -function WoWReforgedRacesUI___Init takes nothing returns nothing - call TimerStart(WoWReforgedRacesUI___updateTimer, 0.3, true, function WoWReforgedRacesUI___TimerFunctionUpdateIdleWorkerIcons) +function WoWReforgedRacesUI__Init takes nothing returns nothing + call TimerStart(WoWReforgedRacesUI__updateTimer, 0.3, true, function WoWReforgedRacesUI__TimerFunctionUpdateIdleWorkerIcons) // make sure that the timer will be paused and not run before restoring frames of GetIdleWorkerOverlayParent after loading the game - call FrameSaverAddEx(function WoWReforgedRacesUI___BeforeSave , function WoWReforgedRacesUI___AfterSave) + call FrameSaverAddEx(function WoWReforgedRacesUI__BeforeSave , function WoWReforgedRacesUI__AfterSave) - call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedRacesUI___AfterSave)) // INLINED!! + call TriggerAddAction(FrameLoader__actionTrigger, (function WoWReforgedRacesUI__AfterSave)) // INLINED!! endfunction @@ -99875,39 +99875,39 @@ function Trig_Taunts_Init_Actions takes nothing returns nothing // ########################### set udg_TmpString="Yes my lord!" set udg_TmpSound=gg_snd_PeasantYes2 - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### set udg_TmpString="Work work!" set udg_TmpSound=gg_snd_PeonYes3 - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### set udg_TmpString="That's it, I am dead!" set udg_TmpSound=gg_snd_PeasantYesAttack4 - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### set udg_TmpString="Intriguing!" set udg_TmpSound=gg_snd_NecromancerYes1 - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### set udg_TmpString="For Lordaeron!" set udg_TmpSound=gg_snd_ArthasWarcry1 - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### set udg_TmpString="I should have been a farmer like my father wanted!" set udg_TmpSound=gg_snd_CaptainPissed1 - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### set udg_TmpString="Hippity Hoppity!" set udg_TmpSound=gg_snd_FunnyBunnyYes1 - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### set udg_TmpString="Who dares defile this ancient land? " set udg_TmpSound=gg_snd_Cenarius_What1 - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### set udg_TmpString="Tremble mortals and despair, doom has come to this world. " set udg_TmpSound=gg_snd_DemiDark - call AddTaunt(I2S((Taunts___TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! + call AddTaunt(I2S((Taunts__TauntsCount) + 1) , udg_TmpString , udg_TmpSound) // INLINED!! // ########################### endfunction @@ -102180,7 +102180,7 @@ function Trig_Equipment_Init_Actions takes nothing returns nothing // ########################### set udg_TmpItemTypeId='I0V7' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### @@ -102206,7 +102206,7 @@ function Trig_Equipment_Init_Actions takes nothing returns nothing // ########################### set udg_TmpItemTypeId='I0V2' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### @@ -102232,7 +102232,7 @@ function Trig_Equipment_Init_Actions takes nothing returns nothing // ########################### set udg_TmpItemTypeId='I0VB' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### @@ -102243,43 +102243,43 @@ function Trig_Equipment_Init_Actions takes nothing returns nothing // ########################### set udg_TmpItemTypeId='I0U8' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND_HAMMER // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0UH' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0V2' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0VK' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0VL' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0V0' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0ZR' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### @@ -102294,13 +102294,13 @@ function Trig_Equipment_Init_Actions takes nothing returns nothing // ########################### set udg_TmpItemTypeId='I0UJ' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0UV' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_TWO_HAND // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### @@ -102308,84 +102308,84 @@ function Trig_Equipment_Init_Actions takes nothing returns nothing // ########################### set udg_TmpItemTypeId='I0UG' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_RIGHT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_BOW // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0V6' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_RIGHT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_BOW // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0UW' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_SHOOT_GUN // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0WT' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_LEFT_HAND_WEAPON // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0VA' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_LEFT_HAND_WEAPON // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0VG' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_LEFT_HAND_WEAPON // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0VJ' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_LEFT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_LEFT_HAND_WEAPON // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0V8' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_RIGHT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_SHOOT_GUN // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0UX' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_RIGHT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_MINIGUN // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I138' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_RIGHT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_SHOOT_GUN // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I139' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_RIGHT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_SHOOT_GUN // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I13H' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_RIGHT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_MINIGUN // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### set udg_TmpItemTypeId='I0UU' set udg_TmpInteger=WoWReforgedEquipment_CATEGORY_RIGHT_HAND // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! - call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment___equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_RANGE , true) // INLINED!! + call SetEquipmentItemTypeCategoryType(WoWReforgedEquipment__equipmentTypesCounter , WoWReforgedEquipment_CATEGORY_TYPE_TWO_HANDED , true) // INLINED!! set udg_TmpInteger2=VILLAGER_255_ANIMATION_ATTACK_MINIGUN // INLINED!! call AddEquipmentItemTypeWoWReforged() // ########################### @@ -109082,7 +109082,7 @@ function Trig_Save_Games_Load_Actions takes nothing returns nothing call ForForce(bj_FORCE_PLAYER[0], (function CreateAiPlayersUI)) // INLINED!! // Somehow Warcraft changes the title color to white after loading a save game. call MultiboardSetTitleTextColorBJ(udg_StatsMultiboard, 100, 80, 20, 0) - call MultiboardSetTitleTextColorBJ(WoWReforgedCalendarMultiboard__m, 100, 80, 20, 0) // INLINED!! + call MultiboardSetTitleTextColorBJ(WoWReforgedCalendarMultiboard___m, 100, 80, 20, 0) // INLINED!! endfunction //=========================================================================== @@ -109111,7 +109111,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Map_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_4772", "TRIGSTR_4773", "ReplaceableTextures\\CommandButtons\\BTNLogo.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Creator: Baradé" call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Please provide feedback." @@ -109136,7 +109136,7 @@ endfunction function Trig_Game_Information_Hero_Journey_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2190", "TRIGSTR_2191", "ReplaceableTextures\\CommandButtons\\BTNStatUp.blp") set udg_QuestHeroJourney=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="5: Abilities available on Theramore." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="10: Random Events." @@ -109186,7 +109186,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Known_Issues_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2185", "TRIGSTR_2186", "ReplaceableTextures\\CommandButtons\\BTNVolcano.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Long loading time leads to errors for some players." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Enchanting does not work for all item abilities due to Warcraft bugs." @@ -109213,7 +109213,7 @@ endfunction function Trig_Game_Information_Game_Type_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2039", "TRIGSTR_2175", "ReplaceableTextures\\CommandButtons\\BTNDryadDispelMagic.blp") set udg_QuestGameType=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Normal: Nothing changes. Default game type." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Fast: Fast XP, building, resources" @@ -109235,7 +109235,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Game_Modes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2035", "TRIGSTR_2036", "ReplaceableTextures\\CommandButtons\\BTNArcaneObservatory.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Warlord: Partly strategy mode." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Freelancer: Pure RPG mode, begins with +15 attributes and +30 % XP rate." @@ -109253,7 +109253,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Players_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5399", "TRIGSTR_5400", "ReplaceableTextures\\CommandButtons\\BTNVillagerWoman.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-players\": Lists all players with their names, numbers, teams and colors." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="X in chat commands for players can be their number, name or color name." @@ -109285,7 +109285,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Heroes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2026", "TRIGSTR_2027", "ReplaceableTextures\\CommandButtons\\BTNHeroPaladin.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-repick\": Repick your hero (you lose all units!)." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-fullrepick\": Lose 3/4 of your XP but repick the game mode." @@ -109313,7 +109313,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Professions_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2020", "TRIGSTR_2021", "ReplaceableTextures\\CommandButtons\\BTNThunderclap.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Craft items." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-p1/-p2/-p3\": (Re)pick your professions 1/2/3." @@ -109335,7 +109335,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Races_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_2015", "TRIGSTR_2016", "ReplaceableTextures\\CommandButtons\\BTNPeasant.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="For Warlords only." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-r1/-r2/-r3\": (Re)pick your races 1/2/3." @@ -109355,7 +109355,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Start_Locations_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1995", "TRIGSTR_1996", "ReplaceableTextures\\WorldEditUI\\StartingLocation.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -109370,7 +109370,7 @@ endfunction function Trig_Game_Information_Victory_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1993", "TRIGSTR_1994", "ReplaceableTextures\\CommandButtons\\BTNResurrection.blp") set udg_QuestVictory=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -109385,7 +109385,7 @@ endfunction function Trig_Game_Information_Chat_Commands_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1988", "TRIGSTR_1989", "ReplaceableTextures\\CommandButtons\\BTNBrilliance.blp") set udg_QuestChatCommands=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-h/-help\": Lists chat commands." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-helpping\": Lists ping chat commands." @@ -109909,7 +109909,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Universal_Chat_Commands_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1986", "TRIGSTR_1987", "ReplaceableTextures\\CommandButtons\\BTNDisenchant.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"/help X\": Shows usage help for topic X (whisper etc.)." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"/fps\": Shows FPS." @@ -109943,7 +109943,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Cheats_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_3661", "TRIGSTR_3664", "ReplaceableTextures\\CommandButtons\\BTNGreaterRejuvScroll.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-helpcheats\": Lists cheat chat commands." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-nocheats/-cheats\": Disables/enables cheat chat commands." @@ -110085,7 +110085,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Repick_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1979", "TRIGSTR_1980", "ReplaceableTextures\\CommandButtons\\BTNEvasion.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1981") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1982") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1983") @@ -110104,7 +110104,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Full_Repick_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1972", "TRIGSTR_1973", "ReplaceableTextures\\CommandButtons\\BTNBanshee.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1974") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1975") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1976") @@ -110123,7 +110123,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Alliances_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1956", "TRIGSTR_1957", "ReplaceableTextures\\CommandButtons\\BTNStaffOfPreservation.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1958") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1959") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1960") @@ -110151,7 +110151,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Death_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1954", "TRIGSTR_1955", "ReplaceableTextures\\CommandButtons\\BTNResStone.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-r/-revive\": Selects your altar to revive your hero." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-suicide\": Kills your selected units." @@ -110177,7 +110177,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Cities_and_Hideouts_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1952", "TRIGSTR_1953", "ReplaceableTextures\\CommandButtons\\BTNArcaneObservatory.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -110191,7 +110191,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Camera_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1947", "TRIGSTR_1948", "ReplaceableTextures\\CommandButtons\\BTNCamera.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-helpcamera\": Lists camera chat commands." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-camlockon/off\": Locks/unlocks the camera to the selected hero." @@ -110240,7 +110240,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Resources_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1943", "TRIGSTR_1944", "ReplaceableTextures\\CommandButtons\\BTNEnchantedGemstone.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-helpresources\": Lists resources chat commands." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-resources X\": Shows the resources of player X or your resources." @@ -110274,7 +110274,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Computer_AI_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1936", "TRIGSTR_1937", "ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_QuestAI=GetLastCreatedQuestBJ() call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1938") set udg_TmpString="\"-aireset\": Resets the AI players and allows customizing them from the host." @@ -110314,7 +110314,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Creeps_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1934", "TRIGSTR_1935", "ReplaceableTextures\\CommandButtons\\BTNPitLord.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -110328,7 +110328,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Bosses_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1932", "TRIGSTR_1933", "ReplaceableTextures\\CommandButtons\\BTNMannoroth.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-pingbosses/pingb/bosses\": Pings all bosses." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction @@ -110344,7 +110344,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Legendary_Artifacts_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1929", "TRIGSTR_1930", "ReplaceableTextures\\CommandButtons\\BTNFarSight.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-pingl\": Pings all legendary items which are on the ground." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction @@ -110360,7 +110360,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Quests_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1926", "TRIGSTR_1927", "ReplaceableTextures\\CommandButtons\\BTNSnazzyScroll.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1928") set udg_TmpString="\"-ping\": Pings the current quest locations on the minimap." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! @@ -110403,7 +110403,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Backpack_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1924", "TRIGSTR_1925", "ReplaceableTextures\\CommandButtons\\BTNPackBeast.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -110417,7 +110417,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Equipment_Bags_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1917", "TRIGSTR_1918", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bag_09.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1919") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1920") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1921") @@ -110436,7 +110436,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Leaderboards_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1915", "TRIGSTR_1916", "ReplaceableTextures\\CommandButtons\\BTNStormHammer.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-crusadeon/-crusadeoff\": Enable/disable leaderboard." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-centaurson/-centaursoff\": Enable/disable leaderboard." @@ -110470,7 +110470,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Demigod_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1911", "TRIGSTR_1912", "ReplaceableTextures\\CommandButtons\\BTNPurge.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1913") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1914") endfunction @@ -110486,7 +110486,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Mounts_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1908", "TRIGSTR_1909", "ReplaceableTextures\\CommandButtons\\BTNGryphonRider.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1910") set udg_TmpString="\"-mountname1/2/3 X\": Changes the name of the mount to X." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! @@ -110503,7 +110503,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Hand_Of_God_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1902", "TRIGSTR_1903", "ReplaceableTextures\\CommandButtons\\BTNDivineGolem.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1904") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1905") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1906") @@ -110521,7 +110521,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Evolution_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1895", "TRIGSTR_1896", "ReplaceableTextures\\CommandButtons\\BTNHealthStone.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Balances units for higher hero levels." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Increases maximum life and damage of all units." @@ -110547,7 +110547,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Bonus_Heroes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1892", "TRIGSTR_1893", "ReplaceableTextures\\CommandButtons\\BTNNerubianZiggurat.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Available at hero level 40." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction @@ -110563,7 +110563,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Goblin_Bank_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1866", "TRIGSTR_1867", "ReplaceableTextures\\CommandButtons\\BTNChestOfGold.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Deposit gold and lumber to get interests." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), ( R2SW(( udg_GoblinBankInterestRate * 100.00 ), 0, 0) + " % Interest Rate." )) @@ -110582,7 +110582,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Clans_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_765", "TRIGSTR_1837", "ReplaceableTextures\\CommandButtons\\BTNChaosBlademaster.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1838") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1851") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1852") @@ -110613,7 +110613,7 @@ endfunction function Trig_Game_Information_VIPs_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1130", "TRIGSTR_1131", "ReplaceableTextures\\CommandButtons\\BTNPolarFurbolgShaman.blp") set udg_QuestVIPs=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-vips\": Lists all VIPs." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1132") @@ -110636,7 +110636,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Bans_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1127", "TRIGSTR_1128", "ReplaceableTextures\\CommandButtons\\BTNSilence.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-bans\": Lists all banned account names." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! endfunction @@ -110652,7 +110652,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Reward_Freelancers_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1125", "TRIGSTR_1126", "ReplaceableTextures\\CommandButtons\\BTNChestOfGold.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -110666,7 +110666,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Transfer_Units_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1120", "TRIGSTR_1121", "ReplaceableTextures\\CommandButtons\\BTNSacrifice.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -110680,7 +110680,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Arena_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1116", "TRIGSTR_1117", "ReplaceableTextures\\CommandButtons\\BTNArmoredOge.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -110694,7 +110694,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Car_Races_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1112", "TRIGSTR_1113", "ReplaceableTextures\\CommandButtons\\BTNDwarfCar.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Buy a qualification on Kezan to start." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Participate with your first hero." @@ -110712,7 +110712,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Railway_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1106", "TRIGSTR_1110", "ReplaceableTextures\\CommandButtons\\BTNWarWagon.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! endfunction //=========================================================================== @@ -110726,7 +110726,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Marketplaces_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_627", "TRIGSTR_669", "ReplaceableTextures\\CommandButtons\\BTNBlackMarket.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_872") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_977") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_978") @@ -110744,7 +110744,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Thieves_Guilds_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_493", "TRIGSTR_497", "ReplaceableTextures\\CommandButtons\\BTNThievesGuildX.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_513") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_514") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_515") @@ -110762,7 +110762,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Trading_Posts_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_370", "TRIGSTR_374", "ReplaceableTextures\\CommandButtons\\BTNMarketStone.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_375") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_437") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_449") @@ -110782,7 +110782,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Properties_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_348", "TRIGSTR_349", "ReplaceableTextures\\CommandButtons\\BTNStormwindCastle.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-pingproperties\": Pings all properties." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Unique places." @@ -110806,7 +110806,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Random_Events_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1844", "TRIGSTR_1845", "ReplaceableTextures\\CommandButtons\\BTNAbomination.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1846") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1847") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1848") @@ -110825,7 +110825,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Hidden_Bases_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1836", "TRIGSTR_1839", "ReplaceableTextures\\CommandButtons\\BTNShade.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1842") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_1843") endfunction @@ -110841,7 +110841,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Stats_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_826", "TRIGSTR_827", "ReplaceableTextures\\CommandButtons\\BTNShaman.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_828") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_829") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_830") @@ -110880,7 +110880,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Special_Race_Building_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_821", "TRIGSTR_822", "ReplaceableTextures\\CommandButtons\\BTNFountainOfLifeBlood.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_823") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_824") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_825") @@ -110898,7 +110898,7 @@ endfunction function Trig_Game_Information_Save_Codes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_795", "TRIGSTR_796", "ReplaceableTextures\\CommandButtons\\BTNIconSave.blp") set udg_QuestSaveAndLoad=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-savecodeconverter\": Allows you converting old savecodes into new ones." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_797") @@ -110949,7 +110949,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Portals_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_789", "TRIGSTR_790", "ReplaceableTextures\\CommandButtons\\BTNWaygate.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_791") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_792") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_793") @@ -110967,7 +110967,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Crafting_Stashes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_758", "TRIGSTR_759", "ReplaceableTextures\\CommandButtons\\BTNsteelcage.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_785") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_786") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_787") @@ -110985,7 +110985,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Mounts_Cage_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_755", "TRIGSTR_756", "ReplaceableTextures\\CommandButtons\\BTNCage.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_757") endfunction @@ -111000,7 +111000,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Dragon_Roosts_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_58750", "TRIGSTR_58751", "ReplaceableTextures\\CommandButtons\\BTNBlackDragonRoost.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_58752") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_58753") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_58754") @@ -111017,7 +111017,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Antimagic_Wards_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_58742", "TRIGSTR_58743", "ReplaceableTextures\\CommandButtons\\BTNWebWard.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_58744") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_58745") endfunction @@ -111033,7 +111033,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Spell_Books_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_58736", "TRIGSTR_58737", "ReplaceableTextures\\CommandButtons\\BTNSorceressMaster.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_58738") endfunction @@ -111048,7 +111048,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Alchemist_Lab_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57795", "TRIGSTR_57796", "ReplaceableTextures\\CommandButtons\\BTNAmmoDump.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57797") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57798") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57799") @@ -111066,7 +111066,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Hero_Abilities_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57791", "TRIGSTR_57792", "ReplaceableTextures\\CommandButtons\\BTNTomeBrown.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57793") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57794") endfunction @@ -111082,7 +111082,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Witch_Hut_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_22295", "TRIGSTR_22296", "ReplaceableTextures\\CommandButtons\\BTNGenericCreepBuilding.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Can be built by female citizens." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Give units different abilities." @@ -111104,7 +111104,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Armory_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_16912", "TRIGSTR_22292", "ReplaceableTextures\\CommandButtons\\BTNBlacksmith.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Can be built by children." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Equipment items for customizable heroes." @@ -111122,7 +111122,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Void_Lords_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_15366", "TRIGSTR_15367", "ReplaceableTextures\\CommandButtons\\BTNVoidWalker.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_15368") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_15369") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_15370") @@ -111140,7 +111140,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Customizable_Heroes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_15364", "TRIGSTR_15365", "ReplaceableTextures\\CommandButtons\\BTNVillagerMan.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-helpattributes\": Lists attributes chat commands." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="\"-str X\": Skills X strength. Skills max strength if empty." @@ -111172,7 +111172,7 @@ endfunction //=========================================================================== function Trig_Game_Information_PvP_Arena_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57709", "TRIGSTR_57710", "ReplaceableTextures\\CommandButtons\\BTNBanditLord.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57711") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57712") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57713") @@ -111191,7 +111191,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Gaia_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_5070", "TRIGSTR_5071", "ReplaceableTextures\\CommandButtons\\BTNCharm.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Units owned by Gaia can be rescued when approaching them." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Change owner to the rescuing player." @@ -111213,7 +111213,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Lore_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57704", "TRIGSTR_57705", "ReplaceableTextures\\CommandButtons\\BTNSnazzyScrollPurple.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57706") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57707") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57708") @@ -111231,7 +111231,7 @@ endfunction function Trig_Game_Information_Stats_Tomes_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57699", "TRIGSTR_57700", "ReplaceableTextures\\CommandButtons\\BTNManual3.blp") set udg_QuestTomes=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57701") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57702") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57703") @@ -111248,7 +111248,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Holy_Grail_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57681", "TRIGSTR_57682", "ReplaceableTextures\\CommandButtons\\BTNHL_Holy_Grail.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57683") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57684") call CreateQuestItemBJ(GetLastCreatedQuestBJ(), "TRIGSTR_57685") @@ -111265,7 +111265,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Achievements_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57616", "TRIGSTR_57617", "ReplaceableTextures\\CommandButtons\\BTNBattleRoar.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="\"-achievements\": Lists all available achievements with your score." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! call AddAchievementsToQuest() @@ -111282,7 +111282,7 @@ endfunction //=========================================================================== function Trig_Game_Information_Environment_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57614", "TRIGSTR_57615", "ReplaceableTextures\\CommandButtons\\BTNRainyWeather.blp") - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! set udg_TmpString="Rain automatically refills all mines with resource Water." call CreateQuestItem(bj_lastCreatedQuest , (udg_TmpString)) // INLINED!! set udg_TmpString="Fall increases harvesting grain." @@ -111380,7 +111380,7 @@ endfunction function Trig_Game_Information_Credits_Actions takes nothing returns nothing call h__CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_57594", "TRIGSTR_666", "ReplaceableTextures\\CommandButtons\\BTNPeasant.blp") set udg_QuestCredits=GetLastCreatedQuestBJ() - set WoWReforgedInfoQuests__questHandle[WoWReforgedInfoQuests__questsMax - 1]=bj_lastCreatedQuest // INLINED!! + set WoWReforgedInfoQuests___questHandle[WoWReforgedInfoQuests___questsMax - 1]=bj_lastCreatedQuest // INLINED!! call AddAllCredits() endfunction @@ -114025,7 +114025,7 @@ endfunction function Trig_Items_Tome_of_Skill_Points_Actions takes nothing returns nothing set udg_TmpInteger=1 - set udg_TmpInteger=udg_TmpInteger + (LoadInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((GetTriggerUnit() )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! + set udg_TmpInteger=udg_TmpInteger + (LoadInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((GetTriggerUnit() )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! call ModifyHeroSkillPoints(GetTriggerUnit(), bj_MODIFYMETHOD_ADD, udg_TmpInteger) endfunction @@ -114058,7 +114058,7 @@ endfunction function Trig_Items_Tome_of_Armor_Actions takes nothing returns nothing set udg_TmpInteger=3 - set udg_TmpInteger=udg_TmpInteger + (LoadInteger(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((GetTriggerUnit() )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! + set udg_TmpInteger=udg_TmpInteger + (LoadInteger(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((GetTriggerUnit() )), ( ENCHANTER_SYSTEM_KEY_HERO_STATS_AND_DEFENSE_BONUS))) // INLINED!! call sc__NewBonus_add((GetTriggerUnit() ) , ( BONUS_ARMOR ) , (( I2R(udg_TmpInteger))*1.0)) // INLINED!! endfunction @@ -114091,7 +114091,7 @@ endfunction function Trig_Items_Manual_of_Mana_Actions takes nothing returns nothing set udg_TmpReal=50.00 - set udg_TmpReal=udg_TmpReal + (LoadReal(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((GetTriggerUnit() )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! + set udg_TmpReal=udg_TmpReal + (LoadReal(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((GetTriggerUnit() )), ( ENCHANTER_SYSTEM_KEY_HIT_POINTS_AND_MANA_BONUS))) // INLINED!! call sc__NewBonus_add((GetTriggerUnit() ) , ( BONUS_MANA ) , (( udg_TmpReal)*1.0)) // INLINED!! endfunction @@ -117658,9 +117658,9 @@ endfunction //=========================================================================== function Trig_Spells_Mind_Control_Init_Actions takes nothing returns nothing set udg_TmpPlayer=udg_BossesPlayer - call ForceAddPlayer(MindControl___notAllowedPlayers, (udg_TmpPlayer)) // INLINED!! + call ForceAddPlayer(MindControl__notAllowedPlayers, (udg_TmpPlayer)) // INLINED!! set udg_TmpPlayer=udg_TheBurningLegion - call ForceAddPlayer(MindControl___notAllowedPlayers, (udg_TmpPlayer)) // INLINED!! + call ForceAddPlayer(MindControl__notAllowedPlayers, (udg_TmpPlayer)) // INLINED!! endfunction //=========================================================================== @@ -121759,19 +121759,19 @@ function Trig_Professions_Init_Herbalist_Actions takes nothing returns nothing set udg_TmpAbilityCode='A00E' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='hlst' set udg_TmpAbilityCode='A00I' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='pnvu' set udg_TmpAbilityCode='A01B' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I025' set udg_TmpAbilityCode='A01D' @@ -121799,19 +121799,19 @@ function Trig_Professions_Init_Alchemist_Actions takes nothing returns nothing set udg_TmpAbilityCode='A007' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='mnst' set udg_TmpAbilityCode='A01M' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='woms' set udg_TmpAbilityCode='A009' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I024' set udg_TmpAbilityCode='A00A' @@ -121839,19 +121839,19 @@ function Trig_Professions_Init_Weapon_Smith_Actions takes nothing returns nothin set udg_TmpAbilityCode='A00L' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I00P' set udg_TmpAbilityCode='A00R' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I00Q' set udg_TmpAbilityCode='A00S' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I00R' set udg_TmpAbilityCode='A00T' @@ -121879,19 +121879,19 @@ function Trig_Professions_Init_Armorer_Actions takes nothing returns nothing set udg_TmpAbilityCode='A00C' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I00L' set udg_TmpAbilityCode='A00B' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I00M' set udg_TmpAbilityCode='A01N' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I00N' set udg_TmpAbilityCode='A01O' @@ -121919,20 +121919,20 @@ function Trig_Professions_Init_Engineer_Actions takes nothing returns nothing set udg_TmpAbilityCode='A01A' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I00U' set udg_TmpAbilityCode='A006' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpUnitType='ngsp' set udg_TmpAbilityCode='A016' set udg_TmpInteger=2 call AddProfessionCrafted(0 , udg_TmpUnitType , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I00S' set udg_TmpAbilityCode='A00H' @@ -121960,19 +121960,19 @@ function Trig_Professions_Init_Lore_Master_Actions takes nothing returns nothing set udg_TmpAbilityCode='A00Q' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='sres' set udg_TmpAbilityCode='A00F' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='srrc' set udg_TmpAbilityCode='A00G' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='ankh' set udg_TmpAbilityCode='A00O' @@ -122001,21 +122001,21 @@ function Trig_Professions_Init_Sorcerer_Actions takes nothing returns nothing set udg_TmpInteger=8 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='wcyc' set udg_TmpAbilityCode='A06H' set udg_TmpInteger=4 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I038' set udg_TmpAbilityCode='A06E' set udg_TmpInteger=4 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I039' set udg_TmpAbilityCode='A06G' @@ -122045,21 +122045,21 @@ function Trig_Professions_Init_Runeforger_Actions takes nothing returns nothing set udg_TmpInteger=8 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I031' set udg_TmpAbilityCode='A06J' set udg_TmpInteger=4 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I02Z' set udg_TmpAbilityCode='A06J' set udg_TmpInteger=4 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I032' set udg_TmpAbilityCode='A06L' @@ -122089,19 +122089,19 @@ function Trig_Professions_Init_Dragon_Breeder_Actions takes nothing returns noth set udg_TmpAbilityCode='A06M' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I036' set udg_TmpAbilityCode='A06N' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I035' set udg_TmpAbilityCode='A06N' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I037' set udg_TmpAbilityCode='A06P' @@ -122129,19 +122129,19 @@ function Trig_Professions_Init_Jewelcrafter_Actions takes nothing returns nothin set udg_TmpAbilityCode='A0IL' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I077' set udg_TmpAbilityCode='A0IN' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I078' set udg_TmpAbilityCode='A0IO' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I079' set udg_TmpAbilityCode='A0IP' @@ -122169,19 +122169,19 @@ function Trig_Professions_Init_Enchanter_Actions takes nothing returns nothing set udg_TmpAbilityCode='A0IS' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I07H' set udg_TmpAbilityCode='A0IT' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I07I' set udg_TmpAbilityCode='A0IU' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I07J' set udg_TmpAbilityCode='A0IV' @@ -122209,19 +122209,19 @@ function Trig_Professions_Init_Pirate_Actions takes nothing returns nothing set udg_TmpAbilityCode='A0JK' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I083' set udg_TmpAbilityCode='A0JN' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I085' set udg_TmpAbilityCode='A0JP' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I086' set udg_TmpAbilityCode='A0JQ' @@ -122250,21 +122250,21 @@ function Trig_Professions_Init_Archaelogist_Actions takes nothing returns nothin set udg_TmpBoolean=false call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0IF' set udg_TmpAbilityCode='A0ML' set udg_TmpBoolean=false call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0IG' set udg_TmpAbilityCode='A0MK' set udg_TmpBoolean=false call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0IH' set udg_TmpAbilityCode='A0MM' @@ -122294,21 +122294,21 @@ function Trig_Professions_Init_Witch_Doctor_Actions takes nothing returns nothin set udg_TmpInteger=8 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I09K' set udg_TmpAbilityCode='A0MU' set udg_TmpInteger=4 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I09I' set udg_TmpAbilityCode='A0MW' set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='whwd' set udg_TmpAbilityCode='A0MX' @@ -122337,19 +122337,19 @@ function Trig_Professions_Init_Merchant_Actions takes nothing returns nothing set udg_TmpAbilityCode='A0U3' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0D4' set udg_TmpAbilityCode='A0U9' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0D5' set udg_TmpAbilityCode='A0UA' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0D6' set udg_TmpAbilityCode='A0UB' @@ -122377,19 +122377,19 @@ function Trig_Professions_Init_Farmer_Actions takes nothing returns nothing set udg_TmpAbilityCode='A170' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0JW' set udg_TmpAbilityCode='A172' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0KA' set udg_TmpAbilityCode='A17V' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0KB' set udg_TmpAbilityCode='A181' @@ -122417,19 +122417,19 @@ function Trig_Professions_Init_Tamer_Actions takes nothing returns nothing set udg_TmpAbilityCode='A191' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0L5' set udg_TmpAbilityCode='A194' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0L6' set udg_TmpAbilityCode='A196' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0L2' set udg_TmpAbilityCode='A181' @@ -122457,19 +122457,19 @@ function Trig_Professions_Init_Inscriptor_Actions takes nothing returns nothing set udg_TmpAbilityCode='A1CO' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0NQ' set udg_TmpAbilityCode='A1CS' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0NP' set udg_TmpAbilityCode='A1CQ' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0NR' set udg_TmpAbilityCode='A1CR' @@ -122498,21 +122498,21 @@ function Trig_Professions_Init_Necromancer_Actions takes nothing returns nothing set udg_TmpInteger=8 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0S9' set udg_TmpAbilityCode='A1M2' set udg_TmpInteger=8 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='skul' set udg_TmpAbilityCode='A1M3' set udg_TmpInteger=10 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='fgsk' set udg_TmpAbilityCode='A1M4' @@ -122542,21 +122542,21 @@ function Trig_Professions_Init_Golem_Sculptor_Actions takes nothing returns noth set udg_TmpInteger=2 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0SL' set udg_TmpAbilityCode='A1MC' set udg_TmpInteger=2 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0SK' set udg_TmpAbilityCode='A1MS' set udg_TmpInteger=2 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0SM' set udg_TmpAbilityCode='A1MT' @@ -122585,19 +122585,19 @@ function Trig_Professions_Init_Combiner_Actions takes nothing returns nothing set udg_TmpAbilityCode='A1O6' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0T7' set udg_TmpAbilityCode='A1O7' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0T8' set udg_TmpAbilityCode='A1O8' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0T9' set udg_TmpAbilityCode='A1O9' @@ -122625,21 +122625,21 @@ function Trig_Professions_Init_Hunter_Actions takes nothing returns nothing set udg_TmpAbilityCode='A1SI' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0VW' set udg_TmpAbilityCode='A1SO' set udg_TmpInteger=2 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0VX' set udg_TmpAbilityCode='A1SQ' set udg_TmpInteger=2 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0VV' set udg_TmpAbilityCode='A1SL' @@ -122668,21 +122668,21 @@ function Trig_Professions_Init_Miner_Actions takes nothing returns nothing set udg_TmpAbilityCode='A1T4' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0W9' set udg_TmpAbilityCode='A1T5' set udg_TmpBoolean=false call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0WA' set udg_TmpAbilityCode='A1T6' set udg_TmpBoolean=false call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0W8' set udg_TmpAbilityCode='A1T7' @@ -122711,20 +122711,20 @@ function Trig_Professions_Init_Cook_Actions takes nothing returns nothing set udg_TmpAbilityCode='A1U2' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0XA' set udg_TmpAbilityCode='A1UJ' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0XB' set udg_TmpAbilityCode='A1UK' set udg_TmpBoolean=false call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0XC' set udg_TmpAbilityCode='A1UL' @@ -122753,21 +122753,21 @@ function Trig_Professions_Init_Fisherman_Actions takes nothing returns nothing set udg_TmpAbilityCode='A1UA' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0Q2' set udg_TmpAbilityCode='A1UB' set udg_TmpInteger=4 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0X9' set udg_TmpAbilityCode='A1UH' set udg_TmpInteger=4 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0X8' set udg_TmpAbilityCode='A1UF' @@ -122795,7 +122795,7 @@ function Trig_Professions_Init_Prospector_Actions takes nothing returns nothing set udg_TmpAbilityCode='A21M' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A21N' set udg_TmpItemTypeId='I120' @@ -122805,14 +122805,14 @@ function Trig_Professions_Init_Prospector_Actions takes nothing returns nothing set udg_TmpInteger=1 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpUnitType='n0M5' set udg_TmpAbilityCode='A21O' set udg_TmpInteger=2 call AddProfessionCrafted(0 , udg_TmpUnitType , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I11Y' set udg_TmpAbilityCode='A21P' @@ -122843,7 +122843,7 @@ function Trig_Professions_Init_Lumberjack_Actions takes nothing returns nothing set udg_TmpAbilityCode='A1UX' call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A1UY' set udg_TmpItemTypeId='I00V' @@ -122856,14 +122856,14 @@ function Trig_Professions_Init_Lumberjack_Actions takes nothing returns nothing set udg_TmpInteger=1 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpUnitType='ngir' set udg_TmpAbilityCode='A1UZ' set udg_TmpInteger=2 call AddProfessionCrafted(0 , udg_TmpUnitType , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0XN' set udg_TmpAbilityCode='A1V0' @@ -122895,21 +122895,21 @@ function Trig_Professions_Init_Warlock_Actions takes nothing returns nothing set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='infs' set udg_TmpAbilityCode='A1WX' set udg_TmpInteger=2 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0Y7' set udg_TmpAbilityCode='A1WY' set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I0YG' set udg_TmpAbilityCode='A1WZ' @@ -122941,7 +122941,7 @@ function Trig_Professions_Init_Thief_Actions takes nothing returns nothing set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A20M' set udg_TmpItemTypeId='I09H' @@ -122954,14 +122954,14 @@ function Trig_Professions_Init_Thief_Actions takes nothing returns nothing set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I03F' set udg_TmpAbilityCode='A20N' set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I10R' set udg_TmpAbilityCode='A20O' @@ -122996,7 +122996,7 @@ function Trig_Professions_Init_Astromancer_Actions takes nothing returns nothing set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A230' set udg_TmpItemTypeId='fgun' @@ -123006,7 +123006,7 @@ function Trig_Professions_Init_Astromancer_Actions takes nothing returns nothing set udg_TmpInteger=2 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A231' set udg_TmpItemTypeId='I12U' @@ -123016,7 +123016,7 @@ function Trig_Professions_Init_Astromancer_Actions takes nothing returns nothing set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpItemTypeId='I12Z' set udg_TmpAbilityCode='A232' @@ -123049,21 +123049,21 @@ function Trig_Professions_Init_Bard_Actions takes nothing returns nothing set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A25B' set udg_TmpItemTypeId='I14R' set udg_TmpInteger=2 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A25E' set udg_TmpItemTypeId='I14S' set udg_TmpInteger=3 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A25A' set udg_TmpItemTypeId='I14Q' @@ -123096,7 +123096,7 @@ function Trig_Professions_Init_Scribe_Actions takes nothing returns nothing set udg_TmpInteger=1 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A0SS' set udg_TmpItemTypeId='manh' @@ -123106,7 +123106,7 @@ function Trig_Professions_Init_Scribe_Actions takes nothing returns nothing set udg_TmpInteger=1 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A0ST' set udg_TmpItemTypeId='I13E' @@ -123116,7 +123116,7 @@ function Trig_Professions_Init_Scribe_Actions takes nothing returns nothing set udg_TmpInteger=1 call AddProfessionCrafted(udg_TmpItemTypeId , 0 , udg_TmpInteger , udg_TmpBoolean , udg_TmpAbilityCode) // INLINED!! // ########################### - set WoWReforgedProfessions___tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions___tmpRankCounter + 1) // INLINED!! + set WoWReforgedProfessions__tmpRankCounter=IMinBJ(PROFESSION_RANK_MASTER, WoWReforgedProfessions__tmpRankCounter + 1) // INLINED!! // ########################### set udg_TmpAbilityCode='A0SU' set udg_TmpItemTypeId='texp' @@ -123300,26 +123300,26 @@ function Trig_Professions_Craft_Extra_Actions takes nothing returns nothing endif // MINER if ( Trig_Professions_Craft_Extra_Func013C() ) then - set udg_TmpItemTypeId=(WoWReforgedMiner__oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner__oreItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WoWReforgedMiner___oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner___oreItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) - set udg_TmpItemTypeId=(WoWReforgedMiner__oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner__oreItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WoWReforgedMiner___oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner___oreItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) - set udg_TmpItemTypeId=(WoWReforgedMiner__oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner__oreItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WoWReforgedMiner___oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner___oreItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) - set udg_TmpItemTypeId=(WoWReforgedMiner__oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner__oreItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WoWReforgedMiner___oreItemTypeIds[GetRandomInt(0, WoWReforgedMiner___oreItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) else call DoNothing() endif if ( Trig_Professions_Craft_Extra_Func014C() ) then - set udg_TmpItemTypeId=(WoWReforgedMiner__gemItemTypeIds[GetRandomInt(0, WoWReforgedMiner__gemItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WoWReforgedMiner___gemItemTypeIds[GetRandomInt(0, WoWReforgedMiner___gemItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) - set udg_TmpItemTypeId=(WoWReforgedMiner__gemItemTypeIds[GetRandomInt(0, WoWReforgedMiner__gemItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WoWReforgedMiner___gemItemTypeIds[GetRandomInt(0, WoWReforgedMiner___gemItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) else @@ -123327,16 +123327,16 @@ function Trig_Professions_Craft_Extra_Actions takes nothing returns nothing endif // COOK if ( Trig_Professions_Craft_Extra_Func016C() ) then - set udg_TmpItemTypeId=(WowReforgedCook__foodItemTypeIds[GetRandomInt(0, WowReforgedCook__foodItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WowReforgedCook___foodItemTypeIds[GetRandomInt(0, WowReforgedCook___foodItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) - set udg_TmpItemTypeId=(WowReforgedCook__foodItemTypeIds[GetRandomInt(0, WowReforgedCook__foodItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WowReforgedCook___foodItemTypeIds[GetRandomInt(0, WowReforgedCook___foodItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) - set udg_TmpItemTypeId=(WowReforgedCook__foodItemTypeIds[GetRandomInt(0, WowReforgedCook__foodItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WowReforgedCook___foodItemTypeIds[GetRandomInt(0, WowReforgedCook___foodItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) - set udg_TmpItemTypeId=(WowReforgedCook__foodItemTypeIds[GetRandomInt(0, WowReforgedCook__foodItemTypeIdsCounter - 1)]) // INLINED!! + set udg_TmpItemTypeId=(WowReforgedCook___foodItemTypeIds[GetRandomInt(0, WowReforgedCook___foodItemTypeIdsCounter - 1)]) // INLINED!! set udg_TmpInteger=1 call ProfessionCraftItems(udg_TmpUnit , udg_TmpAbilityCode , udg_TmpItemTypeId , udg_TmpInteger) else @@ -123712,7 +123712,7 @@ function Trig_Miner_Summon_Mine_Conditions takes nothing returns boolean endfunction function Trig_Miner_Summon_Mine_Actions takes nothing returns nothing - call AddMineEx((GetSummonedUnit()) , (WoWReforgedMiner__mineralResources[GetRandomInt(0, WoWReforgedMiner__mineralResourcesCounter - 1)]) , GetRandomInt(200, 1500)) // INLINED!! + call AddMineEx((GetSummonedUnit()) , (WoWReforgedMiner___mineralResources[GetRandomInt(0, WoWReforgedMiner___mineralResourcesCounter - 1)]) , GetRandomInt(200, 1500)) // INLINED!! endfunction //=========================================================================== @@ -125285,7 +125285,7 @@ function Trig_Races_Sell_Unit_Refund_Actions takes nothing returns nothing set udg_TmpInteger=GetRaceObjectType(udg_TmpInteger , udg_TmpUnitType) set udg_TmpBoolean=IsWaterRaceUnit(udg_TmpInteger) if ( Trig_Races_Sell_Unit_Refund_Func007Func003C() ) then - set udg_TmpBoolean=(WoWReforgedProperties__GetPropertyIndexByUnitTypeId((GetUnitTypeId(GetTriggerUnit()))) != - 1) // INLINED!! + set udg_TmpBoolean=(WoWReforgedProperties___GetPropertyIndexByUnitTypeId((GetUnitTypeId(GetTriggerUnit()))) != - 1) // INLINED!! if ( Trig_Races_Sell_Unit_Refund_Func007Func003Func004C() ) then set udg_TmpString=( GetUnitName(udg_TmpUnit) + " is refunded since it has a different race." ) call RefundUnit(udg_TmpUnit) @@ -125344,7 +125344,7 @@ function Trig_Races_Sell_Item_Refund_Actions takes nothing returns nothing set udg_TmpInteger=GetObjectRace(udg_TmpItemTypeId) set udg_TmpBoolean=PlayerHasUnlockedRace(udg_TmpPlayer , udg_TmpInteger) if ( Trig_Races_Sell_Item_Refund_Func009C() ) then - set udg_TmpBoolean=(WoWReforgedProperties__GetPropertyIndexByUnitTypeId((GetUnitTypeId(GetTriggerUnit()))) != - 1) // INLINED!! + set udg_TmpBoolean=(WoWReforgedProperties___GetPropertyIndexByUnitTypeId((GetUnitTypeId(GetTriggerUnit()))) != - 1) // INLINED!! if ( Trig_Races_Sell_Item_Refund_Func009Func002C() ) then set udg_TmpString=( GetItemName(udg_TmpItem) + " is refunded since it has a different race." ) call RefundItem(udg_TmpItem , udg_TmpPlayer) @@ -135330,7 +135330,7 @@ function Trig_Dalaran_Shield_Enable_Func002C takes nothing returns boolean endfunction function Trig_Dalaran_Shield_Enable_Actions takes nothing returns nothing - set udg_TmpBoolean=(IsUnitInGroup((GetTriggerUnit()), WoWReforgedDalaranShields__powerGenerators)) // INLINED!! + set udg_TmpBoolean=(IsUnitInGroup((GetTriggerUnit()), WoWReforgedDalaranShields___powerGenerators)) // INLINED!! if ( Trig_Dalaran_Shield_Enable_Func002C() ) then call EnableDalaranShield(GetTriggerUnit()) call EnableTrigger(gg_trg_Dalaran_Shield_Timer) @@ -135376,10 +135376,10 @@ function Trig_Dalaran_Shield_Disable_Func002C takes nothing returns boolean endfunction function Trig_Dalaran_Shield_Disable_Actions takes nothing returns nothing - set udg_TmpBoolean=(IsUnitInGroup((GetTriggerUnit()), WoWReforgedDalaranShields__powerGenerators)) // INLINED!! + set udg_TmpBoolean=(IsUnitInGroup((GetTriggerUnit()), WoWReforgedDalaranShields___powerGenerators)) // INLINED!! if ( Trig_Dalaran_Shield_Disable_Func002C() ) then call DisableDalaranShield(GetTriggerUnit()) - set udg_TmpBoolean=(BlzGroupGetSize(WoWReforgedDalaranShields__powerGenerators) == 0) // INLINED!! + set udg_TmpBoolean=(BlzGroupGetSize(WoWReforgedDalaranShields___powerGenerators) == 0) // INLINED!! if ( Trig_Dalaran_Shield_Disable_Func002Func005C() ) then call DisableTrigger(gg_trg_Dalaran_Shield_Timer) else @@ -135418,10 +135418,10 @@ function Trig_Dalaran_Shield_Death_Func002C takes nothing returns boolean endfunction function Trig_Dalaran_Shield_Death_Actions takes nothing returns nothing - set udg_TmpBoolean=(IsUnitInGroup((GetTriggerUnit()), WoWReforgedDalaranShields__powerGenerators)) // INLINED!! + set udg_TmpBoolean=(IsUnitInGroup((GetTriggerUnit()), WoWReforgedDalaranShields___powerGenerators)) // INLINED!! if ( Trig_Dalaran_Shield_Death_Func002C() ) then call DisableDalaranShield(GetTriggerUnit()) - set udg_TmpBoolean=(BlzGroupGetSize(WoWReforgedDalaranShields__powerGenerators) == 0) // INLINED!! + set udg_TmpBoolean=(BlzGroupGetSize(WoWReforgedDalaranShields___powerGenerators) == 0) // INLINED!! if ( Trig_Dalaran_Shield_Death_Func002Func005C() ) then call DisableTrigger(gg_trg_Dalaran_Shield_Timer) else @@ -135468,7 +135468,7 @@ endfunction function Trig_Dalaran_Shield_Timer_Actions takes nothing returns nothing call GroupClear(udg_TmpGroup) - call GroupAddGroup(WoWReforgedDalaranShields__powerGenerators, (udg_TmpGroup)) // INLINED!! + call GroupAddGroup(WoWReforgedDalaranShields___powerGenerators, (udg_TmpGroup)) // INLINED!! call ForGroupBJ(udg_TmpGroup, function Trig_Dalaran_Shield_Timer_Func003A) endfunction @@ -159530,7 +159530,7 @@ endfunction // Trigger: Chat Command Time //=========================================================================== function Trig_Chat_Command_Time_Actions takes nothing returns nothing - call h__DisplayTimedTextToPlayer((GetTriggerPlayer()), 0.0, 0.0, 6.0, ((I2S((WoWReforgedCalendar__years)) + "-" + I2SW((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar__days) , 2)) + "\nMonth: " + GetMonthName((WoWReforgedCalendar__days / DAYS_PER_MONTH + 1)) + "\nSeason: " + GetSeasonName((WoWReforgedCalendar__season)) + "\nTime of Day: " + (FormatTimeOfDayEx(GetTimeOfDay())) + "\nTotal passed time: " + FormatTimeString((udg_GameTime)) + "\nWeather Report: Rain/Snow/Storm in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar__weatherTimer))) + " and thunder/lightning in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar__thunderTimer))))) // INLINED!! + call h__DisplayTimedTextToPlayer((GetTriggerPlayer()), 0.0, 0.0, 6.0, ((I2S((WoWReforgedCalendar___years)) + "-" + I2SW((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1) , 2) + "-" + I2SW((WoWReforgedCalendar___days) , 2)) + "\nMonth: " + GetMonthName((WoWReforgedCalendar___days / DAYS_PER_MONTH + 1)) + "\nSeason: " + GetSeasonName((WoWReforgedCalendar___season)) + "\nTime of Day: " + (FormatTimeOfDayEx(GetTimeOfDay())) + "\nTotal passed time: " + FormatTimeString((udg_GameTime)) + "\nWeather Report: Rain/Snow/Storm in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar___weatherTimer))) + " and thunder/lightning in " + FormatTimeString(R2I(TimerGetRemaining(WoWReforgedCalendar___thunderTimer))))) // INLINED!! endfunction //=========================================================================== @@ -165107,7 +165107,7 @@ endfunction // Trigger: Chat Command Bag Info On //=========================================================================== function Trig_Chat_Command_Bag_Info_On_Actions takes nothing returns nothing - set WoWReforgedBackpacks___BackpackPlayerBagInfo[GetPlayerId((GetTriggerPlayer() ))]=( true) // INLINED!! + set WoWReforgedBackpacks__BackpackPlayerBagInfo[GetPlayerId((GetTriggerPlayer() ))]=( true) // INLINED!! call h__DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_24958") endfunction @@ -165121,7 +165121,7 @@ endfunction // Trigger: Chat Command Bag Info Off //=========================================================================== function Trig_Chat_Command_Bag_Info_Off_Actions takes nothing returns nothing - set WoWReforgedBackpacks___BackpackPlayerBagInfo[GetPlayerId((GetTriggerPlayer() ))]=( false) // INLINED!! + set WoWReforgedBackpacks__BackpackPlayerBagInfo[GetPlayerId((GetTriggerPlayer() ))]=( false) // INLINED!! call h__DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()), "TRIGSTR_24959") endfunction @@ -167344,7 +167344,7 @@ endfunction //=========================================================================== function Trig_Votes_Weather_Actions takes nothing returns nothing call h__DisplayTextToForce(GetPlayersAll(), "TRIGSTR_57498") - call TimerStart(WoWReforgedCalendar__weatherTimer, 0.0, false, function WoWReforgedCalendar__TimerFunctionStartWeather) // INLINED!! + call TimerStart(WoWReforgedCalendar___weatherTimer, 0.0, false, function WoWReforgedCalendar___TimerFunctionStartWeather) // INLINED!! endfunction //=========================================================================== @@ -170478,7 +170478,7 @@ endfunction function Trig_Cinematics_Race_Update_Actions takes nothing returns nothing call ForForce(GetPlayersAll(), function Trig_Cinematics_Race_Update_Func001A) - set udg_TmpString=((GetObjectName(udg_RaceTavernItemType[(CinematicsRaces___currentRace)])) + " (" + I2S(CinematicsRaces___currentRace) + "/" + I2S((udg_MaxRaces)) + ")\nUse the left and right arrow keys to change the previewed race. Use the escape key to skip.") // INLINED!! + set udg_TmpString=((GetObjectName(udg_RaceTavernItemType[(CinematicsRaces__currentRace)])) + " (" + I2S(CinematicsRaces__currentRace) + "/" + I2S((udg_MaxRaces)) + ")\nUse the left and right arrow keys to change the previewed race. Use the escape key to skip.") // INLINED!! call h__TransmissionFromUnitWithNameBJ(GetPlayersAll(), gg_unit_H0T8_2409, "TRIGSTR_48614", null, udg_TmpString, bj_TIMETYPE_SET, 20.00, false) endfunction @@ -170512,8 +170512,8 @@ endfunction //=========================================================================== function Trig_Map_Zones_Init_Actions takes nothing returns nothing // ########################### - set WoWReforgedZones__currentWorld=0 // INLINED!! - set WoWReforgedZones__currentContinent=0 // INLINED!! + set WoWReforgedZones___currentWorld=0 // INLINED!! + set WoWReforgedZones___currentContinent=0 // INLINED!! // ########################### set udg_TmpString="Player Selection" set udg_TmpRect=gg_rct_Player_Selection @@ -170523,7 +170523,7 @@ function Trig_Map_Zones_Init_Actions takes nothing returns nothing set udg_TmpString3="playerselection" set udg_TmpDestructibleType='LTlt' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="VIP Room" set udg_TmpRect=gg_rct_VIP_Room @@ -170552,7 +170552,7 @@ function Trig_Map_Zones_Init_Azeroth_Actions takes nothing returns nothing set udg_TmpString2="The world in which the majority of the Warcraft series is set." set udg_TmpString3="azeroth" call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! - set WoWReforgedZones__currentContinent=0 // INLINED!! + set WoWReforgedZones___currentContinent=0 // INLINED!! // ########################### endfunction @@ -170593,7 +170593,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="freelancersteam1" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Freelancers Team 2" set udg_TmpRect=gg_rct_AI_Freelancer_Top_Right_No_Build_Area @@ -170603,7 +170603,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="freelancersteam2" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Freelancers Team 3" set udg_TmpRect=gg_rct_AI_Freelancer_Bottom_Left_No_Build_Area @@ -170613,7 +170613,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="freelancersteam3" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Freelancers Team 4" set udg_TmpRect=gg_rct_AI_Freelancer_Bottom_Right_No_Build_Area @@ -170623,7 +170623,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="freelancersteam4" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Demigod Temple" set udg_TmpRect=gg_rct_Sunken_Ruins_4 @@ -170651,7 +170651,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="dalaran" set udg_TmpDestructibleType='YTct' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Nazjatar" set udg_TmpRect=gg_rct_Zone_Nazjatar @@ -170662,10 +170662,10 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Nazjatar_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Nazjatar_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Tomb of Sargeras" set udg_TmpRect=gg_rct_Zone_Tomb_of_Sargeras @@ -170676,9 +170676,9 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Weather_Tomb_of_Sargeras - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Tomb_of_Sargeras_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! // ########################### set udg_TmpString="Prison of Sargeras" set udg_TmpRect=gg_rct_Boss_Guldan_Dungeon_Area_4 @@ -170689,9 +170689,9 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='DTsh' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Boss_Guldan_Dungeon_Area_6 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Boss_Guldan_Dungeon_Area_5 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! // ########################### set udg_TmpString="Echo Isles" set udg_TmpRect=gg_rct_Zone_Echo_Isles_1 @@ -170701,7 +170701,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="echoisles" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Azuremyst Isles" set udg_TmpRect=gg_rct_Zone_Azuremyst_Isles @@ -170711,7 +170711,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="azuremystisles" set udg_TmpDestructibleType='B00M' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Kezan" set udg_TmpRect=gg_rct_Zone_Kezan @@ -170722,8 +170722,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Kezan_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Elven Clan Island" set udg_TmpRect=gg_rct_Clan_Island_The_Elven_Clan @@ -170733,7 +170733,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="clanisland" set udg_TmpDestructibleType='FTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Murloc Sorcerer Island" set udg_TmpRect=gg_rct_Zone_Murloc_Sorceror_Island @@ -170743,7 +170743,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="murlocsorcererisland" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Spider Crab Behemoth Island" set udg_TmpRect=gg_rct_Zone_Spider_Crab_Behemoth @@ -170753,7 +170753,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="spidercrabbehemothisland" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Tortolla Island" set udg_TmpRect=gg_rct_Zone_Tortolla_Island @@ -170763,7 +170763,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="tortollaisland" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Water Base" set udg_TmpRect=gg_rct_Zone_Water_Base @@ -170773,7 +170773,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="waterbase" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="Sylvana's Castle" set udg_TmpRect=gg_rct_Zone_Sylvanas_Castle @@ -170783,7 +170783,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="sylvanascastle" set udg_TmpDestructibleType='LTlt' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Elune's Realm" set udg_TmpRect=gg_rct_Zone_Elunes_Realm @@ -170793,7 +170793,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="elunesrealm" set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Hidden Sunken Island" set udg_TmpRect=gg_rct_Hidden_Island_Sunken_West @@ -170803,7 +170803,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="hiddensunkenisland" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Hidden Island" set udg_TmpRect=gg_rct_Hidden_Island @@ -170813,7 +170813,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="hiddenisland" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Dungeon" set udg_TmpRect=gg_rct_Zone_Dungeon @@ -170823,7 +170823,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="dungeon" set udg_TmpDestructibleType='DTsh' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! // ########################### set udg_TmpString="Underground" set udg_TmpRect=gg_rct_Zone_Underground @@ -170834,7 +170834,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="underground" set udg_TmpDestructibleType='GTsh' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! // ########################### endfunction @@ -170857,7 +170857,7 @@ function Trig_Map_Zones_Init_Sea_Actions takes nothing returns nothing set udg_TmpString3="maelstrom" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="North Sea" set udg_TmpRect=gg_rct_Zone_The_North_Sea_1 @@ -170867,7 +170867,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="northsea" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="Frozen Sea" set udg_TmpRect=gg_rct_Zone_The_Frozen_Sea @@ -170877,7 +170877,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="frozensea" set udg_TmpDestructibleType='B005' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="Veiled Sea" set udg_TmpRect=gg_rct_Zone_The_Veiled_Sea @@ -170887,7 +170887,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="veiledsea" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="Forbidding Sea" set udg_TmpRect=gg_rct_Zone_The_Forbidding_Sea @@ -170897,7 +170897,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="forbiddingsea" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="South Sea" set udg_TmpRect=gg_rct_Zone_South_Sea @@ -170907,7 +170907,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="southsea" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="Great Sea" set udg_TmpRect=gg_rct_Zone_Great_Sea_1 @@ -170917,7 +170917,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="greatsea" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### endfunction @@ -170956,8 +170956,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='LTlt' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_New_Stormwind_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Kul Tiras" set udg_TmpRect=gg_rct_Zone_Kul_Tiras @@ -170967,7 +170967,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="kultiras" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SUNKEN_RUINS // INLINED!! // ########################### set udg_TmpString="Elwynn Forest" set udg_TmpRect=gg_rct_Zone_Elwynn_Forest_1 @@ -170978,16 +170978,16 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='LTlt' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Elwynn_Forest_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Elwynn_Forest_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Elwynn_Forest_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Elwynn_Forest_5 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Elwynn_Forest_6 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Redridge Mountains" set udg_TmpRect=gg_rct_Zone_Redridge_Mountains @@ -170997,7 +170997,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="redridgemountains" set udg_TmpDestructibleType='LTlt' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Dark Portal" set udg_TmpRect=gg_rct_Zone_Dark_Portal @@ -171007,7 +171007,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="darkportal" set udg_TmpDestructibleType='LTlt' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Dun Morogh" set udg_TmpRect=gg_rct_Zone_Dun_Morogh_1 @@ -171018,8 +171018,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='LTlt' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Dun_Morogh_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Ironforge" set udg_TmpRect=gg_rct_Zone_Khaz_Modan_1 @@ -171030,16 +171030,16 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='GTsh' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Khaz_Modan_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Khaz_Modan_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Khaz_Modan_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Khaz_Modan_5 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Khaz_Modan_6 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! // ########################### set udg_TmpString="Badlands" set udg_TmpRect=gg_rct_Zone_Badlands_1 @@ -171050,10 +171050,10 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='FTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Badlands_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Badlands_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Dalaran Ruins" set udg_TmpRect=gg_rct_Zone_Dalaran_Ruins @@ -171064,8 +171064,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='JTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Dalaran_Ruins_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Dalaran Dungeons" set udg_TmpRect=gg_rct_Zone_Dalaran_Dungeons @@ -171076,10 +171076,10 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='JTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Dalaran_Dungeons_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Dalaran_Dungeons_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! // ########################### set udg_TmpString="Sunstrider Isle" set udg_TmpRect=gg_rct_Zone_Sunstrider_Isle @@ -171089,7 +171089,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="sunstriderisle" set udg_TmpDestructibleType='FTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Sunwell Grove" set udg_TmpRect=gg_rct_Zone_Sunwell_Grove @@ -171099,7 +171099,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="sunwellgrove" set udg_TmpDestructibleType='FTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Ghostlands" set udg_TmpRect=gg_rct_Zone_Ghostlands_1 @@ -171110,8 +171110,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='CTtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Ghostlands_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Eversong Woods" set udg_TmpRect=gg_rct_Zone_Eversong_Woods_1 @@ -171121,7 +171121,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="eversongwoods" set udg_TmpDestructibleType='LTlt' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Trisfal Glades" set udg_TmpRect=gg_rct_Zone_Tirisfal_Glades @@ -171131,10 +171131,10 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="trisfalglades" set udg_TmpDestructibleType='CTtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! set udg_TmpRect=gg_rct_Zone_Tirisfal_Glades_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Silverpine Forest" set udg_TmpRect=gg_rct_Zone_Silverpine_Forest @@ -171144,14 +171144,14 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="silverpineforest" set udg_TmpDestructibleType='FTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! set udg_TmpRect=gg_rct_Zone_Silverpine_Forest_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Silverpine_Forest_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Silverpine_Forest_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Tol Barad" set udg_TmpRect=gg_rct_Zone_Tol_Barad @@ -171161,7 +171161,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="tolbarad" set udg_TmpDestructibleType='FTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Dalaran Ruins" set udg_TmpRect=gg_rct_Zone_Dalaran_Ruins @@ -171171,7 +171171,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="dalaranruins" set udg_TmpDestructibleType='YTct' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### endfunction @@ -171200,7 +171200,7 @@ call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpSt set udg_TmpString3="cenariusgrave" set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Teldrassil" set udg_TmpRect=gg_rct_Zone_Teldrassil @@ -171211,16 +171211,16 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Teldrassil_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Teldrassil_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Teldrassil_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Teldrassil_5 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Teldrassil_6 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Moonglade" set udg_TmpRect=gg_rct_Zone_Moonglade_1 @@ -171231,8 +171231,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Moonglade_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Winterspring" set udg_TmpRect=gg_rct_Zone_Winterspring_1 @@ -171243,12 +171243,12 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Winterspring_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Winterspring_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Winterspring_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Hyjal" set udg_TmpRect=gg_rct_Zone_Hyjal_1 @@ -171259,8 +171259,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Hyjal_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Emerald Dream" set udg_TmpRect=gg_rct_Zone_Emerald_Dream @@ -171270,7 +171270,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="emeralddream" set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Darkshore" set udg_TmpRect=gg_rct_Zone_Darkshore @@ -171280,7 +171280,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="darkshore" set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Ashenvale Forest" set udg_TmpRect=gg_rct_Zone_Ashenvale_Forest_1 @@ -171291,16 +171291,16 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Ashenvale_Forest_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Ashenvale_Forest_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Ashenvale_Forest_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Ashenvale_Forest_5 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Ashenvale_Forest_6 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Felwood" set udg_TmpRect=gg_rct_Zone_Felwood @@ -171310,7 +171310,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="felwood" set udg_TmpDestructibleType='CTtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Azshara" set udg_TmpRect=gg_rct_Zone_Azshara_1 @@ -171321,10 +171321,10 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ATtr' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Azshara_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Azshara_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_ASHENVALE // INLINED!! // ########################### set udg_TmpString="Durotar" set udg_TmpRect=gg_rct_Zone_Durotar_1 @@ -171335,8 +171335,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='BTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Durator_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! // ########################### set udg_TmpString="Echo Isles" set udg_TmpRect=gg_rct_Zone_Echo_Isles_1 @@ -171346,7 +171346,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="echoisles" set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="Broken Isles" set udg_TmpRect=gg_rct_Zone_Broken_Isles_1 @@ -171357,8 +171357,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Broken_Isles_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_SEA // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_SEA // INLINED!! // ########################### set udg_TmpString="The Barrens" set udg_TmpRect=gg_rct_Zone_The_Barrens_1 @@ -171369,12 +171369,12 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='BTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_The_Barrens_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_The_Barrens_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_The_Barrens_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! // ########################### set udg_TmpString="Dustwallow Marsh" set udg_TmpRect=gg_rct_Zone_Dustwallow_Marsh_1 @@ -171384,7 +171384,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="dustwallowmarsh" set udg_TmpDestructibleType='BTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! // ########################### set udg_TmpString="Mulgore" set udg_TmpRect=gg_rct_Zone_Mulgore_1 @@ -171395,8 +171395,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='BTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Mulgore_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! // ########################### set udg_TmpString="Stonetalon Mountains" set udg_TmpRect=gg_rct_Zone_Stonetalon_Mountains @@ -171406,7 +171406,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="stonetalonmountains" set udg_TmpDestructibleType='BTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! // ########################### set udg_TmpString="Stonetalon Peak Caverns" set udg_TmpRect=gg_rct_Zone_Caverns_Of_Stonetalon_Peak @@ -171416,7 +171416,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="stonetalonpeakcaverns" set udg_TmpDestructibleType='DTsh' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! // ########################### set udg_TmpString="Thousand Needles" set udg_TmpRect=gg_rct_Zone_Thousand_Needles_1 @@ -171427,12 +171427,12 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='BTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Thousand_Needles_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Thousand_Needles_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Thousand_Needles_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! // ########################### set udg_TmpString="Tanaris" set udg_TmpRect=gg_rct_Zone_Tanaris @@ -171443,8 +171443,8 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ZTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Tanaris_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_BARRENS // INLINED!! // ########################### endfunction @@ -171473,7 +171473,7 @@ call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpSt set udg_TmpString3="zuldrak" set udg_TmpDestructibleType='NTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! // ########################### set udg_TmpString="Azjol-Nerub" set udg_TmpRect=gg_rct_Weather_Neruben_Dungeon @@ -171483,7 +171483,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="azjolnerub" set udg_TmpDestructibleType='NTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_DUNGEON // INLINED!! // ########################### set udg_TmpString="The Storm Peak" set udg_TmpRect=gg_rct_Zone_The_Storm_Peaks @@ -171493,7 +171493,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="azjolnerub" set udg_TmpDestructibleType='NTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! // ########################### set udg_TmpString="Icecrown" set udg_TmpRect=gg_rct_Zone_Icecrown_1 @@ -171504,20 +171504,20 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ITtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Icecrown_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Icecrown_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Icecrown_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Icecrown_5 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Icecrown_6 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Icecrown_7 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Icecrown_8 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! // ########################### set udg_TmpString="Sholazar Basin" set udg_TmpRect=gg_rct_Zone_Sholazar_Basin_1 @@ -171527,7 +171527,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="sholazarbasin" set udg_TmpDestructibleType='ITtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! // ########################### set udg_TmpString="Borean Tundra" set udg_TmpRect=gg_rct_Zone_Borean_Tundra @@ -171537,7 +171537,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="boreantundra" set udg_TmpDestructibleType='ITtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! // ########################### set udg_TmpString="Wintergrasp" set udg_TmpRect=gg_rct_Zone_Wintergrasp_1 @@ -171548,18 +171548,18 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='ITtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Wintergrasp_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Wintergrasp_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Wintergrasp_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Wintergrasp_5 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Wintergrasp_6 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Wintergrasp_7 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! // ########################### set udg_TmpString="Dragonblight" set udg_TmpRect=gg_rct_Zone_Dragonblight @@ -171570,12 +171570,12 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpDestructibleType='WTst' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Dragonblight_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Dragonblight_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Dragonblight_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! // ########################### set udg_TmpString="Grizzly Hills" set udg_TmpRect=gg_rct_Zone_Grizzly_Hills @@ -171585,7 +171585,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="grizzlyhills" set udg_TmpDestructibleType='NTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_NORTHREND // INLINED!! // ########################### endfunction @@ -171615,8 +171615,8 @@ call AddZoneContinentEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpSt set udg_TmpDestructibleType='B009' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Pandaria_The_Jade_Forest_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Townlong Steppes" set udg_TmpRect=gg_rct_Zone_Pandaria_Townlong_Steppes @@ -171626,7 +171626,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="townlongsteppes" set udg_TmpDestructibleType='B009' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Dread Wastes" set udg_TmpRect=gg_rct_Zone_Pandaria_Dread_Wastes @@ -171636,7 +171636,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="dreadwastes" set udg_TmpDestructibleType='B009' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Kun-Lai Summit" set udg_TmpRect=gg_rct_Zone_Pandaria_Kunlai_Summit @@ -171646,7 +171646,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="kunlaisummit" set udg_TmpDestructibleType='B009' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Vale of Eternal Blossoms" set udg_TmpRect=gg_rct_Zone_Pandaria_Vale_of_Eternal_Blossoms @@ -171656,7 +171656,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="valeofeternalblossoms" set udg_TmpDestructibleType='B009' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Valley of the Four Winds" set udg_TmpRect=gg_rct_Zone_Pandaria_Valley_of_the_Four_Winds @@ -171666,7 +171666,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="valleyofthefourwinds" set udg_TmpDestructibleType='B009' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### set udg_TmpString="Krasarang Wilds" set udg_TmpRect=gg_rct_Zone_Pandaria_Krasarang_Wilds @@ -171676,7 +171676,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="krasarangwilds" set udg_TmpDestructibleType='B009' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_LORDAERON // INLINED!! // ########################### endfunction @@ -171702,7 +171702,7 @@ function Trig_Map_Zones_Init_Outland_Actions takes nothing returns nothing set udg_TmpString2="The shattered floating remnants of the destroyed world of Draenor, the homeworld of the Orcs and Ogres and refuge of the Draenei." set udg_TmpString3="outland" call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! - set WoWReforgedZones__currentContinent=0 // INLINED!! + set WoWReforgedZones___currentContinent=0 // INLINED!! // ########################### set udg_TmpString="Archimonde's Realm" set udg_TmpRect=gg_rct_Zone_Archimondes_Realm_1 @@ -171713,18 +171713,18 @@ call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! set udg_TmpRect=gg_rct_Zone_Archimondes_Realm_2 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Archimondes_Realm_3 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Archimondes_Realm_4 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Archimondes_Realm_5 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Archimondes_Realm_6 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! set udg_TmpRect=gg_rct_Zone_Archimondes_Realm_7 - call WoWReforgedZones__AddZoneRectEx(WoWReforgedZones__currentZone , udg_TmpRect) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + call WoWReforgedZones___AddZoneRectEx(WoWReforgedZones___currentZone , udg_TmpRect) // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="Outland Portals" set udg_TmpRect=gg_rct_Portal_Area_Outland @@ -171734,7 +171734,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="outlandportals" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="The New Citadel" set udg_TmpRect=gg_rct_Zone_The_New_Citadel @@ -171744,7 +171744,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="thenewcitadel" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="Black Citadel" set udg_TmpRect=gg_rct_Zone_Black_Citadel @@ -171754,7 +171754,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="theblackcitadel" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="Illidan's Camp" set udg_TmpRect=gg_rct_Zone_Black_Citadel @@ -171764,7 +171764,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="illidanscamp" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="Draenei Camp" set udg_TmpRect=gg_rct_Zone_Draenei_Camp @@ -171774,7 +171774,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="draeneicamp" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="Demon Gate" set udg_TmpRect=gg_rct_Zone_Demon_Gate @@ -171784,7 +171784,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="demongate" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="Fel Orc Camp" set udg_TmpRect=gg_rct_Zone_Fel_Orc_Camp @@ -171794,7 +171794,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="felorccamp" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="Gruul's Lair" set udg_TmpRect=gg_rct_Zone_Gruuls_Lair @@ -171804,7 +171804,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="gruulslair" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### set udg_TmpString="Blade's Edge Mountains" set udg_TmpRect=gg_rct_Zone_Blades_Edge_Mountains @@ -171814,7 +171814,7 @@ call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_ set udg_TmpString3="bladesedgemountains" set udg_TmpDestructibleType='OTtw' call AddZoneEx(udg_TmpString , udg_TmpRect , udg_TmpIcon , udg_TmpString2 , udg_TmpPlayerColor , udg_TmpString3 , udg_TmpDestructibleType) // INLINED!! - set s__Zone_terrainType[WoWReforgedZones__currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! + set s__Zone_terrainType[WoWReforgedZones___currentZone]=TERRAIN_TYPE_OUTLAND // INLINED!! // ########################### endfunction @@ -171834,7 +171834,7 @@ function Trig_Map_Zones_Init_Argus_Actions takes nothing returns nothing set udg_TmpString2="The original homeworld of the Eredar, now located within the Twisting Nether." set udg_TmpString3="argus" call AddZoneWorldEx(udg_TmpString , udg_TmpIcon , udg_TmpString2 , udg_TmpString3) // INLINED!! - set WoWReforgedZones__currentContinent=0 // INLINED!! + set WoWReforgedZones___currentContinent=0 // INLINED!! // ########################### set udg_TmpString="Eredath" set udg_TmpRect=gg_rct_Zone_Eredath @@ -178976,7 +178976,7 @@ function Trig_Player_Selection_Start_Game_Func006Func018Func006Func008Func002C t endfunction function Trig_Player_Selection_Start_Game_Func006Func018Func006Func008A takes nothing returns nothing - set udg_TmpBoolean=not (WoWReforgedProperties__GetPropertyIndexByUnitTypeId((GetUnitTypeId((GetEnumUnit())))) != - 1) // INLINED!! + set udg_TmpBoolean=not (WoWReforgedProperties___GetPropertyIndexByUnitTypeId((GetUnitTypeId((GetEnumUnit())))) != - 1) // INLINED!! if ( Trig_Player_Selection_Start_Game_Func006Func018Func006Func008Func002C() ) then if ( Trig_Player_Selection_Start_Game_Func006Func018Func006Func008Func002Func005C() ) then set udg_TmpBoolean=false @@ -180868,7 +180868,7 @@ function Trig_Player_Selection_Start_Location_Selection_Actions takes nothing re if ( Trig_Player_Selection_Start_Location_Selection_Func002C() ) then set udg_TmpPlayer=GetOwningPlayer(GetBuyingUnit()) set udg_TmpBoolean=(IsPlayerInForce((udg_TmpPlayer), prestoredElvenClanMembers)) // INLINED!! - set udg_TmpBoolean2=(WoWReforgedStartLocations__startLocationsIsClanArea[(udg_TmpInteger)]) // INLINED!! + set udg_TmpBoolean2=(WoWReforgedStartLocations___startLocationsIsClanArea[(udg_TmpInteger)]) // INLINED!! if ( Trig_Player_Selection_Start_Location_Selection_Func002Func006C() ) then set udg_PlayerSelectionStartLocation[GetConvertedPlayerId(udg_TmpPlayer)]=udg_TmpInteger call h__DisplayTextToForce(GetForceOfPlayer(udg_TmpPlayer), ( "Picked start location: " + GetItemName(GetSoldItem()) )) @@ -184397,7 +184397,7 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="MainQuest1" set udg_TmpUnit=gg_unit_Hjai_0012 set udg_TmpItemTypeId='I027' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_55402", "TRIGSTR_55403", "ReplaceableTextures\\CommandButtons\\BTNArchimonde.blp") set udg_MainQuest[1]=GetLastCreatedQuestBJ() // ########################### @@ -184406,28 +184406,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="HumanQuest1" set udg_TmpUnit=gg_unit_Haah_2745 set udg_TmpItemTypeId='ram4' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_51810", "TRIGSTR_51809", "ReplaceableTextures\\CommandButtons\\BTNRedDragon.blp") set udg_HumanQuest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="HumanQuest2" set udg_TmpUnit=gg_unit_H006_0527 set udg_TmpItemTypeId='blba' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_51811", "TRIGSTR_51812", "ReplaceableTextures\\CommandButtons\\BTNArmorGolem.blp") set udg_HumanQuest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="HumanQuest3" set udg_TmpUnit=gg_unit_H006_0527 set udg_TmpItemTypeId='I01B' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_51813", "TRIGSTR_51814", "ReplaceableTextures\\CommandButtons\\BTNAvatar.blp") set udg_HumanQuest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="HumanQuest4" set udg_TmpUnit=gg_unit_H005_0528 set udg_TmpItemTypeId='I01C' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_51815", "TRIGSTR_51816", "ReplaceableTextures\\CommandButtons\\BTNHeroPaladin.blp") set udg_HumanQuest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184436,28 +184436,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="NightElfQuest1" set udg_TmpUnit=gg_unit_Etyr_0014 set udg_TmpItemTypeId='sneg' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_3729", "TRIGSTR_31767", "ReplaceableTextures\\CommandButtons\\BTNBearDen.blp") set udg_NightElfQuest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="NightElfQuest2" set udg_TmpUnit=gg_unit_Emfr_0013 set udg_TmpItemTypeId='schl' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31768", "TRIGSTR_31769", "ReplaceableTextures\\CommandButtons\\BTNFurion.blp") set udg_NightElfQuest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="NightElfQuest3" set udg_TmpUnit=gg_unit_Etyr_0014 set udg_TmpItemTypeId='I01I' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31770", "TRIGSTR_31771", "ReplaceableTextures\\CommandButtons\\BTNElunesBlessing.blp") set udg_NightElfQuest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="NightElfQuest4" set udg_TmpUnit=gg_unit_Emfr_0013 set udg_TmpItemTypeId='azhr' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31772", "TRIGSTR_31773", "ReplaceableTextures\\CommandButtons\\BTNFountainOfLifeBlood.blp") set udg_NightElfQuest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184466,28 +184466,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="OrcQuest1" set udg_TmpUnit=gg_unit_Othr_0010 set udg_TmpItemTypeId='stel' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_207", "TRIGSTR_31775", "ReplaceableTextures\\CommandButtons\\BTNThrall.blp") set udg_OrcQuest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="OrcQuest2" set udg_TmpUnit=gg_unit_Ocbh_0011 set udg_TmpItemTypeId='I01L' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31776", "TRIGSTR_31777", "ReplaceableTextures\\CommandButtons\\BTNHeroTaurenChieftain.blp") set udg_OrcQuest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="OrcQuest3" set udg_TmpUnit=gg_unit_Orex_0234 set udg_TmpItemTypeId='I01M' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31781", "TRIGSTR_31782", "ReplaceableTextures\\CommandButtons\\BTNBeastMaster.blp") set udg_OrcQuest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="OrcQuest4" set udg_TmpUnit=gg_unit_Nsjs_0218 set udg_TmpItemTypeId='I01N' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_17629", "TRIGSTR_31784", "ReplaceableTextures\\CommandButtons\\BTNPandarenBrewmaster.blp") set udg_OrcQuest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184496,28 +184496,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="LichKingQuest1" set udg_TmpUnit=gg_unit_Uanb_0002 set udg_TmpItemTypeId='shdt' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31785", "TRIGSTR_31786", "ReplaceableTextures\\CommandButtons\\BTNKeeperGhostBlue.blp") set udg_QuestLichking[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="LichKingQuest2" set udg_TmpUnit=gg_unit_Uktl_0015 set udg_TmpItemTypeId='crdt' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31787", "TRIGSTR_31788", "ReplaceableTextures\\CommandButtons\\BTNHornOfCenarius.blp") set udg_QuestLichking[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="LichKingQuest3" set udg_TmpUnit=gg_unit_Uear_0001 set udg_TmpItemTypeId='I021' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31789", "TRIGSTR_31790", "ReplaceableTextures\\CommandButtons\\BTNRevenant.blp") set udg_QuestLichking[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="LichKingQuest4" set udg_TmpUnit=gg_unit_Uear_0001 set udg_TmpItemTypeId='I02U' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_1341", "TRIGSTR_31792", "ReplaceableTextures\\CommandButtons\\BTNKiljaedin.blp") set udg_QuestLichking[4]=GetLastCreatedQuestBJ() // ########################### @@ -184526,28 +184526,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="ForsakenQuest1" set udg_TmpUnit=gg_unit_Usyl_0005 set udg_TmpItemTypeId='ssil' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_1332", "TRIGSTR_31794", "ReplaceableTextures\\CommandButtons\\BTNDarkPortal.blp") set udg_QuestSylvanas[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="ForsakenQuest2" set udg_TmpUnit=gg_unit_Usyl_0005 set udg_TmpItemTypeId='stre' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31795", "TRIGSTR_31796", "ReplaceableTextures\\CommandButtons\\BTNSkeletalOrcGrunt.blp") set udg_QuestSylvanas[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="ForsakenQuest3" set udg_TmpUnit=gg_unit_Usyl_0005 set udg_TmpItemTypeId='I01X' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31797", "TRIGSTR_31798", "ReplaceableTextures\\CommandButtons\\BTNBansheeRanger.blp") set udg_QuestSylvanas[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="ForsakenQuest4" set udg_TmpUnit=gg_unit_Usyl_0005 set udg_TmpItemTypeId='I02Q' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31799", "TRIGSTR_31800", "ReplaceableTextures\\CommandButtons\\BTNFarSight.blp") set udg_QuestSylvanas[4]=GetLastCreatedQuestBJ() // ########################### @@ -184556,28 +184556,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="NagaQuest1" set udg_TmpUnit=gg_unit_Eevi_0009 set udg_TmpItemTypeId='clfm' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31801", "TRIGSTR_31802", "ReplaceableTextures\\CommandButtons\\BTNKiljaedin.blp") set udg_NagaQuest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="NagaQuest2" set udg_TmpUnit=gg_unit_Hkal_0016 set udg_TmpItemTypeId='crys' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31803", "TRIGSTR_31804", "ReplaceableTextures\\CommandButtons\\BTNWarden2.blp") set udg_NagaQuest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="NagaQuest3" set udg_TmpUnit=gg_unit_Hvsh_0008 set udg_TmpItemTypeId='fwss' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31805", "TRIGSTR_31806", "ReplaceableTextures\\CommandButtons\\BTNFrostWyrm.blp") set udg_NagaQuest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="NagaQuest4" set udg_TmpUnit=gg_unit_Eevi_0009 set udg_TmpItemTypeId='I022' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31807", "TRIGSTR_31808", "ReplaceableTextures\\CommandButtons\\BTNEvilIllidan.blp") set udg_NagaQuest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184586,28 +184586,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="DraeneiQuest1" set udg_TmpUnit=gg_unit_Naka_0149 set udg_TmpItemTypeId='rde4' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_9140", "TRIGSTR_31810", "ReplaceableTextures\\CommandButtons\\BTNSpy.blp") set udg_Draenei_Quest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="DraeneiQuest2" set udg_TmpUnit=gg_unit_Eevi_0122 set udg_TmpItemTypeId='ratf' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31811", "TRIGSTR_31812", "ReplaceableTextures\\CommandButtons\\BTNChaosBlademaster.blp") set udg_Draenei_Quest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="DraeneiQuest3" set udg_TmpUnit=gg_unit_Eevi_0122 set udg_TmpItemTypeId='sora' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31813", "TRIGSTR_31814", "ReplaceableTextures\\CommandButtons\\BTNPitLord.blp") set udg_Draenei_Quest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="DraeneiQuest4" set udg_TmpUnit=gg_unit_Eevi_0122 set udg_TmpItemTypeId='nspi' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31815", "TRIGSTR_31816", "ReplaceableTextures\\CommandButtons\\BTNDemonGate.blp") set udg_Draenei_Quest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184616,28 +184616,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="DemonQuest1" set udg_TmpUnit=gg_unit_U00P_0646 set udg_TmpItemTypeId='gcel' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31817", "TRIGSTR_31818", "ReplaceableTextures\\CommandButtons\\BTNDoomGuard.blp") set udg_Demon_Quest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="DemonQuest2" set udg_TmpUnit=gg_unit_U00S_0651 set udg_TmpItemTypeId='I03W' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31819", "TRIGSTR_31820", "ReplaceableTextures\\CommandButtons\\BTNCharm.blp") set udg_Demon_Quest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="DemonQuest3" set udg_TmpUnit=gg_unit_U00S_0651 set udg_TmpItemTypeId='dsum' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31821", "TRIGSTR_31822", "ReplaceableTextures\\CommandButtons\\BTNDranaiAkama.blp") set udg_Demon_Quest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="DemonQuest4" set udg_TmpUnit=gg_unit_U00S_0651 set udg_TmpItemTypeId='I04Y' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31823", "TRIGSTR_31824", "ReplaceableTextures\\CommandButtons\\BTNDarkPortal.blp") set udg_Demon_Quest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184646,28 +184646,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="PandarianQuest1" set udg_TmpUnit=gg_unit_N08W_0407 set udg_TmpItemTypeId='I0GJ' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31825", "TRIGSTR_31826", "ReplaceableTextures\\CommandButtons\\BTNStrongDrink.blp") set udg_Pandarian_Quest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="PandarianQuest2" set udg_TmpUnit=gg_unit_N08W_0407 set udg_TmpItemTypeId='I0H0' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31827", "TRIGSTR_31828", "ReplaceableTextures\\CommandButtons\\BTNTelescope.blp") set udg_Pandarian_Quest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="PandarianQuest3" set udg_TmpUnit=gg_unit_N08W_0407 set udg_TmpItemTypeId='I0MY' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31829", "TRIGSTR_31830", "ReplaceableTextures\\CommandButtons\\BTNMurlocNightCrawler.blp") set udg_Pandarian_Quest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="PandarianQuest4" set udg_TmpUnit=gg_unit_N08W_0407 set udg_TmpItemTypeId='I0N0' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_36333", "TRIGSTR_36334", "ReplaceableTextures\\CommandButtons\\BTNHeroGoblinPrince.blp") set udg_Pandarian_Quest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184676,28 +184676,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="EredarQuest1" set udg_TmpUnit=gg_unit_H0U4_2415 set udg_TmpItemTypeId='I0XL' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_50310", "TRIGSTR_50311", "ReplaceableTextures\\CommandButtons\\BTNeredarRed.blp") set udg_Eredar_Quest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="EredarQuest2" set udg_TmpUnit=gg_unit_H0U4_2415 set udg_TmpItemTypeId='I0YM' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_43191", "TRIGSTR_43213", "ReplaceableTextures\\CommandButtons\\BTNGiftoftheNaaru.blp") set udg_Eredar_Quest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="EredarQuest3" set udg_TmpUnit=gg_unit_H0U4_2415 set udg_TmpItemTypeId='I0Z2' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_49652", "TRIGSTR_49653", "ReplaceableTextures\\CommandButtons\\BTNPowerGenerator.blp") set udg_Eredar_Quest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="EredarQuest4" set udg_TmpUnit=gg_unit_H0U4_2415 set udg_TmpItemTypeId='I0ZG' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_25893", "TRIGSTR_29747", "ReplaceableTextures\\CommandButtons\\BTNHeroDemonHunter.blp") set udg_Eredar_Quest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184706,28 +184706,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="TuskarrQuest1" set udg_TmpUnit=gg_unit_N0CZ_2594 set udg_TmpItemTypeId='I11T' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_56111", "TRIGSTR_56112", "ReplaceableTextures\\CommandButtons\\BTNEnsnare.blp") set udg_Tuskarr_Quest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="TuskarrQuest2" set udg_TmpUnit=gg_unit_N0CZ_2594 set udg_TmpItemTypeId='I121' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_56264", "TRIGSTR_56265", "ReplaceableTextures\\CommandButtons\\BTNFish.blp") set udg_Tuskarr_Quest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="TuskarrQuest3" set udg_TmpUnit=gg_unit_N0CZ_2594 set udg_TmpItemTypeId='I123' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_56281", "TRIGSTR_56282", "ReplaceableTextures\\CommandButtons\\BTNAnkh.blp") set udg_Tuskarr_Quest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="TuskarrQuest4" set udg_TmpUnit=gg_unit_N0CZ_2594 set udg_TmpItemTypeId='I128' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_56494", "TRIGSTR_56495", "ReplaceableTextures\\CommandButtons\\BTNResStone.blp") set udg_Tuskarr_Quest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184736,28 +184736,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="GoblinQuest1" set udg_TmpUnit=gg_unit_N0GE_2605 set udg_TmpItemTypeId='I12K' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_56712", "TRIGSTR_56780", "ReplaceableTextures\\CommandButtons\\BTNReinforcedBurrows.blp") set udg_Goblin_Quest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="GoblinQuest2" set udg_TmpUnit=gg_unit_N0GE_2605 set udg_TmpItemTypeId='I13A' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_14592", "TRIGSTR_14600", "ReplaceableTextures\\CommandButtons\\BTNGoblinSapper.blp") set udg_Goblin_Quest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="GoblinQuest3" set udg_TmpUnit=gg_unit_N0GE_2605 set udg_TmpItemTypeId='I14P' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_58402", "TRIGSTR_58403", "ReplaceableTextures\\CommandButtons\\BTNIncome.blp") set udg_Goblin_Quest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="GoblinQuest4" set udg_TmpUnit=gg_unit_N0GE_2605 set udg_TmpItemTypeId='I14O' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_58400", "TRIGSTR_58401", "ReplaceableTextures\\CommandButtons\\BTNAlchemistLab.blp") set udg_Goblin_Quest[4]=GetLastCreatedQuestBJ() // ########################### @@ -184766,28 +184766,28 @@ function Trig_Quests_Optional_Quests_Actions takes nothing returns nothing set udg_TmpString="JainaQuest1" set udg_TmpUnit=gg_unit_Hjai_0012 set udg_TmpItemTypeId='I074' - set WoWReforgedQuests__tmpRequirement=- 1 // INLINED!! + set WoWReforgedQuests___tmpRequirement=- 1 // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_31831", "TRIGSTR_31832", "ReplaceableTextures\\CommandButtons\\BTNCthunIcon.blp") set udg_JainaQuest[1]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="JainaQuest2" set udg_TmpUnit=gg_unit_Hjai_0012 set udg_TmpItemTypeId='I0QY' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_4347", "TRIGSTR_4829", "ReplaceableTextures\\CommandButtons\\BTNInfernal.blp") set udg_JainaQuest[2]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="JainaQuest3" set udg_TmpUnit=gg_unit_Hjai_0012 set udg_TmpItemTypeId='I0TM' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_46346", "TRIGSTR_46347", "ReplaceableTextures\\CommandButtons\\BTNSummonWaterElemental.blp") set udg_JainaQuest[3]=GetLastCreatedQuestBJ() // ########################### set udg_TmpString="JainaQuest4" set udg_TmpUnit=gg_unit_Hjai_0012 set udg_TmpItemTypeId='I0TR' - set WoWReforgedQuests__tmpRequirement=IMaxBJ((WoWReforgedQuests__questsMax) - 1, 0) // INLINED!! + set WoWReforgedQuests___tmpRequirement=IMaxBJ((WoWReforgedQuests___questsMax) - 1, 0) // INLINED!! call h__CreateQuestBJ(bj_QUESTTYPE_OPT_UNDISCOVERED, "TRIGSTR_9024", "TRIGSTR_46464", "ReplaceableTextures\\CommandButtons\\BTNKeeperOfTheGrove.blp") set udg_JainaQuest[4]=GetLastCreatedQuestBJ() // ########################### @@ -194301,8 +194301,8 @@ function Trig_GoblinQuest_4b_Func003C takes nothing returns boolean endfunction function Trig_GoblinQuest_4b_Actions takes nothing returns nothing - set udg_TmpUnit=(WoWReforgedAlchemistLab__triggerConverter) // INLINED!! - set udg_TmpUnit2=(WoWReforgedAlchemistLab__triggerReplacingUnit) // INLINED!! + set udg_TmpUnit=(WoWReforgedAlchemistLab___triggerConverter) // INLINED!! + set udg_TmpUnit2=(WoWReforgedAlchemistLab___triggerReplacingUnit) // INLINED!! if ( Trig_GoblinQuest_4b_Func003C() ) then call DisableTrigger(GetTriggeringTrigger()) call FlashQuestDialogButtonBJ() @@ -200377,9 +200377,9 @@ function main takes nothing returns nothing call CreateAllUnits() call InitBlizzard() -call ExecuteFunc("jasshelper__initstructs214021421") +call ExecuteFunc("jasshelper__initstructs215680421") call ExecuteFunc("BoundSentinel__init") -call ExecuteFunc("Corpse___Init") +call ExecuteFunc("Corpse__Init") call ExecuteFunc("CustomRaceSoundSystem___Init") call ExecuteFunc("ForceUtils__Init") call ExecuteFunc("FrameLoader__init_function") @@ -200397,127 +200397,127 @@ call ExecuteFunc("TerrainPathability__Init") call ExecuteFunc("TimerUtils__init") call ExecuteFunc("TreeUtils__Init") call ExecuteFunc("UnitTypeUtils__Init") -call ExecuteFunc("WallsSystem___Init") -call ExecuteFunc("WallsSystemAir___Init") -call ExecuteFunc("WoWReforgedBarrage__Init") +call ExecuteFunc("WallsSystem__Init") +call ExecuteFunc("WallsSystemAir__Init") +call ExecuteFunc("WoWReforgedBarrage___Init") call ExecuteFunc("WoWReforgedCages___Init") -call ExecuteFunc("WoWReforgedCarHorn__Init") -call ExecuteFunc("WoWReforgedDependencyEquivalents___Init") -call ExecuteFunc("WoWReforgedElevator__Init") -call ExecuteFunc("WoWReforgedFarmer__Init") +call ExecuteFunc("WoWReforgedCarHorn___Init") +call ExecuteFunc("WoWReforgedDependencyEquivalents__Init") +call ExecuteFunc("WoWReforgedElevator___Init") +call ExecuteFunc("WoWReforgedFarmer___Init") call ExecuteFunc("WoWReforgedFelOrcDemonGate___Init") -call ExecuteFunc("WoWReforgedGaia__Init") -call ExecuteFunc("WoWReforgedHunter__Init") -call ExecuteFunc("WoWReforgedRandomArtifacts__Init") -call ExecuteFunc("WoWReforgedUrlUi___Init") -call ExecuteFunc("Challenge___Init") -call ExecuteFunc("Decay___Init") -call ExecuteFunc("ForestWord___Init") +call ExecuteFunc("WoWReforgedGaia___Init") +call ExecuteFunc("WoWReforgedHunter___Init") +call ExecuteFunc("WoWReforgedRandomArtifacts___Init") +call ExecuteFunc("WoWReforgedUrlUi__Init") +call ExecuteFunc("Challenge__Init") +call ExecuteFunc("Decay__Init") +call ExecuteFunc("ForestWord__Init") call ExecuteFunc("ItemUnstackSystem___Init") -call ExecuteFunc("MassSpell___Init") -call ExecuteFunc("MindControl___Init") +call ExecuteFunc("MassSpell__Init") +call ExecuteFunc("MindControl__Init") call ExecuteFunc("PagedButtonsConfig__Init") call ExecuteFunc("PlayerColorUtils__Init") call ExecuteFunc("Resources__Init") call ExecuteFunc("TinyBuildingsLimits__Init") -call ExecuteFunc("WoWReforgedBan__Init") -call ExecuteFunc("WoWReforgedCombiner___Init") +call ExecuteFunc("WoWReforgedBan___Init") +call ExecuteFunc("WoWReforgedCombiner__Init") call ExecuteFunc("WoWReforgedFel___Init") -call ExecuteFunc("WoWReforgedLearnableSkills___Init") +call ExecuteFunc("WoWReforgedLearnableSkills__Init") call ExecuteFunc("WoWReforgedLevers___Init") -call ExecuteFunc("WoWReforgedTreeUtils___Init") -call ExecuteFunc("DrainResources___Init") +call ExecuteFunc("WoWReforgedTreeUtils__Init") +call ExecuteFunc("DrainResources__Init") call ExecuteFunc("Log__Init") -call ExecuteFunc("MaxHpResearch___Init") +call ExecuteFunc("MaxHpResearch__Init") call ExecuteFunc("PagedButtons__Init") -call ExecuteFunc("Push___onInit") +call ExecuteFunc("Push__onInit") call ExecuteFunc("ResourcesChatCommands__Init") call ExecuteFunc("ResourcesCosts__Init") call ExecuteFunc("ResourcesMultiboardGui__Init") call ExecuteFunc("ResourcesWarnings__Init") -call ExecuteFunc("Taunts___Init") +call ExecuteFunc("Taunts__Init") call ExecuteFunc("UnitGroupRespawnSystem__Init") call ExecuteFunc("VoteSystem___Init") -call ExecuteFunc("WoWReforgedDayNightCycleEffects__Init") -call ExecuteFunc("WoWReforgedHeroSkills___Init") -call ExecuteFunc("WoWReforgedPagedButtonsConfig___Init") -call ExecuteFunc("WoWReforgedProspector__Init") +call ExecuteFunc("WoWReforgedDayNightCycleEffects___Init") +call ExecuteFunc("WoWReforgedHeroSkills__Init") +call ExecuteFunc("WoWReforgedPagedButtonsConfig__Init") +call ExecuteFunc("WoWReforgedProspector___Init") call ExecuteFunc("Crafting__Init") call ExecuteFunc("KeyMovementSystem___Init") call ExecuteFunc("LogUI__Init") call ExecuteFunc("PagedButtonsUI__Init") call ExecuteFunc("ResourcesGui__Init") call ExecuteFunc("ResourcesLoadedMines__Init") -call ExecuteFunc("Tunnel___Init") -call ExecuteFunc("WoWReforgedCritters___Init") -call ExecuteFunc("WoWReforgedLevels___Init") +call ExecuteFunc("Tunnel__Init") +call ExecuteFunc("WoWReforgedCritters__Init") +call ExecuteFunc("WoWReforgedLevels__Init") call ExecuteFunc("WoWReforgedMaxHpResearch___Init") -call ExecuteFunc("WoWReforgedRandomCorpse__Init") -call ExecuteFunc("WoWReforgedWitchHut__Init") -call ExecuteFunc("Demoralize___Init") -call ExecuteFunc("HolyNova___Init") -call ExecuteFunc("MassDevour___Init") -call ExecuteFunc("Parry___Init") -call ExecuteFunc("PhoenixEgg___Init") -call ExecuteFunc("Railway___Init") -call ExecuteFunc("SummonWall___Init") -call ExecuteFunc("TailSwipe___Init") -call ExecuteFunc("Telekinesis___Init") +call ExecuteFunc("WoWReforgedRandomCorpse___Init") +call ExecuteFunc("WoWReforgedWitchHut___Init") +call ExecuteFunc("Demoralize__Init") +call ExecuteFunc("HolyNova__Init") +call ExecuteFunc("MassDevour__Init") +call ExecuteFunc("Parry__Init") +call ExecuteFunc("PhoenixEgg__Init") +call ExecuteFunc("Railway__Init") +call ExecuteFunc("SummonWall__Init") +call ExecuteFunc("TailSwipe__Init") +call ExecuteFunc("Telekinesis__Init") call ExecuteFunc("WoWReforgedPiggery___Init") -call ExecuteFunc("WoWReforgedProfessions___Init") -call ExecuteFunc("WoWReforgedTradingPosts__Init") +call ExecuteFunc("WoWReforgedProfessions__Init") +call ExecuteFunc("WoWReforgedTradingPosts___Init") call ExecuteFunc("Ray__Init") -call ExecuteFunc("WoWReforgedProfessionBooksShop__Init") +call ExecuteFunc("WoWReforgedProfessionBooksShop___Init") call ExecuteFunc("AuraSystem__Init") -call ExecuteFunc("WowReforgedCook__Init") -call ExecuteFunc("WoWReforgedUtils___Init") -call ExecuteFunc("SpellsMeteorKnockbackType__Init") +call ExecuteFunc("WowReforgedCook___Init") +call ExecuteFunc("WoWReforgedUtils__Init") +call ExecuteFunc("SpellsMeteorKnockbackType___Init") call ExecuteFunc("SpellsSlideKnockbackType__Init") call ExecuteFunc("WoWReforgedBosses__Init") call ExecuteFunc("WoWReforgedClanShop__Init") -call ExecuteFunc("WoWReforgedKnockbackSimple__Init") -call ExecuteFunc("WoWReforgedLearnableSkillsShop___Init") -call ExecuteFunc("WoWReforgedProfessionsTavern___Init") -call ExecuteFunc("WoWReforgedResurrectionStone__Init") -call ExecuteFunc("WoWReforgedSkins___Init") -call ExecuteFunc("WoWReforgedSummonedUnits__Init") +call ExecuteFunc("WoWReforgedKnockbackSimple___Init") +call ExecuteFunc("WoWReforgedLearnableSkillsShop__Init") +call ExecuteFunc("WoWReforgedProfessionsTavern__Init") +call ExecuteFunc("WoWReforgedResurrectionStone___Init") +call ExecuteFunc("WoWReforgedSkins__Init") +call ExecuteFunc("WoWReforgedSummonedUnits___Init") call ExecuteFunc("WoWReforgedVIPs__Init") -call ExecuteFunc("WoWReforgedAiPlayersUi___Init") -call ExecuteFunc("WoWReforgedEnchanter__Init") -call ExecuteFunc("WoWReforgedHeroesTavern___Init") -call ExecuteFunc("WoWReforgedInscriptor__Init") -call ExecuteFunc("WoWReforgedMounts__Init") -call ExecuteFunc("WoWReforgedStandardHeroAbilities___Init") -call ExecuteFunc("WoWReforgedAchievements__Init") -call ExecuteFunc("WoWReforgedAlchemistLab__Init") -call ExecuteFunc("WoWReforgedBuilder___Init") -call ExecuteFunc("WoWReforgedRacesTavern___Init") -call ExecuteFunc("WoWReforgedSaddle__Init") -call ExecuteFunc("WoWReforgedSceptersShop__Init") -call ExecuteFunc("WoWReforgedThievesGuild__Init") -call ExecuteFunc("WoWReforgedWrapUp___Init") -call ExecuteFunc("WowReforgedMultiply__Init") -call ExecuteFunc("WoWReforgedArena__Init") -call ExecuteFunc("WoWReforgedRacing__Init") -call ExecuteFunc("WoWReforgedZones__Init") -call ExecuteFunc("WoWReforgedCalendar__Init") -call ExecuteFunc("WoWReforgedMassForestation__Init") -call ExecuteFunc("WoWReforgedPortals__Init") -call ExecuteFunc("WoWReforgedCalendarMultiboard__Init") -call ExecuteFunc("WoWReforgedProperties__Init") -call ExecuteFunc("WoWReforgedBackpacks___Init") -call ExecuteFunc("WoWReforgedHeroTransformation__Init") -call ExecuteFunc("WoWReforgedEquipment___Init") -call ExecuteFunc("WoWReforgedSkillUI___Init") -call ExecuteFunc("WoWReforgedUpdateBackpackUI___Init") -call ExecuteFunc("WoWReforgedArmory___Init") -call ExecuteFunc("WoWReforgedUpdateSkillUI___Init") +call ExecuteFunc("WoWReforgedAiPlayersUi__Init") +call ExecuteFunc("WoWReforgedEnchanter___Init") +call ExecuteFunc("WoWReforgedHeroesTavern__Init") +call ExecuteFunc("WoWReforgedInscriptor___Init") +call ExecuteFunc("WoWReforgedMounts___Init") +call ExecuteFunc("WoWReforgedStandardHeroAbilities__Init") +call ExecuteFunc("WoWReforgedAchievements___Init") +call ExecuteFunc("WoWReforgedAlchemistLab___Init") +call ExecuteFunc("WoWReforgedBuilder__Init") +call ExecuteFunc("WoWReforgedRacesTavern__Init") +call ExecuteFunc("WoWReforgedSaddle___Init") +call ExecuteFunc("WoWReforgedSceptersShop___Init") +call ExecuteFunc("WoWReforgedThievesGuild___Init") +call ExecuteFunc("WoWReforgedWrapUp__Init") +call ExecuteFunc("WowReforgedMultiply___Init") +call ExecuteFunc("WoWReforgedArena___Init") +call ExecuteFunc("WoWReforgedRacing___Init") +call ExecuteFunc("WoWReforgedZones___Init") +call ExecuteFunc("WoWReforgedCalendar___Init") +call ExecuteFunc("WoWReforgedMassForestation___Init") +call ExecuteFunc("WoWReforgedPortals___Init") +call ExecuteFunc("WoWReforgedCalendarMultiboard___Init") +call ExecuteFunc("WoWReforgedProperties___Init") +call ExecuteFunc("WoWReforgedBackpacks__Init") +call ExecuteFunc("WoWReforgedHeroTransformation___Init") +call ExecuteFunc("WoWReforgedEquipment__Init") +call ExecuteFunc("WoWReforgedSkillUI__Init") +call ExecuteFunc("WoWReforgedUpdateBackpackUI__Init") +call ExecuteFunc("WoWReforgedArmory__Init") +call ExecuteFunc("WoWReforgedUpdateSkillUI__Init") call ExecuteFunc("WoWReforgedSaveCodesAll__Init") -call ExecuteFunc("WoWReforgedSaveCodeUI___Init") -call ExecuteFunc("WoWReforgedStartLocationsTavern___Init") -call ExecuteFunc("WoWReforgedActionsBarUI___Init") -call ExecuteFunc("WoWReforgedCinematic__Init") -call ExecuteFunc("WoWReforgedRacesUI___Init") +call ExecuteFunc("WoWReforgedSaveCodeUI__Init") +call ExecuteFunc("WoWReforgedStartLocationsTavern__Init") +call ExecuteFunc("WoWReforgedActionsBarUI__Init") +call ExecuteFunc("WoWReforgedCinematic___Init") +call ExecuteFunc("WoWReforgedRacesUI__Init") call InitGlobals() call InitCustomTriggers() @@ -201387,8 +201387,8 @@ function sa___prototype10_IdleWorkersSystem___RemoveUnitHook takes nothing retur call IdleWorkersSystem___RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_ItemOrbOfLight___RemoveUnitHook takes nothing returns boolean - call ItemOrbOfLight___RemoveUnitHook(f__arg_unit1) +function sa___prototype10_ItemOrbOfLight__RemoveUnitHook takes nothing returns boolean + call ItemOrbOfLight__RemoveUnitHook(f__arg_unit1) return true endfunction function sa___prototype80_ItemRespawnSystem___RemoveItemCleanup takes nothing returns boolean @@ -201471,8 +201471,8 @@ function sa___prototype10_WoWReforgedFelOrcDemonGate___RemoveUnitHook takes noth call WoWReforgedFelOrcDemonGate___RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_WoWReforgedFlamethrower__RemoveUnitHook takes nothing returns boolean - call WoWReforgedFlamethrower__RemoveUnitHook(f__arg_unit1) +function sa___prototype10_WoWReforgedFlamethrower___RemoveUnitHook takes nothing returns boolean + call WoWReforgedFlamethrower___RemoveUnitHook(f__arg_unit1) return true endfunction function sa___prototype165_UpdateEachStockBuildingHook takes nothing returns boolean @@ -201483,7 +201483,7 @@ function sa___prototype165_UpdateEachStockBuildingHook takes nothing returns boo set bj_stockPickedItemType=iType set bj_stockPickedItemLevel=iLevel set g=CreateGroup() - call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedMarketplace__IsMarketplace)) + call GroupEnumUnitsInRect(g, GetPlayableMapRect(), Filter(function WoWReforgedMarketplace___IsMarketplace)) call ForGroup(g, function UpdateEachStockBuildingEnum) call DestroyGroup(g) set g=null @@ -201497,15 +201497,15 @@ function sa___prototype16_TurretSystemRemoveVehicle takes nothing returns boolea set f__result_boolean=TurretSystemRemoveVehicle(f__arg_unit1) return true endfunction -function sa___prototype10_WoWReforgedCombiner___RemoveUnitHook takes nothing returns boolean - call FlushChildHashtable(WoWReforgedCombiner___h, GetHandleId((f__arg_unit1))) // INLINED!! +function sa___prototype10_WoWReforgedCombiner__RemoveUnitHook takes nothing returns boolean + call FlushChildHashtable(WoWReforgedCombiner__h, GetHandleId((f__arg_unit1))) // INLINED!! return true endfunction function sa___prototype10_WoWReforgedFel___RemoveUnitHook takes nothing returns boolean call WoWReforgedFel___RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype259_WoWReforgedInfoQuests__CreateQuestBJHook takes nothing returns boolean +function sa___prototype259_WoWReforgedInfoQuests___CreateQuestBJHook takes nothing returns boolean local integer questType=f__arg_integer1 local string title=f__arg_string1 local string description=f__arg_string2 @@ -201513,14 +201513,14 @@ function sa___prototype259_WoWReforgedInfoQuests__CreateQuestBJHook takes nothin local boolean required= ( questType == bj_QUESTTYPE_REQ_DISCOVERED ) or ( questType == bj_QUESTTYPE_REQ_UNDISCOVERED ) if ( required ) then - set WoWReforgedInfoQuests__tmpIconPath=iconPath - set WoWReforgedInfoQuests__tmpTitle=GetLocalizedString(title) - set WoWReforgedInfoQuests__tmpDescription=GetLocalizedString(description) // Barade: this leads some how to a cut off string on the website - call WoWReforgedInfoQuests__AddInfoQuest() + set WoWReforgedInfoQuests___tmpIconPath=iconPath + set WoWReforgedInfoQuests___tmpTitle=GetLocalizedString(title) + set WoWReforgedInfoQuests___tmpDescription=GetLocalizedString(description) // Barade: this leads some how to a cut off string on the website + call WoWReforgedInfoQuests___AddInfoQuest() endif return true endfunction -function sa___prototype259_WoWReforgedQuests__CreateQuestBJHook takes nothing returns boolean +function sa___prototype259_WoWReforgedQuests___CreateQuestBJHook takes nothing returns boolean local integer questType=f__arg_integer1 local string title=f__arg_string1 local string description=f__arg_string2 @@ -201528,10 +201528,10 @@ function sa___prototype259_WoWReforgedQuests__CreateQuestBJHook takes nothing re local boolean required= ( questType == bj_QUESTTYPE_REQ_DISCOVERED ) or ( questType == bj_QUESTTYPE_REQ_UNDISCOVERED ) if ( not required ) then - set WoWReforgedQuests__tmpIconPath=iconPath - set WoWReforgedQuests__tmpTitle=GetLocalizedString(title) - set WoWReforgedQuests__tmpDescription=GetLocalizedString(description) // Barade: this leads some how to a cut off string on the website - call WoWReforgedQuests__AddQuestWoWReforged() + set WoWReforgedQuests___tmpIconPath=iconPath + set WoWReforgedQuests___tmpTitle=GetLocalizedString(title) + set WoWReforgedQuests___tmpDescription=GetLocalizedString(description) // Barade: this leads some how to a cut off string on the website + call WoWReforgedQuests___AddQuestWoWReforged() endif return true endfunction @@ -201642,48 +201642,48 @@ function sa___prototype10_ResourcesGui__RemoveUnitHook takes nothing returns boo call ResourcesGui__RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_Tunnel___RemoveUnitHook takes nothing returns boolean - call Tunnel___RemoveUnitHook(f__arg_unit1) +function sa___prototype10_Tunnel__RemoveUnitHook takes nothing returns boolean + call Tunnel__RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_WoWReforgedWitchHut__HookRemoveUnit takes nothing returns boolean - call WoWReforgedWitchHut__HookRemoveUnit(f__arg_unit1) +function sa___prototype10_WoWReforgedWitchHut___HookRemoveUnit takes nothing returns boolean + call WoWReforgedWitchHut___HookRemoveUnit(f__arg_unit1) return true endfunction -function sa___prototype10_MassDevour___RemoveUnitMassDevour takes nothing returns boolean - call MassDevour___RemoveUnitMassDevour(f__arg_unit1) +function sa___prototype10_MassDevour__RemoveUnitMassDevour takes nothing returns boolean + call MassDevour__RemoveUnitMassDevour(f__arg_unit1) return true endfunction -function sa___prototype10_Parry___RemoveUnitHook takes nothing returns boolean - call Parry___RemoveUnitHook(f__arg_unit1) +function sa___prototype10_Parry__RemoveUnitHook takes nothing returns boolean + call Parry__RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_PhoenixEgg___RemoveUnitHook takes nothing returns boolean - call PhoenixEgg___RemoveUnitHook(f__arg_unit1) +function sa___prototype10_PhoenixEgg__RemoveUnitHook takes nothing returns boolean + call PhoenixEgg__RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_Railway___RemoveUnitHook takes nothing returns boolean - call Railway___RemoveUnitHook(f__arg_unit1) +function sa___prototype10_Railway__RemoveUnitHook takes nothing returns boolean + call Railway__RemoveUnitHook(f__arg_unit1) return true endfunction function sa___prototype10_RayConfig__RemoveUnitHook takes nothing returns boolean call FlushChildHashtable(RayConfig__h, GetHandleId((f__arg_unit1))) // INLINED!! return true endfunction -function sa___prototype184_TailSwipe___onUnitHit takes nothing returns boolean - call TailSwipe___onUnitHit(f__arg_integer1,f__arg_unit1) +function sa___prototype184_TailSwipe__onUnitHit takes nothing returns boolean + call TailSwipe__onUnitHit(f__arg_integer1,f__arg_unit1) return true endfunction -function sa___prototype185_TailSwipe___onDestructableHit takes nothing returns boolean - call TailSwipe___onDestructableHit(f__arg_integer1,f__arg_destructable1) +function sa___prototype185_TailSwipe__onDestructableHit takes nothing returns boolean + call TailSwipe__onDestructableHit(f__arg_integer1,f__arg_destructable1) return true endfunction -function sa___prototype186_TailSwipe___filterFunction takes nothing returns boolean - set f__result_boolean=TailSwipe___filterFunction(f__arg_integer1,f__arg_unit1) +function sa___prototype186_TailSwipe__filterFunction takes nothing returns boolean + set f__result_boolean=TailSwipe__filterFunction(f__arg_integer1,f__arg_unit1) return true endfunction -function sa___prototype10_Telekinesis___RemoveUnitTelekinesis takes nothing returns boolean - call Telekinesis___RemoveUnitTelekinesis(f__arg_unit1) +function sa___prototype10_Telekinesis__RemoveUnitTelekinesis takes nothing returns boolean + call Telekinesis__RemoveUnitTelekinesis(f__arg_unit1) return true endfunction function sa___prototype10_Ray__RemoveUnitHook takes nothing returns boolean @@ -201694,8 +201694,8 @@ function sa___prototype10_RemoveAuraCaster takes nothing returns boolean call RemoveAuraCaster(f__arg_unit1) return true endfunction -function sa___prototype10_WoWReforgedOldHorde___RemoveDeathKnightHook takes nothing returns boolean - call WoWReforgedOldHorde___RemoveDeathKnightHook(f__arg_unit1) +function sa___prototype10_WoWReforgedOldHorde__RemoveDeathKnightHook takes nothing returns boolean + call WoWReforgedOldHorde__RemoveDeathKnightHook(f__arg_unit1) return true endfunction function sa___prototype384_FilterAlliedTargetsNonStructureMana takes nothing returns boolean @@ -201722,16 +201722,16 @@ function sa___prototype384_FilterEnemyTargetsNonStructure takes nothing returns set f__result_boolean=FilterEnemyTargetsNonStructure(f__arg_unit1,f__arg_unit2,f__arg_integer1) return true endfunction -function sa___prototype184_SpellsMeteorKnockbackType__onUnitHit takes nothing returns boolean - call SpellsMeteorKnockbackType__onUnitHit(f__arg_integer1,f__arg_unit1) +function sa___prototype184_SpellsMeteorKnockbackType___onUnitHit takes nothing returns boolean + call SpellsMeteorKnockbackType___onUnitHit(f__arg_integer1,f__arg_unit1) return true endfunction -function sa___prototype185_SpellsMeteorKnockbackType__onDestructableHit takes nothing returns boolean - call SpellsMeteorKnockbackType__onDestructableHit(f__arg_integer1,f__arg_destructable1) +function sa___prototype185_SpellsMeteorKnockbackType___onDestructableHit takes nothing returns boolean + call SpellsMeteorKnockbackType___onDestructableHit(f__arg_integer1,f__arg_destructable1) return true endfunction -function sa___prototype186_SpellsMeteorKnockbackType__filterFunction takes nothing returns boolean - set f__result_boolean=SpellsMeteorKnockbackType__filterFunction(f__arg_integer1,f__arg_unit1) +function sa___prototype186_SpellsMeteorKnockbackType___filterFunction takes nothing returns boolean + set f__result_boolean=SpellsMeteorKnockbackType___filterFunction(f__arg_integer1,f__arg_unit1) return true endfunction function sa___prototype184_SpellsSlideKnockbackType__onUnitHit takes nothing returns boolean @@ -201776,107 +201776,107 @@ function sa___prototype91_WoWReforgedEvolution___HookBlzDecPlayerTechResearched endif return true endfunction -function sa___prototype10_WoWReforgedSummonedUnits__RemoveUnitHook takes nothing returns boolean - call WoWReforgedSummonedUnits__RemoveUnitHook(f__arg_unit1) +function sa___prototype10_WoWReforgedSummonedUnits___RemoveUnitHook takes nothing returns boolean + call WoWReforgedSummonedUnits___RemoveUnitHook(f__arg_unit1) return true endfunction function sa___prototype211_HookAddUnitToGroup takes nothing returns boolean call HookAddUnitToGroup(f__arg_unit1,f__arg_group1) return true endfunction -function sa___prototype10_WoWReforgedEnchanter__EnchanterSystemRemoveUnit takes nothing returns boolean - call FlushChildHashtable(WoWReforgedEnchanter__EnchanterSystemHashTable, GetHandleId((f__arg_unit1))) // INLINED!! +function sa___prototype10_WoWReforgedEnchanter___EnchanterSystemRemoveUnit takes nothing returns boolean + call FlushChildHashtable(WoWReforgedEnchanter___EnchanterSystemHashTable, GetHandleId((f__arg_unit1))) // INLINED!! return true endfunction -function sa___prototype10_WoWReforgedInscriptor__InscriptorSystemRemoveUnit takes nothing returns boolean - call FlushChildHashtable(WoWReforgedInscriptor__h, GetHandleId((f__arg_unit1))) // INLINED!! +function sa___prototype10_WoWReforgedInscriptor___InscriptorSystemRemoveUnit takes nothing returns boolean + call FlushChildHashtable(WoWReforgedInscriptor___h, GetHandleId((f__arg_unit1))) // INLINED!! return true endfunction -function sa___prototype453_WoWReforgedAchievements__QuestSetCompletedBJHook takes nothing returns boolean - call WoWReforgedAchievements__QuestSetCompletedBJHook(f__arg_quest1,f__arg_boolean1) +function sa___prototype453_WoWReforgedAchievements___QuestSetCompletedBJHook takes nothing returns boolean + call WoWReforgedAchievements___QuestSetCompletedBJHook(f__arg_quest1,f__arg_boolean1) return true endfunction -function sa___prototype10_WoWReforgedThievesGuild__RemoveUnitHook takes nothing returns boolean - call WoWReforgedThievesGuild__RemoveUnitHook(f__arg_unit1) +function sa___prototype10_WoWReforgedThievesGuild___RemoveUnitHook takes nothing returns boolean + call WoWReforgedThievesGuild___RemoveUnitHook(f__arg_unit1) return true endfunction -function sa___prototype10_WoWReforgedWrapUp___HookRemoveConstructedBuilding takes nothing returns boolean - call WoWReforgedWrapUp___HookRemoveConstructedBuilding(f__arg_unit1) +function sa___prototype10_WoWReforgedWrapUp__HookRemoveConstructedBuilding takes nothing returns boolean + call WoWReforgedWrapUp__HookRemoveConstructedBuilding(f__arg_unit1) return true endfunction -function sa___prototype26_WoWReforgedCalendar__StartEaster takes nothing returns boolean +function sa___prototype26_WoWReforgedCalendar___StartEaster takes nothing returns boolean local integer e=f__arg_integer1 - set WoWReforgedCalendar__easterTrees=true - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , WoWReforgedCalendar__season) + set WoWReforgedCalendar___easterTrees=true + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , WoWReforgedCalendar___season) call PlaySoundBJ(gg_snd_EasterIntro) return true endfunction -function sa___prototype26_WoWReforgedCalendar__EndEaster takes nothing returns boolean +function sa___prototype26_WoWReforgedCalendar___EndEaster takes nothing returns boolean local integer e=f__arg_integer1 - set WoWReforgedCalendar__easterTrees=false - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , WoWReforgedCalendar__season) + set WoWReforgedCalendar___easterTrees=false + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , WoWReforgedCalendar___season) return true endfunction -function sa___prototype26_WoWReforgedCalendar__StartChristmas takes nothing returns boolean +function sa___prototype26_WoWReforgedCalendar___StartChristmas takes nothing returns boolean local integer e=f__arg_integer1 - set WoWReforgedCalendar__christmasTrees=true - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , WoWReforgedCalendar__season) + set WoWReforgedCalendar___christmasTrees=true + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , WoWReforgedCalendar___season) return true endfunction -function sa___prototype26_WoWReforgedCalendar__EndChristmas takes nothing returns boolean +function sa___prototype26_WoWReforgedCalendar___EndChristmas takes nothing returns boolean local integer e=f__arg_integer1 - set WoWReforgedCalendar__christmasTrees=false - call WoWReforgedCalendar__ReplaceAffectedWithTrees(WoWReforgedCalendar__season , WoWReforgedCalendar__season) + set WoWReforgedCalendar___christmasTrees=false + call WoWReforgedCalendar___ReplaceAffectedWithTrees(WoWReforgedCalendar___season , WoWReforgedCalendar___season) return true endfunction -function sa___prototype26_WoWReforgedCalendar__StartNewYear takes nothing returns boolean +function sa___prototype26_WoWReforgedCalendar___StartNewYear takes nothing returns boolean local integer e=f__arg_integer1 local integer index= 0 local integer zone= 0 local integer i= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer j= 0 local integer max2= 0 loop exitwhen ( i == max ) - set zone=(WoWReforgedZones__zones[(i)]) // INLINED!! + set zone=(WoWReforgedZones___zones[(i)]) // INLINED!! set max2=(s__Zone_rectsCounter[(zone)]) // INLINED!! set j=0 loop exitwhen ( j == max2 ) set index=Index2D(i , j , MAX_ZONE_RECTS) - set WoWReforgedCalendar__newYearEffects[index]=AddSpecialEffect("war3mapImported\\Firework3.mdx", GetRectCenterX((s___Zone_rects[s__Zone_rects[(zone )]+( j)])), GetRectCenterY((s___Zone_rects[s__Zone_rects[(zone )]+( j)]))) // INLINED!! + set WoWReforgedCalendar___newYearEffects[index]=AddSpecialEffect("war3mapImported\\Firework3.mdx", GetRectCenterX((s___Zone_rects[s__Zone_rects[(zone )]+( j)])), GetRectCenterY((s___Zone_rects[s__Zone_rects[(zone )]+( j)]))) // INLINED!! set j=j + 1 endloop set i=i + 1 endloop return true endfunction -function sa___prototype26_WoWReforgedCalendar__EndNewYear takes nothing returns boolean +function sa___prototype26_WoWReforgedCalendar___EndNewYear takes nothing returns boolean local integer e=f__arg_integer1 local integer index= 0 local integer zone= 0 local integer i= 0 - local integer max= (WoWReforgedZones__zonesCounter) // INLINED!! + local integer max= (WoWReforgedZones___zonesCounter) // INLINED!! local integer j= 0 local integer max2= 0 loop exitwhen ( i == max ) - set zone=(WoWReforgedZones__zones[(i)]) // INLINED!! + set zone=(WoWReforgedZones___zones[(i)]) // INLINED!! set max2=(s__Zone_rectsCounter[(zone)]) // INLINED!! set j=0 loop exitwhen ( j == max2 ) set index=Index2D(i , j , MAX_ZONE_RECTS) - if ( WoWReforgedCalendar__newYearEffects[index] != null ) then - call DestroyEffect(WoWReforgedCalendar__newYearEffects[index]) - set WoWReforgedCalendar__newYearEffects[index]=null + if ( WoWReforgedCalendar___newYearEffects[index] != null ) then + call DestroyEffect(WoWReforgedCalendar___newYearEffects[index]) + set WoWReforgedCalendar___newYearEffects[index]=null endif set j=j + 1 endloop @@ -201884,24 +201884,24 @@ function sa___prototype26_WoWReforgedCalendar__EndNewYear takes nothing returns endloop return true endfunction -function sa___prototype144_WoWReforgedPortals__HookWaygateActivate takes nothing returns boolean - call WoWReforgedPortals__HookWaygateActivate(f__arg_unit1,f__arg_boolean1) +function sa___prototype144_WoWReforgedPortals___HookWaygateActivate takes nothing returns boolean + call WoWReforgedPortals___HookWaygateActivate(f__arg_unit1,f__arg_boolean1) return true endfunction -function sa___prototype475_WoWReforgedPortals__HookWaygateActivateBJ takes nothing returns boolean - call WoWReforgedPortals__HookWaygateActivateBJ(f__arg_boolean1,f__arg_unit1) +function sa___prototype475_WoWReforgedPortals___HookWaygateActivateBJ takes nothing returns boolean + call WoWReforgedPortals___HookWaygateActivateBJ(f__arg_boolean1,f__arg_unit1) return true endfunction -function sa___prototype243_WoWReforgedPortals__HookWaygateSetDestination takes nothing returns boolean - call WoWReforgedPortals__HookWaygateSetDestination(f__arg_unit1,f__arg_real1,f__arg_real2) +function sa___prototype243_WoWReforgedPortals___HookWaygateSetDestination takes nothing returns boolean + call WoWReforgedPortals___HookWaygateSetDestination(f__arg_unit1,f__arg_real1,f__arg_real2) return true endfunction -function sa___prototype476_WoWReforgedPortals__HookWaygateSetDestinationLocBJ takes nothing returns boolean - call WoWReforgedPortals__HookWaygateSetDestinationLocBJ(f__arg_unit1,f__arg_location1) +function sa___prototype476_WoWReforgedPortals___HookWaygateSetDestinationLocBJ takes nothing returns boolean + call WoWReforgedPortals___HookWaygateSetDestinationLocBJ(f__arg_unit1,f__arg_location1) return true endfunction -function sa___prototype10_WoWReforgedEquipment___RemoveUnitHook takes nothing returns boolean - call WoWReforgedEquipment___RemoveUnitHook(f__arg_unit1) +function sa___prototype10_WoWReforgedEquipment__RemoveUnitHook takes nothing returns boolean + call WoWReforgedEquipment__RemoveUnitHook(f__arg_unit1) return true endfunction function sa___prototype38_s__MapChanger_changeMap takes nothing returns boolean @@ -201929,7 +201929,7 @@ function sa___prototype50_s__MapChanger_storeHeroesSinglePlayerNewOpLimit takes return true endfunction -function jasshelper__initstructs214021421 takes nothing returns nothing +function jasshelper__initstructs215680421 takes nothing returns nothing set st__AbstractZone_onDestroy[172]=null set st__MapChanger_storeHeroesSinglePlayerNewOpLimit=CreateTrigger() call TriggerAddCondition(st__MapChanger_storeHeroesSinglePlayerNewOpLimit,Condition( function sa__MapChanger_storeHeroesSinglePlayerNewOpLimit)) @@ -202149,8 +202149,8 @@ function jasshelper__initstructs214021421 takes nothing returns nothing call TriggerAddAction(st___prototype10[3],function sa___prototype10_IdleWorkersSystem___RemoveUnitHook) call TriggerAddCondition(st___prototype10[3],Condition(function sa___prototype10_IdleWorkersSystem___RemoveUnitHook)) set st___prototype10[4]=CreateTrigger() - call TriggerAddAction(st___prototype10[4],function sa___prototype10_ItemOrbOfLight___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[4],Condition(function sa___prototype10_ItemOrbOfLight___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[4],function sa___prototype10_ItemOrbOfLight__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[4],Condition(function sa___prototype10_ItemOrbOfLight__RemoveUnitHook)) set st___prototype80[1]=CreateTrigger() call TriggerAddAction(st___prototype80[1],function sa___prototype80_ItemRespawnSystem___RemoveItemCleanup) call TriggerAddCondition(st___prototype80[1],Condition(function sa___prototype80_ItemRespawnSystem___RemoveItemCleanup)) @@ -202191,8 +202191,8 @@ function jasshelper__initstructs214021421 takes nothing returns nothing call TriggerAddAction(st___prototype10[5],function sa___prototype10_WoWReforgedFelOrcDemonGate___RemoveUnitHook) call TriggerAddCondition(st___prototype10[5],Condition(function sa___prototype10_WoWReforgedFelOrcDemonGate___RemoveUnitHook)) set st___prototype10[6]=CreateTrigger() - call TriggerAddAction(st___prototype10[6],function sa___prototype10_WoWReforgedFlamethrower__RemoveUnitHook) - call TriggerAddCondition(st___prototype10[6],Condition(function sa___prototype10_WoWReforgedFlamethrower__RemoveUnitHook)) + call TriggerAddAction(st___prototype10[6],function sa___prototype10_WoWReforgedFlamethrower___RemoveUnitHook) + call TriggerAddCondition(st___prototype10[6],Condition(function sa___prototype10_WoWReforgedFlamethrower___RemoveUnitHook)) set st___prototype165[1]=CreateTrigger() call TriggerAddAction(st___prototype165[1],function sa___prototype165_UpdateEachStockBuildingHook) call TriggerAddCondition(st___prototype165[1],Condition(function sa___prototype165_UpdateEachStockBuildingHook)) @@ -202203,17 +202203,17 @@ function jasshelper__initstructs214021421 takes nothing returns nothing call TriggerAddAction(st___prototype16[1],function sa___prototype16_TurretSystemRemoveVehicle) call TriggerAddCondition(st___prototype16[1],Condition(function sa___prototype16_TurretSystemRemoveVehicle)) set st___prototype10[8]=CreateTrigger() - call TriggerAddAction(st___prototype10[8],function sa___prototype10_WoWReforgedCombiner___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[8],Condition(function sa___prototype10_WoWReforgedCombiner___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[8],function sa___prototype10_WoWReforgedCombiner__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[8],Condition(function sa___prototype10_WoWReforgedCombiner__RemoveUnitHook)) set st___prototype10[9]=CreateTrigger() call TriggerAddAction(st___prototype10[9],function sa___prototype10_WoWReforgedFel___RemoveUnitHook) call TriggerAddCondition(st___prototype10[9],Condition(function sa___prototype10_WoWReforgedFel___RemoveUnitHook)) set st___prototype259[1]=CreateTrigger() - call TriggerAddAction(st___prototype259[1],function sa___prototype259_WoWReforgedInfoQuests__CreateQuestBJHook) - call TriggerAddCondition(st___prototype259[1],Condition(function sa___prototype259_WoWReforgedInfoQuests__CreateQuestBJHook)) + call TriggerAddAction(st___prototype259[1],function sa___prototype259_WoWReforgedInfoQuests___CreateQuestBJHook) + call TriggerAddCondition(st___prototype259[1],Condition(function sa___prototype259_WoWReforgedInfoQuests___CreateQuestBJHook)) set st___prototype259[2]=CreateTrigger() - call TriggerAddAction(st___prototype259[2],function sa___prototype259_WoWReforgedQuests__CreateQuestBJHook) - call TriggerAddCondition(st___prototype259[2],Condition(function sa___prototype259_WoWReforgedQuests__CreateQuestBJHook)) + call TriggerAddAction(st___prototype259[2],function sa___prototype259_WoWReforgedQuests___CreateQuestBJHook) + call TriggerAddCondition(st___prototype259[2],Condition(function sa___prototype259_WoWReforgedQuests___CreateQuestBJHook)) set st___prototype270[1]=CreateTrigger() call TriggerAddAction(st___prototype270[1],function sa___prototype270_Log__DisplayTextToPlayerHook) call TriggerAddCondition(st___prototype270[1],Condition(function sa___prototype270_Log__DisplayTextToPlayerHook)) @@ -202269,38 +202269,38 @@ function jasshelper__initstructs214021421 takes nothing returns nothing call TriggerAddAction(st___prototype10[11],function sa___prototype10_ResourcesGui__RemoveUnitHook) call TriggerAddCondition(st___prototype10[11],Condition(function sa___prototype10_ResourcesGui__RemoveUnitHook)) set st___prototype10[12]=CreateTrigger() - call TriggerAddAction(st___prototype10[12],function sa___prototype10_Tunnel___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[12],Condition(function sa___prototype10_Tunnel___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[12],function sa___prototype10_Tunnel__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[12],Condition(function sa___prototype10_Tunnel__RemoveUnitHook)) set st___prototype10[13]=CreateTrigger() - call TriggerAddAction(st___prototype10[13],function sa___prototype10_WoWReforgedWitchHut__HookRemoveUnit) - call TriggerAddCondition(st___prototype10[13],Condition(function sa___prototype10_WoWReforgedWitchHut__HookRemoveUnit)) + call TriggerAddAction(st___prototype10[13],function sa___prototype10_WoWReforgedWitchHut___HookRemoveUnit) + call TriggerAddCondition(st___prototype10[13],Condition(function sa___prototype10_WoWReforgedWitchHut___HookRemoveUnit)) set st___prototype10[14]=CreateTrigger() - call TriggerAddAction(st___prototype10[14],function sa___prototype10_MassDevour___RemoveUnitMassDevour) - call TriggerAddCondition(st___prototype10[14],Condition(function sa___prototype10_MassDevour___RemoveUnitMassDevour)) + call TriggerAddAction(st___prototype10[14],function sa___prototype10_MassDevour__RemoveUnitMassDevour) + call TriggerAddCondition(st___prototype10[14],Condition(function sa___prototype10_MassDevour__RemoveUnitMassDevour)) set st___prototype10[15]=CreateTrigger() - call TriggerAddAction(st___prototype10[15],function sa___prototype10_Parry___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[15],Condition(function sa___prototype10_Parry___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[15],function sa___prototype10_Parry__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[15],Condition(function sa___prototype10_Parry__RemoveUnitHook)) set st___prototype10[16]=CreateTrigger() - call TriggerAddAction(st___prototype10[16],function sa___prototype10_PhoenixEgg___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[16],Condition(function sa___prototype10_PhoenixEgg___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[16],function sa___prototype10_PhoenixEgg__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[16],Condition(function sa___prototype10_PhoenixEgg__RemoveUnitHook)) set st___prototype10[17]=CreateTrigger() - call TriggerAddAction(st___prototype10[17],function sa___prototype10_Railway___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[17],Condition(function sa___prototype10_Railway___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[17],function sa___prototype10_Railway__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[17],Condition(function sa___prototype10_Railway__RemoveUnitHook)) set st___prototype10[18]=CreateTrigger() call TriggerAddAction(st___prototype10[18],function sa___prototype10_RayConfig__RemoveUnitHook) call TriggerAddCondition(st___prototype10[18],Condition(function sa___prototype10_RayConfig__RemoveUnitHook)) set st___prototype184[2]=CreateTrigger() - call TriggerAddAction(st___prototype184[2],function sa___prototype184_TailSwipe___onUnitHit) - call TriggerAddCondition(st___prototype184[2],Condition(function sa___prototype184_TailSwipe___onUnitHit)) + call TriggerAddAction(st___prototype184[2],function sa___prototype184_TailSwipe__onUnitHit) + call TriggerAddCondition(st___prototype184[2],Condition(function sa___prototype184_TailSwipe__onUnitHit)) set st___prototype185[2]=CreateTrigger() - call TriggerAddAction(st___prototype185[2],function sa___prototype185_TailSwipe___onDestructableHit) - call TriggerAddCondition(st___prototype185[2],Condition(function sa___prototype185_TailSwipe___onDestructableHit)) + call TriggerAddAction(st___prototype185[2],function sa___prototype185_TailSwipe__onDestructableHit) + call TriggerAddCondition(st___prototype185[2],Condition(function sa___prototype185_TailSwipe__onDestructableHit)) set st___prototype186[2]=CreateTrigger() - call TriggerAddAction(st___prototype186[2],function sa___prototype186_TailSwipe___filterFunction) - call TriggerAddCondition(st___prototype186[2],Condition(function sa___prototype186_TailSwipe___filterFunction)) + call TriggerAddAction(st___prototype186[2],function sa___prototype186_TailSwipe__filterFunction) + call TriggerAddCondition(st___prototype186[2],Condition(function sa___prototype186_TailSwipe__filterFunction)) set st___prototype10[19]=CreateTrigger() - call TriggerAddAction(st___prototype10[19],function sa___prototype10_Telekinesis___RemoveUnitTelekinesis) - call TriggerAddCondition(st___prototype10[19],Condition(function sa___prototype10_Telekinesis___RemoveUnitTelekinesis)) + call TriggerAddAction(st___prototype10[19],function sa___prototype10_Telekinesis__RemoveUnitTelekinesis) + call TriggerAddCondition(st___prototype10[19],Condition(function sa___prototype10_Telekinesis__RemoveUnitTelekinesis)) set st___prototype10[20]=CreateTrigger() call TriggerAddAction(st___prototype10[20],function sa___prototype10_Ray__RemoveUnitHook) call TriggerAddCondition(st___prototype10[20],Condition(function sa___prototype10_Ray__RemoveUnitHook)) @@ -202308,8 +202308,8 @@ function jasshelper__initstructs214021421 takes nothing returns nothing call TriggerAddAction(st___prototype10[21],function sa___prototype10_RemoveAuraCaster) call TriggerAddCondition(st___prototype10[21],Condition(function sa___prototype10_RemoveAuraCaster)) set st___prototype10[22]=CreateTrigger() - call TriggerAddAction(st___prototype10[22],function sa___prototype10_WoWReforgedOldHorde___RemoveDeathKnightHook) - call TriggerAddCondition(st___prototype10[22],Condition(function sa___prototype10_WoWReforgedOldHorde___RemoveDeathKnightHook)) + call TriggerAddAction(st___prototype10[22],function sa___prototype10_WoWReforgedOldHorde__RemoveDeathKnightHook) + call TriggerAddCondition(st___prototype10[22],Condition(function sa___prototype10_WoWReforgedOldHorde__RemoveDeathKnightHook)) set st___prototype384[1]=CreateTrigger() call TriggerAddAction(st___prototype384[1],function sa___prototype384_FilterAlliedTargetsNonStructureMana) call TriggerAddCondition(st___prototype384[1],Condition(function sa___prototype384_FilterAlliedTargetsNonStructureMana)) @@ -202329,14 +202329,14 @@ function jasshelper__initstructs214021421 takes nothing returns nothing call TriggerAddAction(st___prototype384[6],function sa___prototype384_FilterEnemyTargetsNonStructure) call TriggerAddCondition(st___prototype384[6],Condition(function sa___prototype384_FilterEnemyTargetsNonStructure)) set st___prototype184[3]=CreateTrigger() - call TriggerAddAction(st___prototype184[3],function sa___prototype184_SpellsMeteorKnockbackType__onUnitHit) - call TriggerAddCondition(st___prototype184[3],Condition(function sa___prototype184_SpellsMeteorKnockbackType__onUnitHit)) + call TriggerAddAction(st___prototype184[3],function sa___prototype184_SpellsMeteorKnockbackType___onUnitHit) + call TriggerAddCondition(st___prototype184[3],Condition(function sa___prototype184_SpellsMeteorKnockbackType___onUnitHit)) set st___prototype185[3]=CreateTrigger() - call TriggerAddAction(st___prototype185[3],function sa___prototype185_SpellsMeteorKnockbackType__onDestructableHit) - call TriggerAddCondition(st___prototype185[3],Condition(function sa___prototype185_SpellsMeteorKnockbackType__onDestructableHit)) + call TriggerAddAction(st___prototype185[3],function sa___prototype185_SpellsMeteorKnockbackType___onDestructableHit) + call TriggerAddCondition(st___prototype185[3],Condition(function sa___prototype185_SpellsMeteorKnockbackType___onDestructableHit)) set st___prototype186[3]=CreateTrigger() - call TriggerAddAction(st___prototype186[3],function sa___prototype186_SpellsMeteorKnockbackType__filterFunction) - call TriggerAddCondition(st___prototype186[3],Condition(function sa___prototype186_SpellsMeteorKnockbackType__filterFunction)) + call TriggerAddAction(st___prototype186[3],function sa___prototype186_SpellsMeteorKnockbackType___filterFunction) + call TriggerAddCondition(st___prototype186[3],Condition(function sa___prototype186_SpellsMeteorKnockbackType___filterFunction)) set st___prototype184[4]=CreateTrigger() call TriggerAddAction(st___prototype184[4],function sa___prototype184_SpellsSlideKnockbackType__onUnitHit) call TriggerAddCondition(st___prototype184[4],Condition(function sa___prototype184_SpellsSlideKnockbackType__onUnitHit)) @@ -202356,59 +202356,59 @@ function jasshelper__initstructs214021421 takes nothing returns nothing call TriggerAddAction(st___prototype91[6],function sa___prototype91_WoWReforgedEvolution___HookBlzDecPlayerTechResearched) call TriggerAddCondition(st___prototype91[6],Condition(function sa___prototype91_WoWReforgedEvolution___HookBlzDecPlayerTechResearched)) set st___prototype10[23]=CreateTrigger() - call TriggerAddAction(st___prototype10[23],function sa___prototype10_WoWReforgedSummonedUnits__RemoveUnitHook) - call TriggerAddCondition(st___prototype10[23],Condition(function sa___prototype10_WoWReforgedSummonedUnits__RemoveUnitHook)) + call TriggerAddAction(st___prototype10[23],function sa___prototype10_WoWReforgedSummonedUnits___RemoveUnitHook) + call TriggerAddCondition(st___prototype10[23],Condition(function sa___prototype10_WoWReforgedSummonedUnits___RemoveUnitHook)) set st___prototype211[1]=CreateTrigger() call TriggerAddAction(st___prototype211[1],function sa___prototype211_HookAddUnitToGroup) call TriggerAddCondition(st___prototype211[1],Condition(function sa___prototype211_HookAddUnitToGroup)) set st___prototype10[24]=CreateTrigger() - call TriggerAddAction(st___prototype10[24],function sa___prototype10_WoWReforgedEnchanter__EnchanterSystemRemoveUnit) - call TriggerAddCondition(st___prototype10[24],Condition(function sa___prototype10_WoWReforgedEnchanter__EnchanterSystemRemoveUnit)) + call TriggerAddAction(st___prototype10[24],function sa___prototype10_WoWReforgedEnchanter___EnchanterSystemRemoveUnit) + call TriggerAddCondition(st___prototype10[24],Condition(function sa___prototype10_WoWReforgedEnchanter___EnchanterSystemRemoveUnit)) set st___prototype10[25]=CreateTrigger() - call TriggerAddAction(st___prototype10[25],function sa___prototype10_WoWReforgedInscriptor__InscriptorSystemRemoveUnit) - call TriggerAddCondition(st___prototype10[25],Condition(function sa___prototype10_WoWReforgedInscriptor__InscriptorSystemRemoveUnit)) + call TriggerAddAction(st___prototype10[25],function sa___prototype10_WoWReforgedInscriptor___InscriptorSystemRemoveUnit) + call TriggerAddCondition(st___prototype10[25],Condition(function sa___prototype10_WoWReforgedInscriptor___InscriptorSystemRemoveUnit)) set st___prototype453[1]=CreateTrigger() - call TriggerAddAction(st___prototype453[1],function sa___prototype453_WoWReforgedAchievements__QuestSetCompletedBJHook) - call TriggerAddCondition(st___prototype453[1],Condition(function sa___prototype453_WoWReforgedAchievements__QuestSetCompletedBJHook)) + call TriggerAddAction(st___prototype453[1],function sa___prototype453_WoWReforgedAchievements___QuestSetCompletedBJHook) + call TriggerAddCondition(st___prototype453[1],Condition(function sa___prototype453_WoWReforgedAchievements___QuestSetCompletedBJHook)) set st___prototype10[26]=CreateTrigger() - call TriggerAddAction(st___prototype10[26],function sa___prototype10_WoWReforgedThievesGuild__RemoveUnitHook) - call TriggerAddCondition(st___prototype10[26],Condition(function sa___prototype10_WoWReforgedThievesGuild__RemoveUnitHook)) + call TriggerAddAction(st___prototype10[26],function sa___prototype10_WoWReforgedThievesGuild___RemoveUnitHook) + call TriggerAddCondition(st___prototype10[26],Condition(function sa___prototype10_WoWReforgedThievesGuild___RemoveUnitHook)) set st___prototype10[27]=CreateTrigger() - call TriggerAddAction(st___prototype10[27],function sa___prototype10_WoWReforgedWrapUp___HookRemoveConstructedBuilding) - call TriggerAddCondition(st___prototype10[27],Condition(function sa___prototype10_WoWReforgedWrapUp___HookRemoveConstructedBuilding)) + call TriggerAddAction(st___prototype10[27],function sa___prototype10_WoWReforgedWrapUp__HookRemoveConstructedBuilding) + call TriggerAddCondition(st___prototype10[27],Condition(function sa___prototype10_WoWReforgedWrapUp__HookRemoveConstructedBuilding)) set st___prototype26[1]=CreateTrigger() - call TriggerAddAction(st___prototype26[1],function sa___prototype26_WoWReforgedCalendar__StartEaster) - call TriggerAddCondition(st___prototype26[1],Condition(function sa___prototype26_WoWReforgedCalendar__StartEaster)) + call TriggerAddAction(st___prototype26[1],function sa___prototype26_WoWReforgedCalendar___StartEaster) + call TriggerAddCondition(st___prototype26[1],Condition(function sa___prototype26_WoWReforgedCalendar___StartEaster)) set st___prototype26[2]=CreateTrigger() - call TriggerAddAction(st___prototype26[2],function sa___prototype26_WoWReforgedCalendar__EndEaster) - call TriggerAddCondition(st___prototype26[2],Condition(function sa___prototype26_WoWReforgedCalendar__EndEaster)) + call TriggerAddAction(st___prototype26[2],function sa___prototype26_WoWReforgedCalendar___EndEaster) + call TriggerAddCondition(st___prototype26[2],Condition(function sa___prototype26_WoWReforgedCalendar___EndEaster)) set st___prototype26[3]=CreateTrigger() - call TriggerAddAction(st___prototype26[3],function sa___prototype26_WoWReforgedCalendar__StartChristmas) - call TriggerAddCondition(st___prototype26[3],Condition(function sa___prototype26_WoWReforgedCalendar__StartChristmas)) + call TriggerAddAction(st___prototype26[3],function sa___prototype26_WoWReforgedCalendar___StartChristmas) + call TriggerAddCondition(st___prototype26[3],Condition(function sa___prototype26_WoWReforgedCalendar___StartChristmas)) set st___prototype26[4]=CreateTrigger() - call TriggerAddAction(st___prototype26[4],function sa___prototype26_WoWReforgedCalendar__EndChristmas) - call TriggerAddCondition(st___prototype26[4],Condition(function sa___prototype26_WoWReforgedCalendar__EndChristmas)) + call TriggerAddAction(st___prototype26[4],function sa___prototype26_WoWReforgedCalendar___EndChristmas) + call TriggerAddCondition(st___prototype26[4],Condition(function sa___prototype26_WoWReforgedCalendar___EndChristmas)) set st___prototype26[5]=CreateTrigger() - call TriggerAddAction(st___prototype26[5],function sa___prototype26_WoWReforgedCalendar__StartNewYear) - call TriggerAddCondition(st___prototype26[5],Condition(function sa___prototype26_WoWReforgedCalendar__StartNewYear)) + call TriggerAddAction(st___prototype26[5],function sa___prototype26_WoWReforgedCalendar___StartNewYear) + call TriggerAddCondition(st___prototype26[5],Condition(function sa___prototype26_WoWReforgedCalendar___StartNewYear)) set st___prototype26[6]=CreateTrigger() - call TriggerAddAction(st___prototype26[6],function sa___prototype26_WoWReforgedCalendar__EndNewYear) - call TriggerAddCondition(st___prototype26[6],Condition(function sa___prototype26_WoWReforgedCalendar__EndNewYear)) + call TriggerAddAction(st___prototype26[6],function sa___prototype26_WoWReforgedCalendar___EndNewYear) + call TriggerAddCondition(st___prototype26[6],Condition(function sa___prototype26_WoWReforgedCalendar___EndNewYear)) set st___prototype144[1]=CreateTrigger() - call TriggerAddAction(st___prototype144[1],function sa___prototype144_WoWReforgedPortals__HookWaygateActivate) - call TriggerAddCondition(st___prototype144[1],Condition(function sa___prototype144_WoWReforgedPortals__HookWaygateActivate)) + call TriggerAddAction(st___prototype144[1],function sa___prototype144_WoWReforgedPortals___HookWaygateActivate) + call TriggerAddCondition(st___prototype144[1],Condition(function sa___prototype144_WoWReforgedPortals___HookWaygateActivate)) set st___prototype475[1]=CreateTrigger() - call TriggerAddAction(st___prototype475[1],function sa___prototype475_WoWReforgedPortals__HookWaygateActivateBJ) - call TriggerAddCondition(st___prototype475[1],Condition(function sa___prototype475_WoWReforgedPortals__HookWaygateActivateBJ)) + call TriggerAddAction(st___prototype475[1],function sa___prototype475_WoWReforgedPortals___HookWaygateActivateBJ) + call TriggerAddCondition(st___prototype475[1],Condition(function sa___prototype475_WoWReforgedPortals___HookWaygateActivateBJ)) set st___prototype243[1]=CreateTrigger() - call TriggerAddAction(st___prototype243[1],function sa___prototype243_WoWReforgedPortals__HookWaygateSetDestination) - call TriggerAddCondition(st___prototype243[1],Condition(function sa___prototype243_WoWReforgedPortals__HookWaygateSetDestination)) + call TriggerAddAction(st___prototype243[1],function sa___prototype243_WoWReforgedPortals___HookWaygateSetDestination) + call TriggerAddCondition(st___prototype243[1],Condition(function sa___prototype243_WoWReforgedPortals___HookWaygateSetDestination)) set st___prototype476[1]=CreateTrigger() - call TriggerAddAction(st___prototype476[1],function sa___prototype476_WoWReforgedPortals__HookWaygateSetDestinationLocBJ) - call TriggerAddCondition(st___prototype476[1],Condition(function sa___prototype476_WoWReforgedPortals__HookWaygateSetDestinationLocBJ)) + call TriggerAddAction(st___prototype476[1],function sa___prototype476_WoWReforgedPortals___HookWaygateSetDestinationLocBJ) + call TriggerAddCondition(st___prototype476[1],Condition(function sa___prototype476_WoWReforgedPortals___HookWaygateSetDestinationLocBJ)) set st___prototype10[28]=CreateTrigger() - call TriggerAddAction(st___prototype10[28],function sa___prototype10_WoWReforgedEquipment___RemoveUnitHook) - call TriggerAddCondition(st___prototype10[28],Condition(function sa___prototype10_WoWReforgedEquipment___RemoveUnitHook)) + call TriggerAddAction(st___prototype10[28],function sa___prototype10_WoWReforgedEquipment__RemoveUnitHook) + call TriggerAddCondition(st___prototype10[28],Condition(function sa___prototype10_WoWReforgedEquipment__RemoveUnitHook)) set st___prototype38[1]=CreateTrigger() call TriggerAddAction(st___prototype38[1],function sa___prototype38_s__MapChanger_changeMap) call TriggerAddCondition(st___prototype38[1],Condition(function sa___prototype38_s__MapChanger_changeMap)) diff --git a/wowr.w3x/war3map.w3i b/wowr.w3x/war3map.w3i index ae714990..d0c76a6e 100644 Binary files a/wowr.w3x/war3map.w3i and b/wowr.w3x/war3map.w3i differ diff --git a/wowr.w3x/war3map.wct b/wowr.w3x/war3map.wct index e2cd32fe..cfcf5500 100644 Binary files a/wowr.w3x/war3map.wct and b/wowr.w3x/war3map.wct differ diff --git a/wowr.w3x/war3map.wpm b/wowr.w3x/war3map.wpm index e3fccfe6..5b7fff0f 100644 Binary files a/wowr.w3x/war3map.wpm and b/wowr.w3x/war3map.wpm differ diff --git a/wowr.w3x/war3map.wtg b/wowr.w3x/war3map.wtg index a44de922..cf8fcc19 100644 Binary files a/wowr.w3x/war3map.wtg and b/wowr.w3x/war3map.wtg differ