Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Combo All Class for MuEmu  (Visto 5823 veces)

0 Miembros and 1 Guest are viewing this topic.

Online djagripnos Posteado: July 01, 2018, 03:24:39 PM | Modificado: July 01, 2018, 03:28:57 PM by djagripnos

  • MAESTRO

  • US. DE HONOR

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 824
  • Gracias recibida: 27494
  • gr
Combo Skill.cpp, SkillManager.cpp, SkillManager.h
Download 3 files

Citar
#include "stdafx.h"
#include "ComboSkill.h"
#include "SkillManager.h"


//////////////////////////////////////////////////////////////////////


void CComboSkill::Init() // OK
{
    this->m_time = 0;
    this->m_skill[0] = 0xFFFF;
    this->m_skill[1] = 0xFFFF;
    this->m_index = -1;
}


int CComboSkill::GetSkillType(WORD skill) // OK
{
    if(skill == SKILL_FALLING_SLASH      ||
        skill == SKILL_LUNGE             ||
        skill == SKILL_UPPERCUT          ||
        skill == SKILL_CYCLONE           ||
        skill == SKILL_SLASH             ||
        skill == SKILL_FIRE_SLASH        ||
        skill == SKILL_TWISTER           ||
        skill == SKILL_POWER_SLASH       ||
        skill == SKILL_FLAME             ||
        skill == SKILL_DRAIN_LIFE        ||
        skill == SKILL_TRIPLE_SHOT       ||
        skill == SKILL_UPPER_BEAST       ||
        skill == SKILL_PHOENIX_SHOT      ||
        skill == SKILL_LARGE_RING_BLOWER ||
        skill == SKILL_FIRE_BURST
        )
    {
        return 0;
    }
    else if(skill == SKILL_TWISTING_SLASH ||
        skill == SKILL_RAGEFUL_BLOW       ||
        skill == SKILL_DEATH_STAB         ||
        skill == SKILL_FROZEN_STAB        ||
        skill == SKILL_BLOOD_STORM        ||
        skill == SKILL_LIGHTNING          ||
        skill == SKILL_DECAY              ||
        skill == SKILL_HELL_FIRE          ||
        skill == SKILL_INFERNO            ||
        skill == SKILL_RED_STORM          ||
        skill == SKILL_CHAIN_LIGHTNING    ||
        skill == SKILL_FIVE_SHOT          ||
        skill == SKILL_PENETRATION        ||
        skill == SKILL_DRAGON_LORE        ||
        skill == SKILL_CHAIN_DRIVER       ||
        skill == SKILL_FIRE_SCREAM        ||
        skill == SKILL_BIRDS
        )
    {
        return 1;
    }
    else
    {
        return -1;
    }
}


bool CComboSkill::CheckCombo(WORD skill) // OK
{
    int type = this->GetSkillType(skill);


    if(type == -1)
    {
        this->Init();
        return 0;
    }


    if(type == 0)
    {
        this->m_time = GetTickCount()+3000;
        this->m_skill[0] = skill;
        this->m_index = 0;
        return 0;
    }


    if(type == 1)
    {
        if(this->m_time < GetTickCount())
        {
            this->Init();
            return 0;
        }


        if(this->m_skill[0] == 0xFFFF)
        {
            this->Init();
            return 0;
        }


        if(this->m_index == 0)
        {
            this->m_time = GetTickCount()+3000;
            this->m_skill[1] = skill;
            this->m_index = 1;
            return 0;
        }
       
        if(this->m_index == 1 && this->m_skill[1] != skill)
        {
            this->Init();
            return 1;
        }
    }


    this->Init();
    return 0;
}


Gracias:

al-kapone, zurect, Xysad, hide3by, giahuy, Tulkas, Pokepili, haziel, Desmo212, hola23, stopk, myway, zHammer, mugloves99, jeffzkie69, bebow16, maxigandur, lucas1993, ValkyrieDevs, Ryzenn, xsoja, umperlook, LTP Team, joshymar, glmmlg, ledemkhoc, hans.nsc, zekcrom, WebShok, thekillrj, usersa, pagoga, JisusDruk, azard, llllZyanllll159753, devinci, kendy93, junzizon5652, Djassar, Wendigo, zhujianhui, Erick05, ngoctrau, jonhz, kimrubi, barda, vaneavanea31, rdgbr, ellite3, hardcoremd, xnitrox, xeratul777, Dragonvl15, eugenio1993, vokirval, tammadall, ILUVATAR, NghienMU, luciferlg, zhangjianle865, 153426, Ifreat, tunhi3000, dchien195, ricoimer, RAGNAR111, davidrcj, Sovereign, htnam89, bkjerk33, frenzo2009, birdy491, tarandong, habacedu24, jhampool13, muonlineteste2, mudevsbr, ynskpaso, lucas123, toto12, s2sinh94, NewGate, thieugiapc, tiendoanit, danielgalboa, z348870672, MsotoC, Higgs, Yuntao, fallsmu, Javiercosta, jase, nguqua, Aioria, artem, azpirin4, Camilomarquez61431, xscorpx, UNDERGOD, m1m1ct, harry130, Tool91, Plate98, karutan, mavine, Tomsky75, comelon666, GabrielDevel, demmian2, longcon, Rodaaa, tobosque, ConejoMalo, jonathanmu, mrhung95, madrynmu, 423646802, binhchivn, Liaon, joselagos, ailsoncost, hoviethung, mrtrevas, AyEsteban, fer1992, whmhosing, iggfree, Nhocgano1, 6atters, luqas01, wasj5299, sadamladen, matheusgom, h3yShOk, theanh27, neicer, juni0rr, Alexunder, Sandrix, LionRooT, baotungbg, modaxd, Yasser, phantrungloi, scriptkid, theone38, marcos10, hiep, tcbaoanh, Luan de Sanctis, mafer1701, VadimashRS, C4nn4b1s, Victor-CC-TSM, Cartman, shizen, PachoRasta, gacon201294, junin, manowwan1, nonnan005, fengyun52894, saske98, Berlan Barbalho, wozhangjia, dark, diegomakes, mckjohan2019, stark98, becoloko, crack018, GabrielDev, nnDoug, emersonx13, karcha, xBebo1994x, antuan, paizao, Yalc, sveikas, Conex21, fukpim, ByChecho2290, axeman192, Felipe0211, leones55, llCarchsll, miguelo, Dhanielt, lahn, Look, ZTMarkz, christoferdz, kretos521, tornado10, lovesick000, nuffenzo, mario12, kahleb, lostcross, datcom, Byro, heas, osvaldo1811, juampivb, Skyler, play01, vitrex, jozal, cobyzero, nguyechien5520, Dambis, Facundo Jara, scfmt, KhongGianOL, xuanthanhyt, Lukssar, bloppey, ediiinson, Yoss, jhoancito, aide224, NasLy, hoanmaster, JYachelini, Smith200, idpnguyeni, onlinezajzaj, Azzlaer, Crash12, laulinh2, piscis007, jorgeware, pravednik, darkjano, Natzugen, pujosx, quang, dainam, lokura, nhoanhkhoquen, tieugiao, kamesenin, s00x, karita, marcelin, tunymu, beibei, iramondias, gauyeutho, AreS, exoduz, DaiveSN, agtanalata, Zantetzuke, LuisXD, system369, mastermcy, Narcotic, pavon7, leozinho31, pclcaetano, humito, pquintal, corbi123, magtjr, matiudark, admmunowar, Dode, neverclubza, Nexus, Linch, tomsmile, 4RM4G3D0N, kksky, 1muarcadia1, leal891, MrSoftware, yhoon, ZabiinoOo, FreeStyle, alexytoo, Marote, spartacus

Offline ZabiinoOo #1 Posteado: July 01, 2018, 05:11:32 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.270
  • Gracias recibida: 125163
  • pe



Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Gracias:


Offline seedmaker #2 Posteado: July 01, 2018, 08:37:46 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 140
  • Gracias recibida: 573
  • ph

Gracias:


Offline BlackWizard #3 Posteado: July 02, 2018, 01:27:08 AM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 61
  • Gracias recibida: 11
  • bo
Alguien puede explicar el tema?


Offline Linch #4 Posteado: July 02, 2018, 03:00:46 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 134
  • Gracias recibida: 992
  • ar
Que tal, me encuentro muy confundido por falta de experencia para manejar semejantes archivos, muchos diran que me puede llegar a de faltar mucho por aprender, la pregunta es, quien ayudara a enteder el mismo ?, saludos :D.


Offline sombe30 #5 Posteado: July 02, 2018, 03:02:15 PM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 103
  • Gracias recibida: 2254
  • cl
se agrega al sources del gameserver

Gracias:


Offline DaiveSN #6 Posteado: August 01, 2018, 08:01:45 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 341
  • Gracias recibida: 260
  • ar
en que parte del game server se agrega soy novato porfavor quiero empesar adentrarme al mu online

Vendo Cuentas Digitales: desde 3$(Dolares)
✅- 💻Membresías Disponibles💻⚡  ✅- 🔮HBØ MAX🎥  ✅- 🎴Netflix🎬  ✅- 🎪Disney💻 ✅Crunchyroll🀄 ✅- 🟢Spotify🟢
✅ 📺TV LATINA ( PACK DE FUTBOOL, CANALES EN VIVO)
☯️Garantía👍🏼   ☯️Seguridad🔐     ☯️Atencion Personal👤

Offline exoduz #7 Posteado: August 02, 2018, 02:49:02 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 45
  • Gracias recibida: 17
  • ve
en que parte del game server se agrega soy novato porfavor quiero empesar adentrarme al mu online

deberias de descargarte primero los sources de unos files, pegas esos archivos dentro de la carpeta gameserver de dichos sources y luego deberias de copilar ese gameserver...

Me Gusta lo que Hago, como lo Hago, y veo buenos Resultados

Offline AZURE #8 Posteado: August 02, 2018, 03:07:21 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 267
  • Gracias recibida: 3028
  • cl
eso es facil pero solo funciona el combo con el editor si no tienen el fix no les funcionara


Offline admmunowar #9 Posteado: August 07, 2018, 03:14:35 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 144
  • Gracias recibida: 4822
  • br
Combo Skill.cpp, SkillManager.cpp, SkillManager.h
Download 3 files

Citar
#include "stdafx.h"
#include "ComboSkill.h"
#include "SkillManager.h"


//////////////////////////////////////////////////////////////////////


void CComboSkill::Init() // OK
{
    this->m_time = 0;
    this->m_skill[0] = 0xFFFF;
    this->m_skill[1] = 0xFFFF;
    this->m_index = -1;
}


int CComboSkill::GetSkillType(WORD skill) // OK
{
    if(skill == SKILL_FALLING_SLASH      ||
        skill == SKILL_LUNGE             ||
        skill == SKILL_UPPERCUT          ||
        skill == SKILL_CYCLONE           ||
        skill == SKILL_SLASH             ||
        skill == SKILL_FIRE_SLASH        ||
        skill == SKILL_TWISTER           ||
        skill == SKILL_POWER_SLASH       ||
        skill == SKILL_FLAME             ||
        skill == SKILL_DRAIN_LIFE        ||
        skill == SKILL_TRIPLE_SHOT       ||
        skill == SKILL_UPPER_BEAST       ||
        skill == SKILL_PHOENIX_SHOT      ||
        skill == SKILL_LARGE_RING_BLOWER ||
        skill == SKILL_FIRE_BURST
        )
    {
        return 0;
    }
    else if(skill == SKILL_TWISTING_SLASH ||
        skill == SKILL_RAGEFUL_BLOW       ||
        skill == SKILL_DEATH_STAB         ||
        skill == SKILL_FROZEN_STAB        ||
        skill == SKILL_BLOOD_STORM        ||
        skill == SKILL_LIGHTNING          ||
        skill == SKILL_DECAY              ||
        skill == SKILL_HELL_FIRE          ||
        skill == SKILL_INFERNO            ||
        skill == SKILL_RED_STORM          ||
        skill == SKILL_CHAIN_LIGHTNING    ||
        skill == SKILL_FIVE_SHOT          ||
        skill == SKILL_PENETRATION        ||
        skill == SKILL_DRAGON_LORE        ||
        skill == SKILL_CHAIN_DRIVER       ||
        skill == SKILL_FIRE_SCREAM        ||
        skill == SKILL_BIRDS
        )
    {
        return 1;
    }
    else
    {
        return -1;
    }
}


bool CComboSkill::CheckCombo(WORD skill) // OK
{
    int type = this->GetSkillType(skill);


    if(type == -1)
    {
        this->Init();
        return 0;
    }


    if(type == 0)
    {
        this->m_time = GetTickCount()+3000;
        this->m_skill[0] = skill;
        this->m_index = 0;
        return 0;
    }


    if(type == 1)
    {
        if(this->m_time < GetTickCount())
        {
            this->Init();
            return 0;
        }


        if(this->m_skill[0] == 0xFFFF)
        {
            this->Init();
            return 0;
        }


        if(this->m_index == 0)
        {
            this->m_time = GetTickCount()+3000;
            this->m_skill[1] = skill;
            this->m_index = 1;
            return 0;
        }
       
        if(this->m_index == 1 && this->m_skill[1] != skill)
        {
            this->Init();
            return 1;
        }
    }


    this->Init();
    return 0;
}

 




I tested this code but it seems to be missing something that does not make the combo work :(

Copyright Pro-Yoshi Ms-Emulator © 2021

Offline AZURE #10 Posteado: August 07, 2018, 04:21:25 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 267
  • Gracias recibida: 3028
  • cl
yo tengo el fix del combo

Gracias:


Offline admmunowar #11 Posteado: August 07, 2018, 04:23:32 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 144
  • Gracias recibida: 4822
  • br
Copyright Pro-Yoshi Ms-Emulator © 2021

Gracias:


Offline idpnguyeni #12 Posteado: November 21, 2018, 10:08:35 PM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 72
  • Gracias recibida: 15
  • vn
how to add com all class ?


Offline Azzlaer #13 Posteado: September 21, 2019, 06:06:40 PM

  • MAESTRO

  • US. DE HONOR

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.407
  • Gracias recibida: 23153
  • cl
REUPLOAD FILE
[/size]

Gracias:


Offline modaxd #14 Posteado: February 09, 2020, 09:47:37 PM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 118
  • Gracias recibida: 1032
  • es

Offline h3yShOk #15 Posteado: March 08, 2020, 04:14:15 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 143
  • Gracias recibida: 1493
  • pa

Offline fer1992 #16 Posteado: May 16, 2020, 06:02:46 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 147
  • Gracias recibida: 594
  • cl
Link muerto :/ suban porfa

Gracias:


Offline jeffzkie69 #17 Posteado: September 24, 2023, 09:36:41 PM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 113
  • Gracias recibida: 27
  • ph

Offline myway #18 Posteado: September 25, 2023, 09:01:43 AM

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 163
  • Gracias recibida: 120
  • ar

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
6 Replies
2778 Views
Last post August 10, 2018, 10:59:22 AM
by admmunowar
9 Replies
4182 Views
Last post December 24, 2021, 06:29:43 AM
by ILUVATAR
1 Replies
1490 Views
Last post July 01, 2019, 10:39:15 AM
by kayito
0 Replies
695 Views
Last post February 22, 2020, 09:39:00 PM
by miancas
2 Replies
2358 Views
Last post June 27, 2020, 10:01:20 PM
by osvaldo1811