- 0
-
Quem Está Navegando
- Nenhum usuário registrado visualizando esta página.
-
Posts
-
O conteúdo está oculto, favor efetuar login ou se cadastrar! Entre ou Cadastre-se
-
Boa Noite Galera o @Mr.Kadu postou o link do projeto mas eu fiz um erro e estarei postando a correção. aqueles que baixou o projeto e tentou ligar e deu erro e por causa do java que foi copilado eu copilei no java 22 e o projeto e no java 17 vou postar o link aqui para vcs, vai incluso a Geodata O conteúdo está oculto, favor efetuar login ou se cadastrar! Entre ou Cadastre-se
-
Nova Revisão com AutoFarm e .Menu O conteúdo está oculto, favor efetuar login ou se cadastrar! Entre ou Cadastre-se
-
alguem tambem esta tendo problemas com email ? quando vc loga com a conta e nao tem email cadastrado. eu levo erro 500
-
muito bom meu amigo. vou começar os testes........
-
@Mr.Kadu VOU COMEÇA OS TESTES AGORA MESMO. VOU VER SE COLOCO UM PROJETO ONLINE. USANDO SUA BASE, AI SERÁ MUITO BOM PRA REPORTAR. abraços mano e muito boa iniciativa com esse projeto, que muitos usaram.
-
Por Gabrieljdb · Postado
Falta arquivo "armorgrp.dat" alguém poderia postar. Grato! -
Também to querendo só a textura do drop no chão, se alguém tiver.
-
Opa Obrigado amigo e aguarde que vamos tentar por todas as quests 99,9% funcional principalemnte porque projeto acis nao vi ate agora com quest 90%
-
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.