ariverbehemoth.lua 730 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Caves/ariverbehemoth.lua
  3. Script Purpose : a river behemoth
  4. Script Author : Scatman
  5. Script Date : 2009.05.18
  6. Script Notes :
  7. --]]
  8. local RIVER_BEHEMOTH_REMAINS_ID = 1970101
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. end
  16. function wait(seconds)
  17. local start = os.time()
  18. repeat until os.time() > start + seconds
  19. end
  20. function death(NPC, Spawn)
  21. local Remains
  22. if HasQuest(Spawn, 494) then
  23. Remains = SpawnMob(GetZone(Spawn), RIVER_BEHEMOTH_REMAINS_ID, true, GetX(NPC), GetY(NPC), GetZ(NPC))
  24. SetTarget(Spawn, Remains)
  25. end
  26. wait(5)
  27. Despawn(Remains, 30000)
  28. end