GuardMizmozzle.lua 910 B

1234567891011121314151617181920212223242526272829
  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. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 9, "InRange", "LeaveRange")
  10. end
  11. function hailed(NPC, Spawn)
  12. choice = MakeRandomInt(1,2)
  13. voice = math.random (1,3)
  14. FaceTarget(NPC, Spawn)
  15. if choice == 1 then
  16. 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)
  17. elseif choice ==2 then
  18. 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)
  19. end
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end