Elda Swok
Searching New Project
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: