9
3

ColinStoutfist.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/ColinStoutfist.lua
  3. Script Purpose : Colin Stoutfist
  4. Script Author : torsten
  5. Script Date : 2022.07.25
  6. Script Notes :
  7. --]]
  8. local WillWorkforWar = 5703
  9. local WillFightforFun = 5704
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, WillWorkforWar)
  12. ProvidesQuest(NPC, WillFightforFun)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if not HasQuest(Spawn, WillWorkforWar) and not HasCompletedQuest(Spawn, WillWorkforWar) then
  19. OfferQuest(NPC, Spawn, WillWorkforWar)
  20. end
  21. if HasCompletedQuest(Spawn, WillWorkforWar) then
  22. if not HasQuest(Spawn, WillFightforFun) and not HasCompletedQuest(Spawn, WillFightforFun) then
  23. OfferQuest(NPC, Spawn, WillFightforFun)
  24. end
  25. end
  26. if GetQuestStep(Spawn, WillWorkforWar) == 3 then
  27. SetStepComplete(Spawn, WillWorkforWar, 3)
  28. end
  29. if GetQuestStep(Spawn, WillFightforFun) == 2 then
  30. SetStepComplete(Spawn, WillFightforFun, 2)
  31. end
  32. RandomGreeting(NPC, Spawn)
  33. end
  34. function RandomGreeting(NPC, Spawn)
  35. local choice = MakeRandomInt(1,4)
  36. if choice == 1 then
  37. PlayFlavor(NPC, "", "Grrr ... you still smell like your wet nurse. Come back when you've more fight in yer blood!", "", 0, 0, Spawn, 0)
  38. elseif choice == 2 then
  39. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1002.mp3", 0, 0, Spawn)
  40. elseif choice == 3 then
  41. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1002.mp3", 0, 0, Spawn)
  42. elseif choice == 4 then
  43. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", 0, 0, Spawn)
  44. end
  45. end