function onUse(cid, item, fromPosition, itemEx, toPosition) -- part's of DrakyLukas
local _ = {4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824,4825}
local slot = getPlayerSlotItem(cid, CONST_SLOTARROW)
local water = getWater(slot.uid)
local refil = 2 -- % of reffil
local add = 0
if water == 99 then
add = 1
else
add = refil
end
if getWater(slot.uid) ~= 100 then
if isInArray(_, itemEx.itemid) then
setWaterPouchPercent(slot.uid, add)
end
else
doPlayerSendCancel(cid, "Your pouch is full")
end
return true
end
ESUQECI DE UM END.
dai vc usa o item, tem que estar no slot do arrow e da use na agua, o item tem a opção useWith?







info
Grupo: Visconde
Registrado: 10/02/11
Posts: 377
Reputação: +78
cara os erros quando abre pararam
mas agora da erro quando vc vai dar use