Guest User

CluckQuestCompeted

a guest
Dec 1st, 2014
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local QuestId_Cluck = 3861
  2. local NpcChicken = 620
  3. local GobIdFarmChickenEgg = 161513
  4.  
  5.  
  6. function OnQuestReward(event, player, creature, quest)
  7. -- Quest: Cluck!
  8. if (quest:GetId() == QuestId_Cluck) then
  9. -- spawn the cleansed plant
  10. local x, y, z = creature:GetRelativePoint(math.random()*9, math.random()*math.pi*2);
  11. creature:SummonGameObject(GobIdFarmChickenEgg, x, y, z, 0, 30);
  12. end
  13. end
  14.  
  15. RegisterCreatureEvent(NpcChicken, 34, OnQuestReward) -- 34 for creature OnQuestReward event
Advertisement
Add Comment
Please, Sign In to add comment