Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

Entao Galera Esta dando este Erro na Distro

[6/12/2015 23:13:59] [Error - MoveEvents Interface] 
[6/12/2015 23:13:59] data/movements/scripts/warzone.lua:onStepIn
[6/12/2015 23:13:59] Description: 
[6/12/2015 23:13:59] attempt to index a nil value
[6/12/2015 23:13:59] stack traceback:
[6/12/2015 23:13:59] 	[C]: in function 'doTeleportThing'

E Aqui o Script Warzone.lua

--- [[ Warzone Event by Killua, antigo amoeba13 ]] ---

local kickposs = {x=160, y=53, z=7}  -- Posicao pra onde o player vai ser kikado se permanecer mais de 30 minutos na sala do Deathstriker.(Se ele sair voluntariamente, vai pra essa pos tbm)
     
function kikar(cid)
    doTeleportThing(cid, kickposs)
    doPlayerSendTextMessage(cid, 18, "You have been removed from the boss room, because you can not stay for more than 30 minutes.")
    return true
end
       
function onStepIn(cid, item, position, topos, frompos)
    if not isPlayer(cid) then
        return false
    end
           
    if item.actionid == 5157 then
        doPlayerSendTextMessage(cid, 18, "You have half an hour to heroically defeat Deathstrike. Otherwise you'll be teleported out by the gnomish emergency device.")
        evento = addEvent(kikar, 30*60*1000, cid)
    elseif item.actionid == 5158 then
        doTeleportThing(cid, tpsaida)
        stopEvent(evento)
    end
    return true
end

Alguem poderia me Ajudar?

Ficaria muito GRATO e valendo SEMPRE +REP

VENHAM JOGAR O MELHOR BAIAK JÁ CRIADO DE 2022!!

 

CRIE SUA CONTA AGORA MESMO!

 

www.baiakudo.com

Postado
local kickposs = {x=160, y=53, z=7}  -- Posicao pra onde o player vai ser kikado se permanecer mais de 30 minutos na sala do Deathstriker.(Se ele sair voluntariamente, vai pra essa pos tbm)
local tpsaida = {x=160, y=54, z=7} -- Local de saida.
     
function kikar(cid)
    doTeleportThing(cid, kickposs)
    doPlayerSendTextMessage(cid, 18, "You have been removed from the boss room, because you can not stay for more than 30 minutes.")
    return true
end
       
function onStepIn(cid, item, position, topos, frompos)
    if not isPlayer(cid) then
        return false
    end
           
    if item.actionid == 5157 then
        doPlayerSendTextMessage(cid, 18, "You have half an hour to heroically defeat Deathstrike. Otherwise you'll be teleported out by the gnomish emergency device.")
        evento = addEvent(kikar, 30*60*1000, cid)
    elseif item.actionid == 5158 then
        doTeleportThing(cid, tpsaida)
        stopEvent(evento)
    end
    return true
end

 

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.7k

Informação Importante

Confirmação de Termo