RalianazzSkullcracker.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/BigBend/RalianazzSkullcracker.lua
  3. Script Purpose : Ralianazz Skullcracker
  4. Script Author : torsten
  5. Script Date : 2022.07.10
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 15, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. RandomGreeting(NPC, Spawn)
  16. end
  17. function InRange(NPC, Spawn)
  18. local choice = MakeRandomInt(1,3)
  19. if choice == 1 then
  20. FaceTarget(NPC, Spawn)
  21. PlayFlavor(NPC, "", "You have great potential for inflicting devastation and pain upon the battlefield, young one.", "threaten", 0, 0, Spawn, 14) --no voiceover yet
  22. elseif choice == 2 then
  23. FaceTarget(NPC, Spawn)
  24. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/ogre/ogre_eco_evil_1_hail_gm_c13548f0.mp3", "The Overlord knows the strength of the ogres; I'd enjoy reminding the others around here.", "threaten", 3218132325, 996755371, Spawn, 14)
  25. elseif choice == 3 then
  26. FaceTarget(NPC, Spawn)
  27. PlayFlavor(NPC, "", "In war there is no room for fear.", "threaten", 0, 0, Spawn, 14) --no voiceover yet
  28. end
  29. end
  30. function RandomGreeting(NPC, Spawn)
  31. local choice = MakeRandomInt(1,6)
  32. if choice == 1 then
  33. FaceTarget(NPC, Spawn)
  34. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/ogre/ogre_eco_evil_1_hail_gm_900b92c8.mp3", "Blood, lots of blood on the battlefield.", "confused", 3309525058, 2311238979, Spawn, 14)
  35. elseif choice == 2 then
  36. FaceTarget(NPC, Spawn)
  37. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/ogre/ogre_eco_evil_1_hail_gm_aef9ec6e.mp3", "The best dreams are the flashbacks of the battlefield.", "chuckle", 34784682, 541558536, Spawn, 14)
  38. elseif choice == 3 then
  39. FaceTarget(NPC, Spawn)
  40. PlayFlavor(NPC, "voiceover/english/ogre/ft/ogre/ogre_eco_garble_garbled_gm_5b81626f.mp3", "Koda dal moden va", "brandish", 3514709231, 112583900, Spawn, 14)
  41. elseif choice == 4 then
  42. FaceTarget(NPC, Spawn)
  43. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/ogre/ogre_eco_evil_1_hail_gm_b11c99a1.mp3", "Make war not love.", "flirt", 163636935, 1865034471, Spawn, 14)
  44. elseif choice == 5 then
  45. FaceTarget(NPC, Spawn)
  46. PlayFlavor(NPC, "voiceover/english/ogre/ft/ogre/ogre_eco_garble_garbled_gm_db73bf19.mp3", "Kreven obas halas tebo", "glare", 510403883, 4026183304, Spawn, 14)
  47. elseif choice == 6 then
  48. FaceTarget(NPC, Spawn)
  49. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/ogre/ogre_eco_evil_1_hail_gm_c13548f0.mp3", "The Overlord knows the strength of the ogres; I'd enjoy reminding the others around here.", "threaten", 3218132325, 996755371, Spawn, 14)
  50. end
  51. end