grobins.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/generic_grobin.lua
  3. Script Purpose : a grobin (anything)
  4. Script Author : John Adams
  5. Script Date : 2009.02.06
  6. Script Notes : JA - the math.random upper value, I just made up. Tune to your liking.
  7. : Also note that if you run across a "grobin" that should say something different, create a new spawnscript for it.
  8. --]]
  9. function aggro(NPC, Spawn)
  10. FaceTarget(NPC, Spawn)
  11. choice = math.random(1,2)
  12. if choice == 1 then
  13. PlayFlavor(NPC, "voiceover/english/exp03_combatvo/goblin_greater_faydark/ft/_exp03/goblin/goblin_greater_faydark_aggro_68f43c9.mp3", "Arroop!", "", 789139818, 1768762311, Spawn)
  14. elseif choice == 2 then
  15. PlayFlavor(NPC, "voiceover/english/exp03_combatvo/goblin_greater_faydark/ft/_exp03/goblin/goblin_greater_faydark_aggro_c809bb68.mp3", "I grow bigger than you!", "", 1365081195, 1786804084, Spawn)
  16. else
  17. -- say nothing
  18. end
  19. end
  20. function healthchanged(NPC)
  21. if GetCurrentHP(NPC) <= (GetMaxHP(NPC) / 2) then
  22. choice = math.random(1,4)
  23. if choice == 1 then
  24. PlayFlavor(NPC, "voiceover/english/exp03_combatvo/goblin_greater_faydark/ft/_exp03/goblin/goblin_greater_faydark_battle_25d9a433.mp3", "Grum! Grum! ", "", 1460066353, 1003945639, Spawn)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "voiceover/english/exp03_combatvo/goblin_greater_faydark/ft/_exp03/goblin/goblin_greater_faydark_battle_4e5ee4ae.mp3", "Smash the squishies.", "", 3016834030, 2330929155, Spawn)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC, "voiceover/english/exp03_combatvo/goblin_greater_faydark/ft/_exp03/goblin/goblin_greater_faydark_battle_603b0f3b.mp3", "Run away from the mines!", "", 861506750, 2339330363, Spawn)
  29. elseif choice == 4 then
  30. PlayFlavor(NPC, "voiceover/english/exp03_combatvo/goblin_greater_faydark/ft/_exp03/goblin/goblin_greater_faydark_battle_cf61b767.mp3", "Groblin's go!", "", 1309387887, 223459313, Spawn)
  31. else
  32. -- say nothing
  33. end
  34. end
  35. end
  36. function death(NPC, Spawn)
  37. choice = math.random(1,1)
  38. if choice == 1 then
  39. PlayFlavor(NPC, "voiceover/english/exp03_combatvo/goblin_greater_faydark/ft/_exp03/goblin/goblin_greater_faydark_death_31b8eb31.mp3", "I shall grow no more!", "", 2582377610, 2713862197, Spawn)
  40. end
  41. end