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

Remove Item in use problem

Simonp1512

DBhispano
Joined
Feb 22, 2009
Messages
62
Reaction score
3
hi people, i have a problem with "doPlayerRemoveItem" when the item is in the backpack is remove perfect but when the item is on the ground the item no remove, the layer can use it but no remove

the scrip
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local kame = {lookType = 360}
local item = 10306
doPlayerSetVocation(cid,286)
doCreatureChangeOutfit(cid, kame)
doPlayerRemoveItem(cid, 10306, 1)
doRemoveCreature(cid)
return true
end

thx for the help
 
Solution
Code:
 doRemoveItem(10306, 1)

something like that?

i try that and in the consolo say item not found
Nope. The exact one i posted.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local kame = {lookType = 360}
doPlayerSetVocation(cid,286)
doCreatureChangeOutfit(cid, kame)
doRemoveItem(item.uid, 1)
doRemoveCreature(cid)
return true
end
Code:
 doRemoveItem(10306, 1)

something like that?

i try that and in the consolo say item not found
Nope. The exact one i posted.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local kame = {lookType = 360}
doPlayerSetVocation(cid,286)
doCreatureChangeOutfit(cid, kame)
doRemoveItem(item.uid, 1)
doRemoveCreature(cid)
return true
end
 
Solution
2uqzn0z.jpg


i'm getting this when i use your line bro
 
Back
Top