function onLogin(cid)
local moves = {
{dir = SOUTH, delay = 500},
{dir = WEST, delay = 750},
{dir = SOUTH, delay = 1000},
{dir = SOUTH, delay = 1250},
{dir = SOUTH, delay = 1500},
{dir = SOUTH, delay = 1750},
{dir = SOUTH, delay = 2000},
{dir = SOUTH, delay = 2250},
{dir = SOUTH, delay = 2500},
{dir = SOUTH, delay = 2750},
{dir = EAST, delay = 3250},
{dir = EAST, delay = 3500},
{dir = EAST, delay = 3750},
{dir = NORTH, delay = 4000}
}
local messages = {
{tresc = "Welcome on Mystic Ots, here is a temple!", typ = MESSAGE_INFO_DESCR, delay = 250},
{tresc = "Now you go to the depo!", typ = MESSAGE_INFO_DESCR, delay = 3000},
{tresc = "Here is a depo! On upstairs is a small TP room, you can go easy monster at first it is under the town! You succefully end the tutorial!", typ = MESSAGE_INFO_DESCR, delay = 4000}
}
local storage = 226
if (getPlayerStorageValue(cid,storage) == -1) then
mayNotMove(cid,1)
for i=1, #moves do
local x = {dir = moves[i].dir, cid = cid}
addEvent(move,moves[i].delay,x)
end
for i=1, #messages do
local message1 = {tresc = messages[i].tresc, cid = cid, typ = messages[i].typ}
addEvent(message,messages[i].delay,message1)
end
local cidek = {cid = cid}
addEvent(mayMove,4500,cidek)
setPlayerStorageValue(cid,storage,1)
return TRUE
end
end
function move(x)
doMoveCreature(x.cid, x.dir)
return TRUE
end
function message(message1)
doPlayerSendTextMessage(message1.cid,message1.typ,message1.tresc)
return TRUE
end
function mayMove(cidek)
mayNotMove(cidek.cid,0)
return TRUE
end