CO Private Server

08/06/2006 00:00 Hybris#826
Quote:
Originally posted by Titanium@Aug 5 2006, 17:05
btw Hybris can i have my soul back... you just stole it...:D
loOL sorry i like it...i'll be sooo powerful soon ^^
08/06/2006 00:00 Hybris#827
Quote:
Originally posted by Scottish_Fire!@Aug 5 2006, 23:08
plz pm me the pass word cause i would really enjoy a server with out loads of people in it...
Please read the entire thread or read my little guide, look at my signature the link is in it.
08/06/2006 00:01 andyd123#828
Quote:
Originally posted by Scottish_Fire!@Aug 5 2006, 23:08
plz pm me the pass word cause i would really enjoy a server with out loads of people in it...
(Guys, I think this is a better approach to take then saying read the whole thread.... Since they dont listen)

@Scottish.
No
08/06/2006 01:11 Hybris#829
Quote:
Originally posted by andyd123+Aug 6 2006, 00:01--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (andyd123 @ Aug 6 2006, 00:01)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--Scottish_Fire!@Aug 5 2006, 23:08
plz pm me the pass word cause i would really enjoy a server with out loads of people in it...
(Guys, I think this is a better approach to take then saying read the whole thread.... Since they dont listen)

@Scottish.
No [/b][/quote]
Depends if you wanna be cool or not :P and i try to help each other as much as possible...till they dont bother me too much ^^
08/06/2006 08:02 aidas2004#830
Hybris> hey dude... hows gone ?
i just came back from work... so reading last threads...
and i guess nothing didin't happened "i'am about server progress" till i last time worked with files... :D
how i know we have some ideas for npc's and did anyone tryed to test them... ?
08/06/2006 10:59 Hybris#831
Quote:
Originally posted by aidas2004@Aug 6 2006, 08:02
Hybris> hey dude... hows gone ?
i just came back from work... so reading last threads...
and i guess nothing didin't happened "i'am about server progress" till i last time worked with files... :D
how i know we have some ideas for npc's and did anyone tryed to test them... ?
I'm still working on items. I gotta find how to capture a Packet sent by a client and send him another Packet as an answer.
08/07/2006 08:52 lostsolder05#832
ok i know this is stupid but did any1 try that heal command
i wanna know if it works lol
my networks too lagy
08/07/2006 12:50 Hybris#833
Quote:
Originally posted by lostsolder05@Aug 7 2006, 08:52
ok i know this is stupid but did any1 try that heal command
i wanna know if it works lol
my networks too lagy
I'll try that maybe later, i just finished a working good /give Command, you can add any items everywhere you want. You just need to add a
Code:
public static int UID = 0;
at the beginning of "Public Class World".
Here is the World.cs Command :
Code:
else if &#40;Splitter&#91;0&#93; == &#34;/give&#34; || Splitter&#91;0&#93; == &#34;/Give&#34;&#41;
 * *	{
 * * *if &#40;Splitter&#91;1&#93; == &#34;0&#34; || Splitter&#91;1&#93; == &#34;1&#34;&#41;
 * * *{
 * * *	int Item_Location = 0;
 * * *	int Item_Inventory = 0;
 * * *	int Item_Type = 0;
 * * *	int Item_Color = 0;
 * * *	int Item_Level = 0;
 * * *	int Item_Quality = 0;
 * * *	int Item_Compose = 0;
 * * *	int Item_UID = 0;
 * * *	int Item_ID = 0;
 * * *	int LeftHand = 0;
 * * *	if &#40;UID &#60; 1&#41;
 * * *	{
 * * * *UID = 0;
 * * *	}
 * * *	UID++;
 * * *	if &#40;Splitter&#91;2&#93; == &#34;Other&#34; || Splitter&#91;2&#93; == &#34;other&#34;&#41;
 * * * *Item_Location = 70;
 * * *	else if &#40;Splitter&#91;2&#93; == &#34;HeadWear&#34; || Splitter&#91;2&#93; == &#34;headwear&#34;&#41;
 * * * *Item_Location = 11;
 * * *	else if &#40;Splitter&#91;2&#93; == &#34;Necklace&#34; || Splitter&#91;2&#93; == &#34;necklace&#34;&#41;
 * * * *Item_Location = 12;
 * * *	else if &#40;Splitter&#91;2&#93; == &#34;Armor&#34; || Splitter&#91;2&#93; == &#34;armor&#34;&#41;
 * * * *Item_Location = 13;
 * * *	else if &#40;Splitter&#91;2&#93; == &#34;RightHand&#34; || Splitter&#91;2&#93; == &#34;righthand&#34;&#41;
 * * * *Item_Location = 41;
 * * *	else if &#40;Splitter&#91;2&#93; == &#34;LeftHand&#34; || Splitter&#91;2&#93; == &#34;lefthand&#34;&#41;
 * * *	{
 * * * *Item_Location = 41;
 * * * *LeftHand = 1;
 * * *	}
 * * *	else if &#40;Splitter&#91;2&#93; == &#34;Ring&#34; || Splitter&#91;2&#93; == &#34;ring&#34;&#41;
 * * * *Item_Location = 15;
 * * *	else if &#40;Splitter&#91;2&#93; == &#34;Boots&#34; || Splitter&#91;2&#93; == &#34;boots&#34;&#41;
 * * * *Item_Location = 16;
 * * *	Item_Inventory = Convert.ToInt32&#40;Splitter&#91;1&#93;&#41;;
 * * *	Item_Type = &#40;Convert.ToInt32&#40;Splitter&#91;3&#93;&#41; - 1&#41; * 1000;
 * * *	if &#40;Splitter&#91;4&#93; != &#34;0&#34;&#41;
 * * *	{
 * * * *if &#40;Item_Location == 13 || Item_Location == 11&#41;
 * * * *	if &#40;Item_Type == 7000 && Item_Location == 11&#41;
 * * * * *Item_Color = 3 * 100;
 * * * *	else
 * * * * *Item_Color = &#40;Convert.ToInt32&#40;Splitter&#91;4&#93;&#41; + 2&#41; * 100;
 * * * *else
 * * * *	Item_Color = 0;
 * * *	}
 * * *	else
 * * * *Item_Color = 0;
 * * *	Item_Level = &#40;Convert.ToInt32&#40;Splitter&#91;5&#93;&#41; - 1&#41; * 10;
 * * *	Item_Quality = Convert.ToInt32&#40;Splitter&#91;6&#93;&#41; + 2;
 * * *	Item_Compose = Convert.ToInt32&#40;Splitter&#91;7&#93;&#41;;
 * * *	Item_UID = Convert.ToInt32&#40;UID&#41;;
 * * *	Item_ID = &#40;Item_Location * 10000&#41; + Item_Type + Item_Color + Item_Level + Item_Quality;
 * * *	Client.SendData&#40;PacketBuilder.GiveItem&#40;Item_Inventory, Item_Location, Item_ID, Item_Compose, Item_UID, LeftHand&#41;&#41;;
 * * *	Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, Client.Char.Name, &#34;The Item &#34; + Item_ID + &#34; was given.&#34;, ChatType.Top&#41;&#41;;
 * * *}
 * * *else if &#40;Splitter&#91;1&#93; == &#34;/Location&#34; || Splitter&#91;1&#93; == &#34;/location&#34;&#41;
 * * *	Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;Other HeadWear Necklace Armor RightHand LeftHand Ring Boots&#34;, ChatType.Talk&#41;&#41;;
 * * *else if &#40;Splitter&#91;1&#93; == &#34;/Inventory&#34; || Splitter&#91;1&#93; == &#34;/inventory&#34;&#41;
 * * *	Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;1 For Equipped/0 For Unequipped&#34;, ChatType.Talk&#41;&#41;;
 * * *else if &#40;Splitter&#91;1&#93; == &#34;/Type&#34; || Splitter&#91;1&#93; == &#34;/type&#34;&#41;
 * * *{
 * * *	if &#40;Splitter&#91;2&#93; == &#34;/Weapons&#34; || Splitter&#91;2&#93; == &#34;/weapons&#34;&#41;
 * * * *Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;1Blade 11Sword 12BackSword 21Hook 31Whip 41Axe 51Hammer 71Club 72Scepter 81Dagger 91Bow 101Glaive 121Poleaxe 131LongHammer 151Spear 152Wand 171Halbert &#34;, ChatType.Talk&#41;&#41;;
 * * *	else if &#40;Splitter&#91;2&#93; == &#34;/?&#34;&#41;
 * * * *Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;/Give /Type /Weapons - Gives Info for Weapons&#34;, ChatType.Talk&#41;&#41;;
 * * *	else
 * * * *Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;/Give SYSTEM&#34;, &#34;ALL&#34;, &#34;Nothing to say&#34;, ChatType.Talk&#41;&#41;;
 * * *}
 * * *else if &#40;Splitter&#91;1&#93; == &#34;/Color&#34; || Splitter&#91;1&#93; == &#34;/color&#34;&#41;
 * * *	Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;From 1 to 7 for Hats, Caps, Helmets and Armors of all Kind&#34;, ChatType.Talk&#41;&#41;;
 * * *else if &#40;Splitter&#91;1&#93; == &#34;/?&#34;&#41;
 * * *{
 * * *	Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;/Give Inventory Location Type Color Level Quality Compose&#34;, ChatType.Talk&#41;&#41;;
 * * *	Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;/give /? |More&#34;, ChatType.Talk&#41;&#41;;
 * * *	if &#40;Splitter&#91;2&#93; == &#34;|More&#34; || Splitter&#91;2&#93; == &#34;|more&#34;&#41;
 * * *	{
 * * * *Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;Smone&#34;, &#34;ALL&#34;, &#34;/Give /Inventory - Gives Definition of Inventory Bool&#34;, ChatType.Talk&#41;&#41;;
 * * * *Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;/Give /Location - Gives Kind of Locations&#34;, ChatType.Talk&#41;&#41;;
 * * * *Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;/Give /Type - Gives kind of Types&#34;, ChatType.Talk&#41;&#41;;
 * * * *Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;/Give /Color - Gives info about Colors&#34;, ChatType.Talk&#41;&#41;;
 * * * *Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;SYSTEM&#34;, &#34;ALL&#34;, &#34;/Give /Level - Gives info about Levels&#34;, ChatType.Talk&#41;&#41;;
 * * *	}
 * * *}
 * * *else
 * * *	Client.SendData&#40;PacketBuilder.Message&#40;Client.MessageID, &#34;/Give SYSTEM&#34;, &#34;ALL&#34;, &#34;Nothing to say&#34;, ChatType.Talk&#41;&#41;;
 * *	}
And here is the PacketBuilder.cs Packet :
Code:
public static byte&#91;&#93; GiveItem&#40;int Inventory, int Location, int ID, int Compose, int UID, int LeftHand&#41;
 *{
 *	byte&#91;&#93; PacketData = new byte&#91;0x18&#93;;
 *	PacketData&#91;0&#93; = 0x18;
 *	PacketData&#91;1&#93; = 0x00;
 *	PacketData&#91;2&#93; = 0xf0;
 *	PacketData&#91;3&#93; = 0x03;
 *	PacketData&#91;4&#93; = &#40;byte&#41; &#40;UID & 0xff&#41;;//UID
 *	PacketData&#91;5&#93; = &#40;byte&#41;&#40;&#40;UID >> 8&#41; & 0xff&#41;; // '
 *	PacketData&#91;6&#93; = &#40;byte&#41;&#40;&#40;UID >> 16&#41; & 0xff&#41;; // '
 *	PacketData&#91;7&#93; = &#40;byte&#41;&#40;&#40;UID >> 24&#41; & 0xff&#41;; // '
 *	PacketData&#91;8&#93; = &#40;byte&#41;&#40;ID *& 0xff&#41;; //Item ID
 *	PacketData&#91;9&#93; = &#40;byte&#41;&#40;&#40;ID >> 8&#41; & 0xff&#41;; // * '
 *	PacketData&#91;0x0a&#93; = &#40;byte&#41;&#40;&#40;ID >> 16&#41; & 0xff&#41;; // *'
 *	PacketData&#91;0x0b&#93; = &#40;byte&#41;&#40;&#40;ID >> 24&#41; & 0xff&#41;; // *'
 *	if &#40;Location >= 70&#41;
 *	{
 * *PacketData&#91;0x0c&#93; = 0x00; // NULL
 * *PacketData&#91;0x0d&#93; = 0x00; // DURABILITY
 * *PacketData&#91;0x0e&#93; = 0x00; // FOR
 * *PacketData&#91;0x0f&#93; = 0x00; // COMMON ITEMS
 *	}
 *	else
 *	{
 * *PacketData&#91;0x0c&#93; = 0x88; // Current Durability
 * *PacketData&#91;0x0d&#93; = 0x13; // * * *'
 * *PacketData&#91;0x0e&#93; = 0x88; // Max Durability
 * *PacketData&#91;0x0f&#93; = 0x13; // * * *'
 *	}
 *	PacketData&#91;0x10&#93; = 0x01; //01
 *	PacketData&#91;0x11&#93; = 0x00; //00
 *	if &#40;Inventory != 0&#41;
 *	{
 * *if &#40;Location >= 70&#41;
 * *	PacketData&#91;0x12&#93; = 0x00;//INVENTORY
 * *else if &#40;Location >= 41&#41;
 * *{
 * *	if &#40;LeftHand == 0&#41;
 * * *PacketData&#91;0x12&#93; = 0x04;//RIGHT HAND
 * *	else if &#40;LeftHand == 1&#41;
 * * *PacketData&#91;0x12&#93; = 0x05;//LEFT HAND
 * *}
 * *else if &#40;Location == 16&#41;
 * *	PacketData&#91;0x12&#93; = 0x08;//BOOTS
 * *else if &#40;Location == 15&#41;
 * *	PacketData&#91;0x12&#93; = 0x06;//RING
 * *else if &#40;Location == 13&#41;
 * *	PacketData&#91;0x12&#93; = 0x03;//ARMOR
 * *else if &#40;Location == 12&#41;
 * *	PacketData&#91;0x12&#93; = 0x02;//NECKLACE
 * *else
 * *	PacketData&#91;0x12&#93; = 0x01;
 *	}
 *	else
 *	{
 * *PacketData&#91;0x12&#93; = 0x00;
 *	}
 *	PacketData&#91;0x13&#93; = 0x00; //Gem 1
 *	PacketData&#91;0x14&#93; = 0x00; //Gem 2
 *	PacketData&#91;0x15&#93; = 0x00;
 *	PacketData&#91;0x16&#93; = 0x00;
 *	PacketData&#91;0x17&#93; = &#40;byte&#41;&#40;Compose & 0xff&#41;; //Composition
 *	return PacketData;
 *}
It stills needs some Ameliorations but its kinda good atm. You can add any items with that everywhere you want, even in your inventory.
08/07/2006 19:14 lostsolder05#834
Nice,+K
08/07/2006 21:51 Hybris#835
Quote:
Originally posted by lostsolder05@Aug 7 2006, 19:14
Nice,+K
Thx cose i worked on it all the night to fix many bugs ^^
08/08/2006 17:07 xxnikexx#836
What version i should use with that source?
Or its not the patch problem...
I can great character and then i relog..after that it dont go foward
"Loging into the server...please wait a moment..!
Can someone tell what is the problem?
08/08/2006 19:32 lostsolder05#837
please read the whole thread from now on

if i read right, your problem is that your client is patched past 4311
tq changed the packets so this version wont work unless you have patch 4311 or under
08/08/2006 20:04 xxnikexx#838
ok thx bro...
08/09/2006 06:34 Darkkal#839
ehhh....no more private servers :P its not fun with just 123 ppl on 1 server :(
08/09/2006 18:20 lostsolder05#840
Quote:
Originally posted by Darkkal@Aug 9 2006, 06:34
ehhh....no more private servers :P its not fun with just 123 ppl on 1 server :(
Ok i might have read it wrong but... if i did read it correctly... sorry Darkkal but you need to stfu nubs arn't supposed to be that opinionated
when they have a post count of 3.


[img]text2schild.php?smilienummer=1&text=sorry if i misenterpreted what he said' border='0' alt='sorry if i misenterpreted what he said' />