Rotweed.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/Rotweed.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.19 03:10:25
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 13
  11. local level2 = 14
  12. local difficulty1 = 8
  13. local hp1 = 1475
  14. local power1 = 485
  15. local difficulty2 = 8
  16. local hp2 = 1720
  17. local power2 = 530
  18. if Level == level1 then
  19. SpawnSet(NPC, "difficulty", difficulty1)
  20. SpawnSet(NPC, "hp", hp1)
  21. SpawnSet(NPC, "power", power1)
  22. elseif Level == level2
  23. then
  24. SpawnSet(NPC, "difficulty", difficulty2)
  25. SpawnSet(NPC, "hp", hp2)
  26. SpawnSet(NPC, "power", power2)
  27. end
  28. end
  29. function aggro(NPC, Spawn)
  30. aggrotimer(NPC)
  31. end
  32. function aggrotimer(NPC)
  33. AddTimer(NPC,600000,"aggrotimer") -- Check is Thistles and Cube are up
  34. local Rotweed = GetSpawnByLocationID(zone, 133779140)
  35. if IsInCombat(Rotweed) and Rotweed ~=nil then
  36. else
  37. Despawn(Rotweed) --Despawns Thistles and Cube, which disables update
  38. end
  39. end
  40. function hailed(NPC, Spawn)
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end