9
3

ariverbehemoth.lua 869 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGolem1.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. local RIVER_BEHEMOTH_REMAINS_ID = 1970101
  11. function spawn(NPC, Spawn)
  12. NPCModule(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. end
  19. function wait(seconds)
  20. local start = os.time()
  21. repeat until os.time() > start + seconds
  22. end
  23. function death(NPC, Spawn)
  24. local Remains
  25. if HasQuest(Spawn, 494) then
  26. Remains = SpawnMob(GetZone(Spawn), RIVER_BEHEMOTH_REMAINS_ID, true, GetX(NPC), GetY(NPC), GetZ(NPC))
  27. SetTarget(Spawn, Remains)
  28. end
  29. wait(5)
  30. Despawn(Remains, 30000)
  31. end