Ya.. idk what it is.. i think its just the way items are saved in the database... cause sometimes it gets mixed
i always try to make the code as simple and easy as i can so it would also be easy to learn and editQuote:
Why does everyones CoEmu lotto look simpler than mine lol
when u have an item in ur inventory and log off when u log in again u wont find itQuote:
btw What's this item disappear bug you guys are talking about?
yes i did , thanks for ur encourage and take it more easy or u will get tired of it :pQuote:
samehvan u notice i press thanks on every one of your posts? ^.^
open your database manager and select the Item table , add 3 new fieldsQuote:
the CS Gameserver does not contain a definition for 'Progree' or 'Free' or 'Locked'
there is also no definition for lotto, help with this would be appreciated :)
MySqlCommand Cmd = new MySqlCommand("UPDATE `items` SET `Position` = " + Item.Position + ", `ItemID` = " + Item.ItemID + ",`Minus` = " + Item.Bless + ", `Plus` = " + Item.Plus + ",`Progress` = " + Item.Progress + ", `Enchant` = " + Item.Enchant + ",`Color` = " + Item.Color + ", `Soc1` = " + Item.Soc1 + ", `Soc2` = " + Item.Soc2 + ", `Locked` = " + Item.Locked + ", `Free` = " + Item.Free + ", `Dura` = " + Item.Dura + ", `MaxDura` = " + Item.MaxDura + " WHERE `ItemUID` = \"" + Item.UID + "\"", DatabaseConnection.NewConnection());
Item.Enchant = Convert.ToInt32(DR["Enchant"]);
Item.Locked = Convert.ToInt32(DR["Locked"]);
Item.Free = Convert.ToInt32(DR["Free"]);
Item.Progress = Convert.ToInt32(DR["Progress"]);
sure , the nobility system will be my next step as soon as i finish 3 more things i am working onQuote:
Samehvan :
Well i tryed my ass off to get the nobility icon popup can you help me with it? .. -.-'
I already got most of it done like :
Sending the rank position packet
Sending the rank potency packet
The database functions for it.
The calculation of the donations
But yeah can you help me with let the icon popup cant seem to get that working no matter what i'd i use for it while for other in the same file i pick it from it works lol
Thanks in advance,
Xellios
public static byte[] TradePartnerPacket(int UID, int Type1, int Online, int HoursRemaning, string Name)
{
int leng = (16 - Name.Length);
HoursRemaning = HoursRemaning * 60;
PacketBuilder Packet = new PacketBuilder(2046, 16 + Name.Length + leng);
Packet.Long(UID);
Packet.Int(Type1);
Packet.Int(Online);//char online
Packet.Long(HoursRemaning);
Packet.Short(0);
if (Name != "")
{ Packet.Text(Name); }
for (int i = 0; i < leng; i++)
{
Packet.Int(0);
}
return Packet.getFinal();
}
public static byte[] TradePartnerInfo(Connections.ClientSocket CSocket)
{
//missing infos about guild and others
PacketBuilder Packet = new PacketBuilder(2047, 40 + CSocket.Client.Spouse.Length);
Packet.Long(CSocket.Client.ID);
Packet.Long(CSocket.Client.Model);
Packet.Int(CSocket.Client.Level);
Packet.Int((int)CSocket.Client.Class);
Packet.Short(CSocket.Client.PkPoints);
Packet.Short(CSocket.Client.GuildID);//maybe guild id and position
Packet.Int(0);
Packet.Int(CSocket.Client.GuildRank);
Packet.Text(CSocket.Client.Spouse);
Packet.Long(0);//there is the space for guild name
Packet.Long(0);//there is the space for guild name
Packet.Long(0);//there is the space for guild name
Packet.Long(0);//there is the space for guild name
Packet.Long(1);
return Packet.getFinal();
Actually i do if you just come on msn again xDQuote:
sure , the nobility system will be my next step as soon as i finish 3 more things i am working on
1-Socketing talismans (95%Done)
2-Fatal Strike skill
3-Trade partners and friend/enemy Systems
ah too much work to do :p
yet if u have any info that might save some time plz don't hesitate to share it
thanks i'll try thatQuote:
I bet that FatalStrike will take the longest to code out of that list.
//edit About tradepartners, do you have the packets? if not here they're.
Code:public static byte[] TradePartnerPacket(int UID, int Type1, int Online, int HoursRemaning, string Name) { int leng = (16 - Name.Length); HoursRemaning = HoursRemaning * 60; PacketBuilder Packet = new PacketBuilder(2046, 16 + Name.Length + leng); Packet.Long(UID); Packet.Int(Type1); Packet.Int(Online);//char online Packet.Long(HoursRemaning); Packet.Short(0); if (Name != "") { Packet.Text(Name); } for (int i = 0; i < leng; i++) { Packet.Int(0); } return Packet.getFinal(); } public static byte[] TradePartnerInfo(Connections.ClientSocket CSocket) { //missing infos about guild and others PacketBuilder Packet = new PacketBuilder(2047, 40 + CSocket.Client.Spouse.Length); Packet.Long(CSocket.Client.ID); Packet.Long(CSocket.Client.Model); Packet.Int(CSocket.Client.Level); Packet.Int((int)CSocket.Client.Class); Packet.Short(CSocket.Client.PkPoints); Packet.Short(CSocket.Client.GuildID);//maybe guild id and position Packet.Int(0); Packet.Int(CSocket.Client.GuildRank); Packet.Text(CSocket.Client.Spouse); Packet.Long(0);//there is the space for guild name Packet.Long(0);//there is the space for guild name Packet.Long(0);//there is the space for guild name Packet.Long(0);//there is the space for guild name Packet.Long(1); return Packet.getFinal();
i am on , and if u come online and ddnt find me u can just PM meQuote:
Actually i do if you just come on msn again xD
I might share what i did say 3 post above this one =P