9
3

gnollark.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/gnollark.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.21 07:07:53
  5. Script Purpose :
  6. :
  7. --]]
  8. local ScrawlingsInTheDark = 5329
  9. function spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, SpellName)
  12. if SpellName == 'inspect' then
  13. conversation = CreateConversation()
  14. if HasQuest(Spawn, ScrawlingsInTheDark) and not QuestStepIsComplete(Spawn, ScrawlingsInTheDark, 1) then
  15. AddConversationOption(conversation, "Open the chest.", "option1")
  16. end
  17. AddConversationOption(conversation, "Leave the chest alone.")
  18. StartDialogConversation(conversation, 1, NPC, Spawn, "This chest is highly ornate for a gnoll container. It has gold inlay and images of what appears to be some sort of gnoll deity scooping up humans into its maw has been painted onto it.")
  19. end
  20. end
  21. function option1(NPC, Spawn)
  22. conversation = CreateConversation()
  23. AddConversationOption(conversation, "Take the tome.", "step_complete")
  24. StartDialogConversation(conversation, 1, NPC, Spawn, "Inside the chest the walls are adorned with gems both valuable and mundane. At the center rests a horrid looking tome bound with a fur pelt.")
  25. end
  26. function step_complete(NPC, Spawn)
  27. SetStepComplete(Spawn, ScrawlingsInTheDark, 1)
  28. SummonItem(Spawn, 14236, 1)
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end