9
3

LuvileBinlee.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/LuvileBinlee.lua
  3. Script Purpose : Luvile Binlee
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Quest1 = 5787
  9. require "SpawnScripts/Generic/DialogModule"
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function Dialog1(NPC, Spawn)
  19. Dialog.New(NPC, Spawn)
  20. Dialog.AddDialog("I'm contemplating how this tree symbolizes a person's life ... We all come from a solid trunk grounded in history, and the tree branches represent the random choices we make in life...")
  21. Dialog.AddVoiceover("voiceover/english/optional5/luvile_binlee/qey_village02/luvilebinlee000.mp3", 2956622106, 3546014069)
  22. if HasQuest(Spawn,Quest1) and GetQuestStep(Spawn,Quest1)>=3 and GetQuestStep(Spawn,Quest1)<=4 and not QuestStepIsComplete(Spawn,Quest1,3) then
  23. Dialog.AddOption("Dagorel said you know how not to get hit.","Dialog2")
  24. end
  25. Dialog.AddOption("That's a bit deep for me. Sorry for bothering your meditations.")
  26. Dialog.Start()
  27. end
  28. function Dialog2(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("Hmm, I suppose I could show you a few things. You must have shown some promise for Dagorel to send you my way... Let's see what you can do. I want you to try to punch me.")
  32. PlayFlavor(NPC, "", "", "sit_exit", 0, 0, Spawn)
  33. Dialog.AddVoiceover("voiceover/english/optional5/luvile_binlee/qey_village02/luvilebinlee001.mp3", 0, 0)
  34. Dialog.AddOption("I don't want to hurt you.","Dialog3")
  35. Dialog.Start()
  36. end
  37. function Dialog3(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("Don't trouble yourself with that. Like the leaves in this tree, I move with the air around me. It is important you learn the flow of combat... now, let us begin. Try to hit me and don't stop until you do or until you become too tired to continue.")
  41. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  42. Dialog.AddVoiceover("voiceover/english/optional5/luvile_binlee/qey_village02/luvilebinlee002.mp3", 0, 0)
  43. Dialog.AddOption("[punch at Luvile's face]","Dialog4")
  44. Dialog.Start()
  45. end
  46. function Dialog4(NPC, Spawn)
  47. FaceTarget(Spawn, NPC)
  48. PlayFlavor(Spawn, "", "", "pugilist_attack", 0, 0, NPC)
  49. AddTimer(NPC,800,"Dialog4a",1,Spawn)
  50. end
  51. function Dialog4a(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. Dialog.AddDialog("Too slow. Try again.")
  55. PlayFlavor(NPC, "", "", "monk_dodge_down", 0, 0, Spawn)
  56. Dialog.AddVoiceover("voiceover/english/optional5/luvile_binlee/qey_village02/luvilebinlee002.mp3", 0, 0)
  57. Dialog.AddOption("[punch at Luvile's chest]","Dialog5")
  58. Dialog.Start()
  59. end
  60. function Dialog5(NPC, Spawn)
  61. FaceTarget(Spawn, NPC)
  62. PlayFlavor(Spawn, "", "", "pugilist_attack02", 0, 0, NPC)
  63. AddTimer(NPC,800,"Dialog5a",1,Spawn)
  64. end
  65. function Dialog5a(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. Dialog.New(NPC, Spawn)
  68. Dialog.AddDialog("Again. Aim carefully.")
  69. PlayFlavor(NPC, "", "", "monk_dodge_backhand", 0, 0, Spawn)
  70. Dialog.AddVoiceover("voiceover/english/optional5/luvile_binlee/qey_village02/luvilebinlee004.mp3", 0, 0)
  71. Dialog.AddOption("[punch at Luvile's stomach]","Dialog6")
  72. Dialog.Start()
  73. end
  74. function Dialog6(NPC, Spawn)
  75. FaceTarget(Spawn, NPC)
  76. PlayFlavor(Spawn, "", "", "pugilist_attack", 0, 0, NPC)
  77. AddTimer(NPC,800,"Dialog6a",1,Spawn)
  78. end
  79. function Dialog6a(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. Dialog.New(NPC, Spawn)
  82. Dialog.AddDialog("Close! Try again.")
  83. PlayFlavor(NPC, "", "", "1h_pierce_dodge_thrust", 0, 0, Spawn)
  84. Dialog.AddVoiceover("voiceover/english/optional5/luvile_binlee/qey_village02/luvilebinlee004.mp3", 0, 0)
  85. Dialog.AddOption("[punch at Luvile's side]","Dialog7")
  86. Dialog.Start()
  87. end
  88. function Dialog7(NPC, Spawn)
  89. FaceTarget(Spawn, NPC)
  90. PlayFlavor(Spawn, "", "", "pugilist_wild_swing", 0, 0, NPC)
  91. AddTimer(NPC,800,"Dialog7a",1,Spawn)
  92. end
  93. function Dialog7a(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("Aha! I didn't see that coming! You landed a blow! I showed you how a brawler avoids strikes, and you showed me that I need to continue my training. We both benefited from today's lesson. I wish you success with Dagorel's guidance.")
  97. PlayFlavor(NPC, "", "", "1h_sword_parry_thrust", 0, 0, Spawn)
  98. Dialog.AddVoiceover("voiceover/english/optional5/luvile_binlee/qey_village02/luvilebinlee004.mp3", 0, 0)
  99. Dialog.AddOption("Thank you, Luvile. Good day.","Dialog8")
  100. Dialog.Start()
  101. end
  102. function Dialog8(NPC, Spawn)
  103. if HasQuest(Spawn,Quest1) and not QuestStepIsComplete(Spawn,Quest1,3) then
  104. SetStepComplete(Spawn,Quest1,3)
  105. end
  106. FaceTarget(NPC, Spawn)
  107. PlayFlavor(NPC, "", "", "bow", 0, 0, Spawn)
  108. end