NotefromTayil.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : ItemScripts/NotefromTayil.lua
  3. Script Purpose :
  4. Script Author : vo1d
  5. Script Date : 10/26/2019
  6. Script Notes :
  7. --]]
  8. local DisruptionForDistraction = 366
  9. function obtained(Item, Player)
  10. end
  11. function removed(Item, Player)
  12. end
  13. function destroyed(Item, Player)
  14. end
  15. function examined(Item, Player)
  16. if HasCompletedQuest(Player, DisruptionForDistraction) then
  17. elseif HasQuest(Player, DisruptionForDistraction) then
  18. else
  19. OfferQuest(NPC, Player, DisruptionForDistraction)
  20. local Conversation = CreateConversation()
  21. AddConversationOption(Conversation, "Continue reading.", "Continue_1")
  22. AddConversationOption(Conversation, "Put note away.")
  23. StartDialogConversation(Conversation, 2, Item, Player, GetName(Player) .. ", Vamir has informed me that you are serving him well. I have set aside funds for him to reward you for your service. As I told you before, loyalty and service are highly valued and will be amply rewarded. I am impressed with your work so far, and have a new mission for you.")
  24. end
  25. end
  26. function used(Item, Player)
  27. end
  28. function cast(Item, Player)
  29. end
  30. function equipped(Item, Player)
  31. end
  32. function unequipped(Item, Player)
  33. end
  34. function proc(Item, Caster, Target, Type)
  35. end
  36. function Continue_1(Item, Player)
  37. local Conversation = CreateConversation()
  38. AddConversationOption(Conversation, "Continue reading.", "Continue_2")
  39. AddConversationOption(Conversation, "Put note away.")
  40. StartDialogConversation(Conversation, 2, Item, Player, "We have discovered that the Tunarian Alliance's main source of income is from a mine in the Wilderwood. The mine is the perfect setting to employ our next strategy for conquering the island: distraction. By causing a disruption at the mine, it will allow us to flank the Qeynosians from the opposite side.")
  41. end
  42. function Continue_2(Item, Player)
  43. local Conversation = CreateConversation()
  44. AddConversationOption(Conversation, "Put note away.")
  45. StartDialogConversation(Conversation, 2, Item, Player, "Speak with Coercer Zlith, he has already been informed of the action you will be taking.")
  46. end