Xavicrak
New Member
- Joined
- Mar 23, 2010
- Messages
- 186
- Reaction score
- 4
Hello there. I am trying to make a simply script. Let me explain: As you know, in Bazir seal of POI there is a blue tapestry which is on the mirror teleport.
The script simply must move this tapestry to next south position.
this is the error i get in console:
[Error - Action Interface ]
data/actions/scripts/PitsOfInferno/BazirTApestry.lua:OnUse
<luaDoRemoveItem> Item not found
The script simply must move this tapestry to next south position.
this is the error i get in console:
[Error - Action Interface ]
data/actions/scripts/PitsOfInferno/BazirTApestry.lua:OnUse
<luaDoRemoveItem> Item not found
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 65534 then
if item.itemid == 1871 then
local TapestryPos = {x=400,y=1522,z=13, stackpos = 1}
local Tapestry = getThingFromPos(TapestryPos)
local NewTapestryPos = {x=400,y=1523,z=13, stackpos = 1}
doRemoveItem(Tapestry)
doCreateItem(1871,NewTapestryPos)
end
end
return 1
end