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

teleporting tile.

kimokimo

Kimo
Joined
Jan 25, 2011
Messages
821
Solutions
6
Reaction score
156
GitHub
karimadnan
1st

need script to teleport players when they move on the tile +effect


2nd

how i can edit my training monk look type i want it like flag or something like that.
 
movement.
tested in 0.3.6 <-
add in movement.xml
HTML:
	<movevent type="StepIn" uniqueid="1000" event="script" value="****.lua" />
open a note book and add...

HTML:
function onStepIn(cid, item, position, fromPosition)

	local p = {x=1000,y=1000,z=7}

    if(p) then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Entering to *****.")
		doSendMagicEffect(getPlayerPosition(cid),46) 
			doTeleportThing(cid,p)
				doSendMagicEffect(getThingPos(cid), CONST_ME_SMALLPLANTS)
			end
	return true
end

you will make it very easy to edit, and if you have problems, just posting it here.
 
you need change a line in the training monk.
HTML:
<look type="57" head="20" body="30" legs="40" feet="50" corpse="6080"/>

change to
HTML:
<look typeex="5777"  corpse="0"/>

need to edit the monk so he can not die.
and you can make the monster is any item that rigidities
 
*kimokimo
Member can you make the tile with lvls?
R: Of course ;)..

HTML:
function onStepIn(cid, item, position, fromPosition)

	local p = {x=1000,y=1000,z=7}
	level = 70

    if(p) then
	if(getPlayerLevel(cid) >= level) then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Entering to *****.")
		doSendMagicEffect(getPlayerPosition(cid),46) 
			doTeleportThing(cid,p)
				doSendMagicEffect(getThingPos(cid), CONST_ME_SMALLPLANTS)
		else
			doPlayerSendCancel(cid, "Sorry, only level 70 can pass from tile.")
			doTeleportThing(cid, fromPosition, false)
		end
	return true
end
end

Tested.
 
LUA:
 -- script by Knight God. Small edit.
function onStepIn(cid, item, position, fromPosition)

	local p = {x=1000,y=1000,z=7}
	local level = 70

    if(p) then
	if(getPlayerLevel(cid) >= level) then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Entering to *****.")
		doSendMagicEffect(getPlayerPosition(cid),46) 
			doTeleportThing(cid,p)
				doSendMagicEffect(getThingPos(cid), CONST_ME_SMALLPLANTS)
		else
			doPlayerSendCancel(cid, "Sorry, only level 70 can pass from tile.")
			doTeleportThing(cid, fromPosition, false)
		end
	return true
end
end

use this. Edited in local level = 70 other if it was left as just level = 70 for every other script including 'level' would be set as = 70
 
Back
Top