9
3

inspect_rock_poem.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : inspect_rock_poem.lua
  3. Script Author : ememjr
  4. Script Date : 2017.05.10
  5. Script Purpose :
  6. :
  7. --]]
  8. local quest = 234
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function casted_on(NPC, Spawn, Message)
  15. if Message == "inspect" then
  16. local con = CreateConversation()
  17. AddConversationOption(con, "Read the Poem!", "ReadPoem")
  18. AddConversationOption(con, "Stop inspecting", "CloseConversation")
  19. StartDialogConversation(con, 1, NPC, Spawn, "This rock is deeply embedded into the ground. It must have been here for quite some time. There is writing etched onto the face of the rock. It looks like a poem.")
  20. end
  21. end
  22. function ReadPoem(NPC, Spawn)
  23. local con = CreateConversation()
  24. AddConversationOption(con, "continue", "Continue")
  25. StartDialogConversation(con, 1, NPC, Spawn, "\"An Ode to Oakmyst\" by Astar Leafsinger of the Songweavers. The beauty grown from elven gifts...Thethicket so small yet so grand...A lonsome trunk drifting amidst the clear blue...The life giver billows and feeds...")
  26. end
  27. function Continue(NPC, Spawn)
  28. OfferQuest(NPC, Spawn, quest)
  29. CloseConversation(NPC, Spawn)
  30. end