ariverbehemoth.lua 795 B

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