9
3

bringing_out_your_souls.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : bring_out_your_souls.lua
  3. Script Purpose : Handles the quest, "Bring Out Your Souls"
  4. Script Author : Scatman
  5. Script Date : 2009.07.12
  6. Zone : The Graveyard
  7. Quest Giver: Zekvila Dizelk
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must kill ten undead and trap their souls.", 10, 100, "I should kill some undead like Zekvila asked of me. I'll hold out the crystal as each one is destroyed.", 611, 1250024, 1250028, 1250035, 1250042, 1250080, 1250068, 1250059, 1250021, 1250029, 1250063, 1250057, 1250081, 1250055, 1250043, 1250064, 1250053, 1250036, 1250087, 1250060, 1250041, 1250056, 1250046, 1250052, 1250049, 1250038, 1250091, 1250026, 1250006, 1250016, 1250037, 1250075, 1250012, 1250019, 1250020, 1250017, 1250097, 1250090, 1250079, 1250066, 1250034, 1250031)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledUndead")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "I understand. I'll be back when it's done.")
  19. StartConversation(conversation, QuestGiver, Player, "You choose wisely, friend. I shall use the lessons taught to the Iksar by our dead emperor, Venril Sathir. This is where you come in ... the magic of the dead will put a stop to Ithelz's pompous belief that he is our new ruler. I will tell you only once: take the crystal, go to the graveyard, and kill the undead knights. As the beasts die, hold out the crystal and collect their souls. Return when you fill the crystal.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function Step1_Complete_KilledUndead(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I have killed the undead.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed ten undead and collected their souls.")
  26. AddQuestStepChat(Quest, 2, "I need to speak with Zekvila.", 1, "I should return to Zekvila the crystal as she had commanded.", 0, 1250069)
  27. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have spoken with Zekvila.")
  31. UpdateQuestTaskGroupDescription(Quest, 2, "I have given Zekvila the crystal filled with souls.")
  32. GiveQuestReward(Quest, Player)
  33. UpdateQuestDescription(Quest, "Zekvila was pleased with the crystal. She claims that it will help her topple her rival's rule. I think I may ask her later if she needs any more help, in case she actually is successful.")
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. Step1_Complete_KilledUndead(Quest, QuestGiver, Player)
  38. end
  39. end