BernardHanford.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/BernardHanford.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.04.24 01:04:17
  5. Script Purpose : Fabricated NPC that uses VOs. Missing VOs for Fhara... so we made her a husband to do all the work.
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. if math.random(1,100) <=60 then
  16. Talk(NPC,Spawn)
  17. end
  18. end
  19. function LeaveRange(NPC, Spawn)
  20. end
  21. function hailed(NPC, Spawn)
  22. Talk(NPC,Spawn)
  23. end
  24. function Talk(NPC,Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local choice = math.random(1,4)
  27. if choice == 1 then
  28. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/housing/human_housing_service_good_1_aoi_gm_1fa85d79.mp3", "Tired of coming home to a dull empty room? Step inside! Even commoners can afford our low no hanggle prices!", "agree", 557767774, 2281784064, Spawn)
  29. elseif choice == 2 then
  30. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/housing/human_housing_service_good_1_hail_gm_519527d8.mp3", "Please look at our wonderful selection! We carry everything that a discerning adventurer needs.", "hello", 469990134, 2264633052, Spawn)
  31. elseif choice == 3 then
  32. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/housing/human_housing_service_good_1_hail_gm_8bb00dfb.mp3", "Greetings traveler. If you need home furnishings, you came to the right place!", "bow", 3382559797, 2499208775, Spawn)
  33. elseif choice == 4 then
  34. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/housing/human_housing_service_good_1_hail_gm_fa2745af.mp3", "Welcome to our house of furnishings, friend. Anything an adventurer desires is found within these walls!", "smile", 1437718638, 3841585195, Spawn)
  35. end
  36. end