9
3

ArmsdealerShinska.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/TempleStreet/ArmsdealerShinska.lua
  3. Script Purpose : Armsdealer Shinska
  4. Script Author : torsten
  5. Script Date : 2022.07.10
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local TrollsAndArms = 5618
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. if HasQuest(Spawn, TrollsAndArms) and not HasCompletedQuest(Spawn, TrollsAndArms) then
  16. SetStepComplete(Spawn, TrollsAndArms, 1)
  17. end
  18. RandomGreeting(NPC, Spawn)
  19. end
  20. function RandomGreeting(NPC, Spawn)
  21. local choice = MakeRandomInt(1,3)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Hmmmmmm ... You looks like you could use somethings to protect yourself.", "", 0, 0, Spawn, 0)
  24. elseif choice == 2 then
  25. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1031.mp3", 0, 0, Spawn)
  26. elseif choice == 3 then
  27. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1031.mp3", 0, 0, Spawn)
  28. end
  29. end