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

Help me....

morramead

New Member
Joined
Jan 23, 2008
Messages
74
Reaction score
0
Hi, i need a help in this script\/

(i cut the code of my script)/
this action is based on anihilator

starting={x=963, y=1084, z=8, stackpos=253}
checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos}
ending={x=976, y=1090, z=8, stackpos=253}
players=0
totalmonsters=0
monster = {}
repeat
creature= getThingfromPos(checking)
if creature.itemid > 0 then
if getPlayerAccess(creature.uid) == 0 then
players=players+1
end
if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then
totalmonsters=totalmonsters+1
monster[totalmonsters]=creature.uid
end
end
checking.x=checking.x+1
if checking.x>ending.x then
checking.x=starting.x
checking.y=checking.y+1
end
until checking.y>ending.y
if players==0 then
trash= {x=998, y=1101, z=8}
current=0
repeat
current=current+1
doTeleportThing(monster[current],trash)
until current>=totalmonsters

This action, remove the monsters in a determinate area(sending them to the trash), and only works if there is no player in the area.

I need to remove the "items" (not monsters) in a determinate area(sending then to trash), and only works if there is no player in the area.

you can help me, sry my english xD
 
Last edited:
Back
Top