CO Private Server

05/14/2006 14:17 Hybris#436
Can anyone give me some Calculate examples ?
I need to make an Integer from 3 simple numbers. like 2, 4 and 5
And then make the integer equal to 245
Smthing like
Code:
int x = Message[4]*100 + Message[5]*10 + Message[6]*1
...but i cant find it
05/15/2006 12:42 aidas2004#437
Hybris> I know that u working only Sunday/Saturday, so when u will be Online chek PM. =]
And our forum.
05/16/2006 02:49 HoangDuy#438
hey any one can help me add npc lik where i should create it, i try in SQL but it didn't Work lol
I need private help who ever nice enought. just want to learn some thign new. my AIM is Duynguyen5 ty
05/16/2006 13:45 Titanium#439
Here guys found something might be usefull...
05/17/2006 06:00 iliveoncaffiene#440
Meh, that's corrupt on WinRAR
05/17/2006 07:15 aidas2004#441
Titanium> yep, u'r Zipped file is broken. please fix this.
I figuret out some things...
So when i will get home, i will write some nice scripts...
05/19/2006 13:31 Titanium#442
Sorry i deleted the file, use WInACE otherwise
05/20/2006 08:40 lostsolder05#443
if (Splitter[0] == "/scroll")
{
if (Splitter[1] == "tc")
{
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
Character Char = Client.Char;
ArrayList[,] Target;
byte[] SpawnData = PacketBuilder.SpawnEntity(Char);
Target = TCLocHash;
int x = 438; int y = 377;
Char.CurrentLoc = new Location(x, y);
Char.Map = World.Maps.TwinCity;
Target[x, y].Add(Client);
World.SpawnCharacter(Client);
Client.SendData(PacketBuilder.Message(Client.Messa geID, "TELEPORT", Client.Char.Name, "Teleported to: " + Client.Char.Map, ChatType.Talk));
}
if (Splitter[1] == "am")
{
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
Character Char = Client.Char;
ArrayList[,] Target;
byte[] SpawnData = PacketBuilder.SpawnEntity(Char);
Target = AMLocHash;
int x = 566; int y = 565;
Char.CurrentLoc = new Location(x, y);
Char.Map = World.Maps.ApeMoutain;
Target[x, y].Add(Client);
World.SpawnCharacter(Client);
Client.SendData(PacketBuilder.Message(Client.Messa geID, "TELEPORT", Client.Char.Name, "Teleported to: " + Client.Char.Map, ChatType.Talk));
}
if (Splitter[1] == "ma")
{
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
Character Char = Client.Char;
ArrayList[,] Target;
byte[] SpawnData = PacketBuilder.SpawnEntity(Char);
Target = MALocHash;
int x = 211; int y = 196;
Char.CurrentLoc = new Location(x, y);
Char.Map = World.Maps.Market;
Target[x, y].Add(Client);
World.SpawnCharacter(Client);
Client.SendData(PacketBuilder.Message(Client.Messa geID, "TELEPORT", Client.Char.Name, "Teleported to: " + Client.Char.Map, ChatType.Talk));
}
if (Splitter[1] == "bi")
{
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
Character Char = Client.Char;
ArrayList[,] Target;
byte[] SpawnData = PacketBuilder.SpawnEntity(Char);
Target = BILocHash;
int x = 723; int y = 573;
Char.CurrentLoc = new Location(x, y);
Char.Map = World.Maps.BirdIsland;
Target[x, y].Add(Client);
World.SpawnCharacter(Client);
Client.SendData(PacketBuilder.Message(Client.Messa geID, "TELEPORT", Client.Char.Name, "Teleported to: " + Client.Char.Map, ChatType.Talk));
}
if (Splitter[1] == "dc")
{
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
Character Char = Client.Char;
ArrayList[,] Target;
byte[] SpawnData = PacketBuilder.SpawnEntity(Char);
Target = DCLocHash;
int x = 496; int y = 649;
Char.CurrentLoc = new Location(x, y);
Char.Map = World.Maps.DesertCity;
Target[x, y].Add(Client);
World.SpawnCharacter(Client);
Client.SendData(PacketBuilder.Message(Client.Messa geID, "TELEPORT", Client.Char.Name, "Teleported to: " + Client.Char.Map, ChatType.Talk));
}
else if (Splitter[1] == "pc")
{
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
Character Char = Client.Char;
ArrayList[,] Target;
byte[] SpawnData = PacketBuilder.SpawnEntity(Char);
Target = MFLocHash;
int x = 232; int y = 260;
Char.CurrentLoc = new Location(x, y);
Char.Map = World.Maps.MapleForest;
Target[x, y].Add(Client);
World.SpawnCharacter(Client);
Client.SendData(PacketBuilder.Message(Client.Messa geID, "TELEPORT", Client.Char.Name, "Teleported to: " + Client.Char.Map, ChatType.Talk));
}
else
{
Client.SendData(PacketBuilder.Message(Client.Messa geID, "SYSTEM", Client.Char.Name, "Usage : /scroll TheCity", ChatType.Talk));
}



i used hybrises stuff and made scroll to every major city ty hybris you were a great help to me :D :D
05/20/2006 08:54 lostsolder05#444
Im sorry oops this is assuming you have your maps and LocHash's.
05/20/2006 09:36 Hybris#445
Eheh Lostsoldier did you ever tryed to log with 2 Clients on your server ?

Then try it, and you'll see that your chars can only see each other in MapleForest and TwinCity, thats why i didnt made BirdIsland, ApeMountain, etc...
05/20/2006 11:01 aidas2004#446
We are working with Old UCCO Server files, so dont expect anything...

Added:
1)Fixed Connection problem.
2)Added announcement (when Player loads).
3)Included all maps.
4)Added Commands:
/save - saves char info
/mm <map> <x> <y> - teleports to specifed Map & Cordinates
/scroll <town name> - teleports to Town
/heal - restore char HP
/str <value> - change current Strength
/vit <value> - change current Vitality
/dex <value> - change current Dexterity
/man <value> - change current Intelegent
/sp <value> - gives Stat Points
/gold <amount of money> - gives Gold
/level <value 1-130> - change current Level
/model <value> current values unknown - need to guess

Curren working:
1)Teleports.
2)Trying to delete char selection system.
3)Fixing char Stamina problem
4)Adding:
/changename command
/class command
/items command
/spell command
/skill command
5)Fixing PK/Capture/Team/Peace - attack mode
Now only works with commands
/pk , /capture , /team , /peace

Deleted:
1)Server Login Form (now when server starts loads only server main window)

Date: 2006-05-17
05/20/2006 11:10 lostsolder05#447
yeah i know i read all 30 pgs and i dont want to make a fully functioning server this is for my amusment

[img]text2schild.php?smilienummer=1&text=pardon my spelling' border='0' alt='pardon my spelling' />
05/20/2006 11:30 lostsolder05#448
so what are you saying it woild be reading it down to up like 09 00 00 0d 0d 02 and so on?
05/20/2006 11:31 lostsolder05#449
Quote:
Originally posted by lostsolder05@May 20 2006, 11:30
public static byte [] Necklace()
{
byte [] PacketData = new byte[0x18];
PacketData[0] = 0x18;
PacketData[1] = 0x00;
PacketData[2] = 0xf0;
PacketData[3] = 0x03;
PacketData[4] = 0x6a; //UID
PacketData[5] = 0xce; // '
PacketData[6] = 0xf7; // '
PacketData[7] = 0x01; // '
PacketData[8] = 0xb9; //Item ID
// Tornado b9 // Dream af // RelicsNecklace 9b // DragonNecklace 7d // BasaltNecklace 5f // PlatineNecklace 41 // GoldNecklace 23 // JadeNecklace 05 // ThreadNecklace f1 // HearthNecklace dd // LightNecklace c9
PacketData[9] = 0xd5; // '
// Neckys (130-37) = d5 // Neckys (7-27) = d4
PacketData[0x0a] = 0x01; // ' /
/ Neckys (7-130)
PacketData[0x0b] = 0x00; // '
PacketData[0x0c] = 0x88; // Current Durability
PacketData[0x0d] = 0x13; // '
PacketData[0x0e] = 0x88; // Max Durability
PacketData[0x0f] = 0x13; // '
PacketData[0x10] = 0x01; //01
PacketData[0x11] = 0x00; //00
PacketData[0x12] = 0x02; //Equipped location
PacketData[0x13] = 0x0d; //Gem 1
PacketData[0x14] = 0x0d; //Gem 2
PacketData[0x15] = 0x00;
PacketData[0x16] = 0x00;
PacketData[0x17] = 0x09; //Composition
return PacketData;
}
so what are you saying it woild be reading it down to up like 09 00 00 0d 0d 02 and so on?

srry for double post
05/20/2006 12:55 Titanium#450
Does anny one already knows something about the UCCO/COPS 2.0 files.
If someone has them, could you please post them?