QuartermasterBrennar.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/QuartermasterBrennar.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.03 04:09:48
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function InRange(NPC,Spawn)
  12. RandomGreeting(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. PlayFlavor(NPC, "voiceover/english/quartermaster_brennar/tutorial_island02_fvo_000.mp3", "I've got everything you need right here! I hope you managed to hold onto some coin while you were adrift.", "hello", 859048229, 1201585367, Spawn, 0)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function RandomGreeting(NPC, Spawn)
  23. local choice = MakeRandomInt(1,2)
  24. if choice == 1 then
  25. PlayFlavor(NPC, "voiceover/english/quartermaster_brennar/tutorial_island02_fvo_callout2.mp3", "All refugees need to resupply! Come get your gear!", "beckon",644592195, 2709200819, Spawn, 0)
  26. elseif choice == 2 then
  27. PlayFlavor(NPC, "voiceover/english/quartermaster_brennar/tutorial_island02_fvo_callout1.mp3", "Refugees! Get your basic supplies right here!", "wave", 2626616193, 3313059866, Spawn, 0)
  28. end
  29. end