LarkMeadowswoon.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/LarkMeadowswoon.lua
  3. Script Purpose : Lark Meadowswoon
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. choice = math.random(1,3)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/exp03_questvo2/lark_meadowswoon/_exp03/exp03_rgn_greater_faydark/fae/flavor_lark_meadowswoon_hail_4110c2bb.mp3", "The Shroombas are majestic, aren't they? They honor us by protecting this grove and the plants that grow here.", "", 1285635873, 695500372, Spawn)
  23. elseif choice == 2 then
  24. PlayFlavor(NPC, "voiceover/english/exp03_questvo2/lark_meadowswoon/_exp03/exp03_rgn_greater_faydark/fae/flavor_lark_meadowswoon_hail_9176e05b.mp3", "The seeds the Shroombas plant and protect are of great value to us!", "", 1853355142, 1854304162, Spawn)
  25. elseif choice == 3 then
  26. PlayFlavor(NPC, "voiceover/english/exp03_questvo2/lark_meadowswoon/_exp03/exp03_rgn_greater_faydark/fae/flavor_lark_meadowswoon_hail_ec97b992.mp3", "It's fascinating to watch the Shroombas work. They help keep our forest green and alive!", "", 2987054098, 2174581919, Spawn)
  27. else
  28. end
  29. end