Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Source Custom Gloves(RF) Season 6 muemu  (Visto 5050 veces)

0 Miembros and 1 Guest are viewing this topic.

Online djagripnos Posteado: September 18, 2018, 07:14:40 AM | Modificado: September 20, 2018, 01:56:49 PM by Cloud

  • MAESTRO

  • US. DE HONOR

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 824
  • Gracias recibida: 27497
  • gr
Source Custom Gloves(RF) Season 6



BattleGloves.h


Code: [Select]
#ifndef __ITEM_H__
#define __ITEM_H__


#define oBattleGlove_Load            0x0050DE38
#define oBattleGlove_Hook            0x0050DC31
#define oBattleGlove_Texture        0x0050E043


#define oBattleGloveProp4_Hook        0x005CD419
#define oBattleGloveProp4_Allowed    0x005CD422
#define oBattleGloveProp4_Return    0x005CD454


#define oBattleGloveProp5_Hook        0x005CEFE7
#define oBattleGloveProp5_Jump        0x005CF01C
#define oBattleGloveProp5_Return    0x005CEFFB


#define oBattleGloveGlow_Hook        0x005F91C2


class cRFItem
{
public:
    void Load();
    // ----
    static void BattleGloveLoad();
    // ---
    static void BattleGloveAssoc();
    static void BattleGloveTexture();
    // ----
    static void BattleGloveProp4(); // Inventory Position
    static void BattleGloveProp5(); // Inventory Rotation
                                    // ----
    static void BattleGloveGlow();
    static void AddInventoryPos();
    // ----
};


extern cRFItem gRFItem; //


#endif


BattleGloves.cpp


Code: [Select]
#include "Stdafx.h"
#include "BattleGloves.h"
//#include "TMemory.h"
//#include "ItemAsm.h"
//#include "Import.h"
#include "Util.h"
#include "Defines.h"
#include "Item.h"


#include "CustomWeapons.h"
#include "CustomGloves.h"


cRFItem gRFItem;


void __declspec ( naked ) cRFItem::BattleGloveLoad() {
    static DWORD BattleGloveModel   = 0x00614D10;
    static DWORD BattleGloveReturn  = 0x0050DE83;
    // ----
    static PCHAR DragonRoarModel    = "Sword45";
    static PCHAR DragonRoarLeft     = "Sword45L";
    static PCHAR DragonRoarRight    = "Sword45R";
    // ----
    LoadItemModel(GET_ITEM_MODEL ( 0, 41 ),"Custom\\Item\\RFGloves\\","Sword41",-1);
    LoadItemModel(0x610,"Custom\\Item\\RFGloves\\","Sword41L",-1);
    LoadItemModel(0x611,"Custom\\Item\\RFGloves\\","Sword41R",-1);
    _asm {
        PUSH -1
        PUSH 0x00D28B88
        PUSH 0x00D28B90
        PUSH 0x4B6
        CALL BattleGloveModel
        ADD ESP, 0x10
        PUSH -1
        PUSH 0x00D28B9C
        PUSH 0x00D28BA8
        PUSH 0x268
        CALL BattleGloveModel
        ADD ESP, 0x10
        PUSH -1
        PUSH 0x00D28BB4
        PUSH 0x00D28BC0
        PUSH 0x269
        CALL BattleGloveModel
        ADD ESP, 0x10
        // ----
        JMP BattleGloveReturn
    }


   
   
}


#define sub_50D810_Addr        ((int(__thiscall*)(int a1, int a2, int a3, int a4)) 0x50D810)
#define sub_512D50_Addr        ((void*(__thiscall*)(void* a1)) 0x512D50)
#define sub_513C60_Addr        ((char*(__thiscall*)(char *This, void *a2, int a3)) 0x513C60)
#define sub_5135F0_Addr        ((char*(__thiscall*)(DWORD *This, int a2, int a3)) 0x5135F0)
#define sub_512D60_Addr        ((void(*)()) 0x512D60)




void GlovesAssoc(char *This)
{
    sub_50D810_Addr((int)(This + 92), 1203, 610, 611);
    void* v2 = sub_512D50_Addr(This + 92);
    char* v3 = sub_513C60_Addr(This, v2, (int)(This + 92));
    sub_5135F0_Addr((DWORD *)This + 15, (int)This, (int)v3);
    sub_512D60_Addr();
    // ----
    sub_50D810_Addr((int)(This + 92), 1204, 612, 613);
    v2 = sub_512D50_Addr(This + 92);
    v3 = sub_513C60_Addr(This, v2, (int)(This + 92));
    sub_5135F0_Addr((DWORD *)This + 15, (int)This, (int)v3);
    sub_512D60_Addr();
    // ----
    sub_50D810_Addr((int)(This + 92), 1205, 614, 615);
    v2 = sub_512D50_Addr(This + 92);
    v3 = sub_513C60_Addr(This, v2, (int)(This + 92));
    sub_5135F0_Addr((DWORD *)This + 15, (int)This, (int)v3);
    sub_512D60_Addr();
    // ----
    sub_50D810_Addr((int)(This + 92), 1206, 616, 617);
    v2 = sub_512D50_Addr(This + 92);
    v3 = sub_513C60_Addr(This, v2, (int)(This + 92));
    sub_5135F0_Addr((DWORD *)This + 15, (int)This, (int)v3);
    sub_512D60_Addr();
    // ----
    sub_50D810_Addr((int)(This + 92), 1211, 610, 611);
    v2 = sub_512D50_Addr(This + 92);
    v3 = sub_513C60_Addr(This, v2, (int)(This + 92));
    sub_5135F0_Addr((DWORD *)This + 15, (int)This, (int)v3);
    sub_512D60_Addr();
    // ----
    gCustomGloves.AssocGloves(This);
}


void __declspec ( naked ) cRFItem::BattleGloveAssoc() {
    static DWORD BattleGloveCall1   = 0x0050D810;
    static DWORD BattleGloveCall2   = 0x00512D50;
    static DWORD BattleGloveCall3   = 0x00513C60;
    static DWORD BattleGloveCall4   = 0x005135F0;
    static DWORD BattleGloveCall5   = 0x00512D60;
    // ----
    static DWORD BattleGloveJump    = 0x0050DCB0;
    // ----
    _asm {
        PUSH 0x269                                        //; /Arg3 = 269
        PUSH 0x268                                        //; |Arg2 = 268
        PUSH 0x4B6                                        //; |Arg1 = 4B6
        MOV ECX, DWORD PTR SS:[EBP-0x9C]                  //; |
        ADD ECX, 0x5C                                     //; |
        CALL BattleGloveCall1                             //; \Main.0050D810
        MOV EAX, DWORD PTR SS:[EBP-0x9C]
        ADD EAX, 0x5C
        PUSH EAX                                          //; /Arg2 => ARG.ECX+5C
        MOV ECX, DWORD PTR SS:[EBP-0x9C]                  //; |
        ADD ECX, 0x5C                                     //; |
        CALL BattleGloveCall2                             //; |
        PUSH EAX                                          //; |Arg1
        LEA ECX, [EBP-0x70]                               //; |
        CALL BattleGloveCall3                             //; \Main.00513C60
        MOV DWORD PTR SS:[EBP-0xB8], EAX
        MOV ECX, DWORD PTR SS:[EBP-0xB8]
        MOV DWORD PTR SS:[EBP-0xBC], ECX
        MOV DWORD PTR SS:[EBP-0x4], 3   // -> Battle Glove Number
        MOV EDX, DWORD PTR SS:[EBP-0xBC]
        PUSH EDX                                          //; /Arg2 => [LOCAL.46]
        LEA EAX, [EBP-0x7C]                               //; |
        PUSH EAX                                          //; |Arg1 => OFFSET LOCAL.31
        MOV ECX, DWORD PTR SS:[EBP-0x9C]                  //; |
        ADD ECX, 0x3C                                     //; |
        CALL BattleGloveCall4                             //; \Main.005135F0
        MOV DWORD PTR SS:[EBP-0x4], -1
        LEA ECX, [EBP-0x70]
        CALL BattleGloveCall5                             //; [Main.00512D60
        // ----
        PUSH 0x611                                        //; /Arg3 = 611 -> Right
        PUSH 0x610                                        //; |Arg2 = 610 -> Left
        PUSH 0x4BC                                        //; |Arg1 = 4BF -> ITEM2(0,41)
        MOV ECX, DWORD PTR SS:[EBP-0x9C]                  //; |
        ADD ECX, 0x5C                                     //; |
        CALL BattleGloveCall1                             //; \Main.0050D810
        MOV EAX, DWORD PTR SS:[EBP-0x9C]
        ADD EAX, 0x5C
        PUSH EAX
        MOV ECX, DWORD PTR SS:[EBP-0x9C]
        ADD ECX, 0x5C
        CALL BattleGloveCall2
        PUSH EAX
        LEA ECX, [EBP-0x70]
        CALL BattleGloveCall3
        MOV DWORD PTR SS:[EBP-0xB8], EAX
        MOV ECX, DWORD PTR SS:[EBP-0xB8]
        MOV DWORD PTR SS:[EBP-0xBC], ECX
        MOV DWORD PTR SS:[EBP-0x4], 5   // -> Battle Glove Number
        MOV EDX, DWORD PTR SS:[EBP-0xBC]
        PUSH EDX
        LEA EAX, [EBP-0x7C]
        PUSH EAX
        MOV ECX, DWORD PTR SS:[EBP-0x9C]
        ADD ECX, 0x3C
        CALL BattleGloveCall4
        MOV DWORD PTR SS:[EBP-0x4], -1
        LEA ECX, [EBP-0x70]
        CALL BattleGloveCall5
        // ----
        JMP BattleGloveJump
    }
}


void __declspec ( naked ) cRFItem::BattleGloveTexture() {
    static DWORD BattleGloveTexCall = 0x00614710;
    static DWORD BattleGloveTexJump = 0x0050E09D;
    // ----
    LoadItemTexture(GET_ITEM_MODEL ( 0, 41 ),"Custom\\Item\\RFGloves\\","Sword41",-1);
    LoadItemTexture(0x610,"Custom\\Item\\RFGloves\\","Sword41L",-1);
    LoadItemTexture(0x611,"Custom\\Item\\RFGloves\\","Sword41R",-1);
    _asm {
        PUSH 1
        PUSH GL_NEAREST
        PUSH GL_REPEAT
        PUSH 0x00D28CC8
        PUSH 0x4B6
        CALL BattleGloveTexCall
        ADD ESP, 0x14
        PUSH 1
        PUSH GL_NEAREST
        PUSH GL_REPEAT
        PUSH 0x00D28CD0
        PUSH 0x268
        CALL BattleGloveTexCall
        ADD ESP, 0x14
        PUSH 1
        PUSH GL_NEAREST
        PUSH GL_REPEAT
        PUSH 0x00D28CD8
        PUSH 0x269
        CALL BattleGloveTexCall
        ADD ESP, 0x14
        // ----
        JMP BattleGloveTexJump
    }
}


void __declspec ( naked ) cRFItem::BattleGloveProp4() {
    static DWORD BattleGloveProp4_Return    = 0x005CD454;
    static DWORD BattleGloveProp4_Jump      = 0x005CD491;
    // ----
    _asm {
        CMP DWORD PTR SS:[EBP+0x8], GET_ITEM_MODEL ( 0, 41 )
        JNZ BattleGloveProp4_Label1
        FLD DWORD PTR SS:[EBP-0x4C]
        FSUB QWORD PTR DS:[0x0D27CA8]                     //FLOAT 0.004999999888241291
        FSTP DWORD PTR SS:[EBP-0x4C]
        FLD DWORD PTR SS:[EBP-0x48]
        FADD QWORD PTR DS:[0x0D254B8]                     //FLOAT 0.01499999966472387
        FSTP DWORD PTR SS:[EBP-0x48]
        FLDZ
        FSTP DWORD PTR DS:[0x82C6320]                     //FLOAT 0.0
        FLDZ
        FSTP DWORD PTR DS:[0x82C6324]                     //FLOAT 0.0
        FLDZ
        FSTP DWORD PTR DS:[0x82C6328]                     //FLOAT 0.0
        JMP BattleGloveProp4_Jump
        // ----
        BattleGloveProp4_Label1:
        // ----
        CMP DWORD PTR SS : [EBP + 0x8], GET_ITEM_MODEL ( 0, 41 )
        JNZ BattleGloveProp4_LabelReturn
        FLD DWORD PTR SS: [EBP - 0x4C]
        FSUB QWORD PTR DS: [0x0D27CA8]                    //FLOAT 0.004999999888241291
        FSTP DWORD PTR SS: [EBP - 0x4C]
        FLD DWORD PTR SS: [EBP - 0x48]
        FADD QWORD PTR DS: [0x0D254B8]                    //FLOAT 0.01499999966472387
        FSTP DWORD PTR SS: [EBP - 0x48]
        FLDZ
        FSTP DWORD PTR DS: [0x82C6320]                    //FLOAT 0.0
        FLDZ
        FSTP DWORD PTR DS: [0x82C6324]                    //FLOAT 0.0
        FLDZ
        FSTP DWORD PTR DS: [0x82C6328]                    //FLOAT 0.0
        JMP BattleGloveProp4_Jump
        // ----
        BattleGloveProp4_LabelReturn:
        // ----
        JMP BattleGloveProp4_Return
    }
}


DWORD IsGlovesItem = 0;
DWORD GlovesPosition = 0x005CD422; // 1.04D ENG
DWORD NextGlovesPosition = 0x005CD454; // 1.04D ENG


void __declspec(naked) cGlovesAddInventoryPos()
{
    _asm
    {


        mov ecx, dword ptr ss : [ebp + 0x8]
            mov dword ptr ss : [ebp + 0x8], ecx
            mov IsGlovesItem, ecx
    }
    // ---
    //console.Log("","FUCK [%x]",IsGlovesItem);
    if (IsGlovesItem == 0x04B6)
    {
        _asm{jmp GlovesPosition}
    }
    else if (IsGlovesItem >= GET_ITEM_MODEL(0, 41) && IsGlovesItem <= GET_ITEM_MODEL(0, 50))
    {
        _asm{jmp GlovesPosition}
    }
    else
    {
        _asm{jmp NextGlovesPosition}
    }
}


void __declspec ( naked ) cRFItem::BattleGloveProp5() { // Масштаб
    static DWORD BattleGloveProp5_Return    = 0x005CEFFB;
    static DWORD BattleGloveProp5_Jump      = 0x005CF01C;
    // ----
    static float a1 = 0.00480000;
    //a1 = GetPrivateProfileFloat("Custom", "a1", 0, "./Settings.ini");
    _asm {
        CMP DWORD PTR SS:[EBP+0x8], GET_ITEM_MODEL ( 0, 35 )
        JNZ NextBattleGlove1
        FLD DWORD PTR DS: [0x0D2C618]                       //FLOAT 0.003000000
        FSTP DWORD PTR SS: [EBP - 0x2C]
        JMP BattleGloveProp5_Jump
        // ----
        NextBattleGlove1:
        // ----
        CMP DWORD PTR SS: [EBP + 0x8], GET_ITEM_MODEL ( 0, 41 )
        JNZ ReturnBattleGlove_Load
        FLD DWORD PTR DS:[a1]                       //FLOAT 0.003800000
        FSTP DWORD PTR SS: [EBP - 0x2C]
        JMP BattleGloveProp5_Jump
        // ----
        ReturnBattleGlove_Load:
        // ----
        JMP BattleGloveProp5_Return
    }
}


static BOOL bBattleGlovesGlow_Switcher;


void __declspec ( naked ) cRFItem::BattleGloveGlow() {
    static DWORD dwBattleGlovesGlow_Pointer;
    static DWORD dwBattleGlovesGlow_Buffer;
    static DWORD dwBattleGlovesNewGlow_Buffer;
    static DWORD dwBattleGlovesGlow_Jump = 0x005F94E8;
    // ----
    bBattleGlovesGlow_Switcher = FALSE;
    // ----
    _asm {
        MOV dwBattleGlovesGlow_Pointer, EAX
    }


    // ----
    if ( dwBattleGlovesGlow_Pointer == GET_ITEM_MODEL ( 0, 35 ) ) {
        bBattleGlovesGlow_Switcher = TRUE;
    }
    else if ( gCustomGloves.CheckGloves(dwBattleGlovesGlow_Pointer-ITEM_BASE_MODEL)/*dwBattleGlovesGlow_Pointer == GET_ITEM_MODEL ( 0, 41 )*/ ) {
        bBattleGlovesGlow_Switcher = FALSE;
        // ----
        _asm {
            MOV DWORD PTR SS:[EBP-0x4], 0x2C
            JMP dwBattleGlovesGlow_Jump
        }
    }


    // ----
    if ( bBattleGlovesGlow_Switcher == TRUE ) {
        _asm {
            MOV dwBattleGlovesGlow_Buffer, 0x005F91C9
            JMP dwBattleGlovesGlow_Buffer
        }
    }
    else {
        _asm {
            MOV dwBattleGlovesGlow_Buffer, 0x005F91D5
            JMP dwBattleGlovesGlow_Buffer
        }
    }
}


__declspec(naked) void cRFItem::AddInventoryPos() // OK
{
    static DWORD IsRFItem = 0;
    static DWORD RFPosition = 0x005CD084; // 1.04D ENG
    static DWORD NextRFPosition = 0x005CD086; // 1.04D ENG
    //
    _asm {
        mov ecx, dword ptr ss : [ebp + 0x8]
        mov dword ptr ss : [ebp + 0x8], ecx
        mov IsRFItem, ecx
    }


    // ---
    if ( IsRFItem == 0x04B3 ) {
        _asm {jmp RFPosition}
    }
    else if ( IsRFItem == GET_ITEM_MODEL ( 0, 41 ) ) {
        _asm {jmp RFPosition}
    }
    else {
        _asm {jmp NextRFPosition}
    }
}


void cRFItem::Load() {
    int LoadGloves = GetPrivateProfileInt("Other","CheckRFGloves",0,".\\Data\\Custom\\Settings.ini");


    if (LoadGloves != 1)
    {
        return;
    }


    //SetRange (oBattleGlove_Load, 75, ASM::NOP );
    //SetOp(oBattleGlove_Load, &this->BattleGloveLoad, ASM::JMP);
    // ----




   // SetRange (oBattleGlove_Hook, 127, ASM::NOP );
    //SetOp(oBattleGlove_Hook, &this->BattleGloveAssoc, ASM::JMP);
    SetCompleteHook(0xE8,0x50D840+0xC5,&GlovesAssoc);


 //   // ----
   // SetRange (oBattleGlove_Texture, 90, ASM::NOP );
    //SetOp(oBattleGlove_Texture, &this->BattleGloveTexture, ASM::JMP);
 //   // ----
    //SetRange (oBattleGloveProp4_Hook, 59, ASM::NOP );
    //SetOp(oBattleGloveProp4_Hook, &this->BattleGloveProp4, ASM::JMP);// -> Inventory Position
    //SetRange(oBattleGloveProp4_Hook, 6, ASM::NOP);
    //SetJmp((LPVOID)iBowAddInventoryPos, cBowAddInventoryPos);
    //SetOp(oBattleGloveProp4_Hook, &cGlovesAddInventoryPos, ASM::JMP);
 //   // ----
   // SetRange (oBattleGloveProp5_Hook, 20, ASM::NOP );
    //SetOp(oBattleGloveProp5_Hook, &this->BattleGloveProp5, ASM::JMP); // -> Inventory Rotation
 //   // ----
    SetRange (oBattleGloveGlow_Hook, 7, ASM::NOP );
    SetOp(oBattleGloveGlow_Hook, &this->BattleGloveGlow, ASM::JMP);


    /*SetDword(0x005765B4+1,0x4BC);
    SetDword(0x00576B69+2,0x4BC);
    SetDword(0x00578A46+1,0x4BC);
    SetDword(0x005CD419+3,0x4BC);
    SetDword(0x005CEFE7+3,0x4BC);
    SetDword(0x005F91C2+1,0x4BC);
    SetDword(0x00607503+1,0x4BC);
    SetDword(0x00608D4C+3,0x4BC);
    SetDword(0x006095ED+3,0x4BC);
    SetDword(0x006105D6+1,0x4BC);*/


    //SetRange (0x005CD07D, 7, ASM::NOP );
    //SetOp(0x005CD07D, &this->AddInventoryPos, ASM::JMP);
}


CustomGloves.h


Code: [Select]
#pragma once


#define MAX_CUSTOM_GLOVES    100


struct CUSTOM_RF_GLOVES
{
    int Index;
    int ItemIndex;
    char ModelName[32];
    int TextureLeftIndex;
    char TextureLeftName[32];
    int TextureRightIndex;
    char TextureRightName[32];
};


class cCustomGloves
{
public:
    cCustomGloves();
    virtual ~cCustomGloves();
    void Init();
    void Load(CUSTOM_RF_GLOVES* info);
    void SetInfo(CUSTOM_RF_GLOVES info);
    CUSTOM_RF_GLOVES* GetInfoByID(int index);
    void AssocGloves(char* This);
    bool CheckGloves(int ItemID);
public:
    CUSTOM_RF_GLOVES m_CustomGlovesInfo[MAX_CUSTOM_GLOVES];
}; extern cCustomGloves gCustomGloves;


CustomGloves.cpp


Code: [Select]
#include "stdafx.h"
#include "CustomGloves.h"
#include "NEWConsole.h"
#include "Item.h"


cCustomGloves gCustomGloves;


cCustomGloves::cCustomGloves() // OK
{
    this->Init();
}


cCustomGloves::~cCustomGloves() // OK
{


}


void cCustomGloves::Init() // OK
{
    for(int n=0;n < MAX_CUSTOM_GLOVES;n++)
    {
        this->m_CustomGlovesInfo[n].Index = -1;
    }
}


void cCustomGloves::Load(CUSTOM_RF_GLOVES* info) // OK
{
    for(int n=0;n < MAX_CUSTOM_GLOVES;n++)
    {
        this->SetInfo(info[n]);
    }
}


void cCustomGloves::SetInfo(CUSTOM_RF_GLOVES info) // OK
{
    if(info.Index < 0 || info.Index >= MAX_CUSTOM_GLOVES)
    {
        return;
    }


    this->m_CustomGlovesInfo[info.Index] = info;
}


CUSTOM_RF_GLOVES* cCustomGloves::GetInfoByID(int index)
{
    for (int i=0;i<MAX_CUSTOM_GLOVES; i++)
    {
        if (this->m_CustomGlovesInfo[i].Index == -1)
        {
            continue;
        }


        if (i == index)
        {
            return &this->m_CustomGlovesInfo[i];
        }
    }


    return 0;
}


#define sub_50D810_Addr        ((int(__thiscall*)(int a1, int a2, int a3, int a4)) 0x50D810)
#define sub_512D50_Addr        ((void*(__thiscall*)(void* a1)) 0x512D50)
#define sub_513C60_Addr        ((char*(__thiscall*)(char *This, void *a2, int a3)) 0x513C60)
#define sub_5135F0_Addr        ((char*(__thiscall*)(DWORD *This, int a2, int a3)) 0x5135F0)
#define sub_512D60_Addr        ((void(*)()) 0x512D60)


void cCustomGloves::AssocGloves(char* This)
{
    for (int i=0;i<MAX_CUSTOM_GLOVES; i++)
    {
        if (this->m_CustomGlovesInfo[i].Index == -1)
        {
            continue;
        }


        //LoadItemModel(0x4BC,"Custom\\Item\\RFGloves\\","Sword41",-1);
        //LoadItemModel(0x610,"Custom\\Item\\RFGloves\\","Sword41L",-1);
        //LoadItemModel(0x611,"Custom\\Item\\RFGloves\\","Sword41R",-1);


        //LoadItemModel(this->m_CustomGlovesInfo[i].ItemIndex+ITEM_BASE_MODEL,"Custom\\Item\\RFGloves\\",this->m_CustomGlovesInfo[i].ModelName,-1);
        //LoadItemModel(this->m_CustomGlovesInfo[i].TextureLeftIndex,"Custom\\Item\\RFGloves\\",this->m_CustomGlovesInfo[i].TextureLeftName,-1);
        //LoadItemModel(this->m_CustomGlovesInfo[i].TextureRightIndex,"Custom\\Item\\RFGloves\\",this->m_CustomGlovesInfo[i].TextureRightName,-1);


        //LoadItemTexture(this->m_CustomGlovesInfo[i].ItemIndex+ITEM_BASE_MODEL,"Custom\\Item\\RFGloves\\",this->m_CustomGlovesInfo[i].ModelName,-1);
        //LoadItemTexture(this->m_CustomGlovesInfo[i].TextureLeftIndex,"Custom\\Item\\RFGloves\\",this->m_CustomGlovesInfo[i].TextureLeftName,-1);
        //LoadItemTexture(this->m_CustomGlovesInfo[i].TextureRightIndex,"Custom\\Item\\RFGloves\\",this->m_CustomGlovesInfo[i].TextureRightName,-1);


        sub_50D810_Addr((int)(This + 92), this->m_CustomGlovesInfo[i].ItemIndex+ITEM_BASE_MODEL, this->m_CustomGlovesInfo[i].TextureLeftIndex, this->m_CustomGlovesInfo[i].TextureRightIndex);
        void* v2 = sub_512D50_Addr(This + 92);
        char* v3 = sub_513C60_Addr(This, v2, (int)(This + 92));
        sub_5135F0_Addr((DWORD *)This + 15, (int)This, (int)v3);
        sub_512D60_Addr();
    }
}




bool cCustomGloves::CheckGloves(int ItemID)
{
    for (int i=0;i<MAX_CUSTOM_GLOVES; i++)
    {
        if (this->m_CustomGlovesInfo[i].Index == -1)
        {
            continue;
        }


        if (ItemID == this->m_CustomGlovesInfo[i].ItemIndex)
        {
            return true;
        }
    }
    return false;
}








Link Download

Gracias:

Orion88, mugloves99, Xysad, p3droslk, Volkano21, hieuvt, lunaticodeveloper, karyyto, ProTecno, vamchy33, usersa, jvniorfox, Hatting, llllZyanllll159753, MDDM, mudavion, Nakamura, hola23, Wikka, FOX, tilmur, martin castro, leonardexapps, sagat202, kimrubi, samajc, mimemu, rekis, ailsoncost, theanh27, barteo, 0342043033, Alexbrm, kingteamus, ezesosa, luciferlg, akiles8503, sounda, kimera, mubongma, 7891249, duykhoa, Yuntao, tiendoanit, Severok, mattihi1mi, thanhbinhqht, samluis, jhorfre, MsotoC, weverton233, Acido13, thealdair, Higgs, Akaruz, Salvadorsrc, neeck1234, DIOSES, Aguila, nonnan005, 452745444, dhaomao, rers, guigonvg, muancestral, comelon666, Blade, 423646802, fabiosarts, matichile, stark98, thunwa1, xz18786628, tsunade10, Llalex, reveage, caradepi12, zedia93, Crowley, esteban, powerpatic, Vitaminka, JavixFer, SaintZeus, birdy491, ALCONMU, neicer, akiles1345, mkjklm123, overdose, c4nhsatcodong, binhchivn, vietak, dark32, Deidad, takumi12, Kolas000, trkgncmg, zeruskill, GATITO, dlawls662, higlans, zmadblack, RaStraBaN, josue3pc, emersonx13, gacon201294, crack018, axeman192, NasLy, Cartman, nscbr, jorge2016, dieguitox, emmafe, adryan, kahleb, draco425, AreS, VictorKing, Shaman, zaxscd, bunixts, Dhanielt, leones55, C4nn4b1s, iggfree, duyanh12285, Hax.Gaming, seedmaker, deathsquad, jhoancito, quyenpro199x, lovesick000, ZTMarkz, zxzedgod, bond2012, cancerx, play01, vdk2703, silfredo, ElLocati, Lude, matiaslawwliet, beecubin, MscM4s4cr3, zlethanhlong, Gunnar, LanzSystem, erickmalfoy, lostalejandro_, kai1702, emciel, idpnguyeni, zerolshen, Look, FREDY, digimoncik, luisdaniel, lokura, patojano, jeferson, cobyzero, naja01, harry130, xlphans, ediiinson, systemsmag, YeiBacks, AriesMaster, beibei, LeeHenry, str1ker, gauyeutho, quyanxu, pravednik, admmunowar, onlinezajzaj, leal891, PachoRasta, xuanthanhyt, olmar9907, braventran, darkjano, Marote

Offline GX_KYO #1 Posteado: September 18, 2018, 10:02:35 AM | Modificado: September 18, 2018, 10:09:06 AM by GX_KYO

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 301
  • Gracias recibida: 2153
  • pe
Is the same one from here http://tuservermu.com.ve/index.php?topic=14535.0

And you said:
this source does not work

 lol jajaja even the link from mega is the same lol

Killing me one breath at a time... Cutting you with my pair of lives... So go on and lay me down to rest, You make it painless, painless!
I can't... I can't... I can't...
I can't feel ANY PAIN!

Offline admmunowar #2 Posteado: November 04, 2018, 12:41:08 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 144
  • Gracias recibida: 4823
  • br
well...
I'll be testing, let's see if it solves the problem.

Copyright Pro-Yoshi Ms-Emulator © 2021

Gracias:


Offline admmunowar #3 Posteado: November 06, 2018, 11:32:45 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 144
  • Gracias recibida: 4823
  • br
well work for me thanks dude

Copyright Pro-Yoshi Ms-Emulator © 2021

Gracias:


Offline Cloud #4 Posteado: November 06, 2018, 11:40:49 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 138
  • Gracias recibida: 12016
  • ar
well work for me thanks dude

to thank you have the thank you button these comments are taken as spam avoid a sanction from the forum greetings ..


Offline inax123 #5 Posteado: November 07, 2018, 07:55:50 AM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 197
  • Gracias recibida: 1756
  • ar

Online djagripnos #6 Posteado: November 11, 2018, 05:43:05 AM

  • MAESTRO

  • US. DE HONOR

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 824
  • Gracias recibida: 27497
  • gr

Offline admmunowar #7 Posteado: November 11, 2018, 04:09:19 PM

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

Online djagripnos #8 Posteado: November 12, 2018, 02:58:42 AM

  • MAESTRO

  • US. DE HONOR

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 824
  • Gracias recibida: 27497
  • gr

Gracias:


Offline bruno68 #9 Posteado: October 28, 2019, 06:47:22 PM

  • 3D Maker
  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 129
  • Gracias recibida: 10812
  • br

Offline SaintZeus #10 Posteado: March 21, 2020, 10:45:38 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 482
  • Gracias recibida: 2753
  • ar
Alguien tiene el source completo para agregar mas gloves?


Offline takumi12 #11 Posteado: March 22, 2020, 12:01:48 AM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Php Coder
  • +11 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 1.310
  • Gracias recibida: 39648
  • mx
Alguien tiene el source completo para agregar mas gloves?

con esta source se puede agregar muchas mas cuantos claws quieras, solo copia y pega los mismos atributos la unica diferencia es ir cambiando los valores del item ejemplo ITEM2(0,200) ASÍ SUSESIVAMENTE en los lugares donde corresponde


Las offset no se crea, ni se destruye, solo se transforma

Offline SaintZeus #12 Posteado: March 22, 2020, 12:04:29 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 482
  • Gracias recibida: 2753
  • ar
Alguien tiene el source completo para agregar mas gloves?

con esta source se puede agregar muchas mas cuantos claws quieras, solo copia y pega los mismos atributos la unica diferencia es ir cambiando los valores del item ejemplo ITEM2(0,200) ASÍ SUSESIVAMENTE en los lugares donde corresponde
Hola takumi, sabes que no logro hacer que queden en el inventario de forma vertical.... y solo  acepta 5 claws, intento agregar mas y no los toma no se porque


Offline SaintZeus #13 Posteado: March 22, 2020, 03:29:42 AM | Modificado: March 24, 2020, 02:27:20 PM by SaintZeus

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 482
  • Gracias recibida: 2753
  • ar
Tengo problemas:
1.- Se ven horizontales cuando esta equipado porque los detecta como armas.
2.- El ultimo Claws N° 13 se ve mal en el inventario.



CustomGloves.txt
Code: [Select]
// Color 1552 - 1592
//GlovesID     Model        LeftIndex LeftModel    RightIndex RightModel        ColorR   ColorG   ColorB
    240        "Sword37"      1552      "Sword37_L"        1553        "Sword37_R" 120 223 255
    241        "Sword38"      1554        "Sword38_L"        1555        "Sword38_R" 178 190 181
    242        "BloodangelClo"  1556        "BloodangelClo_L"       1557        "BloodangelClo_R" 205 192 176
    243        "Sword39"      1558        "Sword39_L"        1559        "Sword39_R" 178 190 181
    244        "Sword40"      1560        "Sword40_L"        1561        "Sword40_R" 255 255 142
    245        "Sword41"      1562        "Sword41_L"        1563        "Sword41_R" 255 232 112
    246        "Sword42"      1564        "Sword42_L"        1565        "Sword42_R" 253 255 119
    247        "Sword43"      1566        "Sword43_L"        1567        "Sword43_R" 239 154 70
    248        "PrickleGlove"   1568        "PrickleGlove_left"    1569        "PrickleGlove_right" 0 0 0
    249        "SwordAngelic"   1570        "Sword_LAngelic"        1571        "Sword_RAngelic" 0 0 0
    250        "SwordArtic"     1572        "Sword_LArtic"        1573        "Sword_RArtic" 0 0 0
    251        "SwordAssasin"   1574        "Sword_LAssasin"      1575        "Sword_RAssasin" 0 0 0
    252        "Sword997"    1576        "SwordL997"      1577        "SwordR997" 0 0 0
end

CustomItem.txt
Code: [Select]
//Claws
240 0 0 0 "Sword37"
381 0 0 0 "Sword37_L"
382 0 0 0 "Sword37_R"

241 0 0 0 "Sword38"
383 0 0 0 "Sword38_L"
384 0 0 0 "Sword38_R"

242 0 0 0 "BloodangelClo"
385 0 0 0 "BloodangelClo_L"
386 0 0 0 "BloodangelClo_R"

243 0 0 0 "Sword39"
387 0 0 0 "Sword39_L"
388 0 0 0 "Sword39_R"

244 0 0 0 "Sword40"
389 0 0 0 "Sword40_L"
390 0 0 0 "Sword40_R"

245 0 0 0 "Sword41"
391 0 0 0 "Sword41_L"
392 0 0 0 "Sword41_R"

246 0 0 0 "Sword42"
393 0 0 0 "Sword42_L"
394 0 0 0 "Sword42_R"

247 0 0 0 "Sword43"
395 0 0 0 "Sword43_L"
396 0 0 0 "Sword43_R"

248 0 0 0 "PrickleGlove"
397 0 0 0 "PrickleGlove_left"
398 0 0 0 "PrickleGlove_right"

249 204 204 0 "SwordAngelic"  //Claws Angelic
399 204 204 0 "Sword_LAngelic"  //Claws Angelic
400 204 204 0 "Sword_RAngelic"  //Claws Angelic

250 0 144 255 "SwordArtic"  //Claws Artic
401 0 144 255 "Sword_LArtic"  //Claws Artic
402 0 144 255 "Sword_RArtic"  //Claws Artic

251 128 128 128 "SwordAssasin"  //Claws Assasin
403 128 128 128 "Sword_LAssasin"  //Claws Assasin
404 128 128 128 "Sword_RAssasin"  //Claws Assasin

252 0 0 0 "Sword997"
403 0 0 0 "SwordL997"
404 0 0 0 "SwordR997"


Offline erickmalfoy #14 Posteado: April 23, 2020, 04:11:44 AM | Modificado: April 23, 2020, 06:45:51 AM by erickmalfoy

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 557
  • Gracias recibida: 314
  • ar
Holas me falta un directorio

1>..\..\..\guantes soruces\BattleGloves.cpp(6): fatal error C1083: No se puede abrir el archivo incluir: 'Util.h': No such file or directory


Alguien me puede facilitar esa libreria con 5 creo xD que me salen esos erroes u.U alguien me ayuda

y donde se Pega los soruces (?) un tema mas ordenado se remplasa por algo o se agrega.
espero sus respuestas.


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
8 Replies
3326 Views
Last post January 02, 2019, 06:22:32 PM
by djagripnos
1 Replies
961 Views
Last post April 19, 2020, 07:15:00 PM
by JavixFer
1 Replies
637 Views
Last post July 22, 2020, 10:13:12 AM
by ConejoMalo
1 Replies
653 Views
Last post October 31, 2020, 12:11:38 AM
by xz18786628
0 Replies
367 Views
Last post February 27, 2021, 02:09:15 AM
by xz18786628