It's for 8.54, don't know if that matters at all, but it doesn't work, lemme show you.
- - - Updated - - -
[24/01/2013 21:36:59] [Error - Action Interface]
[24/01/2013 21:36:59] data/actions/scripts/tools/picking.lua
nUse
[24/01/2013 21:36:59] Description:
[24/01/2013 21:36:59] (luaDoPlayerAddItem) Player not found
doPlayerAddItem(cid, 2377, 1, true, 1, CONST_SLOT_LEFT)
or
doPlayerAddItem(cid, 2377, 1, true, 1, SLOT_LEFT)
By the way, I have an issue with more stuff in this script:
doPlayerAddItem(cid, 2377, 1, true, 1, SLOT_LEFT)
doPlayerAddItem(cid, 2463, 1)
doPlayerAddItem(cid, 9775, 1)
doPlayerAddItem(cid, 1988, 1)
local pos = {x=91, y=118, z=7}
local tmp = getThingFromPos(pos)
doRemoveCreature(tmp.uid)
end
end
It does add all other items, however, it doesn't remove thing from pos.
[24/01/2013 21:38:18] [Error - Action Interface]
[24/01/2013 21:38:18] data/actions/scripts/tools/picking.lua
nUse
[24/01/2013 21:38:18] Description:
[24/01/2013 21:38:18] (luaDoRemoveCreature) Creature not found
It's definitely there, it's npc.