9
3

GraystoneCourierDirvel.lua 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. --[[
  2. Script Name : GraystoneCourierDirvel.lua
  3. Script Purpose : Graystone Courier Dirvel
  4. Script Author : John Adams
  5. Script Date : 2008.09.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local LATESHIPMENT = 290
  10. function spawn(NPC)
  11. x = GetX(NPC)
  12. y = GetY(NPC)
  13. z = GetZ(NPC)
  14. speed = 2
  15. MovementLoopAddLocation(NPC, 893.94, -22.61, -94.81 , speed , 0)
  16. MovementLoopAddLocation(NPC, 902.19, -20.30, -109.66, speed , 0)
  17. MovementLoopAddLocation(NPC, 907.59, -20.69, -104.74, speed , 0)
  18. MovementLoopAddLocation(NPC, 915.84, -20.69, -110.29, speed , 0)
  19. MovementLoopAddLocation(NPC, 928.15, -20.69, -102.77, speed , 10, "RandomSay")
  20. MovementLoopAddLocation(NPC, 915.84, -20.69, -110.29, speed , 0)
  21. MovementLoopAddLocation(NPC, 907.29, -20.69, -103.76, speed , 0)
  22. MovementLoopAddLocation(NPC, 901.93, -22.30, -109.13, speed , 0)
  23. MovementLoopAddLocation(NPC, 893.20, -22.59, -137.26, speed , 0)
  24. MovementLoopAddLocation(NPC, 901.23, -24.98, -141.01, speed , 0)
  25. MovementLoopAddLocation(NPC, 901.06, -24.93, -148.05, speed , 0)
  26. MovementLoopAddLocation(NPC, 915.60, -25.09, -151.09, speed , 0)
  27. MovementLoopAddLocation(NPC, 915.15, -25.11, -156.50, speed , 10, "RandomSay")
  28. MovementLoopAddLocation(NPC, 914.66, -25.10, -154.91, speed , 0)
  29. MovementLoopAddLocation(NPC, 902.56, -24.95, -152.20, speed , 0)
  30. MovementLoopAddLocation(NPC, 893.19, -24.93, -145.26, speed , 10, "RandomSay")
  31. MovementLoopAddLocation(NPC, 891.17, -24.85, -151.09, speed , 0)
  32. MovementLoopAddLocation(NPC, 855.96, -24.26, -152.24, speed , 0)
  33. MovementLoopAddLocation(NPC, 852.41, -23.86, -147.34, speed , 0)
  34. MovementLoopAddLocation(NPC, 841.00, -22.55, -145.98, speed , 0)
  35. MovementLoopAddLocation(NPC, 836.97, -24.55, -146.77, speed , 10, "RandomSay")
  36. MovementLoopAddLocation(NPC, 845.45, -22.55, -145.01, speed , 0)
  37. MovementLoopAddLocation(NPC, 839.41, -20.93, -142.88, speed , 0)
  38. MovementLoopAddLocation(NPC, 837.49, -20.94, -128.26, speed , 0)
  39. MovementLoopAddLocation(NPC, 817.20, -20.93, -108.95, speed , 0)
  40. MovementLoopAddLocation(NPC, 814.64, -20.93, -94.23 , speed , 10, "RandomSay")
  41. MovementLoopAddLocation(NPC, 827.58, -20.93, -85.46 , speed , 0)
  42. MovementLoopAddLocation(NPC, 845.79, -20.90, -97.16 , speed , 0)
  43. MovementLoopAddLocation(NPC, 838.72, -20.72, -112.23, speed , 0)
  44. MovementLoopAddLocation(NPC, 844.59, -22.77, -112.91, speed , 0)
  45. MovementLoopAddLocation(NPC, 846.77, -23.25, -107.80, speed , 0)
  46. MovementLoopAddLocation(NPC, 886.70, -22.25, -98.83 , speed , 0)
  47. MovementLoopAddLocation(NPC, 896.03, -22.37, -109.00, speed , 0)
  48. MovementLoopAddLocation(NPC, 897.60, -22.61, -102.00, speed , 0)
  49. MovementLoopAddLocation(NPC, 893.94, -22.61, -94.81 , speed , 0)
  50. MovementLoopAddLocation(NPC, x , y , z , speed , 10, "RandomSay")
  51. end
  52. function hailed(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. if HasQuest(Spawn, LATESHIPMENT) and GetQuestStep(Spawn, LATESHIPMENT) == 2 then
  56. BusyWithQuest(NPC, Spawn)
  57. else
  58. Say(NPC, "Please come back later. I am very, very busy.", Spawn)
  59. end
  60. end
  61. function BusyWithQuest(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "voiceover/english/graystone_courier_dirvel/qey_village03/quests/graystone_courier/graystone_courier001.mp3", "", "", 2607292878, 3490339113, Spawn)
  65. AddConversationOption(conversation, "I have a question about some packages.", "dlg_15_1")
  66. StartConversation(conversation, NPC, Spawn, "Please come back later. I am very, very busy.")
  67. end
  68. function dlg_15_1(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/graystone_courier_dirvel/qey_village03/quests/graystone_courier/graystone_courier002.mp3", "", "", 2049714213, 2524717150, Spawn)
  72. AddConversationOption(conversation, "Shipment GG4QC doesn't seem to be in the overflow manifest, but it was delivered here.", "dlg_15_2")
  73. StartConversation(conversation, NPC, Spawn, "All right, but make it quick, I'm way behind.")
  74. end
  75. function dlg_15_2(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "voiceover/english/graystone_courier_dirvel/qey_village03/quests/graystone_courier/graystone_courier003.mp3", "", "", 3702985817, 3417442042, Spawn)
  79. AddConversationOption(conversation, "Who might I talk to?", "dlg_15_3")
  80. StartConversation(conversation, NPC, Spawn, "Yeah? I really wouldn't know much about anything that doesn't appear in the overflow manifest. I won't be working outside of overflow for some time now.")
  81. end
  82. function dlg_15_3(NPC, Spawn)
  83. SetStepComplete(Spawn, LATESHIPMENT, 2)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/graystone_courier_dirvel/qey_village03/quests/graystone_courier/graystone_courier004.mp3", "", "", 492636347, 242481980, Spawn)
  87. AddConversationOption(conversation, "Thank you.")
  88. StartConversation(conversation, NPC, Spawn, "You'll have to talk to the Shipping Coordinator. He'll know what happened to the shipment. You can find him on the docks.")
  89. end
  90. function RandomSay(NPC)
  91. choice = math.random(1, 7)
  92. if choice == 1 then
  93. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/graystone_courier_dirvel/qey_village03/quest_graystone_courier_blarg_366d0c73.mp3", "I need a break like Lucan needs a vacation.", "", 2879789175, 2017987376)
  94. elseif choice == 2 then
  95. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/graystone_courier_dirvel/qey_village03/quest_graystone_courier_blarg_4829cb8c.mp3", "Hey, look at that! Another late package. Who would've thought, huh?", "", 4258041512, 25774857)
  96. elseif choice == 3 then
  97. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/graystone_courier_dirvel/qey_village03/quest_graystone_courier_blarg_6b384f5f.mp3", "Wow, this shipment is days old!", "", 3859597953, 2582422318)
  98. elseif choice == 4 then
  99. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/graystone_courier_dirvel/qey_village03/quest_graystone_courier_blarg_b8328015.mp3", "Goodness, I don't think I'll ever get done with this work.", "", 1615569956, 1679588116)
  100. elseif choice == 5 then
  101. PlayFlavor(Spawn, "voiceover/english/voice_emotes/greetings/greetings_3_1002.mp3", "", "", 0, 0)
  102. elseif choice == 6 then
  103. Say(NPC, "Why did I ever accept this job?")
  104. elseif choice == 7 then
  105. Say(NPC, "There has to be a more efficient way of doing this.")
  106. else
  107. Say(NPC, "Noob scatman did this wrong.")
  108. end
  109. end