lizudus
Www.Xivarian.Com Owner
- Joined
- May 14, 2008
- Messages
- 456
- Reaction score
- 5
How i can do this? remove item after 3 minuts
I tryed this one but dont work XD!
What mine have different??This
Rep++
PHP:
function onStepIn(cid, item, frompos, item2, topos)
wall1 = {x=461, y=1374, z=10, stackpos=1}
getwall1 = getThingfromPos(wall1)
if item.uid == 10225 then
doTransformItem(item.uid, item.itemid - 1)
doCreateItem(1386,1,wall1)
end
end
function onStepOut(cid, item, frompos, item2, topos)
wall1 = {x=461, y=1374, z=10, stackpos=1}
getwall1 = getThingfromPos(wall1)
if item.uid == 10225 then
doTransformItem(item.uid, item.itemid + 1)
doRemoveItem(getwall1.uid,1)
end
return 1
end
I tryed this one but dont work XD!
PHP:
local time = 180 --seconds(3 minutes)
function onStepIn(cid, item, frompos, item2, topos)
wall1 = {x=461, y=1374, z=10, stackpos=1}
getwall1 = getThingfromPos(wall1)
if item.uid == 10225 then
doTransformItem(item.uid, item.itemid - 1)
doCreateItem(1386,1,wall1)
end
end
function onStepOut(cid, item, frompos, item2, topos)
wall1 = {x=461, y=1374, z=10, stackpos=1}
getwall1 = getThingfromPos(wall1)
if item.uid == 10225 then
doTransformItem(item.uid, item.itemid + 1)
addEvent(doRemoveItem, time * 1000, getwall1.uid,1)
end
return 1
end
What mine have different??This
PHP:
local time = 180 --seconds(3 minutes)
addEvent(doRemoveItem, time * 1000, getwall1.uid,1)
Rep++