Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local QuestId_Cluck = 3861
- local NpcChicken = 620
- local GobIdFarmChickenEgg = 161513
- function OnQuestReward(event, player, creature, quest)
- -- Quest: Cluck!
- if (quest:GetId() == QuestId_Cluck) then
- -- spawn the cleansed plant
- local x, y = creature:GetRelativePoint(math.random()*9, math.random()*math.pi*2);
- local z = creature:GetMap():GetHeight(x, y) or creature:GetZ()
- creature:SummonGameObject(GobIdFarmChickenEgg, x, y, z, 0, 30);
- end
- end
- RegisterCreatureEvent(NpcChicken, 34, OnQuestReward) -- 34 for creature OnQuestReward event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement