Return Of Tibia
Member
- Joined
- Feb 18, 2019
- Messages
- 24
- Reaction score
- 21
Greetings, community!
A few moments ago I was writing a script for which I needed to get the uid of a container.
Here, its assumed that each item inside the container must have the container uid as actionid, am I wrong?
Well, now I'm trying to get that container through the actionid, as an example:
In an action where the item used has the actionid that the function above gave us, but what happens is that the console throws this error:WTF !? That was my reaction, what is my mistake? Please help!
A few moments ago I was writing a script for which I needed to get the uid of a container.
Lua:
function addGps(cid)
local gps = doPlayerAddItem(cid, 12897)
for i = 12901, 12898, -1 do
doItemSetActionId(doAddContainerItem(gps, i), gps)
end
return true
end
Well, now I'm trying to get that container through the actionid, as an example:
Lua:
getContainerSize(item.actionid)
[18/2/2019 7:41:51] (LuaInterface::luaGetContainerSize) Container not found
Thank you in advance, regards!