• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Custom UI Desync Issue

Status
Not open for further replies.
Level 7
Joined
Nov 6, 2019
Messages
186
Basically, i use a lot of Custom UI's for my map, however one of them, seems to sometimes crash when clicking buy button.

Now i know

  • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
Can Desync sometimes, however the button u click buy with doesn't use that at all

  • BCPress
    • Events
      • Game - WLeft becomes Not equal to 0.00
      • Game - WRight becomes Not equal to 0.00
      • Game - WBuy becomes Not equal to 0.00
      • Game - TLeft becomes Not equal to 0.00
      • Game - TRight becomes Not equal to 0.00
      • Game - TBuy becomes Not equal to 0.00
      • Game - PLeft becomes Not equal to 0.00
      • Game - PRight becomes Not equal to 0.00
      • Game - PBuy becomes Not equal to 0.00
      • Game - BCClose becomes Not equal to 0.00
    • Conditions
    • Actions
      • -------- Close Button --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • BCClose Not equal to 0.00
        • Then - Actions
          • Set VariableSet BCClose = 0.00
          • Set VariableSet BCLimit = 0
          • Custom script: call BlzFrameSetVisible(BlockChainUI, false)
          • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of BCPlayer) + has |cff800000left|r the BlockChain.))
          • Trigger - Turn off BCDistance <gen>
        • Else - Actions
      • -------- Wings Left --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WLeft Not equal to 0.00
          • WingsInt Equal to 0
        • Then - Actions
          • Set VariableSet WLeft = 0.00
          • Set VariableSet WingsInt = 9
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 0
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[1], false)
              • Custom script: call BlzFrameSetVisible(WingsC[0], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 1
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[2], false)
              • Custom script: call BlzFrameSetVisible(WingsC[1], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 2
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[3], false)
              • Custom script: call BlzFrameSetVisible(WingsC[2], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 3
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[4], false)
              • Custom script: call BlzFrameSetVisible(WingsC[3], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 4
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[5], false)
              • Custom script: call BlzFrameSetVisible(WingsC[4], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 5
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[6], false)
              • Custom script: call BlzFrameSetVisible(WingsC[5], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 6
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[7], false)
              • Custom script: call BlzFrameSetVisible(WingsC[6], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 7
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[8], false)
              • Custom script: call BlzFrameSetVisible(WingsC[7], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 8
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[9], false)
              • Custom script: call BlzFrameSetVisible(WingsC[8], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 9
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[0], false)
              • Custom script: call BlzFrameSetVisible(WingsC[9], true)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WLeft Not equal to 0.00
              • WingsInt Greater than 0
            • Then - Actions
              • Set VariableSet WLeft = 0.00
              • Set VariableSet WingsInt = (WingsInt - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 0
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[1], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[0], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 1
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[2], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[1], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 2
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[3], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[2], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 3
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[4], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[3], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 4
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[5], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[4], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 5
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[6], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[5], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 6
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[7], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[6], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 7
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[8], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[7], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 8
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[9], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[8], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 9
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[0], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[9], true)
                • Else - Actions
            • Else - Actions
      • -------- Wings Right --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WRight Not equal to 0.00
          • WingsInt Equal to 9
        • Then - Actions
          • Set VariableSet WRight = 0.00
          • Set VariableSet WingsInt = 0
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 0
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[9], false)
              • Custom script: call BlzFrameSetVisible(WingsC[0], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 1
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[0], false)
              • Custom script: call BlzFrameSetVisible(WingsC[1], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 2
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[1], false)
              • Custom script: call BlzFrameSetVisible(WingsC[2], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 3
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[2], false)
              • Custom script: call BlzFrameSetVisible(WingsC[3], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 4
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[3], false)
              • Custom script: call BlzFrameSetVisible(WingsC[4], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 5
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[4], false)
              • Custom script: call BlzFrameSetVisible(WingsC[5], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 6
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[5], false)
              • Custom script: call BlzFrameSetVisible(WingsC[6], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 7
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[6], false)
              • Custom script: call BlzFrameSetVisible(WingsC[7], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 8
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[7], false)
              • Custom script: call BlzFrameSetVisible(WingsC[8], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WingsInt Equal to 9
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(WingsC[8], false)
              • Custom script: call BlzFrameSetVisible(WingsC[9], true)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WRight Not equal to 0.00
              • WingsInt Less than 9
            • Then - Actions
              • Set VariableSet WRight = 0.00
              • Set VariableSet WingsInt = (WingsInt + 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 0
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[9], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[0], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 1
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[0], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[1], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 2
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[1], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[2], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 3
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[2], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[3], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 4
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[3], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[4], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 5
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[4], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[5], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 6
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[5], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[6], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 7
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[6], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[7], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 8
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[7], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[8], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WingsInt Equal to 9
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(WingsC[8], false)
                  • Custom script: call BlzFrameSetVisible(WingsC[9], true)
                • Else - Actions
            • Else - Actions
      • -------- Wings Buy --------
      • -------- Angel Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 0
          • Wings0Int[0] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[1])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 0
              • Wings0Int[0] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[0] = 1
              • Set VariableSet WingsOString[1] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[0], udg_WingsOString[1])
              • Item - Create |cffc0c0c0Angel|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 0
                  • Wings0Int[0] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Bronze Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 1
          • Wings0Int[1] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[2])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 1
              • Wings0Int[1] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[1] = 1
              • Set VariableSet WingsOString[2] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[1], udg_WingsOString[2])
              • Item - Create |cff964b00Bronze|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 1
                  • Wings0Int[1] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Death Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 2
          • Wings0Int[2] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[3])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 2
              • Wings0Int[2] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[2] = 1
              • Set VariableSet WingsOString[3] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[2], udg_WingsOString[3])
              • Item - Create |cff404040Death|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 2
                  • Wings0Int[2] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Dread Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 3
          • Wings0Int[3] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[4])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 3
              • Wings0Int[3] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[3] = 1
              • Set VariableSet WingsOString[4] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[3], udg_WingsOString[4])
              • Item - Create |cff800000Dread|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 3
                  • Wings0Int[3] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Fire 'n' Ice Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 4
          • Wings0Int[4] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[5])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 4
              • Wings0Int[4] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[4] = 1
              • Set VariableSet WingsOString[5] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[4], udg_WingsOString[5])
              • Item - Create |cffff0000Ice|r 'n' |cff00ffffFire|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 4
                  • Wings0Int[4] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Frosty Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 5
          • Wings0Int[5] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[6])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 5
              • Wings0Int[5] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[5] = 1
              • Set VariableSet WingsOString[6] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[5], udg_WingsOString[6])
              • Item - Create |cff00ffffFrosty|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 5
                  • Wings0Int[5] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Gold Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 6
          • Wings0Int[6] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[7])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 6
              • Wings0Int[6] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[6] = 1
              • Set VariableSet WingsOString[7] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[6], udg_WingsOString[7])
              • Item - Create |cff808000Golden|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 6
                  • Wings0Int[6] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Sun Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 7
          • Wings0Int[7] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[8])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 7
              • Wings0Int[7] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[7] = 1
              • Set VariableSet WingsOString[8] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[7], udg_WingsOString[8])
              • Item - Create |cffff0000Sun|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 7
                  • Wings0Int[7] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Valor Wings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 8
          • Wings0Int[8] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[9])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 8
              • Wings0Int[8] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[8] = 1
              • Set VariableSet WingsOString[9] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[8], udg_WingsOString[9])
              • Item - Create |cffd45e19Valor|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 8
                  • Wings0Int[8] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Dragon --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WBuy Not equal to 0.00
          • WingsInt Equal to 9
          • Wings0Int[9] Equal to 1
        • Then - Actions
          • Set VariableSet WBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: Them wings are already owned by + WingsOString[10])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WBuy Not equal to 0.00
              • WingsInt Equal to 9
              • Wings0Int[9] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 5000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 5000)
              • Set VariableSet WBuy = 0.00
              • Set VariableSet Wings0Int[9] = 1
              • Set VariableSet WingsOString[10] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(WingOC[9], udg_WingsOString[10])
              • Item - Create |cff800080Dragon|r Wings at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet WingsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + WingsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WBuy Not equal to 0.00
                  • WingsInt Equal to 9
                  • Wings0Int[9] Equal to 0
                • Then - Actions
                  • Set VariableSet WBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 5000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Trail Left --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TLeft Not equal to 0.00
          • TrailsInt Equal to 0
        • Then - Actions
          • Set VariableSet TLeft = 0.00
          • Set VariableSet TrailsInt = 9
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 0
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[1], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[0], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 1
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[2], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[1], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 2
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[3], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[2], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 3
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[4], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[3], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 4
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[5], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[4], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 5
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[6], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[5], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 6
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[7], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[6], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 7
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[8], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[7], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 8
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[9], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[8], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 9
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[0], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[9], true)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TLeft Not equal to 0.00
              • TrailsInt Greater than 0
            • Then - Actions
              • Set VariableSet TLeft = 0.00
              • Set VariableSet TrailsInt = (TrailsInt - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 0
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[1], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[0], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 1
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[2], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[1], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 2
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[3], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[2], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 3
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[4], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[3], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 4
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[5], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[4], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 5
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[6], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[5], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 6
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[7], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[6], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 7
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[8], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[7], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 8
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[9], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[8], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 9
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[0], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[9], true)
                • Else - Actions
            • Else - Actions
      • -------- Trail Right --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TRight Not equal to 0.00
          • TrailsInt Equal to 9
        • Then - Actions
          • Set VariableSet TRight = 0.00
          • Set VariableSet TrailsInt = 0
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 0
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[9], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[0], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 1
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[0], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[1], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 2
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[1], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[2], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 3
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[2], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[3], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 4
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[3], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[4], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 5
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[4], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[5], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 6
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[5], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[6], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 7
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[6], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[7], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 8
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[7], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[8], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TrailsInt Equal to 9
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(TrailsC[8], false)
              • Custom script: call BlzFrameSetVisible(TrailsC[9], true)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TRight Not equal to 0.00
              • TrailsInt Less than 9
            • Then - Actions
              • Set VariableSet TRight = 0.00
              • Set VariableSet TrailsInt = (TrailsInt + 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 0
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[9], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[0], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 1
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[0], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[1], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 2
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[1], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[2], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 3
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[2], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[3], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 4
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[3], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[4], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 5
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[4], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[5], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 6
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[5], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[6], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 7
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[6], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[7], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 8
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[7], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[8], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TrailsInt Equal to 9
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(TrailsC[8], false)
                  • Custom script: call BlzFrameSetVisible(TrailsC[9], true)
                • Else - Actions
            • Else - Actions
      • -------- Trail Buy --------
      • -------- Money Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 0
          • TrailsOInt[0] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[1])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 0
              • TrailsOInt[0] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[0] = 1
              • Set VariableSet TrailsOString[1] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[0], udg_TrailsOString[1])
              • Item - Create |cff008000Money|r Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 0
                  • TrailsOInt[0] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Flaming Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 1
          • TrailsOInt[1] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[2])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 1
              • TrailsOInt[1] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[1] = 1
              • Set VariableSet TrailsOString[2] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[1], udg_TrailsOString[2])
              • Item - Create |cffd45e19Flaming|r Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 1
                  • TrailsOInt[1] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Soviet Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 2
          • TrailsOInt[2] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[3])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 2
              • TrailsOInt[2] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[2] = 1
              • Set VariableSet TrailsOString[3] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[2], udg_TrailsOString[3])
              • Item - Create |cffff0000Soviet|r Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 2
                  • TrailsOInt[2] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Blood Ritual Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 3
          • TrailsOInt[3] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[4])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 3
              • TrailsOInt[3] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[3] = 1
              • Set VariableSet TrailsOString[4] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[3], udg_TrailsOString[4])
              • Item - Create |cff800000Blood|r Ritual Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 3
                  • TrailsOInt[3] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Toxin Ritual Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 4
          • TrailsOInt[4] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[5])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 4
              • TrailsOInt[4] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[4] = 1
              • Set VariableSet TrailsOString[5] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[4], udg_TrailsOString[5])
              • Item - Create |cff00ff00Toxin|r Ritual Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 4
                  • TrailsOInt[4] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Void Ritual Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 5
          • TrailsOInt[5] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[6])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 5
              • TrailsOInt[5] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[5] = 1
              • Set VariableSet TrailsOString[6] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[5], udg_TrailsOString[6])
              • Item - Create |cff800080Void|r Ritual Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 5
                  • TrailsOInt[5] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Wicker Ritual Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 6
          • TrailsOInt[6] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[7])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 6
              • TrailsOInt[6] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[6] = 1
              • Set VariableSet TrailsOString[7] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[6], udg_TrailsOString[7])
              • Item - Create |cff000080Wicker|r Ritual Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 6
                  • TrailsOInt[6] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Fortitude Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 7
          • TrailsOInt[7] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[8])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 7
              • TrailsOInt[7] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[7] = 1
              • Set VariableSet TrailsOString[8] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[7], udg_TrailsOString[8])
              • Item - Create |cff00ffffFortitude|r Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 7
                  • TrailsOInt[7] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Nuke Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 8
          • TrailsOInt[8] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[9])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 8
              • TrailsOInt[8] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[8] = 1
              • Set VariableSet TrailsOString[9] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[8], udg_TrailsOString[9])
              • Item - Create |cff808000Nuke|r Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 8
                  • TrailsOInt[8] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Eternal Aura --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TBuy Not equal to 0.00
          • TrailsInt Equal to 9
          • TrailsOInt[9] Equal to 1
        • Then - Actions
          • Set VariableSet TBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: That Aura is already owned by + TrailsOString[10])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TBuy Not equal to 0.00
              • TrailsInt Equal to 9
              • TrailsOInt[9] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 3000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 3000)
              • Set VariableSet TBuy = 0.00
              • Set VariableSet TrailsOInt[9] = 1
              • Set VariableSet TrailsOString[10] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(TrailsOC[9], udg_TrailsOString[10])
              • Item - Create |cffff8080Eternal|r Aura at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet TrailsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + TrailsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • TBuy Not equal to 0.00
                  • TrailsInt Equal to 9
                  • TrailsOInt[9] Equal to 0
                • Then - Actions
                  • Set VariableSet TBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 3000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Pets Left --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PLeft Not equal to 0.00
          • PetsInt Equal to 0
        • Then - Actions
          • Set VariableSet PLeft = 0.00
          • Set VariableSet PetsInt = 9
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 0
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[1], false)
              • Custom script: call BlzFrameSetVisible(PetsC[0], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 1
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[2], false)
              • Custom script: call BlzFrameSetVisible(PetsC[1], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 2
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[3], false)
              • Custom script: call BlzFrameSetVisible(PetsC[2], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 3
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[4], false)
              • Custom script: call BlzFrameSetVisible(PetsC[3], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 4
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[5], false)
              • Custom script: call BlzFrameSetVisible(PetsC[4], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 5
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[6], false)
              • Custom script: call BlzFrameSetVisible(PetsC[5], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 6
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[7], false)
              • Custom script: call BlzFrameSetVisible(PetsC[6], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 7
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[8], false)
              • Custom script: call BlzFrameSetVisible(PetsC[7], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 8
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[9], false)
              • Custom script: call BlzFrameSetVisible(PetsC[8], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 9
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[0], false)
              • Custom script: call BlzFrameSetVisible(PetsC[9], true)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PLeft Not equal to 0.00
              • PetsInt Greater than 0
            • Then - Actions
              • Set VariableSet PLeft = 0.00
              • Set VariableSet PetsInt = (PetsInt - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 0
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[1], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[0], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 1
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[2], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[1], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 2
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[3], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[2], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 3
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[4], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[3], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 4
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[5], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[4], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 5
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[6], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[5], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 6
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[7], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[6], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 7
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[8], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[7], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 8
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[9], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[8], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 9
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[0], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[9], true)
                • Else - Actions
            • Else - Actions
      • -------- Pets Right --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PRight Not equal to 0.00
          • PetsInt Equal to 9
        • Then - Actions
          • Set VariableSet PRight = 0.00
          • Set VariableSet PetsInt = 0
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 0
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[9], false)
              • Custom script: call BlzFrameSetVisible(PetsC[0], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 1
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[0], false)
              • Custom script: call BlzFrameSetVisible(PetsC[1], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 2
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[1], false)
              • Custom script: call BlzFrameSetVisible(PetsC[2], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 3
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[2], false)
              • Custom script: call BlzFrameSetVisible(PetsC[3], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 4
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[3], false)
              • Custom script: call BlzFrameSetVisible(PetsC[4], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 5
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[4], false)
              • Custom script: call BlzFrameSetVisible(PetsC[5], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 6
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[5], false)
              • Custom script: call BlzFrameSetVisible(PetsC[6], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 7
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[6], false)
              • Custom script: call BlzFrameSetVisible(PetsC[7], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 8
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[7], false)
              • Custom script: call BlzFrameSetVisible(PetsC[8], true)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PetsInt Equal to 9
            • Then - Actions
              • Custom script: call BlzFrameSetVisible(PetsC[8], false)
              • Custom script: call BlzFrameSetVisible(PetsC[9], true)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PRight Not equal to 0.00
              • PetsInt Less than 9
            • Then - Actions
              • Set VariableSet PRight = 0.00
              • Set VariableSet PetsInt = (PetsInt + 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 0
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[9], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[0], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 1
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[0], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[1], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 2
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[1], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[2], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 3
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[2], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[3], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 4
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[3], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[4], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 5
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[4], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[5], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 6
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[5], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[6], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 7
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[6], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[7], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 8
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[7], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[8], true)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PetsInt Equal to 9
                • Then - Actions
                  • Custom script: call BlzFrameSetVisible(PetsC[8], false)
                  • Custom script: call BlzFrameSetVisible(PetsC[9], true)
                • Else - Actions
            • Else - Actions
      • -------- Pets Buy --------
      • -------- Trike Pet --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 0
          • PetOInt[0] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[1])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 0
              • PetOInt[0] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[0] = 1
              • Set VariableSet PetsOString[1] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[0], udg_PetsOString[1])
              • Item - Create Pet |cffff8080Triceratops|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 0
                  • PetOInt[0] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Pet Swampling --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 1
          • PetOInt[1] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[2])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 1
              • PetOInt[1] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[1] = 1
              • Set VariableSet PetsOString[2] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[1], udg_PetsOString[2])
              • Item - Create Pet |cff008080Swampling|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 1
                  • PetOInt[1] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Bronto Pet --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 2
          • PetOInt[2] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[3])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 2
              • PetOInt[2] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[2] = 1
              • Set VariableSet PetsOString[3] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[2], udg_PetsOString[3])
              • Item - Create Pet |cff80ff80Bronto|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 2
                  • PetOInt[2] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Raptor Pet --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 3
          • PetOInt[3] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[4])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 3
              • PetOInt[3] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[3] = 1
              • Set VariableSet PetsOString[4] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[3], udg_PetsOString[4])
              • Item - Create Pet |cff404040Raptor|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 3
                  • PetOInt[3] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Rex Pet --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 4
          • PetOInt[4] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[5])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 4
              • PetOInt[4] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[4] = 1
              • Set VariableSet PetsOString[5] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[4], udg_PetsOString[5])
              • Item - Create Pet |cff000080Rex|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 4
                  • PetOInt[4] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Pet Golem --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 5
          • PetOInt[5] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[6])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 5
              • PetOInt[5] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[5] = 1
              • Set VariableSet PetsOString[6] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[5], udg_PetsOString[6])
              • Item - Create Pet |cff008000Golem|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 5
                  • PetOInt[5] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Pet Whelp --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 6
          • PetOInt[6] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[7])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 6
              • PetOInt[6] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[6] = 1
              • Set VariableSet PetsOString[7] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[6], udg_PetsOString[7])
              • Item - Create Pet |cff6f2583Whelp|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 6
                  • PetOInt[6] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Pet Dragon --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 7
          • PetOInt[7] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[8])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 7
              • PetOInt[7] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[7] = 1
              • Set VariableSet PetsOString[8] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[7], udg_PetsOString[8])
              • Item - Create Pet |cffff00ffDragon|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 7
                  • PetOInt[7] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Pet Pteranodon --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 8
          • PetOInt[8] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[9])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 8
              • PetOInt[8] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[8] = 1
              • Set VariableSet PetsOString[9] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[8], udg_PetsOString[9])
              • Item - Create Pet |cff808000Pteranodon|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 8
                  • PetOInt[8] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
      • -------- Pet Phoenix --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PBuy Not equal to 0.00
          • PetsInt Equal to 9
          • PetOInt[9] Equal to 1
        • Then - Actions
          • Set VariableSet PBuy = 0.00
          • Game - Display to (Player group((Triggering player))) the text: ([|cffff0000U|rD|cff0000ffA|r]: This Pet is owned by + PetsOString[10])
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PBuy Not equal to 0.00
              • PetsInt Equal to 9
              • PetOInt[9] Equal to 0
              • Score[(Player number of (Triggering player))] Greater than or equal to 5
              • ((Triggering player) Current gold) Greater than or equal to 4000
            • Then - Actions
              • Set VariableSet Score[(Player number of (Triggering player))] = (Score[(Player number of (Triggering player))] - 5)
              • Player - Set (Triggering player).Current gold to (((Triggering player) Current gold) - 4000)
              • Set VariableSet PBuy = 0.00
              • Set VariableSet PetOInt[9] = 1
              • Set VariableSet PetsOString[10] = (Name of (Triggering player))
              • Custom script: call BlzFrameSetText(PetsOC[9], udg_PetsOString[10])
              • Item - Create Pet |cffd45e19Phoenix|r at (Position of SetHeroGS[(Player number of (Triggering player))])
              • Set VariableSet PetsString = (Name of (Last created item))
              • Hero - Give (Last created item) to SetHeroGS[(Player number of (Triggering player))]
              • Game - Display to (All players) the text: ([|cffff0000U|rD|cff0000ffA|r]: + ((Name of (Triggering player)) + ( is a proud owner of + PetsString)))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PBuy Not equal to 0.00
                  • PetsInt Equal to 9
                  • PetOInt[9] Equal to 0
                • Then - Actions
                  • Set VariableSet PBuy = 0.00
                  • If (Score[(Player number of (Triggering player))] Less than 5) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                  • If (((Triggering player) Current gold) Less than 4000) then do (Game - Display to (Player group((Triggering player))) the text: [|cffff0000U|rD|cff...) else do (Do nothing)
                • Else - Actions
yes i know it messy, but ima clean it up some.

Other odd thing, i have no issue on single player or on a online game solo with it.
 
Last edited:
Level 19
Joined
Jan 3, 2022
Messages
320
There are 188 occurrences of "buy" in your GUI script. I don't know at all where to look after your description. You would do yourself and everyone a service if you tried to minimize the code only to include the button that causes the desync. Then you can ask players to test the map with you by telling them to buy items. It'll also make it easier to help you then.
Narrowing down the issue is the first step to understand where the problem is and what's causing it.
 
Status
Not open for further replies.
Top