HighwaymanHighMagic.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/Antonica/HighwaymanHighMagic.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.07.07 09:07:58
  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 = 1180
  14. local power1 = 410
  15. local difficulty2 = 6
  16. local hp2 = 1315
  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