Re: Glow levels in package
Glow works with: 3 bytes (float) for make different colors (on client side): RGB Sample Struct.. but I don't know if this can help you. -> Red, Green, Blue colors bytes
Re: Glow levels in package
please mauro, learn something
Data Type Ranges
RGBMake(float r,float g,float b) are not "3 bytes float"
Re: Glow levels in package
where can i put this?
any tutorial for that code?
Re: Glow levels in package
Quote:
Originally Posted by
Vadik Proskurin
make out the structure of the package "Character List" F3 00 (Server => Client)
i getting characters data on Client:
Code:
public class CharacterListItem:Object
{
public byte Pos { get; set; }
public string Name { get; set; }
public byte Unknown { get; set; }
public ushort Level { get; set; }
public byte CtlCode { get; set; }
public byte Class { get; set; }
public byte Hand_Left { get; set; }
public byte Hand_Right { get; set; }
public byte Helm_Armor { get; set; }
public byte Pants_Gloves { get; set; }
public byte Boots_Wings_Animal { get; set; }
public byte[] Glow_Levels = new byte[3];
public byte Armortopbits_Wingslevel2 { get; set; }
public byte AdditionalGlowing { get; set; }
}
but I can not understand the algorithm of getting glow levels
anybody, can me help?
Here you go:
Code:
int itemLevels = 0;
for (int i = 0; i < 7; i++)
{
itemLevels |= ((itemArray[i].Level - 1) / 2) << (i * 3);
}
Glow_Levels[0] = (byte)((itemLevels >> 16) & 255);
Glow_Levels[1] = (byte)((itemLevels >> 8) & 255);
Glow_Levels[2] = (byte)(itemLevels & 255);