Postado Maio 19, 2015 10 anos -- <movevent event="StepIn" actionid="47001" script="egg.lua"/> function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local x = math.random(1, 100) if isMonster(cid) and getCreatureName(cid) == "Chicken" then if (x >= 95) then doCreateItem(2695, 1, fromPosition) doSendMagicEffect(fromPosition, CONST_ME_POFF) doSendAnimatedText(fromPosition, "EGG!", 215) end end return true end STYLLER OT 2022
Postado Maio 19, 2015 10 anos Autor -- <movevent event="StepIn" actionid="47001" script="egg.lua"/> function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local x = math.random(1, 100) if isMonster(cid) and getCreatureName(cid) == "Chicken" then if (x >= 95) then doCreateItem(2695, 1, fromPosition) doSendMagicEffect(fromPosition, CONST_ME_POFF) doSendAnimatedText(fromPosition, "EGG!", 215) end end return true end deixei 95, mudei de 95 pra 100, pra 1, tentei de diversas maneiras e não está dando nenhum bug, porém não dropa nenhum ovo ;x
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.