123456789101112131415161718192021222324252627282930313233343536373839 |
- --[[
- Script Name : SpawnScripts/Baubbleshire/invisiblecube1.lua
- Script Author : Dorbin
- Script Date : 2023.03.16 06:03:00
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 12, "InRange", "LeaveRange")
- end
- function InRange(NPC, Spawn) --Quest Callout
- --QUEST CHECK, CHECKS EACH RACE SUBURB
-
- if GetFactionAmount(Spawn,11)>-1 then
-
- if not HasQuest(Spawn,5760) and not HasCompletedQuest(Spawn, 5760) and
- not HasQuest(Spawn,5761) and not HasCompletedQuest(Spawn, 5761) and
- not HasQuest(Spawn,5762) and not HasCompletedQuest(Spawn, 5762) and
- not HasQuest(Spawn,5763) and not HasCompletedQuest(Spawn, 5763) and
- not HasQuest(Spawn,5764) and not HasCompletedQuest(Spawn, 5764) and
- not HasQuest(Spawn,5765) and not HasCompletedQuest(Spawn, 5765) and
- --QUEST CHECK FOR ISLE OF REFUGE QUEST AND OFFERED QUEST
- not HasQuest(Spawn, 5717) and not HasQuest(Spawn, 5792) then
- OfferQuest(NPC,Spawn,5792)
- conversation = CreateConversation()
- PlayFlavor(Spawn, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_9.mp3", "", "", 2292019727, 2112049669, Spawn)
- AddConversationOption(conversation, " ")
- StartDialogConversation(conversation, 1, NPC, Spawn, "The voice of Queen Antonia Bayle enters your mind as you step forward... \n\n\"Prepare yourself. When you enter the city gates, you accept the challenge of citizenship.\"")
- end
- end
- end
- function respawn(NPC)
- spawn(NPC)
- end
|