CO Private Server

07/12/2006 08:00 andyd123#706
Hmm Shmoggle, i wonder, are you able to remove the items? Or no?
07/12/2006 14:08 shmoogle#707
Quote:
Originally posted by andyd123@Jul 12 2006, 08:00
Hmm Shmoggle, i wonder, are you able to remove the items? Or no?
yes i can drop them but thay dont aprear on the ground yet.

also unequiping stuff works as well ^^
07/12/2006 15:38 lostsolder05#708
does it appear in you inv when you unequip it?
07/12/2006 16:06 andyd123#709
Yes, I would like to know if unequipping shows in inv.
Also, mind telling us about what you did.
Because I know where it would go, just not to sure as to how you would do it..
07/12/2006 17:14 shmoogle#710
when you unequip it does go to your inventory.
07/13/2006 02:21 xprincex#711
hey shmoogle goood nice just wondering how have you did this i got to get only one item to go in my inv and i could drop it but it dint show eidther how did you get some many things to go in ?????
07/13/2006 02:26 shmoogle#712
one word: UID
07/13/2006 02:28 xprincex#713
that helps a lil but coudl you be more decivive

EDIt: so pppl like me culd get a better idea i know more thatn i did before and all but uid i see that in like 5 diffrent things i have
07/13/2006 02:31 shmoogle#714
lol i wish i could but i really dont know the first thing about programming, so no clue really how ive managed to do anything that ive done

but basicly each item needs a unique id but the packet to give items uses the same uid everytime so just make it send a different number everytime and it should work
07/13/2006 11:13 Hybris#715
Ok now i can add, any items anywhere i want. Gotta find how to spawn em on the ground. I can spawn anyone anywhere the only thing i need is the UID Byte for Spawn Packet so that i can add many Guards and not only one. I found how to MODIFY an item in the inventory, for example to change the first item of your inventory into another. I'm currently working on many things at the same time but its gonna take time...by the way, i dont have this time cause tomorrow i'm in Hollydays and i wont stay here ;) (yes i have a life elsewhere than in front of my computer ^^). By the way, i made a Command so that i can send ANY packet ANYWHEN to ANYONE.
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
07/13/2006 12:11 Hybris#716
Now here is the universal packet i use, modify and complete it if you want to use it for everything, atm it wont be able to make anything except Skills, Items etc...now big Packets only 24 Bytes packets atm.

Code:
public static byte[] Command(int Cmd_Sub, int Cmd_Type, int Cmd_UID, int Cmd_ID, int Cmd_Dura,int Cmd_MaxDura, int Cmd_Simple, int Cmd_Loc, int Cmd_Gem, int Cmd_Unknown, int Cmd_Compose)
 {
 	byte[] PacketData = new byte[(byte)(Cmd_Sub & 0xff)];
 	PacketData[0] = (byte)(Cmd_Sub & 0xff);//18
 	PacketData[1] = (byte)((Cmd_Sub >> 8) & 0xff);//00
 	if (Cmd_Sub > 2) { PacketData[2] = (byte)(Cmd_Type & 0xff); }//f0
 	if (Cmd_Sub > 3) { PacketData[3] = (byte)((Cmd_Type >> 8) & 0xff); }//03
 	if (Cmd_Sub > 4) { PacketData[4] = (byte)(Cmd_UID & 0xff); }//UID
 	if (Cmd_Sub > 5) { PacketData[5] = (byte)((Cmd_UID >> 8) & 0xff); }// '
 	if (Cmd_Sub > 6) { PacketData[6] = (byte)((Cmd_UID >> 16) & 0xff); }// '
 	if (Cmd_Sub > 7) { PacketData[7] = (byte)((Cmd_UID >> 24) & 0xff); }// '
 	if (Cmd_Sub > 8) { PacketData[8] = (byte)(Cmd_ID & 0xff); }//Item ID
 	if (Cmd_Sub > 9) { PacketData[9] = (byte)((Cmd_ID >> 8) & 0xff); }//  '
 	if (Cmd_Sub > 10) { PacketData[0x0a] = (byte)((Cmd_ID >> 16) & 0xff); }// '
 	if (Cmd_Sub > 12) { PacketData[0x0b] = (byte)((Cmd_ID >> 24) & 0xff); }// '
 	if (Cmd_Sub > 12) { PacketData[0x0c] = (byte)(Cmd_Dura & 0xff); }// Current Durability
 	if (Cmd_Sub > 13) { PacketData[0x0d] = (byte)((Cmd_Dura >> 8) & 0xff); }//   '
 	if (Cmd_Sub > 14) { PacketData[0x0e] = (byte)((Cmd_MaxDura >> 16) & 0xff); }// Max Durability
 	if (Cmd_Sub > 15) { PacketData[0x0f] = (byte)((Cmd_MaxDura >> 24) & 0xff); }//   '
 	if (Cmd_Sub > 16) { PacketData[0x10] = (byte)(Cmd_Simple & 0xff); }//01 ADD - 03 MODIFIES
 	if (Cmd_Sub > 17) { PacketData[0x11] = (byte)((Cmd_Simple >> 8) & 0xff); }//00
 	if (Cmd_Sub > 18) { PacketData[0x12] = (byte)(Cmd_Loc & 0xff); }//Equipped location
 	if (Cmd_Sub > 19) { PacketData[0x13] = (byte)(Cmd_Gem & 0xff); }//Gem 1
 	if (Cmd_Sub > 20) { PacketData[0x14] = (byte)((Cmd_Gem >> 8) & 0xff); }//Gem 2
 	if (Cmd_Sub > 21) { PacketData[0x15] = (byte)(Cmd_Unknown & 0xff); }//00
 	if (Cmd_Sub > 22) { PacketData[0x16] = (byte)((Cmd_Unknown >> 8) & 0xff); }//00
 	if (Cmd_Sub > 23) { PacketData[0x17] = (byte)(Cmd_Compose & 0xff); }//Composition
 	if (Cmd_Sub > 24) { PacketData[0x18] = 0x00; } // THIS IS ADAPTABLE you can make ANY packet with that just use the solution above
 	if (Cmd_Sub > 25) { PacketData[0x19] = 0x00; }
 	if (Cmd_Sub > 26) { PacketData[0x1a] = 0x00; }
 	if (Cmd_Sub > 27) { PacketData[0x1b] = 0x00; }
 	if (Cmd_Sub > 28) { PacketData[0x1c] = 0x00; }
 	if (Cmd_Sub > 29) { PacketData[0x1d] = 0x00; }
 	if (Cmd_Sub > 30) { PacketData[0x1e] = 0x00; }
 	if (Cmd_Sub > 31) { PacketData[0x1f] = 0x00; }
 	if (Cmd_Sub > 32) { PacketData[0x20] = 0x00; }
 	if (Cmd_Sub > 33) { PacketData[0x21] = 0x00; }
 	if (Cmd_Sub > 34) { PacketData[0x22] = 0x00; }
 	if (Cmd_Sub > 35) { PacketData[0x23] = 0x00; }
 	if (Cmd_Sub > 36) { PacketData[0x24] = 0x00; }
 	if (Cmd_Sub > 37) { PacketData[0x25] = 0x00; }
 	if (Cmd_Sub > 38) { PacketData[0x26] = 0x00; }
 	if (Cmd_Sub > 39) { PacketData[0x27] = 0x00; }
 	if (Cmd_Sub > 40) { PacketData[0x28] = 0x00; }
 	if (Cmd_Sub > 41) { PacketData[0x29] = 0x00; }
 	if (Cmd_Sub > 42) { PacketData[0x2a] = 0x00; }
 	if (Cmd_Sub > 43) { PacketData[0x2b] = 0x00; }
 	if (Cmd_Sub > 44) { PacketData[0x2c] = 0x00; }
 	if (Cmd_Sub > 45) { PacketData[0x2d] = 0x00; }
 	if (Cmd_Sub > 46) { PacketData[0x2e] = 0x00; }
 	if (Cmd_Sub > 47) { PacketData[0x2f] = 0x00; }
 	if (Cmd_Sub > 48) { PacketData[0x30] = 0x00; }
 	if (Cmd_Sub > 49) { PacketData[0x31] = 0x00; }
 	if (Cmd_Sub > 50) { PacketData[0x32] = 0x00; }
 	if (Cmd_Sub > 51) { PacketData[0x33] = 0x00; }
 	if (Cmd_Sub > 52) { PacketData[0x34] = 0x00; }
 	if (Cmd_Sub > 53) { PacketData[0x35] = 0x00; }
 	if (Cmd_Sub > 54) { PacketData[0x36] = 0x00; }
 	if (Cmd_Sub > 55) { PacketData[0x37] = 0x00; }
 	if (Cmd_Sub > 56) { PacketData[0x38] = 0x00; }
 	if (Cmd_Sub > 57) { PacketData[0x39] = 0x00; }
 	if (Cmd_Sub > 58) { PacketData[0x3a] = 0x00; }
 	if (Cmd_Sub > 59) { PacketData[0x3b] = 0x00; }
 	if (Cmd_Sub > 60) { PacketData[0x3c] = 0x00; }
 	if (Cmd_Sub > 61) { PacketData[0x3d] = 0x00; }
 	return PacketData;
 }



Code:
else if (Splitter[0] == "/command" || Splitter[0] == "/Command")
  	{
   int Item_Sub = Convert.ToInt32(Splitter[1]);
   int Item_Type = Convert.ToInt32(Splitter[2]);
   int Item_UID = Convert.ToInt32(Splitter[3]);
   int Item_ID = Convert.ToInt32(Splitter[4]);
   int Item_Dura = Convert.ToInt32(Splitter[5]);
   int Item_MaxDura = Convert.ToInt32(Splitter[6]);
   int Item_Simple = Convert.ToInt32(Splitter[7]);
   int Item_Loc = Convert.ToInt32(Splitter[8]);
   int Item_Gem = Convert.ToInt32(Splitter[9]);
   int Item_Unknown=Convert.ToInt32(Splitter[0x0a]);
   int Item_Compose = Convert.ToInt32(Splitter[0x0b]);
   Client.SendData(PacketBuilder.Command(Item_Sub, Item_Type, Item_UID, Item_ID, Item_Dura, Item_MaxDura, Item_Simple, Item_Loc, Item_Gem, Item_Unknown, Item_Compose));
   Client.SendData(PacketBuilder.Message(Client.MessageID, "SYSTEM", "ALL", "/add SUB TYPE UID ID DURA MAXDURA SIMPLE LOC GEM UNKNOWN COMPOSE", ChatType.Talk));
  	}
07/13/2006 12:30 Hybris#717
Here is an example of item Modify, first i added a SuperTornado(+10) in my inventory.

/cmd 24 1008 1 120249 5000 5000 1 0 0 0 10
Code:
SUB = 24 (number of bytes in the Item Packet)
Type = 1008 (kind of action sent by the packet [i think, these are theorys])
UID = 1 (The number assigned to this item)
ID = 120249 (SuperTornado)
DURA = 5000 (makes 50 dura)
MAXDURA = 5000 (makes 50 maxdura)
SIMPLE = 1 (That thing add an item)
LOC = 0 (so that the item appears in the inventory)
GEM = 0 (I dont need any gems)
UNKNOWN = 0 (dont no yet what it changes, maybe its useless for that packet)
COMPOSE = 10 (i want a +10 item)
Then i MODIFIED it to a SuperTornado(+255).
/cmd 24 1008 1 120249 5000 5000 3 0 0 0 255
Code:
SUB = 24 (number of bytes in the Item Packet)
Type = 1008 (kind of action sent by the packet [i think, these are theorys])
UID = 1 (I want to modify THAT item not another, this is the one assigned to SuperTornado(+10) on first position in my inventory)
ID = 120249 (SuperTornado)
DURA = 5000 (makes 50 dura)
MAXDURA = 5000 (makes 50 maxdura)
SIMPLE = 3 (That thing MODIFY an item)
LOC = 0 (so that the item i modify is in the inventory)
GEM = 0 (I dont need any gems)
UNKNOWN = 0 (dont no yet what it changes, maybe its useless for that packet)
COMPOSE = 255 (i want to change it in a +255 item)
[Only registered and activated users can see links. Click Here To Register...]
07/13/2006 16:48 andyd123#718
An interesting find (I think) for use with hybrids packet (gems).
It supports two numbers, as I find.
if you change gem to 1, it gives you a normal nix, 2 ref nix, 3 super nix.
If you add say a 11, it gives you a normal drag, 12 ref drag, so on.
I can only get one socket, but i will keeptrying.
-Andy
07/13/2006 16:58 Hybris#719
Quote:
Originally posted by andyd123@Jul 13 2006, 16:48
An interesting find (I think) for use with hybrids packet (gems).
It supports two numbers, as I find.
if you change gem to 1, it gives you a normal nix, 2 ref nix, 3 super nix.
If you add say a 11, it gives you a normal drag, 12 ref drag, so on.
I can only get one socket, but i will keeptrying.
-Andy
As you see packets are defined with Hexa numbers, the numbers you're telling are the one you use with the command. But then they are Converted in Hexa and used in the packet. So your number 11 for Draggy makes B in Hexa. The gems are defined with 4 Hexa numbers, 2 for the first, 2 for the other one. If you want to add 2 Normal Draggy you'll have to put in Hexa : 0B 0B, and that makes in Decimal 2827.
By the way, all the gems are : 01[Phoenix] 11[Dragon] 21[Fury] 31[Rainbow] 41[Kylin] 51[Violet] 61[Moon] 71[Tortoise]
07/13/2006 17:08 vDrag0n#720
Hybris, did your guys already found a way to remove the Char selector?