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

StepIn

Gregor

New Member
Joined
Feb 29, 2008
Messages
770
Reaction score
3
Location
UK/POLAND
Hello!
I need script when you StepIn to teleport/tile remove tree id"2717"
from pos that I choose...
?? ;D

PS. I use TFS 0.2 (8.31)
Thanks A Lot
 
function onStepIn(cid, item, frompos, item2, topos)

gatepos = {x=673, y=928, z=7, stackpos=1}
getgate = getThingfromPos(gatepos)

queststatus = getPlayerStorageValue(cid,20001)
if queststatus == 1 then

if item.actionid == 8341 and getgate.itemid == 0 then
doRemoveItem(item.uid,1,gatepos)
doCreateItem(2717,1,gatepos)
end
end
end


my demon oak quest...
 
Code:
 local gatePos =
{
x = 673,
y = 928,
z = 7,
stackpos = 1
}
 
 local getGate = getThingfromPos(gatepos)

function onStepIn(cid, item, frompos, item2, topos)
	if ((getPlayerStorageValue(cid, 20001) == TRUE) and (getGate.itemid == FALSE)) then
	   doRemoveItem(getGate.uid) 
	   doCreateItem(2717, 1, gatePos)
 end
 return TRUE
end

Code:
	<movevent event="StepIn" actionid="8341" script="[B][I][U]SCRIPT[/U][/I][/B]" />

Not tested!
 
Last edited:
Back
Top