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

Delete a item in X position

Lakkir

Active Member
Joined
Jan 6, 2009
Messages
29
Reaction score
25
Location
Chile
How i can do that?
I want to remove a item in:
X=1360 Y=782 Z=7

What is the function?
or you can do one golbalevent for me?

Thanks... And sorry for my bad english

PD: I Want to remove a "Magic forcefield" (a teleport)
 
Last edited:
all items, or 1 item?

for all:

PHP:
local pos = {x=1360, y=782, z=7, stackpos=2}
local r=true
repeat 
  item = getThingfromPosition(pos)
  if(item)then
   doRemoveItem(item.uid, item.type)
  else
   r = false
  end
  pos.stackpos = pos.stackpos+1
until(r==true)
 
Thanks, I will test the script


don't work =/

[Error - GlobalEvent Interface]
data/globalevents/scripts/removetp.lua:eek:nThink
Description:
data/globalevents/scripts/removetp.lua:5: attempt to call global ´getThingfromPosition` (a nil value)
stack traceback:
data/globalevents/scripts/removetp.lua:5: in function <data/globalevents/scripts/removetp.lua:1>
[Error - GlobalEvents::think] Couldn`t execute event: removetp
 
Last edited:
Back
Top