lockboxquest.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/Antonica/lockboxquest.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.08.11 08:08:28
  5. Script Purpose :
  6. :
  7. --]]
  8. local PeckettsPatrol = 5715
  9. function spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, SpellName)
  12. if SpellName == 'inspect' then
  13. local con = CreateConversation()
  14. AddConversationOption(con, "Pick up the logbook that is inside", "con1")
  15. AddConversationOption(con, "Close the lockerbox")
  16. StartDialogConversation(con, 1, NPC, Spawn, "This is a Qeynos Guard Lockerbox of the Tower Guard regiment, Coldwind Point Garrison. It is filled with supplies and administrative tomes for the garrison.")
  17. end
  18. end
  19. function con1(NPC, Spawn)
  20. local con = CreateConversation()
  21. AddConversationOption(con, "Open the logbook.", "con2")
  22. AddConversationOption(con, "Put the logbook away")
  23. StartDialogConversation(con, 1, NPC, Spawn, "This is a leather bound guard logbook. It has the emblem and name of the Qeynos Guard, Tower Guard Regiment on it.")
  24. end
  25. function con2(NPC, Spawn)
  26. local con = CreateConversation()
  27. if CanReceiveQuest(Spawn, PeckettsPatrol) then
  28. AddConversationOption(con, "Put the logbook back and help the garrison.", "offer")
  29. end
  30. AddConversationOption(con, "Stop your inspection")
  31. StartDialogConversation(con, 1, NPC, Spawn, "The Coldwind Point Garrison, Qeynos Guard Tower Guard Regiment.\nCaptain Antillin CO\n\nWe have taken a critical hit in our defenses. Both Guard Nimegin and Bollin have been slain in combat with a horde of gnolls wishing to claim the lighthouse. The gnolls managed to thieve a map of Qeynos kept on post. I will be taking the bulk of the squad to give chase and retrieve the map. Until then, Corporal Peckett and a few guards will be our only defense. He must wait for reinforcements to provide the local patrol or create a militia of adventurers so that the patrol can be accomplished.\n\nDO NOT REMOVE THIS LOGBOOK by Order of the Qeynos Guard.")
  32. end
  33. function offer(NPC, Spawn)
  34. OfferQuest(NPC, Spawn, PeckettsPatrol)
  35. end
  36. function respawn(NPC)
  37. spawn(NPC)
  38. end