9
3

inspectrockpoem.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/inspectrockpoem.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.19 04:10:32
  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