function onLogin(cid)
local novapos = {x=98, y=11, z=7} -- send player here first log in.
local playername = getPlayerName(cid)
if getPlayerStorageValue(cid, 18541) <= 0 then
doTeleportThing(cid, novapos)
doPlayerSendTextMessage(cid, 22,"Welcome to the danger Line " .. playername .. ".")
doSendMagicEffect(novapos, 2)
setPlayerStorageValue(cid, 18541, 1)
else
doPlayerSendTextMessage(cid, 22,"Welcome to the danger Line " .. playername .. ".")
end
return TRUE
end
BU
[Creaturescript - Onlogin] Quando Logar New Char, Logar Em Outra Position
Por buzurck, 25 de nov. de 2010 em Scripts
script
3
2k
info
Grupo: Conde
Registrado: 09/09/09
Posts: 528
Reputação: +424
Char no Tibia: Emekalo Makalo

26 de novembro de 2010 às 09:58


info
Grupo: Campones
Registrado: 09/05/09
Posts: 16
Reputação: +2
Char no Tibia: Jon Keltera
Eae galera
Eu ja tentei criar o script mas ta dando um error no distro
Se souberem como arrumar então dar uma forcinha ae
Vou postar aki o script que eu usei, mas não precisar ser ele msm, só precisar ser um q funcione xD
<event type="login" name="FirstLogin" event="script" value="firstlogin.lua"/>
local novapos = {x=98, y=11, z=7} -- send player here first log in. local playername = getPlayerName(cid) function onLogin(cid, pos) if getPlayerStorageValue(cid,18541) == -1 then doTeleportThing(cid,novapos) doPlayerSendTextMessage(cid,22,"Welcome to the danger Line.") -- message when logs in doSendMagicEffect(novapos, 2) setPlayerStorageValue(cid, 18541, 1) -- sets storage so player doesnt get tp'ed everytime they log in. else doPlayerSendTextMessage(cid,22,"Welcome to the danger Line.") -- message when logs in for first time end return TRUE endO error que ta dando no distro é o seguinte:
alguem concerta ae plix
Aguardo uma resposta
vlw
Editado Novembro 25 por buzurck