9
3

ArmsdealerTNyvez.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/Longshadow/ArmsdealerTNyvez.lua
  3. Script Purpose : Armsdealer T`Nyvez <Weaponsmith>
  4. Script Author : John Adams
  5. Script Date : 2008.09.29
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 9, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if MakeRandomInt(1, 100) <= 18 and GetFactionAmount(Spawn,12) >0 then
  17. FaceTarget(NPC, Spawn)
  18. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/weaponsmith/darkelf_weaponsmith_service_evil_1_aoi_gf_e5231875.mp3", "Don't be caught defenseless when your enemies strike. See our stock of weapons, before it's too late!", "bye", 3596090341, 1905755630, Spawn)
  19. elseif GetFactionAmount(Spawn,12) <=0 then
  20. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/highelf/highelf_eco_good_1_notcitizen_gf_6da83eeb.mp3", "I'll defend myself if it comes to that, savage.", "", 3357669916, 1930978996, Spawn)
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function hailed(NPC, Spawn)
  27. if GetFactionAmount(Spawn,12) >0 then
  28. Dialog1(NPC, Spawn)
  29. else
  30. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/highelf/highelf_eco_good_1_notcitizen_gf_6da83eeb.mp3", "I'll defend myself if it comes to that, savage.", "", 3357669916, 1930978996, Spawn)
  31. end
  32. end
  33. function Dialog1(NPC, Spawn)
  34. local choice = MakeRandomInt(1,4)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/weaponsmith/darkelf_weaponsmith_service_evil_1_hail_gf_de25bbfc.mp3", "The only thing separating you from death in this city are your wits. I wouldn't call that adequate protection.", "sarcasm", 3764437747, 3191922927, Spawn, 0)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/weaponsmith/darkelf_weaponsmith_service_evil_1_hail_gf_fa46b6f6.mp3", "Is there a specific way you're looking to kill someone? Disemboweling, beheading, impaling, strangulation?", "shrug", 1925778208, 2473902714, Spawn, 0)
  39. elseif choice == 3 then
  40. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/weaponsmith/darkelf_weaponsmith_service_evil_1_hail_gf_9d2ef5c4.mp3", "A good weapon at your side is the only real friend you'll ever have!", "agree", 2557998412, 1299746806, Spawn, 0)
  41. elseif choice == 4 then
  42. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/weaponsmith/darkelf_weaponsmith_service_evil_1_hail_gf_febc50f4.mp3", "We have a nice selection of previously owned weapons for those with modest funds.", "sniff", 1102225128, 1972146444, Spawn, 0)
  43. end
  44. end