NektroposBarracksLockbox.lua 900 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/NektroposBarracksLockbox.lua
  3. Script Purpose :
  4. Script Author : smash
  5. Script Date : 1/26/2016
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function casted_on(NPC, Spawn, Message)
  14. if Message == "inspect" then
  15. Dialog1(NPC, Spawn)
  16. end
  17. end
  18. function Dialog1(NPC, Spawn)
  19. local conversation = CreateConversation()
  20. AddConversationOption(conversation, "Stop inspecting the lockerbox", "CloseConversation")
  21. if CanReceiveQuest(Spawn, 176) then
  22. AddConversationOption(conversation, "Rummage through the lockerbox", "OfferTheRedMarble")
  23. end
  24. StartDialogConversation(conversation, 1, NPC, Spawn, "The lockerbox is dark and musky. Most of the items are torn and tattered clothing. Who knows what critters are crawling around underneath.")
  25. end
  26. function OfferTheRedMarble(NPC, Spawn)
  27. OfferQuest(NPC, Spawn, 176)
  28. end