Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- time = 60,
- arvorescut = {2767, 2768, 2785, 2786, 2708},
- residuos = 6219,
- Madeira = {0, 1, 2, 3, 4, 5, 6},
- messages = {"cuting", "Cortando", "tak tak tak"},
- }
- function onUse(cid, item, frompos, item2, topos) -- By Lancellott @junior2b
- if not isInArray(config.arvorescut, item2.itemid) then
- doPlayerSendTextMessage(cid, 27, "You only can cut threes!")
- return true
- end
- doCreatureSay(cid, config.messages[math.random(#config.messages)], TALKTYPE_ORANGE_1)
- doSendMagicEffect(getCreaturePosition(cid), 3)
- doTransformItem(item2.uid, config.residuos[math.random(#config.residuos)])
- doPlayerAddItem (cid, 5901, config.Madeira[math.random(#config.Madeira)])
- doSendAnimatedText(getCreaturePosition(cid), "CUTED!", math.random(1, 255))
- addEvent(doCreateItem, time*60*1000, item2.itemid, 1, getThingPos(item2.uid))
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement