• 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!

lua script <help plz>

7i7a

New Member
Joined
Feb 23, 2011
Messages
43
Reaction score
1
Hello all
iam looking for an lua script {action}
that work as the following :-
if i have an itemid 3031 and use it then the item with id removed (3031)
and new item add to my backpack another id
with a magic effect (ill edit myself)
Thx :D
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

doRemoveItem(item.uid)
doPlayerAddItem(cid, newitemid, count)
doSendMagicEffect(fromPosition, CONST_ME_HITAREA)

return true
end
 
Back
Top