examinegongofuglan.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/FallenGate/examinegongofuglan.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.13 07:07:53
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheLostReligionOfFallenGate = 5317
  9. function spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, SpellName)
  12. if SpellName == 'inspect' then
  13. conversation = CreateConversation()
  14. AddConversationOption(conversation, "Wipe away the grime.", "Option1")
  15. AddConversationOption(conversation, "Stop examining.")
  16. StartDialogConversation(conversation, 1, NPC, Spawn, "This massive gong appears to be very ancient. It has a veil of grime covering engravings on it.")
  17. end
  18. end
  19. function Option1(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if GetQuestStep(Spawn, TheLostReligionOfFallenGate) == 1 then
  22. AddConversationOption(conversation, "Copy the glyphs onto parchment. ", "Option2")
  23. end
  24. AddConversationOption(conversation, "Stop examining.")
  25. StartDialogConversation(conversation, 1, NPC, Spawn, "There are ogre words written upon it. They read, 'The Gong of Uglan'. There are also some glyphs engraved upon the gong.")
  26. end
  27. function Option2(NPC, Spawn)
  28. SetStepComplete(Spawn, TheLostReligionOfFallenGate, 1)
  29. conversation = CreateConversation()
  30. AddConversationOption(conversation, "Pack the parchment away.")
  31. StartDialogConversation(conversation, 1, NPC, Spawn, "You copy the glyphs onto a papyrus parchment.")
  32. end
  33. function respawn(NPC)
  34. spawn(NPC)
  35. end