arocklion.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/MakeshiftArena/arocklion.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.19 01:12:41
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/CombatModule"
  9. function spawn(NPC, Spawn)
  10. combatModule(NPC, Spawn)
  11. AddTimer(NPC,9000,"Doors",1,Spawn)
  12. AddTimer(NPC,12000,"Pop")
  13. SpawnSet(NPC,"show_name",0)
  14. SpawnSet(NPC,"faction",0)
  15. SpawnSet(NPC,"model_type",0)
  16. SpawnSet(NPC,"targetable",0)
  17. SpawnSet(NPC,"attackable",0)
  18. end
  19. function death(NPC, Spawn)
  20. zone = GetZone(NPC)
  21. Lion1 = GetSpawnByLocationID(zone,133781385)
  22. Lion2 = GetSpawnByLocationID(zone,133781386)
  23. Lion3 = GetSpawnByLocationID(zone,133781387)
  24. if IsAlive(Lion1) or IsAlive(Lion2) or IsAlive(Lion3) then
  25. PlaySound(NPC,"sounds/widgets/ecology_city_sounds/ecology_crowd_clap001.wav", GetX(NPC), GetY(NPC), GetZ(NPC))
  26. elseif not IsAlive(Bear1) and not IsAlive(Bear2) then
  27. PlaySound(NPC,"sounds/widgets/ecology_city_sounds/ecology_crowd_cheer001.wav", GetX(NPC), GetY(NPC), GetZ(NPC))
  28. VictorPodium = GetSpawnByLocationID(zone,133781407)
  29. if VictorPodium ==nil then
  30. SpawnByLocationID(zone,133781407)
  31. end
  32. end
  33. end
  34. function Doors(NPC,Spawn)
  35. PlaySound(NPC,"sounds/widgets/doors/door_mech_close001.wav", GetX(NPC), GetY(NPC), GetZ(NPC))
  36. end
  37. function Pop(NPC)
  38. SpawnSet(NPC,"show_name",1)
  39. SpawnSet(NPC,"faction",1)
  40. SpawnSet(NPC,"model_type",303)
  41. SpawnSet(NPC,"targetable",1)
  42. SpawnSet(NPC,"attackable",1)
  43. MoveToLocation(NPC,7.31, 0.14, 6.07,1)
  44. end
  45. function respawn(NPC)
  46. spawn(NPC)
  47. end