9
3

FriarMontego.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/FriarMontego.lua
  3. Script Purpose : Friar Montego <Nettleville Restoration Project>
  4. Script Author : Scatman
  5. Script Date : 2009.08.08
  6. Script Notes :
  7. --]]
  8. function spawn(NPC, Spawn)
  9. end
  10. function respawn(NPC, Spawn)
  11. spawn(NPC, Spawn)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. RandomVoiceOver(NPC, Spawn)
  16. local choice = math.random(1, 2)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "", "Please give to the Nettleville Restoration Project, building homes for those who have none.", "", 1689589577, 4560189, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "", "Alms for the poor... Anyone, anyone?", "", 1689589577, 4560189, Spawn)
  21. end
  22. end
  23. function RandomVoiceOver(NPC, Spawn)
  24. local choice = math.random(1, 3)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  27. elseif choice == 2 then
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  29. else
  30. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  31. end
  32. end