9
3

OutpostOverlord.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : ZoneScripts/OutpostOverlord.lua
  3. Script Purpose : Zone Scripts and Location Pop-ups
  4. Script Author : Cynnar
  5. Script Date : 9/16/2018
  6. Script Notes :
  7. --]]
  8. local WelcomeToNorrath = 362
  9. local TheArtOfCombat = 132
  10. function init_zone_script(zone)
  11. SetLocationProximityFunction(zone, -13.41, -4.94, 220.74, 20, "OfferQuestLocation", "LeaveLocation")
  12. end
  13. function OfferQuestLocation (zone, Player)
  14. if GetClass(Player)==0 and GetLevel(Player)<3 then
  15. ZoneRef = GetZone("IsleRefuge1")
  16. Zone(ZoneRef,Player)
  17. elseif not HasQuest(Player, WelcomeToNorrath) and not HasCompletedQuest(Player, WelcomeToNorrath)
  18. and not HasQuest(Player, TheArtOfCombat) and not HasCompletedQuest(Player, TheArtOfCombat) then
  19. OfferQuest(nil, Player, WelcomeToNorrath)
  20. end
  21. end
  22. function LeaveLocation(zone, Player)
  23. end
  24. function player_entry(zone, Player)
  25. if GetClass(Player)==0 and GetLevel(Player)<3 then
  26. ZoneRef = GetZone("IsleRefuge1")
  27. Zone(ZoneRef,Player)
  28. else
  29. AddPlayerMail(Player, "EQ2EmulatorDevTeam", "Welcome", "Welcome to EQ2Emulator, this project is currently in Pre-Alpha. The best developed content follows the Commoner towards class progression. This is experienced by talking to Captain Varlos starting on the Far Journey or using the Desert of Flames client during character creation.\n\nWe appreciate feedback and bug reports for existing content, and are always looking for additional talent! Thank you for testing and enjoy your stay! -The EQ2EMU Team", 2)
  30. SendPopUpMessage(Player, "Outpost of the Overlord", 230, 230, 230)
  31. end
  32. end