9
3

MutatedRatDrawing.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : ItemScripts/MutatedRatDrawing.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.17 01:05:51
  5. Script Purpose :
  6. :
  7. --]]
  8. local Quest = 5834
  9. function examined(Item, Player)
  10. if not HasCompletedQuest(Player,Quest) then
  11. Dialog1(Item,Player)
  12. else
  13. conversation = CreateConversation()
  14. if CanReceiveQuest(Player,Quest) then
  15. AddConversationOption(conversation, "These mutated creatures do not belong here!", "Offer")
  16. end
  17. AddConversationOption(conversation, "[Roll up the drawing and keep it.]")
  18. AddConversationOption(conversation, "[Get rid of it. You have done all you can against the rats for now.]", "QuestFinish")
  19. StartDialogConversation(conversation, 2, Item, Player, "This is a similar child's drawing of mutated rats eating a family you've seen before. It still turns your stomach to see it.")
  20. end
  21. end
  22. function Dialog1(Item,Player)
  23. conversation = CreateConversation()
  24. if CanReceiveQuest(Player,Quest) then
  25. AddConversationOption(conversation, "[Look closely at the drawing.]", "Dialog2")
  26. end
  27. AddConversationOption(conversation, "[Put the drawing away.]", "CloseItemConversation")
  28. StartDialogConversation(conversation, 2, Item, Player, "This appears to be a crude drawing consisting of greens, browns, and reds - similar to that of child's.")
  29. end
  30. function Dialog2(Item,Player)
  31. conversation = CreateConversation()
  32. if CanReceiveQuest(Player,Quest) then
  33. AddConversationOption(conversation, "This poor child... I must avenge this child's family!", "Offer")
  34. AddConversationOption(conversation, "These mutated creatures have no place here. I must kill them!", "Offer")
  35. end
  36. AddConversationOption(conversation, "[Put the drawing away.]", "CloseItemConversation")
  37. StartDialogConversation(conversation, 2, Item, Player, "The drawing depicts a gruesome scene with rats devouring a family on the ground while a child is crying near by. The rats look strange, with scorpion-like tails and glowing red eyes. This poor child must have witness this to draw it so accurately.")
  38. end
  39. function Offer(Item,Player)
  40. if CanReceiveQuest(Player,Quest) then
  41. OfferQuest(nil,Player,Quest)
  42. end
  43. CloseItemConversation(Item,Player)
  44. end
  45. function QuestFinish(Item,Player)
  46. CloseItemConversation(Item,Player)
  47. if HasItem(Player,11780) then
  48. RemoveItem(Player,11780,1)
  49. end
  50. end