Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onAddItem(moveitem, tileitem, position, cid)
- local laranja = getTileItemById(position, 2675)
- local batata = getTileItemById(position, 8838)
- local counter = laranja.type - batata.type == 0 and laranja.type or 1
- if(moveitem.itemid == 2693) then
- doTransformItem(moveitem.uid, 2689)
- elseif(moveitem.itemid == 2671) then
- doTransformItem(moveitem.uid, 2666)
- elseif(laranja.uid > 0) and (batata.uid > 0) then
- doRemoveItem(laranja.uid, counter)
- doRemoveItem(batata.uid, counter)
- doCreateItem(2666, counter, position)
- end
- return doSendMagicEffect(position, CONST_ME_HITBYFIRE)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement