inspecttop01innbookcase.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Castleview/inspecttop01innbookcase.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.29 03:01:15
  5. Script Purpose : Quest Lost Book of Arbos
  6. :
  7. --]]
  8. local Arbos = 5468
  9. function spawn(NPC)
  10. --SetRequiredQuest(NPC, Arbos, 3)
  11. end
  12. function casted_on(NPC, Spawn, SpellName)
  13. if SpellName == 'inspect' then
  14. conversation = CreateConversation()
  15. if GetQuestStep(Spawn,Arbos)==2 then
  16. AddConversationOption(conversation, "'The Book of Arbos'","Book")
  17. end
  18. AddConversationOption(conversation, "Stop browsing.","CloseConversation")
  19. StartDialogConversation(conversation, 1, NPC, Spawn, "This is an antique bookcase of exquisite elven craftmanship. It is filled with books written in both elven tongues and common Norrathian tongue.")
  20. end
  21. end
  22. function Book(NPC,Spawn)
  23. conversation = CreateConversation()
  24. SetStepComplete(Spawn, Arbos, 2)
  25. AddConversationOption(conversation, "Stop browsing.","CloseConversation")
  26. StartDialogConversation(conversation, 1, NPC, Spawn, "You find 'The Book of Arbos' stuffed between volumes on elvish cuisines and mini-scape gardening")
  27. end
  28. function hailed(NPC, Spawn)
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end