MasterJaedra.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/MasterJaedra.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.16 08:07:00
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheStolenSupplies = 5324
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1012.mp3", "", "", 0, 0, Spawn)
  14. if not HasQuest(Spawn, TheStolenSupplies) and not HasCompletedQuest(Spawn, TheStolenSupplies) then
  15. local conversation = CreateConversation()
  16. AddConversationOption(conversation, "I am looking for work.", "Option1")
  17. AddConversationOption(conversation, "I need to leave.")
  18. StartConversation(conversation, NPC, Spawn, "Why does one like yourself feel the need to bug someone like me?")
  19. elseif GetQuestStep(Spawn, TheStolenSupplies) < 6 then
  20. PlayFlavor(NPC, "", "Hurry back with the supplies, we do not have all month to wait for you.", "", 1689589577, 4560189, Spawn)
  21. elseif GetQuestStep(Spawn, TheStolenSupplies) == 6 then
  22. QuestComplete(NPC, Spawn)
  23. elseif HasCompletedQuest(Spawn, TheStolenSupplies) then
  24. PlayFlavor(NPC, "", "Thank you again for retrieving those stolen supplies.", "bow", 1689589577, 4560189, Spawn)
  25. end
  26. end
  27. function Option1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. AddConversationOption(conversation, "I guess I could do that for you.", "offer")
  31. AddConversationOption(conversation, "I need to leave.")
  32. StartConversation(conversation, NPC, Spawn, "Mmmm... I could use some assistance with something I have been working on for the last few days. I need someone to go into the sewer system to the north of here and retrieve some stolen supplies from the goblins there.")
  33. end
  34. function offer(NPC, Spawn)
  35. OfferQuest(NPC, Spawn, TheStolenSupplies)
  36. end
  37. function QuestComplete(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. SetStepComplete(Spawn, TheStolenSupplies, 6)
  40. ddConversationOption(conversation, "You? At a party?")
  41. StartConversation(conversation, NPC, Spawn, "Thank you, it seems that the ball at the Academy of Arcane Sciences will go on. We have plenty of ale and bread now... Here, take your reward!")
  42. end
  43. function respawn(NPC)
  44. spawn(NPC)
  45. end