
Originally Posted by
myheart
you didn't even test it?it's a part of the pDrawItemModel.
You made it static bro, there is the problem.
Also just change Scale will buggy some items that deppends to change X Y Position according their size.
.H
Code:
#pragma once
// Draw Item Model Class
#define pDrawItemModel ((void(__cdecl*)(float PosX,float PosY,float Width,float Height,int ItemID,int Level,int Excellent,int Ancient,int Floating)) 0x5D2280) // Floating related to size
#define oDrawItemModelCall1 0x0077117C // Inventory and Personal Shop Call?
#define oDrawItemModelCall2 0x0085CE0D // CashShop Call?
class cDrawItemModel
{
public:
cDrawItemModel();
void Load();
static void DrawItemModel(float PosX,float PosY,float Width,float Height,int ItemID,int a6,int a7,int Ancient,int Floating);
};
extern cDrawItemModel gDrawItemModel;
.CPP
Code:
#include "stdafx.h"
cDrawItemModel gDrawItemModel;
cDrawItemModel::cDrawItemModel()
{
/**/
}
void cDrawItemModel::Load()
{
gToolKit.SetOp((LPVOID)(oDrawItemModelCall1),this->DrawItemModel,ASM::CALL);
gToolKit.SetOp((LPVOID)(oDrawItemModelCall2),this->DrawItemModel,ASM::CALL);
}
void cDrawItemModel::DrawItemModel(float PosX,float PosY,float Width,float Height,int ItemID,int Level,int Excellent,int Ancient,int Floating)
{
if(ItemID == ItemId(8,15)) // Fix Storm Crow armor position
{
PosY -= 10.0f;
}
pDrawItemModel(PosX,PosY,Width,Height,ItemID,Level,Excellent,Ancient,Floating);
}
Code:
http://patch-ggp.muonline.webzen.net/1.03.43/up_list.zip
Anyway will do same thing
Ps. Main 1.03.43