HelmsmanNyles.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/HelmsmanNyles.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.04.30 05:04:27
  5. Script Purpose : Bypasses Boat/tutorial and Zones players to their cities/starting areas
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. local conversation = CreateConversation()
  12. AddConversationOption(conversation, "Yes", "leave")
  13. AddConversationOption(conversation, "No")
  14. StartConversation(conversation, NPC, Spawn, " Head for land? [Leave The Far Journey?]")
  15. end
  16. function leave(NPC, Spawn)
  17. if GetLevel(Spawn)<2 then
  18. SetPlayerLevel(Spawn,2)
  19. end
  20. if HasQuest(Spawn, 524)then
  21. fail(Spawn, 524)
  22. end
  23. if GetDeity(Spawn) == 1 then
  24. ZoneRef = GetZone("QueensColony")
  25. Zone(ZoneRef,Spawn)
  26. elseif GetDeity(Spawn) ~= 1 then
  27. ZoneRef = GetZone("OutpostOverlord")
  28. Zone(ZoneRef,Spawn)
  29. end
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end