Ir para conteúdo
  • Cadastre-se
  • 0

Flag ao atacar boss


dlsouza

Pergunta

esse mod so ataque fisico ficam flag alguem consegue resolver

 

desde ja grato

 

+++ java/net/sf/l2j/gameserver/model/actor/L2Character.java

// Character will be petrified if attacking a raid that's more than 8 levels lower
if (!Config.RAID_DISABLE_CURSE && target.isRaid() && getLevel() > target.getLevel() + 8)
{
final L2Skill skill = FrequentSkill.RAID_CURSE2.getSkill();
if (skill != null)
{
// Send visual and skill effects. Caster is the victim.
broadcastPacket(new MagicSkillUse(this, this, skill.getId(), skill.getLevel(), 300, 0));
skill.getEffects(this, this);
}

damage
= 0; // prevents messing up drop calculation
}
+
+ final L2PcInstance player = getActingPlayer();
+ if (target.isRaid())
+ {
+ player.updatePvPStatus();
+ }
+
// If the target is a player, start AutoAttack
if (target instanceof L2PcInstance)
((L2PcInstance) target).getAI().clientStartAutoAttack();

if (!miss && damage > 0)
{
boolean isBow = (getAttackType() == WeaponType.BOW);
int reflectedDamage = 0;


up

  • Gostei 1
Link para o comentário
Compartilhar em outros sites

9 respostass a esta questão

Posts recomendados

  • 0

esse mod so ataque fisico ficam flag alguem consegue resolver

 

desde ja grato

 

+++ java/net/sf/l2j/gameserver/model/actor/L2Character.java

 

// Character will be petrified if attacking a raid that's more than 8 levels lower

if (!Config.RAID_DISABLE_CURSE && target.isRaid() && getLevel() > target.getLevel() + 8)

{

final L2Skill skill = FrequentSkill.RAID_CURSE2.getSkill();

if (skill != null)

{

// Send visual and skill effects. Caster is the victim.

broadcastPacket(new MagicSkillUse(this, this, skill.getId(), skill.getLevel(), 300, 0));

skill.getEffects(this, this);

}

 

damage = 0; // prevents messing up drop calculation

}

+

+ final L2PcInstance player = getActingPlayer();

+ if (target.isRaid())

+ {

+ player.updatePvPStatus();

+ }

+

// If the target is a player, start AutoAttack

if (target instanceof L2PcInstance)

((L2PcInstance) target).getAI().clientStartAutoAttack();

 

if (!miss && damage > 0)

{

boolean isBow = (getAttackType() == WeaponType.BOW);

int reflectedDamage = 0;

up

Creio eu que tive uma ideia, e como no java tudo e possivel...

Se colocar algo assim:

final L2PcInstance player = getActingPlayer() || Config.CLASS_UPDATE_PVPSTATUS();

 

e colocar as ids das classes nas configs para que essas classes tambem entre em modo pvp..

isso é apenas uma ideia, nao que seja assim..

Lineage 2 Lords

Link para o comentário
Compartilhar em outros sites


  • 0

isso ficaria desnecessário pq o metodo que tem so ataque fisico estao deixando flag

Só achar o metodo que quando usa skill deixa em modo de combat ai é so colocar na frente..

pq quando se ataca de perto tambem deixa em modo de ataque

Lineage 2 Lords

Link para o comentário
Compartilhar em outros sites

  • 0

Engraçado ver as pessoas seguindo a "lógica" sem lógica aplicável kkkkkk

Hoje posto para vocês esse mod que eu fiz para um membro só que postarei ele completo.

todas as tentativas citadas não vao dar certo, só vai um mago ficar flag nesse código atual se ele bater na porrada invés da skill.

  • Gostei 1

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites

  • 0

Engraçado ver as pessoas seguindo a "lógica" sem lógica aplicável kkkkkk

 

Hoje posto para vocês esse mod que eu fiz para um membro só que postarei ele completo.

 

todas as tentativas citadas não vao dar certo, só vai um mago ficar flag nesse código atual se ele bater na porrada invés da skill.

muito obrigado tayram

  • Gostei 1
Link para o comentário
Compartilhar em outros sites

  • 0

Engraçado ver as pessoas seguindo a "lógica" sem lógica aplicável kkkkkk

 

Hoje posto para vocês esse mod que eu fiz para um membro só que postarei ele completo.

 

todas as tentativas citadas não vao dar certo, só vai um mago ficar flag nesse código atual se ele bater na porrada invés da skill.

Esse é o preco de tentar entender essa linguagem auhsash

Lineage 2 Lords

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 esta pergunta...

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