[Release] Some needed stuff for Coemu

08/28/2009 22:34 1supertao#46
Ya.. idk what it is.. i think its just the way items are saved in the database... cause sometimes it gets mixed
08/28/2009 22:50 Kiyono#47
btw What's this item disappear bug you guys are talking about?
08/28/2009 23:53 samehvan#48
Quote:
Originally Posted by Kiyono View Post
Why does everyones CoEmu lotto look simpler than mine lol
i always try to make the code as simple and easy as i can so it would also be easy to learn and edit

Quote:
Originally Posted by Kiyono View Post
btw What's this item disappear bug you guys are talking about?
when u have an item in ur inventory and log off when u log in again u wont find it

sometimes also when u compose an item or upgrade it ,it just disappear when u log in l8er
08/29/2009 00:19 1supertao#49
samehvan u notice i press thanks on every one of your posts? ^.^
08/29/2009 00:39 kinshi88#50
Quote:
Originally Posted by samehvan View Post
sometimes also when u compose an item or upgrade it ,it just disappear when u log in l8er
That's bugs in your Compose/Upgrading, etc.
08/29/2009 00:43 samehvan#51
Quote:
Originally Posted by 1supertao View Post
samehvan u notice i press thanks on every one of your posts? ^.^
yes i did , thanks for ur encourage and take it more easy or u will get tired of it :p

do u know what makes me more happy ?

when my posts does help ppl , no matter if they thank me or not ,for example this thread has more than 730 views and just 6 thanks yet i am very glad that it helped more than 100 person
08/29/2009 01:05 1supertao#52
Well instead of saying thanks.. i just hit thanks.. so ya.. lol
08/29/2009 01:22 unluckyunknown45654554#53
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 :)
08/29/2009 01:31 12tails#54
if do not have just remove then... or make it : X... i don't have it too (yet) i'm working on other things...
08/29/2009 02:02 samehvan#55
Quote:
Originally Posted by unluckyunknown45654554 View Post
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 :)
open your database manager and select the Item table , add 3 new fields
Progress int(11) Default 0
Free int(2) Default 0
Locked int(2) Default 0

at DataBase.cs -->UpdateItem void replace the first line with this one

Code:
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());
and at GetItem void find

Code:
Item.Enchant = Convert.ToInt32(DR["Enchant"]);
after it add
Code:
                Item.Locked = Convert.ToInt32(DR["Locked"]);
                Item.Free = Convert.ToInt32(DR["Free"]);
                Item.Progress = Convert.ToInt32(DR["Progress"]);
08/29/2009 11:55 xellios#56
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
08/29/2009 19:26 samehvan#57
Quote:
Originally Posted by xellios View Post
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
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
08/29/2009 19:49 Kiyono#58
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();
08/29/2009 21:30 xellios#59
Quote:
Originally Posted by samehvan View Post
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
Actually i do if you just come on msn again xD

I might share what i did say 3 post above this one =P
08/29/2009 22:24 samehvan#60
Quote:
Originally Posted by Kiyono View Post
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();
thanks i'll try that


Quote:
Originally Posted by xellios View Post
Actually i do if you just come on msn again xD

I might share what i did say 3 post above this one =P
i am on , and if u come online and ddnt find me u can just PM me

Socket Talismans added at post 3