[Release] Some needed stuff for Coemu

08/26/2009 22:23 Kiyono#31
Quote:
Originally Posted by 12tails View Post
samehvan i'm having this error... take a look in the screen!
Quote:
Originally Posted by 1supertao View Post
Ya.. 12tails.. i have that error to..
C'mon... Just read the error.
Change in SocketGem.cs
Code:
public static void SocketGem(int ItemID, int GItemID, byte Socket,byte Type, ClientSocket CSocket)
to
Code:
public static void SocketGem(int ItemID, int GItemID, int Socket, int Type, ClientSocket CSocket)
//edit Or read samehvan's post on page 3.
08/26/2009 22:26 CIRASH#32
I agree samehvan. I dont really love anyone but i do like them. As long as they are nice and ask questions correctly. i try to always help out aswell. But if i see the person doesnt even give enough info for me too help then i dont lol
08/26/2009 23:11 12tails#33
Quote:
Originally Posted by Kiyono View Post
C'mon... Just read the error.
Change in SocketGem.cs
Code:
public static void SocketGem(int ItemID, int GItemID, byte Socket,byte Type, ClientSocket CSocket)
to
Code:
public static void SocketGem(int ItemID, int GItemID, int Socket, int Type, ClientSocket CSocket)
//edit Or read samehvan's post on page 3.

lol... sorry i forgot to edit already solved the bug xD
08/26/2009 23:49 12tails#34
maybe do not have anything with the thread... but

i used this code to it (in Chat.cs i make):

Code:
                        case "pluto":
                            {
                                if (CSocket.Client.isPM)
                                {
                                    ConquerPacket.ToServer(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "UltimatePluto has born! It's the time Kill him NOW!!", Struct.ChatType.Center), 1);
                                    ConquerPacket.ToLocal(ConquerPacket.SpawnMonster(5059, 168, 160, 150, "UltimatePluto", 65535, 126, 2), 160, 150, 2024, 0, 0);
                                    ConquerPacket.ToLocal(ConquerPacket.MobSpawnEffect(5059, 160, 150, 2, 131), 160, 150, 2024, 0, 0);
                                    Monitor.Enter(Nano.Monsters);
                                    Nano.Monsters.Add(5059, new Monster());
                                }
                                break;
                            }
but pluto don't move... cannot atack too : X
08/27/2009 01:37 samehvan#35
Quote:
Originally Posted by 12tails View Post
maybe do not have anything with the thread... but

i used this code to it (in Chat.cs i make):

Code:
                        case "pluto":
                            {
                                if (CSocket.Client.isPM)
                                {
                                    ConquerPacket.ToServer(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "UltimatePluto has born! It's the time Kill him NOW!!", Struct.ChatType.Center), 1);
                                    ConquerPacket.ToLocal(ConquerPacket.SpawnMonster(5059, 168, 160, 150, "UltimatePluto", 65535, 126, 2), 160, 150, 2024, 0, 0);
                                    ConquerPacket.ToLocal(ConquerPacket.MobSpawnEffect(5059, 160, 150, 2, 131), 160, 150, 2024, 0, 0);
                                    Monitor.Enter(Nano.Monsters);
                                    Nano.Monsters.Add(5059, new Monster());
                                }
                                break;
                            }
but pluto don't move... cannot atack too : X
all u need to do is Monster Pluto =new Monster();
coz ur code is really spawn it but the server ddn't know that it is a mob
08/27/2009 02:29 12tails#36
samehvan do not work : X

is in the same : /
08/27/2009 02:40 samehvan#37
k i'll try to do it and feed u back , ATM the FatalStrike drives me mad :p
08/27/2009 02:44 12tails#38
i'm trying to make a diferent thing.. if work i tell yo ^^
08/27/2009 16:51 Kiyono#39
Quote:
Originally Posted by samehvan View Post
k i'll try to do it and feed u back , ATM the FatalStrike drives me mad :p
I know how you're feeling.
08/28/2009 17:29 coreymills#40
2 errors:

Code:
Error	1	'CoEmu_v2_GameServer.Structs.Struct.ItemData' does not contain a definition for 'Quality' and no extension method 'Quality' accepting a first argument of type 'CoEmu_v2_GameServer.Structs.Struct.ItemData' could be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\Owner\My Documents\My Received Files\corey\CoRv1\CoEmu v2 GameServer\Calculations\NextLevelEquip.cs	163	22	CoEmu v2 GameServer
Code:
Error 2	'CoEmu_v2_GameServer.Packets.ConquerPacket' does not contain a definition for 'UpdateItem'	C:\Documents and Settings\Owner\My Documents\My Received Files\corey\CoRv1\CoEmu v2 GameServer\PacketProcessor.cs	2412	72	CoEmu v2 GameServer
08/28/2009 18:59 samehvan#41
Quote:
Originally Posted by coreymills View Post
2 errors:

Code:
Error	1	'CoEmu_v2_GameServer.Structs.Struct.ItemData' does not contain a definition for 'Quality' and no extension method 'Quality' accepting a first argument of type 'CoEmu_v2_GameServer.Structs.Struct.ItemData' could be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\Owner\My Documents\My Received Files\corey\CoRv1\CoEmu v2 GameServer\Calculations\NextLevelEquip.cs	163	22	CoEmu v2 GameServer
Code:
Error 2	'CoEmu_v2_GameServer.Packets.ConquerPacket' does not contain a definition for 'UpdateItem'	C:\Documents and Settings\Owner\My Documents\My Received Files\corey\CoRv1\CoEmu v2 GameServer\PacketProcessor.cs	2412	72	CoEmu v2 GameServer
for the first error , find

Code:
public int Sex;
add after it
Code:
public byte Quality;
then find
Code:
NewItem.CPCost = Convert.ToInt32(data[36]);
add after it
Code:
NewItem.Quality = byte.Parse(Convert.ToString(NewItem.ID).Remove(0, Convert.ToString(NewItem.ID).Length - 1));
* for the second error

the update packet is the same as iteminfo packet but has a struct.iteminfo item instead of item attributes and here it is

Code:
public static byte[] UpdateItem(Structs.Struct.ItemInfo Item)
        {
            PacketBuilder Packet = new PacketBuilder(1008, 48);
            Packet.Long(Item.UID);
            Packet.Long(Item.ItemID);
            Packet.Int(10);
            Packet.Int(20);
            Packet.Int(20);
            Packet.Int(20);
            Packet.Short(1);
            Packet.Int(Item.Position);
            Packet.Long(0);
            Packet.Int(0);
            Packet.Int(Item.Soc1);
            Packet.Int(Item.Soc2);
            Packet.Short(2);
            Packet.Int(Item.Plus);
            Packet.Int(Item.Bless);
            Packet.Int(Item.Free); // Free / Unfree
            Packet.Long(Item.Enchant);
            Packet.Int(0);
            Packet.Short(0); // Suspicious item??
            Packet.Short(Item.Locked); //Boolean 1- yes 0 - no (locked)
            Packet.Long(Item.Color); //Item color. 2-9(headgear is 3-9)
            Packet.Long(Item.Progress);// Composition Progress
            return Packet.getFinal();
        }
08/28/2009 21:01 samehvan#42
does anyone have the item disappear bug , or it is just me :p
08/28/2009 21:12 1supertao#43
I do... it when your item is its max level... and if u try to level it again
relog
it will be gone... or it just dissapears ^.^
08/28/2009 21:35 samehvan#44
Quote:
Originally Posted by 1supertao View Post
I do... it when your item is its max level... and if u try to level it again
relog
it will be gone... or it just dissapears ^.^
not only when level it after it's max level , sometimes it just disappears when u disconnect and reconnect again , i checked every item change at the source and added the UpDateitem call after each one and still have that damn bug


Note:My Lottery system has been added to the first post
08/28/2009 22:17 Kiyono#45
Why does everyones CoEmu lotto look simpler than mine lol