Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

Tutorial: Soltando magia se tiver tanto de skill.

Nivél: Expert Avançado.


Esse sistema é perfeito para quem gosta de  Dragon Ball, Naruto, Bleach e etc.

Aplicação após a implementação do sistema na spells.xml:

instant name="XXX" words="xxxx" clubpoints="XX" lvl="XX" mana="XX" aggressive=XX" selftarget="XX" exhaustion="XXX" event="script" value="XXX.lua"/>

1) Procure por player.cpp

case RET_TILEISFULL:

sendCancel("You cannot add more items on this tile.");

break;

e cola em cima do código

case RET_NOTENOUGHSKILL:

            sendCancel("You do not have enough club fighting.");

break;

2) Declare na linha (o qual será vericado) no spells.xml Procure por spells.cpp

if(readXMLInteger(p, "maglv", intValue) || readXMLInteger(p, "magiclevel", intValue))

magLevel = intValue;

e cola em cima do código

  if(readXMLInteger(p, "club", intValue) || readXMLInteger(p, "clubpoints", intValue))

         clubpoints = intValue;  

3) Adiciona na função principal Procure novamente spells.cpp

if((int32_t)player->getMagicLevel() < magLevel)

{

player->sendCancelMessage(RET_NOTENOUGHMAGICLEVEL);

g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);

return false;

}

e cola em cima

   if((int32_t)player->getSkill(SKILL_CLUB, SKILL_LEVEL) <  clubpoints)

    {

        player->sendCancelMessage(RET_NOTENOUGHSKILL);

        g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);

        return false;

    }  

4) Procure spells.h Procure essa linha

int32_t getMagicLevel() const {return magLevel;}

cola em cima

uint32_t getSkill() const {return clubpoints;}  

Procure novamente essa linha

int32_t magLevel;

cola em cima

   int32_t clubpoints;

5) Procure things.h E procure essa linha

RET_TILEISFULL = 64,

e cola em cima

RET_NOTENOUGHTRAINPOINTS = 65  

Para Configurar: Formula do spells:

(ex. level*2 + clubpoints*2)

Créditos

SkyDangerous

Fresh

 http://baiakuza.com/
IP: baiakuza.com
TIBIA: 10.96
Baiak Custom [ High Exp Rate ]

 

 

 

 

Postado

Ou Sky tem como fazer uma spells que da 6 attacks ?tipo souto um attack fire balls ai souta 6 bolas de fogo no cara perseguindo ele e souta uma de cada vez tem como ?

e REP+ pelo otimo trabalho

  • 4 years later...
  • 1 year later...

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo