1234567891011121314151617181920212223242526272829303132333435363738 |
- --[[
- Script Name : SpawnScripts/BeggarsCourt/MenderGlanae.lua
- Script Author : Dorbin
- Script Date : 2023.11.28 08:11:46
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- SetInfoStructString(NPC, "action_state", "metalworking_idle")
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC,Spawn)
- if GetFactionAmount(Spawn,12) >0 then
- RandomGreeting(NPC, Spawn)
- else
- PlayFlavor(NPC, "", "We don't serve your pathetic kind here. Get out of my sight!", "heckno", 0, 0, Spawn, 0)
- end
- end
- function RandomGreeting(NPC, Spawn)
- local choice = MakeRandomInt(1,4)
- if choice == 1 then
- PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/service/mender/halfelf_mender_service_evil_1_hail_gf_4ed48294.mp3", " You need help fixing that pile of junk? Well it's going to cost you.", "tapfoot", 1130600737, 842291437, Spawn, 0)
- elseif choice == 2 then
- PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/service/mender/halfelf_mender_service_evil_1_hail_gf_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", 3728396589, 931657398, Spawn, 0)
- elseif choice == 3 then
- PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/service/mender/halfelf_mender_service_evil_1_hail_gf_3e98b953.mp3", "Once we're done, you'll have the strongest armor in all of the city! I guarantee it!", "wink", 2490056209, 515351357, Spawn, 0)
- elseif choice == 4 then
- PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/service/mender/halfelf_mender_service_evil_1_hail_gf_3b60608.mp3", "I can emphatically say repairing weapons is much more reliable than buying new ones. Would I lie?", "agree", 3199641459, 497635483, Spawn, 0)
- end
- end
- function respawn(NPC)
- spawn(NPC)
- end
|