Salve meu jovem! Tenta aê. Em data/creaturescripts/scripts salva esse código como rookdown.lua:
function onLogin(cid)
local options = {
level = 6,
town = 2,
msg = "You did not support the routine MainLand, go train!",
}
if (getPlayerLevel(cid) <= options.level) then
if (getPlayerTown(cid) ~= options.town) then
doPlayerSetTown(cid, options.town)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, options.msg)
end
end
return true
end
(Na variável "level" você configura o level para rookar. Em town é o TownID da sua "rookgaard".)
Em creaturescripts.xml, insira essa tag:
<event type="login" name="RookDown" event="script" value="rookdown.lua"/>
E por último, insira isso em login.lua:
registerCreatureEvent("RookDown")