9
3

IrontoeForemanOne.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/IrontoeForemanOne.lua
  3. Script Purpose : Irontoe Foreman <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,2)
  18. if HasQuest(Spawn, IrontoeBrigadeRequisitionLists) == true and GetQuestStep(Spawn, IrontoeBrigadeRequisitionLists) == 1 then
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  20. AddConversationOption(conversation, "I am here for your requisition list.", "dlg_2_1")
  21. StartConversation(conversation, NPC, Spawn, "Yes?")
  22. else
  23. if choice == 1 then
  24. PlayFlavor(NPC, "", "Why must you bother me?", "", 1689589577, 4560189, Spawn)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "", "What is it? What do you want?", "", 1689589577, 4560189, Spawn)
  27. end
  28. end
  29. end
  30. function dlg_2_1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. SetStepComplete(Spawn, IrontoeBrigadeRequisitionLists, 1)
  34. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  35. AddConversationOption(conversation, "Thank you.")
  36. StartConversation(conversation, NPC, Spawn, "Here.")
  37. end