alostkey.lua 482 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/alostkey.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.24 08:10:37
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function casted_on(NPC, Spawn, SpellName)
  11. if SpellName == 'get' then
  12. Despawn(NPC)
  13. SummonItem(Spawn,1001032,1)
  14. SendMessage(Spawn,"You pick up an old discarded key. Perhaps it has some use?")
  15. end
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end