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

[REQUEST] About Teleports with action

baralala

New Member
Joined
Jan 15, 2009
Messages
120
Reaction score
1
Location
Argentina
Is it possible to make a teleport with actionid that teleport things too?

Or maybe a way to dont get the teleport full of trash

Captura.JPG
 
i won't make to you a full script i will just give you an idea
Code:
function onAddItem(cid, moveitem, tileitem, position)
         if tileitem == ??? then
         doPlayerSendCancel(cid, "You can't through things in teleport"
         doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
         end
         return false
end

don't forget to add it in movement with additem="1"
 
Well thx i used this one

HTML:
<movevent type="AddItem" actionid="2001" tileitem="1" event="script" value="xxxx.lua"/>

HTML:
function onAddItem(moveitem, tileitem, position)
  doRemoveItem(moveitem.uid)
  return true
end
 

Similar threads

Back
Top