How to Change the Color of GP on a 2006Memory's Client
Hey everyone, i'm currently working on making an oldschool server, currently working on it now.. I want to have old school features, but believe it would be nice to have the color code of GP as value of 1-9m Cash Stack showing white and 10m+ showing green, including items.. I've been messing with the code and added all of this..
If anyone can help me out and would be interested in what I'm trying to put together I would appreciate the partnership as well since I am doing this all by myself rn..
:
Code:
}
public final String methodR(/*int i,*/ int j) {
//if(i <= 0)
// pktType = inStream.readUnsignedByte();
if(j >= 0 && j < 10000)
return String.valueOf(j);
if(j >= 10000 && j < 10000000)
return j / 1000 + "K";
if(j >= 10000000 && j < 999999999)
return j / 1000000 + "M";
if(j >= 999999999)
return "*";
else
return "?";
}
and I also added a new textdrawing Method but it doesn't seem to work.. and I'm not getting any errors.
Code:
} else if (class9_1.type == 7) {
TextDrawingArea textDrawingArea_1 = class9_1.textDrawingAreas;
int k4 = 0;
for (int j5 = 0; j5 < class9_1.height; j5++) {
for (int i6 = 0; i6 < class9_1.width; i6++) {
if (class9_1.inv[k4] > 0) {
ItemDef itemDef = ItemDef.forID(class9_1.inv[k4] - 1);
String s2 = itemDef.name;
if (itemDef.stackable || class9_1.invStackSizes[k4] != 1)
s2 = s2 + " x" + intToKOrMilLongName(class9_1.invStackSizes[k4]);
int i9 = k2 + i6 * (115 + class9_1.invSpritePadX);
int k9 = l2 + j5 * (12 + class9_1.invSpritePadY);
if (class9_1.textShadow)
textDrawingArea_1.method382(class9_1.textColor, i9 + class9_1.width / 2, s2, k9, class9_1.textShadow);
else
textDrawingArea_1.method389(class9_1.textShadow, i9, class9_1.textColor, s2, k9);
}
k4++;
}
}
}