LousyFairies.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/EnchantedLands/LousyFairies.lua
  3. Script Purpose : Handles the quest "Lousy Fairies"
  4. Script Author : Cynnar
  5. Script Date : 2015.04.01
  6. Script Notes : <special-instructions>
  7. Zone : Enchanted Lands
  8. Quest Giver : Gubbo Chaley
  9. Preceded by : <preceded-quest-name(lua file)>
  10. Followed by : <followed-by-quest-name(lua file)>
  11. Notes : Missing Fae Dusted Bracelet of Acumen, Alacrity, Resolve, and Piety. Random chance for one of the 4.
  12. --]]
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "Kill fairies along the coast.", 10, 100, "I'm going to kill a bunch of fairies to avenge the death of Gubbo's friend Fritz. There are fairies all along the coast and aren't difficult to find. Lousy fairies.", 611, 390063, 390163, 390065, 390161, 390164, 390160, 390224, 390058, 390060, 390066, 390057, 390059, 390061, 390229, 390036, 390039, 390040, 390044, 390517, 390037, 390043, 390045, 390049, 390165, 390233, 390075, 390529)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "Alright.")
  21. StartConversation(conversation, QuestGiver, Player, "Right over there, along the coast ... those blasted, smug fairies!")
  22. end
  23. function Step1Complete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I've slain a good many fairies along the coast. I shall return to Gubbo and inform him of what I've done.")
  25. AddQuestStepChat(Quest, 2, "I should return to Gubbo and tell him of the victorious slayings of fairies in honor of his good friend Fritz.", 1, "I'm going to kill a bunch of fairies to avenge the death of Gubbo's friend Fritz. There are fairies all along the coast and aren't difficult to find. Lousy fairies.", 0, 390078, 2520005, 2520004)
  26. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. Step1Complete(Quest, QuestGiver, Player)
  38. elseif Step == 2 then
  39. QuestReward(Quest, QuestGiver, Player)
  40. end
  41. end