KaelarriIvyshae.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/KaelarriIvyshae.lua
  3. Script Purpose : Kaelarri Ivyshae
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function hailed(NPC, Spawn)
  9. FaceTarget(NPC, Spawn)
  10. choice = math.random(1,5)
  11. if choice == 1 then
  12. PlayFlavor(NPC, "voiceover/english/woodelf_eco_good_1/ft/woodelf/woodelf_eco_good_1_hail_gf_31587971.mp3", "Greetings, friend. I hope your visit to the city brings both inner peace and prosperity.", "curtsey", 999961843, 2491010297, Spawn)
  13. elseif choice == 2 then
  14. PlayFlavor(NPC, "voiceover/english/woodelf_eco_good_1/ft/woodelf/woodelf_eco_good_1_hail_gf_10181485.mp3", "The forces of good are all wrought from the strength of the innocent.", "bow", 1746715399, 2834476927, Spawn)
  15. elseif choice == 3 then
  16. PlayFlavor(NPC, "voiceover/english/woodelf_eco_good_1/ft/woodelf/woodelf_eco_good_1_hail_gf_45ac4aea.mp3", "I never thought it would be so difficult to carry on. I have no songs left in my heart.", "sigh", 2446660394, 3437698252, Spawn)
  17. elseif choice == 4 then
  18. PlayFlavor(NPC, "voiceover/english/woodelf_eco_good_1/ft/woodelf/woodelf_eco_good_1_hail_gf_46ea1119.mp3", "So much blood and so many lost. I never believed it would end this way.", "sad", 1351206018, 3386717578, Spawn)
  19. elseif choice == 5 then
  20. PlayFlavor(NPC, "voiceover/english/woodelf_eco_good_1/ft/woodelf/woodelf_eco_good_1_hail_gf_67432087.mp3", "We must remain steady against the influence of evil. Only with perseverance will Qeynos survive!", "shakefist", 927768431, 1576503790, Spawn)
  21. else
  22. end
  23. end
  24. function spawn(NPC)
  25. waypoints(NPC)
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. end
  30. function respawn(NPC)
  31. end
  32. function waypoints(NPC)
  33. MovementLoopAddLocation(NPC, 649.78, -17.86, -205.23, 2, math.random(0,8))
  34. MovementLoopAddLocation(NPC, 648.62, -18.52, -254.29, 2, math.random(0,8))
  35. MovementLoopAddLocation(NPC, 652.62, -21.7, -293.3, 2, math.random(0,8))
  36. MovementLoopAddLocation(NPC, 652.1, -21.9, -302.8, 2, math.random(0,8))
  37. MovementLoopAddLocation(NPC, 639.36, -20.31, -310.61, 2, math.random(0,8))
  38. MovementLoopAddLocation(NPC, 608.37, -20.8, -313.51, 2, math.random(0,8))
  39. MovementLoopAddLocation(NPC, 550.27, -21.46, -312.73, 2, math.random(0,8))
  40. MovementLoopAddLocation(NPC, 537.88, -20.8, -297.38, 2, math.random(0,8))
  41. MovementLoopAddLocation(NPC, 576.67, -20.63, -261.1, 2, math.random(0,8))
  42. MovementLoopAddLocation(NPC, 591.64, -21.03, -254.6, 2, math.random(0,8))
  43. MovementLoopAddLocation(NPC, 576.67, -20.63, -261.1, 2, math.random(0,8))
  44. MovementLoopAddLocation(NPC, 537.88, -20.8, -297.38, 2, math.random(0,8))
  45. MovementLoopAddLocation(NPC, 550.27, -21.46, -312.73, 2, math.random(0,8))
  46. MovementLoopAddLocation(NPC, 608.37, -20.8, -313.51, 2, math.random(0,8))
  47. MovementLoopAddLocation(NPC, 639.36, -20.31, -310.61, 2, math.random(0,8))
  48. MovementLoopAddLocation(NPC, 652.1, -21.9, -302.8, 2, math.random(0,8))
  49. MovementLoopAddLocation(NPC, 652.62, -21.7, -293.3, 2, math.random(0,8))
  50. MovementLoopAddLocation(NPC, 648.62, -18.52, -254.29, 2, math.random(0,8))
  51. MovementLoopAddLocation(NPC, 649.78, -17.86, -205.23, 2, math.random(0,8))
  52. end