WarbleWildmane.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/WarbleWildmane.lua
  3. Script Purpose : Warble Wildmane
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Tree = 5533
  9. function spawn(NPC)
  10. ProvidesQuest(NPC,Tree)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. local conversation = CreateConversation()
  18. PlayFlavor(NPC,"voiceover/english/voice_emotes/greetings/greetings_3_1026.mp3","","listen",0,0,Spawn)
  19. AddConversationOption(conversation, "What? I don't see anyone talking.", "Option1")
  20. AddConversationOption(conversation, "Sorry, I must go.", "Option2")
  21. StartConversation(conversation, NPC, Spawn, "Shh! Old Treebark's talking!")
  22. -- StartConversation(conversation, NPC, Spawn, "Hello. Have you spoken to the Heartwood tree yet?")
  23. end
  24. function Option1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. PlayFlavor(NPC,"","","shrug",0,0,Spawn)
  28. AddConversationOption(conversation, "You talk to trees?", "Option3")
  29. StartConversation(conversation, NPC, Spawn, "Oh, sorry I forget most people can't talk to trees. Treebark and I were discussing the merits of various soils. I favor a rich Rivervale loam while tree bark here thinks New Antonican sod can't be beat.")
  30. end
  31. function Option3(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. local conversation = CreateConversation()
  34. PlayFlavor(NPC,"","","sigh",0,0,Spawn)
  35. if GetLevel(Spawn)>=30 and not HasCompletedQuest(Spawn,Tree) and not HasQuest(Spawn, Tree) then
  36. AddConversationOption(conversation, "Sure, what do I need to do?", "Option4")
  37. end
  38. AddConversationOption(conversation, "Interesting. Afraid I haven't got the time.")
  39. StartConversation(conversation, NPC, Spawn, "Yea, I spent most of my time with the Heartwood tree until the Heartwood matron forbade it. It needs help and I can't even approach it. Could you try?")
  40. end
  41. function Option4(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. local conversation = CreateConversation()
  44. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  45. AddConversationOption(conversation, "I can do this.", "Option5")
  46. StartConversation(conversation, NPC, Spawn, "Take this pendant and find the Heartwood tree. It's located in the center of this grove. Once there clasp the pendant in one hand and touch the tree with the other.")
  47. end
  48. function Option5(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. OfferQuest(NPC,Spawn,Tree)
  52. AddConversationOption(conversation, "You're welcome.")
  53. StartConversation(conversation, NPC, Spawn, "Thank you!")
  54. end
  55. function Option2(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. local conversation = CreateConversation()
  58. AddConversationOption(conversation, "Goodbye.")
  59. StartConversation(conversation, NPC, Spawn, "Goodbye!")
  60. end