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

when stone appear, push players

d4rkbl0od

Member
Joined
Mar 21, 2008
Messages
160
Reaction score
7
Hi people, look at this script
Code:
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = {x=32826,y=32272,z=12,stackpos=1} 


if item.actionid == 10242 then

doSendMagicEffect(playerpos,CONST_ME_TELEPORT)
 
doTeleportThing(cid,playerpos) 
doCreateItem(1205,stonepos)
 
end 
end

as you can see, when a player step on the title, he get teleported to the POI hall, and a stone is created in that position bloking the way to that title...;
I need a script that when a stone is created, players on that pos get teleported to somewhere, is it possible?
 
LUA:
function onStepIn(cid, item, pos, fromPos)
	doTeleportThing(cid, {x=32826, y=32273, z=12})
	doRelocate({x=32826, y=32274, z=11}, {x=32826, y=32275, z=11})
	doCreateItem(1285, 1, {x=32826, y=32274, z=11})
end
 
Back
Top