Matheus Vieira
Member
- Joined
- Apr 11, 2015
- Messages
- 105
- Reaction score
- 6
Hello, i'd like to, when the player use a machete, an effect would appear in the bush. I tried to do myself but the effect only appear on the player.
thank you
C++:
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 2781 then
doTransformItem(item2.uid,2782)
doDecayItem(item2.uid)
elseif item2.itemid == 3984 then
doTransformItem(item2.uid,3985)
doDecayItem(item2.uid)
else
return 0
end
doPlayerRemoveItem(cid, 13190, 1)
doSendMagicEffect(getThingPos(item.uid), CONST_ME_MAGIC_BLUE)
return 1
end
thank you