Ir para conteúdo
  • Cadastre-se
  • 0

Editar .stat


TerroRTotal

Pergunta

Olá amigos na frozen contem o mod command voice .stat porem ele mostra poucas opções... Consegui fazer aparecer patk e pdef... Mas não consegui o mesmo com o m.atk e m.def... Alguem saberia como arrumo isso? Acho que as variaveis são diferentes.. Ou algo do tipo..

showtime.gif

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts recomendados


  • 0

Posta seu código.

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

@EDIT

 

Olha a diferença de onde puxa os stats

 

esse é o de patk

 

public int getPAtk(final L2Character target)
{
if (_activeChar == null)
return 1;
float bonusAtk = 1;
if (Config.L2JMOD_CHAMPION_ENABLE && _activeChar.isChampion())
{
bonusAtk = Config.L2JMOD_CHAMPION_ATK;
}
return (int) calcStat(Stats.POWER_ATTACK, _activeChar.getTemplate().basePAtk * bonusAtk, target, null);
}
esse o de mAtak :
public int getMAtk(final L2Character target, final L2Skill skill)
{
if (_activeChar == null)
return 1;
float bonusAtk = 1;
if (Config.L2JMOD_CHAMPION_ENABLE && _activeChar.isChampion())
{
bonusAtk = Config.L2JMOD_CHAMPION_ATK;
}
double attack = _activeChar.getTemplate().baseMAtk * bonusAtk;

 

 

 

esse "final L2skill skill" que deve ta faltando la :/

 

 

C:\Users\Elisson Milani\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\StatsCmd.java:126: error: method getMAtk in class CharStat cannot be applied to given types;
[javac] replyMSG.append("<font color=\"FF0000\">M. Atk: " + targetp.getStat().getMAtk(targetp) + "</font><br>");
[javac] ^
[javac] required: L2Character,L2Skill
[javac] found: L2PcInstance
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\Elisson Milani\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\StatsCmd.java:127: error: method getMDef in class CharStat cannot be applied to given types;
[javac] replyMSG.append("<font color=\"FF0000\">M. Def: " + targetp.getStat().getMDef(targetp) + "</font><br>");
[javac] ^
[javac] required: L2Character,L2Skill
[javac] found: L2PcInstance
[javac] reason: actual and formal argument lists differ in length
[javac] 2 errors
Editado por TerroRTotal

showtime.gif

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...
  • Registre-se

    Faça parte da maior e  mais antigas comunidades sobre Lineage2 da América Latina.





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