9
3

TairielOakshade.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/TairielOakshade.lua
  3. Script Purpose : Tairiel Oakshade
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  10. end
  11. function hailed(NPC, Spawn)
  12. if GetFactionAmount(Spawn,11) <0 then
  13. FaceTarget(NPC, Spawn)
  14. PlayFlavor(NPC, "", "", "noway", 0, 0, Spawn)
  15. else
  16. SaySomething(NPC, Spawn)
  17. end
  18. end
  19. function InRange(NPC, Spawn)
  20. if GetFactionAmount(Spawn,11) <0 then
  21. FaceTarget(NPC, Spawn)
  22. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  23. else
  24. if math.random(1,100) <=30 then
  25. SaySomething(NPC, Spawn)
  26. end
  27. end
  28. end
  29. function SaySomething(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. local choice = math.random(1,5)
  32. if choice == 1 then
  33. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_1bda6347.mp3", "The destructive methods of the Qeynos Guard will ravage that which it seeks to defend.", "nod", 421213855, 4168573173, Spawn)
  34. elseif choice == 2 then
  35. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_e274bc0f.mp3", "The mechanical beasts of the Ironforge Exchange belch forth black clouds to choke out life within the forests.", "", 1242578412, 4198131350, Spawn)
  36. elseif choice == 3 then
  37. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_c57df74b.mp3", "I fear that the Concordium is unable to control its disciples. If corrupted the sorcerers would surely bring harm to the woodlands and their creatures.", "ponder", 63339104, 2681140716, Spawn)
  38. elseif choice == 4 then
  39. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_2c2d0ef6.mp3", "The Tunarian Alliance preserves our memories of the breathing trees and singing streams of Jaggedpine.", "agree", 1912930054, 3530428976, Spawn)
  40. elseif choice == 5 then
  41. PlayFlavor(NPC, "voiceover/english/human_eco_good_tunarianalliance/ft/eco/good/human_eco_good_tunarianalliance_hail_gm_24723d84.mp3", "While the land suffers and cries out for immediate protection the Celestial Watch is content to look to myths and superstitions for our salvation.", "agree", 1704735533, 1025969438, Spawn)
  42. else
  43. end
  44. end