Originally posted by Titanium+Aug 27 2006, 14:19--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Titanium @ Aug 27 2006, 14:19)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--Hybris@Aug 25 2006, 22:23 Here is my package for those who dont have WinRar (the best way would be to get WinRar, cose as everything i do its complex to use ^^, so read carefully everything in this Archive made with iExpress and good luck lol)
What does: "Entrez l'emplacement ou vous voules placer les fichiers extraits" mean? [/b][/quote]
"Entrez l'emplacement ou vous voulez placer les fichiers extraits" means : "Enter here the place where you'd like to put the extracted files"
By the way, thx for your help ranny2 i'll try to work on that once i can recover my Computer (and my server...).
you know i was thinking on how to have stuff save in the server, well i dnt knwo if this has anything to do with it or not, but when i was playing qonquer i noticed that evry so often it says that "world Saving" on my screen i dnt now if that relates to anything bout saving equips....... prolly just for when they add something new or something.... but i thought i just bring that up to maybe spar someones thoughts or somethin on how to do this ...lol
Originally posted by modar@Aug 31 2006, 02:21 you know i was thinking on how to have stuff save in the server, well i dnt knwo if this has anything to do with it or not, but when i was playing qonquer i noticed that evry so often it says that "world Saving" on my screen i dnt now if that relates to anything bout saving equips....... prolly just for when they add something new or something.... but i thought i just bring that up to maybe spar someones thoughts or somethin on how to do this ...lol
I dont think their "World Saving" is that. By the way, the items has to be saved everywhen so that someone can see another man wearing the items he has right now and not 2 minutes ago (when you entered the map).
We have to make a "while" that refreshes like every 1sec and refreshes the items of everyone (what they wear and what they carry).
Originally posted by Hybris+Aug 31 2006, 08:33--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Hybris @ Aug 31 2006, 08:33)</td></tr><tr><td id='QUOTE'><!--QuoteBegin--modar@Aug 31 2006, 02:21 you know i was thinking on how to have stuff save in the server, well i dnt knwo if this has anything to do with it or not, but when i was playing qonquer i noticed that evry so often it says that "world Saving" on my screen i dnt now if that relates to anything bout saving equips....... prolly just for when they add something new or something.... but i thought i just bring that up to maybe spar someones thoughts or somethin on how to do this ...lol
I dont think their "World Saving" is that. By the way, the items has to be saved everywhen so that someone can see another man wearing the items he has right now and not 2 minutes ago (when you entered the map).
We have to make a "while" that refreshes like every 1sec and refreshes the items of everyone (what they wear and what they carry).[/b][/quote]
A while that refreshed every 1 secound will probably kill the server.
One way of getting it to refresh would be that every time someone equips something it syncs and saves to db.
Here is an example of sync and save to db thing. NOTE: it for MYSQL
Hybris> hey again... sorry i was offline for a while, did i miss something ? xD
How i know u are trying to recover u'r old server. If i can help u something say me. I can send u my old server files.
Btw, i'am now working with my new project. I'am going to make a game such as Conquer...
I'am now working with my new Client+Server & Graphic.
If u interested of my new project, Pm me. i'am installing MSN right now... =]
I can promise for now, that my game graphic will be better than that old TQ Gaming Engine.
For all> If u interested & if u got skills for this, u'r always welcome =]
Originally posted by aidas2004@Aug 31 2006, 18:08 Hybris> hey again... sorry i was offline for a while, did i miss something ? xD
How i know u are trying to recover u'r old server. If i can help u something say me. I can send u my old server files.
Btw, i'am now working with my new project. I'am going to make a game such as Conquer...
I'am now working with my new Client+Server & Graphic.
If u interested of my new project, Pm me. i'am installing MSN right now... =]
I can promise for now, that my game graphic will be better than that old TQ Gaming Engine.
For all> If u interested & if u got skills for this, u'r always welcome =]
Lol was all the first part for me ? Would be great to see your project, even if its gonna be hard for me to work now cose school is gonna be back for me...
Originally posted by aidas2004@Aug 31 2006, 18:08 Hybris> hey again... sorry i was offline for a while, did i miss something ? xD
How i know u are trying to recover u'r old server. If i can help u something say me. I can send u my old server files.
Btw, i'am now working with my new project. I'am going to make a game such as Conquer...
I'am now working with my new Client+Server & Graphic.
If u interested of my new project, Pm me. i'am installing MSN right now... =]
I can promise for now, that my game graphic will be better than that old TQ Gaming Engine.
For all> If u interested & if u got skills for this, u'r always welcome =]
O.o sounds very interesting.
im interested in your project
but i dont realy have any skill. i want to learn but im findin it realy hard teaching myself.. im also gona go to collage to learn in a year or 2 :P
Originally posted by aidas2004@Aug 31 2006, 18:08 Hybris> hey again... sorry i was offline for a while, did i miss something ? xD
How i know u are trying to recover u'r old server. If i can help u something say me. I can send u my old server files.
Btw, i'am now working with my new project. I'am going to make a game such as Conquer...
I'am now working with my new Client+Server & Graphic.
If u interested of my new project, Pm me. i'am installing MSN right now... =]
I can promise for now, that my game graphic will be better than that old TQ Gaming Engine.
For all> If u interested & if u got skills for this, u'r always welcome =]
Aidas, I'll help being a GM and such. Testing bugs, helping ppl, etc. Thats what I am best at.
World.cs
(make sure u put it somewhere at the top with the "public static void's")
Code:
public static void LoadNPCsay(COClient Client, string npc_id)
{
Character Char = Client.Char;
Client.SendData(PacketBuilder.Message(Client.MessageID, "[GM]", Client.Char.Name, "NPC ID:" + npc_id + ".", ChatType.Center));
int npc_id_2 = Convert.ToInt32(npc_id);
if (npc_id_2 == 150) { Client.SendData(PacketBuilder.NPCtalk("Hey I'm the Retarded NPC hahaha.", "I~see.")); }
}
Now we need to make them spawn with all players, but make it so that it doesnt spam the packet everytime u walk, its quite hard todo and this needs alot of work.
Atm this is only works for Jumping and seems to have a few bugs.
World.cs
Code:
public static void GetSurroundingsNPCs(COClient Client, byte[] Packet)
{
int PrevX = (Packet[0x0d] << 8) + Packet[0x0c];
int PrevY = (Packet[0x0f] << 8) + Packet[0x0e];
int NewX = (Packet[0x15] << 8) + Packet[0x14];
int NewY = (Packet[0x17] << 8) + Packet[0x016];
Character Char = Client.Char;
ArrayList[,] Target = GetTarget(Client.Char.Map);
int x_min = Char.CurrentLoc.X - VIEWTHRESHOLD;
int y_min = Char.CurrentLoc.Y - VIEWTHRESHOLD;
int x_max = Char.CurrentLoc.X + VIEWTHRESHOLD;
int y_max = Char.CurrentLoc.Y + VIEWTHRESHOLD;
int x_min2 = PrevX - VIEWTHRESHOLD;
int y_min2 = PrevY - VIEWTHRESHOLD;
int x_max2 = PrevX + VIEWTHRESHOLD;
int y_max2 = PrevY + VIEWTHRESHOLD;
int[][] arr = new int[100][];
//TC
arr[0] = new int[7] {1 , 413 , 351, 10, 1, 1, 1002};
arr[1] = new int[7] { 2, 418, 351, 50, 6, 1, 1002 };
//MA
arr[2] = new int[7] { 3, 194, 195, 1600, 3, 1, 1036 };
for (int i = 0; i < arr.Length; i++)
{
uint testss = Convert.ToUInt32(Client.Char.Map);
if (testss == arr[i][6])
{
if (x_min <= (arr[i][1] + 4) && x_max >= (arr[i][1] - 6) && y_min <= (arr[i][2] + 4) && y_max >= (arr[i][2] - 6))
{
if (x_min2 <= (arr[i][1] + 3) && x_max2 >= (arr[i][1] - 5) && y_min2 <= (arr[i][2] + 3) && y_max2 >= (arr[i][2] - 5)) { break; }
else
{
Client.SendData(PacketBuilder.Message(Client.MessageID, "Alert", Client.Char.Name, "You are in Range of NPC. ID:" + arr[i][0] + " (" + PrevX + "," + PrevY + "). in " + Client.Char.Map, ChatType.Top));
int NPC_ID_I = Convert.ToInt32(arr[i][0]);
int NPC_x_I = Convert.ToInt32(arr[i][1]);
int NPC_y_I = Convert.ToInt32(arr[i][2]);
int NPC_type_I = Convert.ToInt32(arr[i][3]);
int NPC_dir_I = Convert.ToInt32(arr[i][4]);
int NPC_flag_I = Convert.ToInt32(arr[i][5]);
//Client.SendData(PacketBuilder.SpawnGuard(Guard_ID_I, Guard_Model_I, Guard_x_I, Guard_y_I));
Client.SendData(PacketBuilder.SPAWNnpc(arr[i][0], arr[i][1], arr[i][2], arr[i][3], arr[i][4], arr[i][5]));
}
}
}
}
}
World.cs
Fix the InitWorld() so that it supports Market.
so search InitWorld() and replace it with the following code:
Code:
public static void InitWorld()
{
for (int x = 0; x < 1000; x++)
{
for (int y = 0; y < 1000; y++)
{
TCLocHash[x,y] = new ArrayList(2);
MFLocHash[x, y] = new ArrayList(2);
MALocHash[x, y] = new ArrayList(2);
}
}
}
Adding the update when jumping
replace the existing code of "else if (Incoming[0x18] == 0x8e) //Jump packet"with the following code;
CoClient.cs
Tired of working on that project, btw gotta work for school seriously now. So to everyone, cya good luck and work well ! I hope i made my best to make the project go farther.