GrimgashtheBlack.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/GrimgashsLair/GrimgashtheBlack.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.23 01:09:26
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local dmgMod = GetStr(NPC)/10
  10. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  11. SetInfoStructUInt(NPC, "primary_weapon_damage_low", 5 + dmgMod)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 11 + dmgMod)
  13. SetInfoStructUInt(NPC, "hp_regen_override", 1)
  14. SetInfoStructSInt(NPC, "hp_regen", 0)
  15. SetInfoStructUInt(NPC, "pw_regen_override", 1)
  16. SetInfoStructSInt(NPC, "pw_regen", 0)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function aggro(NPC,Spawn)
  22. local choice = MakeRandomInt(1,2)
  23. if choice == 1 then
  24. PlayFlavor(NPC,"voiceover/english/grimgash_the_black/tutorial_island02_epic01/06_orc_grimgash_the_black_garbled_gm_0.mp3","First it was drakotas and now you! I'll teach you not to mess with a Son of Zek!","",3587881717,1370147630,nil,17)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC,"voiceover/english/grimgash_the_black/tutorial_island02_epic01/06_orc_grimgash_the_black_garbled_gm_0.mp3","You are not part of the plan! I'll squash you like the bug you are.","",3587881717,1370147630,nil,17)
  27. end
  28. local zone = GetZone(NPC)
  29. local Gob1 = GetSpawnByLocationID(zone, 133776472)
  30. local Gob2 = GetSpawnByLocationID(zone, 133776473)
  31. local Gob3 = GetSpawnByLocationID(zone, 133776474)
  32. if IsAlive(Gob1) == true or IsAlive(Gob2) == true or IsAlive(Gob3) == true then
  33. Attack(Gob1,Spawn)
  34. Attack(Gob2,Spawn)
  35. Attack(Gob3,Spawn)
  36. end
  37. end