GuardMizmozzle.lua 986 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/GuardMizmozzle.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.05 11:09:24
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. SetPlayerProximityFunction(NPC, 9, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. choice = MakeRandomInt(1,2)
  15. voice = math.random (1,3)
  16. FaceTarget(NPC, Spawn)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1031.mp3", "There is much see... Oh! look at that over there.","point", 0, 0, Spawn)
  19. elseif choice ==2 then
  20. PlayFlavor(NPC, "voiceover/english/ratonga_eco_evil_1/ft/ratonga/ratonga_eco_evil_1_hail_gf_338379af.mp3", "Risk is part of the game. Play it for all it's worth.", "scheme", 2615843264, 1281001022, Spawn, 0)
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end