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

doTeleportThing

Status
Not open for further replies.

Kramer infernal

I work alone =/
Joined
Jun 18, 2008
Messages
225
Reaction score
0
doTeleportThing [SOLVED]

Code:
function onStepIn(cid, item, position, fromPosition)
		local player = getThingPos(cid)
		local newpos =   {x=1035, y=934, z=6}
		local newpost =   {x=1035, y=939, z=6}
		local soyapos =  {x=1015, y=937, z=9}
		local returnpos =   {x=1014, y=932, z=7}
		local quest = getPlayerStorageValue(cid,8004)
		
    	if item.actionid == 8005 and quest == 13 then
		doTeleportThing(player,newpos)
		
		elseif item.actionid == 8006 then
		doTeleportThing(player,newpost)
		
		elseif item.actionid == 8007 and quest == 15 then
		doTeleportThing(player,soyapos)
		
		elseif item.actionid == 8008 and quest == 15 then
		doTeleportThing(player,returnpos)
		
	else
    	doCreatureSay(cid,'You\'re not available to do this quest yet', TALKTYPE_ORANGE_1)
	end
	return TRUE
end

Console Said: cannot find thing at doTeleportThing, thing not found...
 
Last edited:
:S

getCreaturePosition(cid)

--
Code:
function onStepIn(cid, item, position, fromPosition)
		local newpos =   {x=1035, y=934, z=6}
		local newpost =   {x=1035, y=939, z=6}
		local soyapos =  {x=1015, y=937, z=9}
		local returnpos =   {x=1014, y=932, z=7}
		local quest = getPlayerStorageValue(cid,8004)
		
    	if item.actionid == 8005 and quest == 13 then
		doTeleportThing(cid,newpos)
		
		elseif item.actionid == 8006 then
		doTeleportThing(cid,newpost)
		
		elseif item.actionid == 8007 and quest == 15 then
		doTeleportThing(cid,soyapos)
		
		elseif item.actionid == 8008 and quest == 15 then
		doTeleportThing(cid,returnpos)
		
	else
    	doCreatureSay(cid,'You\'re not available to do this quest yet', TALKTYPE_ORANGE_1)
	end
	return TRUE
end

If you are using TFS: doTeleportThing(cid, newpos, 0)
 
changed to getPlayerPosition, no result at all.

Edit, changed to getCreaturePosition, no result at all.

I'm using TFS, cid,newpos,0 and that thing, doesn't work neither :S

Edit, IT WORKED! solved, I forgot to replace

player,newpos

player,newpos,0

to

cid,newpos,0

thanks for all ;)

yours always will be welcome in my server ;)
 
Last edited:
Status
Not open for further replies.
Back
Top