NowaHosting


AlphaServers


Resultados 1 a 4 de 4

Tópico: Npc Buff 97D

  1. #1
    Membro Eros's Avatar

    Data de Ingresso
    Jul 2022
    Posts
    10
    Thanks Thanks Given 
    48
    Thanks Thanks Received 
    16
    Thanked in
    5 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;
    }
    Last edited by Mentor; 05-29-2024 at 09:47 PM.

  2. The Following 5 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 
    41
    Thanks Thanks Received 
    219
    Thanked in
    8 Posts
    Mentioned
    0 Post(s)
    País
    Brazil
    Conheço esse código
    Last edited by master_cmzone; Ontem at 05:21 AM.

  4. #3
    Iniciante caminhada's Avatar

    Data de Ingresso
    Jun 2023
    Posts
    7
    Thanks Thanks Given 
    69
    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
    10
    Thanks Thanks Given 
    48
    Thanks Thanks Received 
    16
    Thanked in
    5 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

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
  •