- 0
-
Quem Está Navegando
- Nenhum usuário registrado visualizando esta página.
-
Posts
-
Los links estan caidos 😞
-
Olá, seu tópico se encontra com um ou mais links offline. Caso ainda possua o conteúdo, favor postar aqui mesmo no tópico ou mandar MP para algum staff que estaremos normalizando o tópico. Grato pela atenção!
-
Olá, é possível obter o arquivo para esses ícones? Olá, é possível obter o arquivo para esses ícones?
-
Voce usar a conta de admin q vc tem no server, vai em accounts e define o acess_level la. e vc entra auto. Eu tenho uma versão desse votesystem q tentei atualizar e com tutorial so acessar o link na minha assinatura em baixo.
-
Por Heverton Molina · Postado
Gente eu instalei aqui no meu servidor porem não sei qual e a senha pra entrar eu crio o login de admin mas e a senha onde eu coloco? -
Por juniinxt007 · Postado
Todos os Links dele Estao OFF -
Por JefersonFelisbino · Postado
Boa ! O icone dos agathions esta fora do ar "/ estou precisando -
Por juniinxt007 · Postado
Alguem pela misericordia teria o link dos Set S PVP e de todas as armas S coloridas PVP? @AllInOne -
Por L2BloodyWar · Postado
eu tava com um projeto acis 398 mais o java era 11 ai nao sei atualizar e desistir fui olhar essa lucera, mal tem arquivos sobre ele entao eo projeto mais atual ? se alguem tiver uma sourve/rev ja compilada boa fico a dispor no chat! meu intuito e aprender e tbm por online mais bem la na frente ai a 398 era limpa mais falaram que estava muito desatualizada e eu ia ter problema pra add qualquer coisa
-
Pergunta
Edeilson X Lorraine
Mudar area PVP automaticamente
/*
* 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 .
*/
package ai.RandomPvpZone;
import ai.AbstractNpcAI;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.zone.L2ZoneType;
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.util.Rnd;
/**
* @author Ezequiel Adaptacion CaFi
*/
public class RandomPvpZone extends AbstractNpcAI
{
// zonas id
private final int zoneid1 = 100000;
private final int zoneid2 = 100001;
private final int zoneid3 = 100002;
private final int zoneid4 = 100003;
// tiempo de cada zone 30 min
private final int tiempocadazona = 1800000;
private int zonechoose;
private long time;
public RandomPvpZone(String name, String descr)
{
super(name, descr);
// agregamos las zonas
addEnterZoneId(zoneid1, zoneid2, zoneid3, zoneid4);
addExitZoneId(zoneid1, zoneid2, zoneid3, zoneid4);
time = System.currentTimeMillis();
zonechoose = zoneid1;
}
public String onEnterZone(L2PcInstance character, L2ZoneType zone)
{
if (zone.getId() == luckyzone())
{
character.sendPacket(SystemMessageId.ENTERED_COMBAT_ZONE);
character.broadcastUserInfo();
character.updatePvPFlag(1);
}
return super.onEnterZone(character, zone);
}
public String onExitZone(L2PcInstance character, L2ZoneType zone)
{
if (zone.getId() == luckyzone())
{
character.sendPacket(SystemMessageId.LEFT_COMBAT_ZONE);
character.broadcastUserInfo();
character.updatePvPFlag(0);
}
return super.onExitZone(character, zone);
}
private int luckyzone()
{
if (System.currentTimeMillis() > (time + tiempocadazona))
{
// elije una zona random
zonechoose = Rnd.get(zoneid1, zoneid4);
time = System.currentTimeMillis();
}
return zonechoose;
}
public static void main(String[] args)
{
new RandomPvpZone(RandomPvpZone.class.getSimpleName(), "ai/RandomPvpZone");
}
}
--- /dev/null
+++ b/L2J_DataPack/dist/game/data/zones/randompvpzone.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Link para o comentário
Compartilhar em outros sites
2 respostass a esta questão
Posts recomendados
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.