advanced_problem_solving.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/TheSprawl/advanced_problem_solving.lua
  3. Script Purpose : Handles the quest, "Advanced Problem Solving"
  4. Script Author : Scatman
  5. Script Date : 2009.07.26
  6. Zone : The Sprawl
  7. Quest Giver: Crispin Luvinius
  8. Preceded by: Problem Solving (problem_solving.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to beat up five Giantslayer bashers.", 5, 100, "I've heard that Giantslayer bashers hang out in the Sprawl. I should pay them a little visit.", 611, 1260022)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledBashers")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "Yah, yah.")
  19. StartConversation(conversation, QuestGiver, Player, "Good, maybe you'll earn some respect with us.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function Step1_Complete_KilledBashers(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I've beat down five Giantslayer bashers.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I've sent the Giantslayers a message that they shouldn't listen to vagrants who tell tall tales.")
  26. AddQuestStepChat(Quest, 2, "I need to talk with Crispin.", 1, "I should let Crispin know that he and his gang have nothing to worry about.", 0, 1260020)
  27. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  28. end
  29. function Quest_Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I've spoken with Crispin.")
  31. UpdateQuestTaskGroupDescription(Quest, 2, "I've let Crispin know these guys won't be bothering them anymore.")
  32. GiveQuestReward(Quest, Player)
  33. UpdateQuestDescription(Quest, "I've taken care of Crispin's problem. It seems that the guy isn't as tough as he acts.")
  34. end
  35. function Reload(Quest, QuestGiver, Player)
  36. if Step == 1 then
  37. Step1_Complete_KilledBashers(Quest, QuestGiver, Player)
  38. end
  39. end