1234567891011121314151617181920212223242526272829303132333435363738 |
- --[[
- Script Name : SpawnScripts/FarJourneyFreeport/HelmsmanNyles.lua
- Script Author : Premierio015
- Script Date : 2022.04.30 05:04:27
- Script Purpose : Bypasses Boat/tutorial and Zones players to their cities/starting areas
- :
- --]]
- function spawn(NPC)
-
- end
- function hailed(NPC, Spawn)
- local conversation = CreateConversation()
- AddConversationOption(conversation, "Yes", "leave")
- AddConversationOption(conversation, "No")
- StartConversation(conversation, NPC, Spawn, " Head for land? [Leave The Far Journey?]")
- end
- function leave(NPC, Spawn)
- if GetLevel(Spawn)<2 then
- SetPlayerLevel(Spawn,2)
- end
- if HasQuest(Spawn, 524)then
- fail(Spawn, 524)
- end
- if GetDeity(Spawn) == 1 then
- ZoneRef = GetZone("QueensColony")
- Zone(ZoneRef,Spawn)
- elseif GetDeity(Spawn) ~= 1 then
- ZoneRef = GetZone("OutpostOverlord")
- Zone(ZoneRef,Spawn)
- end
- end
- function respawn(NPC)
- spawn(NPC)
- end
|