Here (bugou a identação, ignora ela pls ehauehahu): function onUse(cid, item, frompos, item2, topos)local chance = 10 -- chance de cortarlocal madeiras = {17180, 17081, 17182, 17183} -- item que o player irá ganharlocal premio = madeiras[math.random(1, #madeiras)]local scanningFailCanRepeat = false
Apaga tudo dps do if name:find e adiciona isso: if name:find("fainted") and item2.aid ~= 4432 then if math.random(1,100) >= chance then doSetItemActionId(aid, 4432) doSendAnimatedText(topos, ""..randoms.."", TEXTCOLOR_GREEN) item = doCreateItemEx(premio, math.random(2,5)) doItemSetAttribute(item, "u
info
Grupo: Visconde
Registrado: 07/02/12
Posts: 427
Reputação: +112
Ok. vou testar!