- 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
dolensi
tenho uma rev antiga do sunrise e nunca consegui ativar o avento vitaliti algum pode me ajudr com isso obs uso e server para jogar off com amigos /
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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 events.GiftOfVitality;
import l2r.gameserver.model.actor.L2Npc;
import l2r.gameserver.model.actor.instance.L2PcInstance;
import l2r.gameserver.model.event.LongTimeEvent;
import l2r.gameserver.model.holders.SkillHolder;
import l2r.gameserver.network.SystemMessageId;
import l2r.gameserver.network.serverpackets.SystemMessage;
/**
* Gift of Vitality event AI.
* @author Gnacik, Adry_85
*/
public final class GiftOfVitality extends LongTimeEvent
{
// NPC
private static final int STEVE_SHYAGEL = 4306;
// Skills
private static final SkillHolder GIFT_OF_VITALITY = new SkillHolder(23179, 1);
private static final SkillHolder JOY_OF_VITALITY = new SkillHolder(23180, 1);
private static SkillHolder[] FIGHTER_SKILLS =
{
new SkillHolder(5627, 1), // Wind Walk
new SkillHolder(5628, 1), // Shield
new SkillHolder(5637, 1), // Magic Barrier
new SkillHolder(5629, 1), // Bless the Body
new SkillHolder(5630, 1), // Vampiric Rage
new SkillHolder(5631, 1), // Regeneration
new SkillHolder(5632, 1), // Haste
};
private static SkillHolder[] MAGE_SKILLS =
{
new SkillHolder(5627, 1), // Wind Walk
new SkillHolder(5628, 1), // Shield
new SkillHolder(5637, 1), // Magic Barrier
new SkillHolder(5633, 1), // Bless the Soul
new SkillHolder(5634, 1), // Acumen
new SkillHolder(5635, 1), // Concentration
new SkillHolder(5636, 1), // Empower
};
private static SkillHolder[] SERVITOR_SKILLS =
{
new SkillHolder(5627, 1), // Wind Walk
new SkillHolder(5628, 1), // Shield
new SkillHolder(5637, 1), // Magic Barrier
new SkillHolder(5629, 1), // Bless the Body
new SkillHolder(5633, 1), // Bless the Soul
new SkillHolder(5630, 1), // Vampiric Rage
new SkillHolder(5634, 1), // Acumen
new SkillHolder(5631, 1), // Regeneration
new SkillHolder(5635, 1), // Concentration
new SkillHolder(5632, 1), // Haste
new SkillHolder(5636, 1), // Empower
};
// Misc
private static final int HOURS = 5; // Reuse between buffs
private static final int MIN_LEVEL = 20;
private static final String REUSE = GiftOfVitality.class.getSimpleName() + "_reuse";
public GiftOfVitality()
{
super(GiftOfVitality.class.getSimpleName(), "events");
addStartNpc(STEVE_SHYAGEL);
addFirstTalkId(STEVE_SHYAGEL);
addTalkId(STEVE_SHYAGEL);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
switch (event)
{
case "vitality":
{
final long reuse = player.getVariables().getLong(REUSE, 0);
if (reuse > System.currentTimeMillis())
{
long remainingTime = (reuse - System.currentTimeMillis()) / 1000;
int hours = (int) (remainingTime / 3600);
int minutes = (int) ((remainingTime % 3600) / 60);
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.AVAILABLE_AFTER_S1_S2_HOURS_S3_MINUTES);
sm.addSkillName(23179);
sm.addInt(hours);
sm.addInt(minutes);
player.sendPacket(sm);
htmltext = "4306-notime.htm";
}
else
{
player.doCast(GIFT_OF_VITALITY.getSkill());
player.doSimultaneousCast(JOY_OF_VITALITY.getSkill());
player.getVariables().set(REUSE, System.currentTimeMillis() + (HOURS * 3600000));
htmltext = "4306-okvitality.htm";
}
break;
}
case "memories_player":
{
if (player.getLevel() <= MIN_LEVEL)
{
htmltext = "4306-nolevel.htm";
}
else
{
final SkillHolder[] skills = (player.isMageClass()) ? MAGE_SKILLS : FIGHTER_SKILLS;
npc.setTarget(player);
for (SkillHolder sk : skills)
{
npc.doCast(sk.getSkill());
}
htmltext = "4306-okbuff.htm";
}
break;
}
case "memories_summon":
{
if (player.getLevel() <= MIN_LEVEL)
{
htmltext = "4306-nolevel.htm";
}
else if (!player.hasServitor())
{
htmltext = "4306-nosummon.htm";
}
else
{
npc.setTarget(player.getSummon());
for (SkillHolder sk : SERVITOR_SKILLS)
{
npc.doCast(sk.getSkill());
}
htmltext = "4306-okbuff.htm";
}
break;
}
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return "4306.htm";
}
}
Link para o comentário
Compartilhar em outros sites
1 resposta 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.