inspectrockpoem.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. if CanReceiveQuest(Spawn,quest) then
  18. AddConversationOption(con, "Read the Poem!", "ReadPoem")
  19. end
  20. AddConversationOption(con, "Stop inspecting", "CloseConversation")
  21. 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.")
  22. end
  23. end
  24. function ReadPoem(NPC, Spawn)
  25. local con = CreateConversation()
  26. AddConversationOption(con, "continue", "Continue")
  27. 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...")
  28. end
  29. function Continue(NPC, Spawn)
  30. OfferQuest(NPC, Spawn, quest)
  31. CloseConversation(NPC, Spawn)
  32. end