1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- --[[
- Script Name : funny_rat_smashing.lua
- Script Purpose : Handles the quest, "Funny Rat Smashing"
- Script Author : torsten
- Script Date : 11.07.2022
- Script Notes :
- Zone : Big Bend
- Quest Giver : Muzmog
- Preceded by : Muzmog's Rat Smashing Fun
- Followed by : None
- --]]
- function Init(Quest)
- AddQuestStepKill(Quest, 1, "I must kill ten rats here in Freeport.", 10, 100, "If I kill ten rats, that should make Muzmog like me more.", 99, 1540004, 1250014, 1250016, 1250035, 1540031)
- AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
- end
- function Step1Complete(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 1, "I have killed the rats.")
- UpdateQuestTaskGroupDescription(Quest, 1, "I've killed the rats that Muzmog pointed out.")
-
- AddQuestStepChat(Quest, 2, "I should return to Muzmog.", 1, "I should return to Muzmog.", 11, 1340020)
- AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
- end
- function QuestComplete(Quest, QuestGiver, Player)
- UpdateQuestDescription(Quest, "I've tried to make friends with Muzmog, but it seems he's had a bit too much to drink. I think I'll leave him alone from now on.")
- GiveQuestReward(Quest, Player)
- end
- function Accepted(Quest, QuestGiver, Player)
- -- Add dialog here for when the quest is accepted
- end
- function Declined(Quest, QuestGiver, Player)
- -- Add dialog here for when the quest is declined
- end
- function Deleted(Quest, QuestGiver, Player)
- -- Remove any quest specific items here when the quest is deleted
- end
- function Reload(Quest, QuestGiver, Player, Step)
- if Step == 1 then
- Step1Complete(Quest, QuestGiver, Player)
- elseif Step == 2 then
- QuestComplete(Quest, QuestGiver, Player)
- end
- end
|