9
3

ArmsDealerShilza.lua 1015 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/ArmsDealerShilza.lua
  3. Script Purpose : Arms Dealer Shilza
  4. Script Author : torsten
  5. Script Date : 2022.07.23
  6. Script Notes :
  7. --]]
  8. local SwordChucksofDoom = 5694
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, SwordChucksofDoom)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if not HasQuest(Spawn, SwordChucksofDoom) and not HasCompletedQuest(Spawn, SwordChucksofDoom) then
  17. OfferQuest(NPC, Spawn, SwordChucksofDoom)
  18. end
  19. if GetQuestStep(Spawn, SwordChucksofDoom) == 2 then
  20. SetStepComplete(Spawn, SwordChucksofDoom, 2)
  21. end
  22. RandomGreeting(NPC, Spawn)
  23. end
  24. function RandomGreeting(NPC, Spawn)
  25. local choice = MakeRandomInt(1,2)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "", "Edged weapons for sale! Sharp blades to gut your enemies!", "", 0, 0, Spawn, 0)
  28. elseif choice == 2 then
  29. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1027.mp3", 0, 0, Spawn)
  30. end
  31. end