9
3

HighwaymanHighMelee.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/Antonica/HighwaymanHighMelee.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.07.07 09:07:17
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 18
  11. local level2 = 19
  12. local difficulty1 = 6
  13. local hp1 = 1290
  14. local power1 = 410
  15. local difficulty2 = 6
  16. local hp2 = 1930
  17. local power2 = 425
  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 hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. end
  32. function death(NPC, Spawn)
  33. if GetRace(NPC) == 6 and GetGender(NPC) == 1 then -- HALF ELF MALE
  34. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_death_gm_610c650e.mp3", "You must flee! I'll try to hold them.", "", 3580386891, 3023137994, Spawn)
  35. end
  36. end
  37. function aggro(NPC, Spawn)
  38. if GetRace(NPC) == 6 and GetGender(NPC) == 1 then -- HALF ELF MALE
  39. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gm_13a3055.mp3", "Summon help, intruders have arrived!", "", 262436067, 4127133618, Spawn)
  40. end
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end