SlaughtergrotttheVigilant.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/EastFreeport/SlaughtergrotttheVigilant.lua
  3. Script Author : Neveruary
  4. Script Date : 2022.07.22 11:07:47
  5. Script Purpose :
  6. :
  7. --]]
  8. -- declare variables
  9. local InSearchOfTheFeerrott = 5637
  10. function spawn(NPC) -- declare spawn behavior. offer quest
  11. ProvidesQuest(NPC, InSearchOfTheFeerrott)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. AddConversationOption(conversation, "Go on.", "GoOn")
  17. AddConversationOption(conversation, "Sorry, I'm not.")
  18. StartConversation(conversation, NPC, Spawn, "I need someone adept in adventuring. Are you the one? Are you willing to aid in the discovery of a land lost since the Shattering?")
  19. if not HasCompletedQuest(Spawn, InSearchOfTheFeerrott) and HasQuest(Spawn, InSearchOfTheFeerrott) then
  20. AddConversationOption(conversation, "Okay, okay.")
  21. StartConversation(conversation, NPC, Spawn, "Do as you are told, or I will crush your skull and the secrets it holds!")
  22. end
  23. end
  24. function GoOn(NPC, Spawn)
  25. AddConversationOption(conversation, "Understood.", "findFeerrott")
  26. AddConversationOption(conversation, "Don't bother me anymore.")
  27. StartConversation(conversation, NPC, Spawn, "You're interested. That's good. What we discuss from here out is secret and not to be discussed with outsiders. Is this understood?")
  28. end
  29. function findFeerrott(NPC, Spawn)
  30. AddConversationOption(conversation, "Go on.", "GoOn2")
  31. AddConversationOption(conversation, "I'm done with this. Goodbye.")
  32. StartConversation(conversation, NPC, Spawn, "You're about to help me find the Feerrott. This is no small effort, and you may need to gather a small group of adventurers to aid you.")
  33. end
  34. function GoOn2(NPC, Spawn)
  35. AddConversationOption(conversation, "I got it.", "offer")
  36. StartConversation(conversation, NPC, Spawn, "Long ago, the orcs at Zek allied themselves with the Rallosian army. The orcs are still in posssession of much of the Rallosian army's equipment that was left their empire fell. The maps or writings leading to the location of the Feerrott must be amongst them. Go to the Orcish Wastes and find this information. Got it?")
  37. end
  38. function offer(NPC, Spawn)
  39. OfferQuest(NPC, Spawn, InSearchOfTheFeerrott)
  40. end