NowaHosting


AlphaServers


Resultados 1 a 5 de 5

Tópico: Npc Buff 97D

  1. #1
    Membro Eros's Avatar

    Data de Ingresso
    Jul 2022
    Posts
    15
    Thanks Thanks Given 
    49
    Thanks Thanks Received 
    131
    Thanked in
    9 Posts
    Mentioned
    1 Post(s)
    País
    Argentina

    Npc Buff 97D

    Código:
    #include "StdAfx.h"
    
    cBuffer Buffer;
    
    
    bool cBuffer::Load()
    {
        Tokenizer          Token;
        TokenizerGroup     Group;
        TokenizerSection   Section;
    
    
        Token.ParseFile(std::string("./Data/Buffer.txt"), Group);
    
    
        if (Group.GetSection(0, Section))
        {
            this->_Active    = Section.Rows[0].GetInt(0) > 0 ? true : false;
            this->_Vip        = Section.Rows[0].GetInt(1);
            this->_Level    = Section.Rows[0].GetInt(2);
        }
        if (Group.GetSection(1, Section))
        {
            this->_Time        = Section.Rows[0].GetInt(0);
            this->_Attack    = Section.Rows[0].GetInt(1);
            this->_Defense    = Section.Rows[0].GetInt(2);
        }
    
    
        return true;
    }
    
    
    void cBuffer::Elf(OBJECTSTRUCT* Npc, OBJECTSTRUCT* lpObj)
    {
        if (!this->_Active)
        {
            ChatTargetSend(Npc, "Fui desabilitado.", lpObj->m_Index);
            return;
        }
        else if (Custom[lpObj->m_Index].VipCount < Buffer._Vip)
        {
            ChatTargetSend(Npc, "Sistema exclusivo para VIP.", lpObj->m_Index);
            return;
        }
        else if (lpObj->Level > Buffer._Level)
        {
            ChatTargetSend(Npc, "Ya no presisas de mi ayuda.", lpObj->m_Index);
            return;
        }
    
    
        lpObj->m_SkillAttack = lpObj->Level / 3 + Buffer._Attack;
        lpObj->m_SkillAttackTime = Buffer._Time * 60000;
        lpObj->m_ViewSkillState |= 8;
        lpObj->m_ViewSkillState |= 0x2000000;
        GCMagicAttackNumberSend(Npc, 28, lpObj->m_Index, true);
    
    
        Sleep(1000);
        lpObj->m_SkillDefense = lpObj->Level / 5 + Buffer._Defense;
        lpObj->m_SkillDefenseTime = Buffer._Time * 60000;
        lpObj->m_ViewSkillState |= 4;
        lpObj->m_ViewSkillState |= 0x2000000;
        GCMagicAttackNumberSend(Npc, 27, lpObj->m_Index, true);
    
    
        ChatTargetSend(Npc, "He aumentado tu defensa y ataque.", lpObj->m_Index);
        return;
    }



    Creditos: DarkAngeL ( FLAMETEAM / FIRETEAM / MAYKON )
    Last edited by LABMU; 06-02-2024 at 01:15 AM.

  2. The Following 10 Users Say Thank You to Eros For This Useful Post:


  3. #2
    Developer C++ master_cmzone's Avatar

    Data de Ingresso
    Dec 2022
    Posts
    22
    Thanks Thanks Given 
    42
    Thanks Thanks Received 
    228
    Thanked in
    8 Posts
    Mentioned
    0 Post(s)
    País
    Brazil
    Conheço esse código
    Last edited by master_cmzone; 05-30-2024 at 05:21 AM.

  4. #3
    Iniciante caminhada's Avatar

    Data de Ingresso
    Jun 2023
    Posts
    9
    Thanks Thanks Given 
    81
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Mentioned
    0 Post(s)
    País
    Brazil
    Up File SelecharAnimation 97D Kayto ?

  5. #4
    Membro Eros's Avatar

    Data de Ingresso
    Jul 2022
    Posts
    15
    Thanks Thanks Given 
    49
    Thanks Thanks Received 
    131
    Thanked in
    9 Posts
    Mentioned
    1 Post(s)
    País
    Argentina
    Citação Originally Posted by master_cmzone Ver Post
    Conheço esse código
    todo mundo conhece códigos. Ha ha

  6. #5
    Developer C++ DarkAngeL's Avatar


    Data de Ingresso
    Jul 2022
    Posts
    32
    Thanks Thanks Given 
    56
    Thanks Thanks Received 
    303
    Thanked in
    4 Posts
    Mentioned
    0 Post(s)
    Humor
    Innocent
    País
    Brazil
    Falta os créditos no tópico!

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • You may not post Resposta(s)
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens
  •