zonetoqeycity.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/QeynosCitizenshipTrialChamber/zonetoqeycity.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.08.31 11:08:54
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC, 5718, 8, 0, 1)
  10. SetRequiredQuest(NPC, 5719, 8, 0, 1)
  11. SetRequiredQuest(NPC, 5720, 8, 0, 1)
  12. SetRequiredQuest(NPC, 5721, 8, 0, 1)
  13. SetRequiredQuest(NPC, 5722, 8, 0, 1)
  14. SetRequiredQuest(NPC, 5723, 8, 0, 1)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function casted_on(NPC, Spawn,SpellName)
  20. if SpellName == 'Enter Qeynos' then
  21. if GetRace(Spawn)== 7 or GetRace(Spawn)== 5 then -- Gnomes/Halflings
  22. EG_BB = GetZone("elddargrove")
  23. Zone(EG_BB,Spawn,813.68,-20.95,-531.66,81.23)
  24. elseif GetRace(Spawn)== 0 or GetRace(Spawn)== 2 then -- Dwarves/Barbarians
  25. QH_Gray = GetZone("qeynosharbor")
  26. Zone(QH_Gray,Spawn,861.05, -25.42, -84.63, 185.23)
  27. elseif GetRace(Spawn)== 4 or GetRace(Spawn)== 8 then -- Highelves, Froglocks
  28. QH_CV = GetZone("qeynosharbor")
  29. Zone(QH_CV,Spawn,718.28, -20.87, -114.23, 154.22)
  30. elseif GetRace(Spawn)== 9 or GetRace(Spawn)== 11 then -- Humans, Kerra
  31. SQ_Net = GetZone("southqeynos")
  32. Zone(SQ_Net,Spawn,680.79, -20.56, 270.90, 297.71)
  33. elseif GetRace(Spawn)== 3 then -- Erudites
  34. SQ_SC = GetZone("southqeynos")
  35. Zone(SQ_SC,Spawn,693.67, -20.47, 267.62, 96.96)
  36. elseif GetRace(Spawn)== 15 or GetRace(Spawn)== 16 or GetRace(Spawn)== 6 then -- Woodelves, Halfelves, Fae
  37. EG_WW = GetZone("elddargrove")
  38. Zone(EG_WW,Spawn,808.49, -21.59, -560.27, 162.00)
  39. else
  40. SQ_Net = GetZone("southqeynos")
  41. Zone(SQ_Net,Spawn,680.79, -20.56, 270.90, 297.71)
  42. end
  43. end
  44. end