IrontoeForeman.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/IrontoeForeman.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,3)
  18. if HasQuest(Spawn, IrontoeBrigadeRequisitionLists) == true and GetQuestStep(Spawn, IrontoeBrigadeRequisitionLists) == 2 then
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  20. AddConversationOption(conversation, "I am here for your requisition list.", "dlg_3_1")
  21. StartConversation(conversation, NPC, Spawn, "Yeah?")
  22. else
  23. if choice == 1 then
  24. PlayFlavor(NPC, "", "I hope we get those shovels we need.", "", 1689589577, 4560189, Spawn)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "", "Not much to see in here. It's pretty boring.", "", 1689589577, 4560189, Spawn)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC, "", "Hello there!", "", 1689589577, 4560189, Spawn)
  29. end
  30. end
  31. end
  32. function dlg_3_1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. SetStepComplete(Spawn, IrontoeBrigadeRequisitionLists, 2)
  36. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  37. AddConversationOption(conversation, "Thank you.")
  38. StartConversation(conversation, NPC, Spawn, "Ah, so you guys can tell us we don't have the budget... I know the drill, here ya go.")
  39. end
  40. --[[ raw_conversations
  41. PlayFlavor(NPC, "", "Why must you bother me?", "", 1689589577, 4560189, Spawn)
  42. PlayFlavor(NPC, "", "What is it? What do you want?", "", 1689589577, 4560189, Spawn)
  43. --]]