View Single Post
11-14-16, 10:20 PM   #6
Darken5
A Murloc Raider
Join Date: Nov 2016
Posts: 7
By George I think i figured it out.


Faction Dependant Towns/Areas:
Lua Code:
  1. if not ( IsResting() ) and ( ZoneName ==Z["Dragonblight"] ) and ( ( SubZoneName == SZ["Wintergarde Keep"] ) or ( SubZoneName == SZ["The Carrion Fields"] ) or ( SubZoneName == SZ["Wintergarde Mausoleum"] ) or ( SubZoneName == SZ["Wintergarde Crypt"] ) or ( SubZoneName == SZ["Thorson's Post"] ) or ( SubZoneName == SZ["Wintergarde Mine"] ) ) and FinalFantasylization_IsPlaying == false then
  2.     if FinalFantasylization_InAllianceTownWintergardeKeep == false then
  3.         if ( factionEnglish == F["Alliance"] ) then
  4.             FinalFantasylization_debugMsg(FFZlib.Color.Aqua .. PlayerIn.. SubZoneName..", "..ZoneName)
  5.             FinalFantasylization_AllianceTownWintergardeKeep()
  6.         else
  7.             FinalFantasylization_debugMsg(FFZlib.Color.Crimson .. PlayerInHostileTown .. SubZoneName..", "..ZoneName..PlayerInHostile)
  8.             FinalFantasylization_HostileTowns() -- Music call for all towns you are hostile in.
  9.         end
  10.         FinalFantasylization_IsPlaying = true
  11.         FinalFantasylization_InAllianceTownWintergardeKeep = true
  12.     end
  13.     return
  14. else
  15.     FinalFantasylization_InAllianceTownWintergardeKeep = false
  16. end


Neutral Towns/Areas:
Lua Code:
  1. if not ( IsResting() ) and ( ZoneName == Z["Shadowmoon Valley"] ) and ( SubZoneName == SZ["Altar of Sha'tar"] ) and FinalFantasylization_IsPlaying == false then
  2.     if FinalFantasylization_InNeutralTownAltarOfShatar == false then
  3.         FinalFantasylization_debugMsg(FFZlib.Color.Aqua .. PlayerIn.. SubZoneName..", "..ZoneName)
  4.         FinalFantasylization_NeutralTownAltarOfShatar()
  5.     end
  6.     FinalFantasylization_IsPlaying = true
  7.     FinalFantasylization_InNeutralTownAltarOfShatar = true
  8.     return
  9. else
  10.     FinalFantasylization_InNeutralTownAltarOfShatar = false
  11. end


Full Zones (at bottom of list):
Lua Code:
  1. if not ( IsResting () ) and ( ZoneName == Z["Alterac Mountains"] ) and FinalFantasylization_IsPlaying == false then
  2.     if FinalFantasylization_InEasternKingdomsAlteracMountains == false then
  3.         FinalFantasylization_debugMsg(FFZlib.Color.Aqua .. PlayerIn.. ZoneName)
  4.         FinalFantasylization_EasternKingdomsAlteracMountains()
  5.     end
  6.     FinalFantasylization_IsPlaying = true
  7.     FinalFantasylization_InEasternKingdomsAlteracMountains = true
  8. else
  9.     FinalFantasylization_InEasternKingdomsAlteracMountains = false
  10. end


whole lot less code to worry about now for the future
  Reply With Quote