Ray Rewind
Doctor
Heya
I got this Action script
is it possible to remove the item
doCreateItem(9772,1,portal_quest01_pos)
after 10 minutes??
I got this Action script
Code:
function onUse(cid, item, frompos, item2, topos)
local portal_quest01_pos = {x = 1152, y = 845, z = 2, stackpos = 2}
if item.uid == 32145 then
if item.itemid == 1946 then
player1pos = {x=1153, y=845, z=2, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=1154, y=845, z=2, stackpos=253}
player2 = getThingfromPos(player2pos)
if player1.itemid > 0 and player2.itemid > 0 then
player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)
questlevel = 120
if player1level >= questlevel then
queststatus1 = getPlayerStorageValue(player1.uid,6300)
queststatus2 = getPlayerStorageValue(player2.uid,6300)
if queststatus1 == -1 and queststatus2 == -1 then
if 1==1 then
demon1pos = {x=1141, y=863, z=3}
demon2pos = {x=1141, y=865, z=3}
doSummonCreature("Baron Brute", demon1pos)
doSummonCreature("The Axeorcist", demon2pos)
nplayer1pos = {x=1129, y=865, z=3}
nplayer2pos = {x=1129, y=866, z=3}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doPlayerSendTextMessage(cid,22,"FIGHT!")
doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doCreateItem(9772,1,portal_quest01_pos)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doTransformItem(item.uid,1945)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
end
if item.uid == 32145 then
if item.itemid == 1945 then
doTransformItem(item.uid,1946)
end
end
return 1
end
end
end
is it possible to remove the item
doCreateItem(9772,1,portal_quest01_pos)
after 10 minutes??