IrontoeForewoman.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/IrontoeForewoman.lua
  3. Script Purpose : Irontoe Forewoman <The Irontoe Brigade>
  4. Script Author : jakejp
  5. Script Date : 2018.06.08
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local IrontoeBrigadeRequisitionLists = 282
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. local choice = math.random(1,3)
  18. if HasQuest(Spawn, IrontoeBrigadeRequisitionLists) == true and GetQuestStep(Spawn, IrontoeBrigadeRequisitionLists) == 3 then
  19. AddConversationOption(conversation, "I am here to collect your requisition list.", "dlg_1_1")
  20. StartConversation(conversation, NPC, Spawn, "What do ya need?")
  21. else
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1003.mp3", "", "", 0, 0, Spawn)
  24. Say(NPC, "Well met!")
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1003.mp3", "", "", 0, 0, Spawn)
  27. Say(NPC, "The work never stops!")
  28. elseif choice == 3 then
  29. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1003.mp3", "", "", 0, 0, Spawn)
  30. Say(NPC, "Kaladim WILL be ours!")
  31. end
  32. end
  33. end
  34. function dlg_1_1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. SetStepComplete(Spawn, IrontoeBrigadeRequisitionLists, 3)
  38. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  39. AddConversationOption(conversation, "Thank you.", "dlg_1_2")
  40. StartConversation(conversation, NPC, Spawn, "Ah, great! Here you go.")
  41. end