DunnColdbrow.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/DunnColdbrow.lua
  3. Script Purpose : Dunn Coldbrow
  4. Script Author : torsten
  5. Script Date : 2022.07.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local EndingtheFury = 5690
  9. local AvoidingtheSeaBeasties = 5691
  10. local WillWorkforWar = 5703
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, EndingtheFury)
  13. ProvidesQuest(NPC, AvoidingtheSeaBeasties)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. if HasLanguage(Spawn, 1) then --Halasian
  20. if not HasQuest(Spawn, EndingtheFury) and not HasCompletedQuest(Spawn, EndingtheFury) then
  21. OfferQuest(NPC, Spawn, EndingtheFury)
  22. end
  23. if HasCompletedQuest(Spawn, EndingtheFury) then
  24. if not HasQuest(Spawn, AvoidingtheSeaBeasties) and not HasCompletedQuest(Spawn, AvoidingtheSeaBeasties) then
  25. OfferQuest(NPC, Spawn, AvoidingtheSeaBeasties)
  26. end
  27. end
  28. if GetQuestStep(Spawn, EndingtheFury) == 2 then
  29. SetStepComplete(Spawn, EndingtheFury, 2)
  30. end
  31. if GetQuestStep(Spawn, AvoidingtheSeaBeasties) == 2 then
  32. SetStepComplete(Spawn, AvoidingtheSeaBeasties, 2)
  33. end
  34. if GetQuestStep(Spawn, WillWorkforWar) == 1 then
  35. SetStepComplete(Spawn, WillWorkforWar, 1)
  36. end
  37. end
  38. RandomGreeting(NPC, Spawn)
  39. end
  40. function RandomGreeting(NPC, Spawn)
  41. local choice = MakeRandomInt(1,1)
  42. if choice == 1 then
  43. PlayFlavor(NPC, "voiceover/english/dunn_coldbrow/fprt_hood06/std_bar_m_dunn_coldbrow_multhail1_2373f073.mp3", "Pathetic orcs ... just one ... that's all I want to get my hands on, one puny orc ... but I'll settle for a pathetic adventurer. Grrrr ... get out of here, fool!", "", 3883409448, 2129276306, Spawn, 1)
  44. end
  45. end