9
3

VisionsOfHatred.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Quests/NektroposCastle/VisionsOfHatred.lua
  3. Script Purpose :
  4. Script Author : smash
  5. Script Date : 2016.1.24
  6. Zone : Nektropos Castle
  7. Quest Giver : None
  8. Preceded by : None
  9. Followed by : None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "The Everling manservants must pay for what they've done!", 1, 100, "I must slay the Everling manservants.", 611, 1780038, 1780040, 1780036)
  13. AddQuestStepCompleteAction(Quest, 1, "AddStep2")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. end
  17. function Declined(Quest, QuestGiver, Player)
  18. end
  19. function AddStep2(Quest, QuestGiver, Player)
  20. UpdateQuestStepDescription(Quest, 1, "I found a guestroom key!")
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I found a guestroom key while slaying Everling manservants.")
  22. GiveQuestItem(Quest, Player, "", 7979)
  23. AddQuestStep(Quest, 2, "Examine the key.", 1, 100, "Inspect the key I found on the manservants.", 1007)
  24. AddQuestStepCompleteAction(Quest, 2, "Completed")
  25. end
  26. function Completed(Quest, QuestGiver, Player)
  27. SetCompleteFlag(Quest)
  28. UpdateQuestStepDescription(Quest, 2, "I have examined the key.")
  29. UpdateQuestTaskGroupDescription(Quest, 2, "I found a guestroom key!")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. if Step == 1 then
  34. AddStep2(Quest)
  35. end
  36. end