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

hwo to use this command

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
doRemoveItem(uid,n)
i need to know if i want like to remove item with id 1387 from the map of postion {x=1000,y=1000,z=7)
what to write between brackets lol. :)
 
Code:
local iteeeemm = getThingFromPos({x = 1000, y = 1000, z = 7, stackpos = 1})
if (iteeeemm.uid ~= 0 and iteeeemm.itemid == 1387) then
	doRemoveItem(iteeeemm.uid, 1)
end
 
here is script
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
      local iteeeemm = getThingFromPos({x=93, y =126, z=7, stackpos=1})
      if (iteeeemm.uid ~= 0 and iteeeemm.itemid == 1387) then
         doRemoveItem(iteeeemm.uid, 1)
      end
end
but it doenst remove the tp (1387)
 
Back
Top