9
3

ArmsdealerBlort.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/BigBend/ArmsdealerBlort.lua
  3. Script Purpose : Armsdealer Blort
  4. Script Author : torsten
  5. Script Date : 2022.07.10
  6. Script Notes :
  7. --]]
  8. local TrollsAndArms = 5618
  9. local GetRichQuick = 5655
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, TrollsAndArms)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. if HasLanguage(Spawn,15) then
  19. if not HasQuest(Spawn, TrollsAndArms) and not HasCompletedQuest(Spawn, TrollsAndArms) then
  20. OfferQuest(NPC, Spawn, TrollsAndArms)
  21. end
  22. if GetQuestStep(Spawn, TrollsAndArms) == 2 then
  23. SetStepComplete(Spawn, TrollsAndArms, 2)
  24. end
  25. end
  26. if GetQuestStep(Spawn, GetRichQuick) == 1 then
  27. SetStepComplete(Spawn, GetRichQuick, 1)
  28. end
  29. RandomGreeting(NPC, Spawn)
  30. end
  31. function RandomGreeting(NPC, Spawn)
  32. local choice = MakeRandomInt(1,3)
  33. if choice == 1 then
  34. PlayFlavor(NPC, "voiceover/english/armsdealer_blort/fprt_hood1/100_armsdealerblort_multhail1_46fdaf7b.mp3", "You like my cutters and slicers? Choose quick or Blort test these weapons on you.", "", 1848056518, 3558912775, Spawn, 0)
  35. elseif choice == 2 then
  36. PlayFlavor(NPC, "voiceover/english/armsdealer_blort/fprt_hood1/100_armsdealerblort_multhail2_2a9e4c06.mp3", "You like my cutters and slicers? Blort needs help selling more cutters and slicers.", "", 3019394454, 1413480824, Spawn, 0)
  37. elseif choice == 3 then
  38. PlayFlavor(NPC, "voiceover/english/armsdealer_blort/fprt_hood1/100_armsdealerblort_callout_3cd01679.mp3", "Come talk to Blort about buying cutters and slicers!", "beckon", 3535784211, 4217415631, Spawn, 0)
  39. end
  40. end