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

Poi magicwall

Kippetjee

Member
Joined
Jun 17, 2009
Messages
1,197
Reaction score
11
Location
The Netherlands
i have a problem on the begin on poi
can some one help me to fix it?

LUA:
function onStepIn(cid, item, pos)
	local position = {x=412, y=1414, z=9}
	local position2 = {x=398, y=1380, z=9}
	
		if (getPlayerItemCount(cid, 1970) < 1) then
			doTeleportThing(cid, position)
			doSendMagicEffect(position,10)
		else

			doTeleportThing(cid, position2)
						doSendMagicEffect(position2,10)
		end
end




loggss.jpg
 
Magicwallentrace

MagicWallEntrance:
PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

 
local novapos = {x=32791, y=32328, z=10} 

if item.uid == 1994 then

getThingfromPos(getPlayerPosition(cid)) 
doSendMagicEffect(getPlayerPosition(cid),2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10) 
end 
end


MagicWallExit:
PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

 
local novapos = {x=32791, y=32332, z=10} 

if item.uid == 1995 then

getThingfromPos(getPlayerPosition(cid)) 
doSendMagicEffect(getPlayerPosition(cid),2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10) 
end 
end


Rep++ ^_^
 
Back
Top