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

Help

Nacke

New Member
Joined
Feb 13, 2008
Messages
79
Reaction score
0
hello,no work in tfs 0.3.2 cryingdamson what is the problem?

PHP:
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=15368, y=16428, z=0} 
msg = ""

if item.uid == 8054 then 

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10) 
doPlayerSendTextMessage(cid, 22, msg)
end 
end

PHP:
local ice = {x=32667, y=31525, z=7}
local fire = {x=32664, y=31538, z=7}
local energy = {x=32635, y=31539, z=7}
local earth = {x=32646, y=31521, z=7}
 
function onStepIn(cid, item, position) 
	if getPlayerLookDir(cid) == 0 then
		newdir = 2
	elseif getPlayerLookDir(cid) == 1 then
		newdir = 3
	elseif getPlayerLookDir(cid) == 2 then
		newdir = 0
	else
		newdir = 1
	end
 
	if item.actionid == 7832 then
		if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then
			doTeleportThing(cid,ice)
			doSendMagicEffect(ice,10)
		else
			doCreatureSay(cid,"Only Premium Druids of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, newdir)
		end
	elseif item.actionid == 7833 then
		if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then
			doTeleportThing(cid,earth)
			doSendMagicEffect(earth,10)
		else
			doCreatureSay(cid,"Only Premium Druids of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, newdir)
		end
	elseif item.actionid == 7830 then
		if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then
			doTeleportThing(cid,fire)
			doSendMagicEffect(fire,10)
		else
			doCreatureSay(cid,"Only Premium Sorcerers of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, newdir)
		end
	elseif item.actionid == 7831 then
		if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then
			doTeleportThing(cid,energy)
			doSendMagicEffect(energy,10)
		else
			doCreatureSay(cid,"Only Premium Sorcerers of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1)
			doMoveCreature(cid, newdir)
		end
	end
end



thz for all
 
Back
Top