Ir para conteúdo

Featured Replies

Postado

VIPSISTEMA.LUA > DA PASTA MOVIMENTS

 

function onStepIn(cid, item, position, fromPosition)
timenow = os.time()
quantity = math.floor((getPlayerStorageValue(cid,13500) - timenow)/(3600*24))
if isPlayer(cid) then
if quantity > 0 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você ainda tem ".. quantity .." dia(s) restante(s) de VIP.")
else
dir = getPlayerLookDir(cid)
pos = getCreaturePosition(cid)




if dir == 0 then
newpos = {x=pos.x, y=pos.y+1, z=pos.z}
elseif dir == 2 then
newpos = {x=pos.x, y=pos.y-1, z=pos.z}
elseif dir == 1 then
newpos = {x=pos.x-1, y=pos.y, z=pos.z}
elseif dir == 3 then
newpos = {x=pos.x+1, y=pos.y, z=pos.z}
end


doTeleportThing(cid, newpos, dir)
doSendMagicEffect(position, CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores VIPs podem entrar nesta área.")
end
end
end

O ERRO É OI SEGUINTE QUANDO O PLAYER VAI RETO NA TILE OOU ACTION DO PPISO PRA ENTRA NA AREA VIP ELE VOLTA PRA TRAZ E DIZ Q PRECISA SER VIP PRA ENTRA LA , ATÉ AI TA TUDO CERTO MAIS QUANDO O PLAYER VAI EM DIAGONAL EM CIMA DA TILE OU ACITON DO PISO PRA ENTRA NA VIP ELE VAI PRO LADO E N PRA TRAZ DIZENDO QUE ELE N É VIP , O ERRO É ESSE ALGUEM SABE RESOLVER.

  • Respostas 5
  • Visualizações 409
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onStepIn(cid, item, position, fromPosition) timenow = os.time() quantity = math.floor((getPlayerStorageValue(cid,13500) - timenow)/(3600*24)) if isPlayer(cid) then if quantity > 0 then doP

Postado

ai tem esse topico muito bom! de uma olhada

http://www.tibiaking.com/forum/topic/50254-area-vip/

 
 
se te ajudei mi ajude com um like
 
post-154810-0-74779100-1428114524_thumb.        post-154810-0-22067300-1428114531_thumb.          post-154810-0-83198200-1427326965.gif
post-154810-0-48855100-1429834735.gif
 
 
 
 
0 comentários:

 

Postado
function onStepIn(cid, item, position, fromPosition)
timenow = os.time()
quantity = math.floor((getPlayerStorageValue(cid,13500) - timenow)/(3600*24))
if isPlayer(cid) then
if quantity > 0 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você ainda tem ".. quantity .." dia(s) restante(s) de VIP.")
else
dir = getPlayerLookDir(cid)
pos = getCreaturePosition(cid)




if dir == 0 then
newpos = {x=pos.x, y=pos.y+1, z=pos.z}
elseif dir == 2 then
newpos = {x=pos.x, y=pos.y-1, z=pos.z}
elseif dir == 1 then
newpos = {x=pos.x-1, y=pos.y, z=pos.z}
elseif dir == 3 then
newpos = {x=pos.x+1, y=pos.y, z=pos.z}
end


doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(position, CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores VIPs podem entrar nesta área.")
end
end
end
                              _
                          .-'` `}
                  _./)   /       }
                .'o   \ |       }
                '.___.'`.\    {`
                /`\_/  , `.    }                                      ME DA UMA NOZ!
                \=' .-'   _`\  {
                 `'`;/      `,  }
                    _\   @   ;  }
                   /__`;-...'--'

Cluck!

Postado
  • Autor
function onStepIn(cid, item, position, fromPosition)
timenow = os.time()
quantity = math.floor((getPlayerStorageValue(cid,13500) - timenow)/(3600*24))
if isPlayer(cid) then
if quantity > 0 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você ainda tem ".. quantity .." dia(s) restante(s) de VIP.")
else
dir = getPlayerLookDir(cid)
pos = getCreaturePosition(cid)




if dir == 0 then
newpos = {x=pos.x, y=pos.y+1, z=pos.z}
elseif dir == 2 then
newpos = {x=pos.x, y=pos.y-1, z=pos.z}
elseif dir == 1 then
newpos = {x=pos.x-1, y=pos.y, z=pos.z}
elseif dir == 3 then
newpos = {x=pos.x+1, y=pos.y, z=pos.z}
end


doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(position, CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores VIPs podem entrar nesta área.")
end
end
end

MAIS ISSO QUANDO ALGUEM N TIVER AQUELA STORAG VAI SER TELEPORTADO PRO TEMPLO ,MAIS EU QUERIA QUE SO VOLTA-SE PRA TRAZ.

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo