• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Effect on the area

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.

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
 
Solution
You can use this:
Code:
doSendMagicEffect(topos, CONST_ME_MAGIC_BLUE)
That will send a blue sparkle to the position of the bush.
Back
Top