adirtygraverobbernote.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : ItemScripts/adirtygraverobbernote.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.14 01:11:25
  5. Script Purpose :
  6. :
  7. --]]
  8. local NatashaNote = 5927
  9. function examined(Item, Player)
  10. if CanReceiveQuest(Player,NatashaNote) then
  11. Dialog1(Item,Player)
  12. else
  13. conversation = CreateConversation()
  14. AddConversationOption(conversation, "[Keep the note]")
  15. AddConversationOption(conversation, "[Toss the note to the away]", "QuestFinish")
  16. StartDialogConversation(conversation, 2, Item, Player, "You've seen this note before. It reads... \n\n\"We may have found a new burial site! Rumor is this may be the richest crypt yet! Gather at our usual spot tomorrow night. Do not let that rat Tarakh know about this or so help me I'll have your mangy tail dangling from my wall... Love, Natasha\"")
  17. end
  18. end
  19. function Dialog1(Item,Player)
  20. conversation = CreateConversation()
  21. if CanReceiveQuest(Player,NatashaNote) then
  22. AddConversationOption(conversation, "[Read the note]", "Dialog2")
  23. end
  24. AddConversationOption(conversation, "[Put the note away]", "CloseItemConversation")
  25. StartDialogConversation(conversation, 2, Item, Player, "This filthy bit of crumpled paper has the stench of death on it. The words are still legible.")
  26. end
  27. function Dialog2(Item,Player)
  28. conversation = CreateConversation()
  29. if CanReceiveQuest(Player,NatashaNote) then
  30. AddConversationOption(conversation, "[Write \"Tarakh\" in your journal]", "Offer")
  31. end
  32. AddConversationOption(conversation, "[Put the note away]", "CloseItemConversation")
  33. StartDialogConversation(conversation, 2, Item, Player, "\"We may have found a new burial site! Rumor is this may be the richest crypt yet! Gather at our usual spot tomorrow night. Do not let that rat Tarakh know about this or so help me I'll have your mangy tail dangling from my wall... Love, Natasha\"")
  34. end
  35. function Offer(Item,Player)
  36. if CanReceiveQuest(Player,NatashaNote) then
  37. OfferQuest(nil,Player,NatashaNote)
  38. end
  39. CloseItemConversation(Item,Player)
  40. end
  41. function QuestFinish(Item,Player)
  42. CloseItemConversation(Item,Player)
  43. if HasItem(Player,1568,1) then
  44. RemoveItem(Player,1568)
  45. end
  46. end