• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Level/Vocation Door

Elda Swok

Searching New Project
Joined
Jun 18, 2008
Messages
703
Reaction score
9
Location
Pittsburgh, Pa.
Here is a code i made, with a little help from looking at other scripts, it just makes you need to be a certain level, and a certain vocation to enter it.

Code:
local location = {x=135, y=352, z=6}
messagepos =  "You are worthy enough, to enter the library of scholars"
messageneg = "Im sorry, you are not quite educated enough"

function onStepIn(cid, item, position, fromPosition)
	if getPlayerVocation(cid) == 5 and getPlayerLevel(cid) == 35 then
		doTeleportThing(cid, location, TRUE)
		doSendMagicEffect(location, 10)
		doSendPlayerTextMessage(cid, MESSAGE_INFO_DESCR, messagepos)
	else
		doSendPlayerTextMessage(cid, MESSAGE_INFO_DESCR, messageneg)
		doTeleportThing(cid, fromPosition, TRUE)
		doSendMagicEffect(fromPosition, 2)
	end
end
 
Last edited:
Here is a code i made, with a little help from looking at other scripts, it just makes you need to be a certain level, and a certain vocation to enter it.

Code:
local location = {x=135, y=352, z=6}
messagepos =  "You are worthy enough, to enter the library of scholars"
messageneg = "Im sorry, you are not quite educated enough"

function onStepIn(cid, item, position, fromPosition)
	if getPlayerVocation(cid) == 5 and getPlayerLevel(cid) == 35 then
		doTeleportThing(cid, location, TRUE)
		doSendMagicEffect(location, 10)
		doSendPlayerTextMessage(cid, MESSAGE_INFO_DESCR, messagepos)
	else
		doSendPlayerTextMessage(cid, MESSAGE_INFO_DESCR, messageneg)
		doTeleportThing(cid, fromPosition, TRUE)
		doSendMagicEffect(fromPosition, 2)
	end
end

is this a door or just a tile that makes you walk past a wall? (just referring to your title i know its movement)
and what is behind the door that you'd only want 1 possible level to get through? the only 1 vocation i can understand but not so much the level :)
 
So it's gonna be like this:

Code:
local location = {x=135, y=352, z=6}
messagepos =  "You are worthy enough, to enter the library of scholars"
messageneg = "Im sorry, you are not quite educated enough"

function onStepIn(cid, item, position, fromPosition)
	if getPlayerVocation(cid) == 5 and getPlayerLevel(cid) == 35 then
		doTeleportThing(cid, location, TRUE)
		doSendMagicEffect(location, 10)
		doSendPlayerTextMessage(cid, MESSAGE_INFO_DESCR, messagepos)
	else
	getPlayerLevel(cid) >= 35
		doSendPlayerTextMessage(cid, MESSAGE_INFO_DESCR, messageneg)
		doTeleportThing(cid, fromPosition, TRUE)
		doSendMagicEffect(fromPosition, 2)
	end
end


?????
 
Back
Top