9
3

JolinaFairfeathersGravestone.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Antonica/JolinaFairfeathersGravestone.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.13 06:05:58
  5. Script Purpose :
  6. :
  7. --]]
  8. quest = 5816
  9. function casted_on(NPC, Player, Message)
  10. if Message == "inspect" then
  11. conversation = CreateConversation()
  12. if CanReceiveQuest(Player,quest) then
  13. AddConversationOption(conversation, "Brush off the gravestone and read the inscription.","Inscription")
  14. AddConversationOption(conversation, "Leave the gravestone.")
  15. StartDialogConversation(conversation, 1, NPC, Player, "You see a gravestone heavily covered in dust and grime. Underneath the dirt you can barely make out an inscription.")
  16. else
  17. AddConversationOption(conversation, "Leave the gravestone.")
  18. StartDialogConversation(conversation, 1, NPC, Player, "\"Here lies Jolina Fairfeather. Loving wife and mother. And a lover of nature. She was robbed and killed by highwaymen for nothing more than a bag of seeds and a loaf of bread.\"")
  19. end
  20. end
  21. end
  22. function Inscription(NPC, Player)
  23. conversation = CreateConversation()
  24. AddConversationOption(conversation, "I will bring the highwaymen to justice!","QuestStart")
  25. AddConversationOption(conversation, "Leave the gravestone.")
  26. StartDialogConversation(conversation, 1, NPC, Player, "After clearing some of the dirt from the gravestone with your hand you read: \n\n\"Here lies Jolina Fairfeather. Loving wife and mother. And a lover of nature. She was robbed and killed by highwaymen for nothing more than a bag of seeds and a loaf of bread.\"")
  27. end
  28. function QuestStart(NPC,Player)
  29. CloseConversation(NPC,Player)
  30. OfferQuest(NPC, Player, quest)
  31. end