inspectunseenhandbookstack.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/DownBelow/inspectunseenhandbookstack.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.02 09:10:37
  5. Script Purpose :
  6. :
  7. --]]
  8. local AnIntriguingEye = 5366
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function casted_on(NPC, Spawn, SpellName)
  15. if SpellName == 'Inspect' then
  16. local con = CreateConversation()
  17. AddConversationOption(con, "\"The Flight of the Crow\"", "dlg1")
  18. AddConversationOption(con, "Stop inspecting")
  19. StartDialogConversation(con, 1, NPC, Spawn, "This is a stack of books. Nothing looks particularly interesting, but there may be a few volumes that pique your interest.")
  20. end
  21. end
  22. function dlg1(NPC, Spawn)
  23. local con = CreateConversation()
  24. AddConversationOption(con, "Inspect the recent writing.", "offer")
  25. AddConversationOption(con, "Stop inspecting")
  26. StartDialogConversation(con, 1, NPC, Spawn, "The book is titled \"The Flight of the Crow\". It has no author. A thick complex looking lock binds it. There is an image on the book of an eye. Forming a circle around the eye is a band formed of open hands. There seems to be a small note written on it in dark ink as if written recently.")
  27. end
  28. function offer(NPC, Spawn)
  29. if not HasQuest(Spawn, AnIntriguingEye) and not HasCompletedQuest(Spawn, AnIntriguingEye) then
  30. OfferQuest(NPC, Spawn, AnIntriguingEye)
  31. end
  32. local con = CreateConversation()
  33. AddConversationOption(con, "Stop inspecting")
  34. StartDialogConversation(con, 1, NPC, Spawn, "\"The rat men have taken a coin. Hunt them down and get them at all costs.\"")
  35. end
  36. function respawn(NPC)
  37. spawn(NPC)
  38. end