Ir para conteúdo
  • Cadastre-se

FlagZone com time para c4


Posts recomendados

Vim postar aquela flagzone padrão, quando você sai da área, ai vc fica piscando, como se tivesse no pvp normal.

Atenção, no c4 atual, não precisa registrar em zonetype.

Spoiler

O conteúdo está oculto, favor efetuar login ou se cadastrar!

Video Abaixo. Coloquem HD, Caso não tenha !

 

Editado por Nattan Felipe
Link para o comentário
Compartilhar em outros sites


17 minutos atrás, Christian-SDM disse:

Vim postar aquela flagzone padrão, quando você sai da área, ai vc fica piscando, como se tivesse no pvp normal.

Atenção, no c4 atual, não precisa registrar em zonetype.

  Mostrar conteúdo oculto

O conteúdo está oculto, favor efetuar login ou se cadastrar!

Video Abaixo. Coloquem HD, Caso não tenha !

 

mano min arrumar um pack c4 ai na moral nem um aq estar funcionando pra min 

Link para o comentário
Compartilhar em outros sites

14 minutos atrás, willamwallace disse:

mano min arrumar um pack c4 ai na moral nem um aq estar funcionando pra min 

ta na área errada amigo, essa é uma área de mods, compartilhamento, se quiser algo do género, cria um tópico com a revisão que deseja em pedidos.

Link para o comentário
Compartilhar em outros sites

58 minutos atrás, CryCryCry disse:

O conteúdo está oculto, favor efetuar login ou se cadastrar!

fiz isso, vem um arquivo com formato .jpg

abre com bloco de notas quando fizer downloads, no windows 10, as veses troca formato do diff para jpg

59 minutos atrás, CryCryCry disse:

 

Spoiler

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */

package net.sf.l2j.gameserver.model.zone.type;

import net.sf.l2j.gameserver.model.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.zone.L2ZoneSpawn;

public class L2FlagZone extends L2ZoneSpawn
{
    public L2FlagZone(int id)
    {
        super(id);
    }
    
    @Override
    protected void onEnter(L2Character character)
    {
        if (character instanceof L2PcInstance)
        {      
            ((L2PcInstance) character).stopPvPFlag();
            ((L2PcInstance) character).setPvpFlag(1);
            ((L2PcInstance) character).sendMessage("You have entered a flag zone.");
            ((L2PcInstance) character).broadcastUserInfo();
        }
    }
    
    @Override
    protected void onExit(L2Character character)
    {
        if (character instanceof L2PcInstance)
        {
            ((L2PcInstance) character).setPvpFlag(0);
            ((L2PcInstance) character).updatePvPStatus();
            ((L2PcInstance) character).sendMessage("You have left a flag zone.");
            ((L2PcInstance) character).broadcastUserInfo();
        }
    }
    
    public void onDieInside(L2Character character)
    {
        onEnter(character);
    }
    
    public void onReviveInside(L2Character character)
    {
        onEnter(character);
    }
}

 

Link para o comentário
Compartilhar em outros sites

Agora, Christian-SDM disse:

abre com bloco de notas quando fizer downloads, no windows 10, as veses troca formato do diff para jpg

  Mostrar conteúdo oculto

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */

package net.sf.l2j.gameserver.model.zone.type;

import net.sf.l2j.gameserver.model.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.zone.L2ZoneSpawn;

public class L2FlagZone extends L2ZoneSpawn
{
    public L2FlagZone(int id)
    {
        super(id);
    }
    
    @Override
    protected void onEnter(L2Character character)
    {
        if (character instanceof L2PcInstance)
        {      
            ((L2PcInstance) character).stopPvPFlag();
            ((L2PcInstance) character).setPvpFlag(1);
            ((L2PcInstance) character).sendMessage("You have entered a flag zone.");
            ((L2PcInstance) character).broadcastUserInfo();
        }
    }
    
    @Override
    protected void onExit(L2Character character)
    {
        if (character instanceof L2PcInstance)
        {
            ((L2PcInstance) character).setPvpFlag(0);
            ((L2PcInstance) character).updatePvPStatus();
            ((L2PcInstance) character).sendMessage("You have left a flag zone.");
            ((L2PcInstance) character).broadcastUserInfo();
        }
    }
    
    public void onDieInside(L2Character character)
    {
        onEnter(character);
    }
    
    public void onReviveInside(L2Character character)
    {
        onEnter(character);
    }
}

 

deu certo obrigado, agora so ta confuso pra adicionar achei que tava separado 🙂 parabens pelo mod e  obrigado por compartilhar temos poucos mod pra c4 no forum 

Link para o comentário
Compartilhar em outros sites

5 minutos atrás, CryCryCry disse:

deu certo obrigado, agora so ta confuso pra adicionar achei que tava separado 🙂 parabens pelo mod e  obrigado por compartilhar temos poucos mod pra c4 no forum 

90% dos mods que existe no interlude da pra adaptar para c4, maioria tenho num projeto c4

Link para o comentário
Compartilhar em outros sites

  • 1 month later...

 

Em 16/11/2019 at 16:15, Christian-SDM disse:

abre com bloco de notas quando fizer downloads, no windows 10, as veses troca formato do diff para jpg

  Ocultar conteúdo

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */

package net.sf.l2j.gameserver.model.zone.type;

import net.sf.l2j.gameserver.model.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.zone.L2ZoneSpawn;

public class L2FlagZone extends L2ZoneSpawn
{
    public L2FlagZone(int id)
    {
        super(id);
    }
    
    @Override
    protected void onEnter(L2Character character)
    {
        if (character instanceof L2PcInstance)
        {      
            ((L2PcInstance) character).stopPvPFlag();
            ((L2PcInstance) character).setPvpFlag(1);
            ((L2PcInstance) character).sendMessage("You have entered a flag zone.");
            ((L2PcInstance) character).broadcastUserInfo();
        }
    }
    
    @Override
    protected void onExit(L2Character character)
    {
        if (character instanceof L2PcInstance)
        {
            ((L2PcInstance) character).setPvpFlag(0);
            ((L2PcInstance) character).updatePvPStatus();
            ((L2PcInstance) character).sendMessage("You have left a flag zone.");
            ((L2PcInstance) character).broadcastUserInfo();
        }
    }
    
    public void onDieInside(L2Character character)
    {
        onEnter(character);
    }
    
    public void onReviveInside(L2Character character)
    {
        onEnter(character);
    }
}

 

nessa nova att, da lisvus não está dando para add o mod, o que devo mudar? está dando conflito/erro 

Link para o comentário
Compartilhar em outros sites

Agora, CryCryCry disse:

eu adicionei na 691 normal, sem nenhum erro, fui atualizar o projeto agora deu erro, revisão atual 697

nao deve se pq vc atualizo no auto? tenta atualizar manualmente e dps testa o mod

Link para o comentário
Compartilhar em outros sites

44 minutos atrás, CryCryCry disse:

eu adicionei na 691 normal, sem nenhum erro, fui atualizar o projeto agora deu erro, revisão atual 697

adicionei na atual aqui 697 e nao tive problema algum, é so colar codigo dentro da class L2FlagZone

Link para o comentário
Compartilhar em outros sites

  • 1 month later...
  • L2JBr ADM

Galera, consegui o código novamente. Se alguém puder mostrar a funcionalidade do mesmo e me mandar imagem/vídeo eu adiciono ao tópico e atribuo os créditos.

 

Editado por Nattan Felipe

Você sabia que a L2JBrasil tem uma empresa de Hosting Oficial?
Conheça a L2JCenter.com

L2JBRASIL - 15 anos vendendo SS e flechas em Giran! (Trade / Adena)

Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...




×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.