MenderBrelslade.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Longshadow/MenderBrelslade.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.17 01:10:57
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetInfoStructString(NPC, "action_state", "metalworking_idle")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC,Spawn)
  13. if GetFactionAmount(Spawn,12) >0 then
  14. RandomGreeting(NPC, Spawn)
  15. else
  16. PlayFlavor(NPC, "", "We don't serve your pathetic kind here. Get out of my sight!", "heckno", 0, 0, Spawn, 0)
  17. end
  18. end
  19. function RandomGreeting(NPC, Spawn)
  20. local choice = MakeRandomInt(1,4)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/mender/darkelf_mender_service_evil_1_hail_gm_3b60608.mp3", "I can emphatically say repairing weapons is much more reliable than buying new ones. Would I lie? ", "agree", 4144081896, 3215065022, Spawn, 0)
  23. elseif choice == 2 then
  24. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/mender/darkelf_mender_service_evil_1_hail_gm_96a8c8ad.mp3", "Nah, no need to buy a completely new set. I'll use some of this special solvent I have. It'll fix it up good as new!", "no", 1542332176, 1407196466, Spawn, 0)
  25. elseif choice == 3 then
  26. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/mender/darkelf_mender_service_evil_1_hail_gm_a2234480.mp3", "Once we're done, you'll have the strongest armor in all of the city! I guarantee it!", "wink", 2676926812, 2314515685, Spawn, 0)
  27. elseif choice == 4 then
  28. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/mender/darkelf_mender_service_evil_1_hail_gm_de6b9f05.mp3", "You need help fixing that pile of junk? Well it's going to cost you.", "tapfoot", 1475585177, 595941913, Spawn, 0)
  29. end
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end