1
Compra / Venta de archivos / Compro MuEmu S8 Buy RF Custom Gloves Source Code..
« Posteado: October 04, 2020, 01:30:48 AM »
MuEmu S8 Buy RF Custom Gloves Source Code..
Paypal payment..
Paypal payment..
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
fix correct position bottom bar
I love your list of animations. It's save my time too much.
muchas gracias por el codigo pero ahora el pet se desaparecio xD que fue lo que paso lo tengo agregado desde el 200 para adelante y no muestra ni uno ^^ por que puede ser?? ya agrega parte GetMainInfo como resultado tengo el CustomPetEffectStatic.txt por separado en el CustomPet.txt tengo los pet asi:hola chicos alguien me ayuda con este error que me sale o como lo solucionarlo gCustomPet2.GetInfoByItem(ItemGroup,ItemID );
el if(gCustomPet2.CheckCustomPetByItem(ItemGroup, ItemID)) ya lo tengo agregado solo me falta GetInfoByItemCode: [Select]gCustomPet2.GetInfoByItem(dwItemNumber-1171)CUSTOM_PET_INFO* cCustomPet::GetInfoByItem(int ItemType, int ItemIndex) // OK
{
for(int n=0;n < MAX_PET_ITEM;n++)
{
CUSTOM_PET_INFO* lpInfo = this->GetInfo(n);
if(lpInfo == 0)
{
continue;
}
if(lpInfo->ItemType == ItemType && lpInfo->ItemIndex == ItemIndex)
{
return lpInfo;
}
}
return 0;
}
//Grupo Index ModelName Petsize
13 200 "petsteel" 1.0
13 201 "DarkWizard" 1.0
13 202 "DragonKnight" 1.0
13 203 "FairyElf" 1.0
end
En los comentarios naraku dejo el offset faltante para 1.04E
#pragma once
#define MAX_CUSTOM_CLOAK 100
struct CUSTOM_CLOAK
{
int Index;
int ItemIndex;
int Mode;
char IndexCloak[150];
char IndexStrip[150];
};
class cCustomCloak
{
public:
cCustomCloak();
virtual ~cCustomCloak();
void Init();
void Load(char* path);
void SetInfo(CUSTOM_CLOAK info);
public:
CUSTOM_CLOAK m_CustomCloakInfo[MAX_CUSTOM_CLOAK];
}; extern cCustomCloak gCustomCloak;
// CustomItem.cpp: implementation of the cCustomBow class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CustomCloak.h"
#include "MemScript.h"
cCustomCloak gCustomCloak;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
cCustomCloak::cCustomCloak() // OK
{
this->Init();
}
cCustomCloak::~cCustomCloak() // OK
{
}
void cCustomCloak::Init() // OK
{
for(int n=0;n < MAX_CUSTOM_CLOAK;n++)
{
this->m_CustomCloakInfo[n].Index = -1;
}
}
void cCustomCloak::Load(char* path) // OK
{
CMemScript* lpMemScript = new CMemScript;
if(lpMemScript == 0)
{
printf(MEM_SCRIPT_ALLOC_ERROR,path);
return;
}
if(lpMemScript->SetBuffer(path) == 0)
{
printf(lpMemScript->GetLastError());
delete lpMemScript;
return;
}
this->Init();
try
{
while(true)
{
if(lpMemScript->GetToken() == TOKEN_END)
{
break;
}
if(strcmp("end",lpMemScript->GetString()) == 0)
{
break;
}
CUSTOM_CLOAK info;
memset(&info,0,sizeof(info));
static int CustomItemIndexCount = 0;
info.Index = CustomItemIndexCount++;
info.ItemIndex = lpMemScript->GetNumber();
info.Mode = lpMemScript->GetNumber();
strcpy_s(info.IndexCloak,lpMemScript->GetAsString());
strcpy_s(info.IndexStrip,lpMemScript->GetAsString());
this->SetInfo(info);
}
}
catch(...)
{
printf(lpMemScript->GetLastError());
}
delete lpMemScript;
}
void cCustomCloak::SetInfo(CUSTOM_CLOAK info) // OK
{
if(info.Index < 0 || info.Index >= MAX_CUSTOM_CLOAK)
{
return;
}
this->m_CustomCloakInfo[info.Index] = info;
}
#pragma once
#define MAX_CUSTOM_CLOAK 100
struct CUSTOM_CLOAK
{
int Index;
int ItemIndex;
int Mode;
char IndexCloak[150];
char IndexStrip[150];
};
class cCustomCloak
{
public:
cCustomCloak();
virtual ~cCustomCloak();
void Init();
void Load(CUSTOM_CLOAK* info);
void SetInfo(CUSTOM_CLOAK info);
CUSTOM_CLOAK* GetInfo(int index);
CUSTOM_CLOAK* GetInfoByID(int ItemIndex);
bool CheckCloak(int ItemIndex);
bool isCloakStrip(int ItemIndex);
public:
CUSTOM_CLOAK m_CustomCloakInfo[MAX_CUSTOM_CLOAK];
}; extern cCustomCloak gCustomCloak;
#include "stdafx.h"
#include "CustomCloak.h"
#include "Item.h"
cCustomCloak gCustomCloak;
cCustomCloak::cCustomCloak() // OK
{
this->Init();
}
cCustomCloak::~cCustomCloak() // OK
{
}
void cCustomCloak::Init() // OK
{
for(int n=0;n < MAX_CUSTOM_CLOAK;n++)
{
this->m_CustomCloakInfo[n].Index = -1;
}
}
void cCustomCloak::Load(CUSTOM_CLOAK* info) // OK
{
for(int n=0;n < MAX_CUSTOM_CLOAK;n++)
{
this->SetInfo(info[n]);
}
}
void cCustomCloak::SetInfo(CUSTOM_CLOAK info) // OK
{
if(info.Index < 0 || info.Index >= MAX_CUSTOM_CLOAK)
{
return;
}
this->m_CustomCloakInfo[info.Index] = info;
}
CUSTOM_CLOAK* cCustomCloak::GetInfo(int index) // OK
{
if(index < 0 || index >= MAX_CUSTOM_CLOAK)
{
return 0;
}
if(this->m_CustomCloakInfo[index].Index != index)
{
return 0;
}
return &this->m_CustomCloakInfo[index];
}
CUSTOM_CLOAK* cCustomCloak::GetInfoByID(int ItemIndex) // OK
{
for(int n=0;n < MAX_CUSTOM_CLOAK;n++)
{
CUSTOM_CLOAK* lpInfo = this->GetInfo(n);
if(lpInfo == 0)
{
continue;
}
if(lpInfo->ItemIndex == ItemIndex)
{
return lpInfo;
}
}
return 0;
}
bool cCustomCloak::CheckCloak(int ItemIndex)
{
for (int i = 0 ; i < MAX_CUSTOM_CLOAK ; i++)
{
if (ItemIndex == this->m_CustomCloakInfo[i].ItemIndex)
{
return true;
}
}
return false;
}
bool cCustomCloak::isCloakStrip(int ItemIndex) // OK
{
for (int i = 0 ; i < MAX_CUSTOM_CLOAK ; i++)
{
if (ItemIndex == this->m_CustomCloakInfo[i].ItemIndex && this->m_CustomCloakInfo[i].Mode == 1)
{
return true;
}
}
return false;
}