Dominik ms
Member
- Joined
- Jan 20, 2010
- Messages
- 424
- Reaction score
- 6
this work, but if is there monster or player i have error and cant remove my item
PHP:
[Error - Action Interface]
data/actions/scripts/test2.lua:onUse
Description:
(luaDoRemoveItem) Item not found
PHP:
function onUse(cid, item, fromPosition, itemEx, toPos)
local s2 = getPlayerStorageValue(cid, 1102)
local s3 = getPlayerStorageValue(cid, 1103)
local s4 = getPlayerStorageValue(cid, 1104)
local corpsePos = {x=s2, y=s3, z=s4, stackpos=1}
local corpse1 = getThingfromPos(corpsePos)
doRemoveItem(corpse1.uid)
return true
end