|
You last visited: Today at 03:37
Advertisement
Unknown type 5369
Discussion on Unknown type 5369 within the CO2 Private Server forum part of the Conquer Online 2 category.
05/14/2011, 14:21
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
Unknown type 5369
can you help me with this
Lenght = 36
Unknown type = 2101
Unknown type = 1037
please some clue and how to code this one...
|
|
|
05/14/2011, 14:39
|
#2
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
sniff the packet and struct/do the system and you're done to go... 2101 is the donation tab on guild profile....
good luck!
|
|
|
05/14/2011, 15:00
|
#3
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
yes thanks.... also when i hit the gate at guild area when the HP of the gate = 0 the gate wont open..
|
|
|
05/14/2011, 15:13
|
#4
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Then fix it.... lol.
On killing the gates change their mesh and respawn to local.
|
|
|
05/14/2011, 15:34
|
#5
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
I'd like top Chris but.... you know Im just a beginner of c#... will give me clue about the gate please
|
|
|
05/14/2011, 16:21
|
#6
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
something like Npc.Type = SobMesh.Open; Npc.SpawnAll();
but you must create the methods...
|
|
|
05/14/2011, 16:37
|
#7
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
yes
if right or left gate reaches the Hit points to 0
then NPC.Type = SobMesh.Open
Npc.SpawnAll()
is it something like that?
I just cant figure out how to manage those method/terms in c#
|
|
|
05/14/2011, 17:47
|
#8
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
maybe you should be trying to fix that at this stage?
however ill help you out a little(note: I am not looking at the source code at all!)
In attack processor where you attack the SOB and where its something like
Code:
Sob.Hitpoints -= damage;
remove that and make it
Code:
if (sob.Hitpoints <= damage)
{
Sob.Hitpoints -= damage;
Sob.Mesh = Sob.Open;
//Code to respawn isnt it something like SendScreen(this, false);?
}
else
{
sob.hitpoints -= damage;
}
|
|
|
05/14/2011, 18:20
|
#9
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
I this code should I correct for that one?
Quote:
#region [Left-Gate]
case 6701:
Terrain = Game.Features.GuildWar.Handle.LeftGate;
if (ServerBase.Kernel.GetDistance(Attacker.X, Attacker.Y, Terrain.X, Terrain.Y) > 2)
{ Attacker.AttackPacket = null; return; }
Damage = MathSys.PrepareT(Attacker, Terrain, 0);
if (Terrain.HitPoints <= 0)
{ return; }
if (Damage >= Terrain.HitPoints && Terrain.HitPoints > 0)
{
Terrain.HitPoints = 0;
Attacker.AttackPacket = null;
}
else
{
Terrain.HitPoints -= Damage;
Attacker.AttackPacket = Packet;
}
#region Send Packet
Packet.Attacker = Attacker.UID;
Packet.Attacked = Target;
Packet.Damage = Damage;
Packet.X = Terrain.X;
Packet.Y = Terrain.Y;
Packet.AttackType = 2;
Attacker.Owner.SendScreen(Packet, true);
#endregion
break;
#endregion
#region [Right-Gate]
case 6702:
Terrain = Game.Features.GuildWar.Handle.RightGate;
if (ServerBase.Kernel.GetDistance(Attacker.X, Attacker.Y, Terrain.X, Terrain.Y) > 2)
{ Attacker.AttackPacket = null; return; }
Damage = MathSys.PrepareT(Attacker, Terrain, 0);
if (Terrain.HitPoints <= 0)
{ return; }
if (Damage >= Terrain.HitPoints && Terrain.HitPoints > 0)
{
Terrain.HitPoints = 0;
Attacker.AttackPacket = null;
}
else
{
Terrain.HitPoints -= Damage;
Attacker.AttackPacket = Packet;
}
#region Send Packet
Packet.Attacker = Attacker.UID;
Packet.Attacked = Target;
Packet.Damage = Damage;
Packet.X = Terrain.X;
Packet.Y = Terrain.Y;
Packet.AttackType = 2;
Attacker.Owner.SendScreen(Packet, true);
#endregion
break;
#endregion
|
|
|
|
05/14/2011, 18:25
|
#10
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
|
I pose this question. If your a beginner at C#, why try making a server before learning the actual language?
|
|
|
05/14/2011, 18:27
|
#11
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
Code:
if (Damage >= Terrain.HitPoints && Terrain.HitPoints > 0)
{
Terrain.HitPoints = 0;
Attacker.AttackPacket = null;
[B]Here[/B]
Terrian.Mesh = LeftGate.Open
//Respawn
}
else
{
Terrain.HitPoints -= Damage;
Attacker.AttackPacket = Packet;
}
Terrian.mesh etc might not be right but im 99pct sure its almost correct.
|
|
|
05/14/2011, 18:28
|
#12
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
ops! Thats hurt
yay! i got it right this time thanks for the helps
code
Quote:
if (Damage >= Terrain.HitPoints && Terrain.HitPoints > 0)
{
Terrain.HitPoints = 0;
Attacker.AttackPacket = null;
//
Terrain.Type = Network.GamePackets.SOBMesh.LeftGateOpen;
foreach (Receivers.ClientState cli in ServerBase.Kernel.GamePool.Values)
if (cli.Entity.MapID == 1038)
Terrain.SendSpawn(cli);
//
}
else
{
Terrain.HitPoints -= Damage;
Attacker.AttackPacket = Packet;
}
|
|
|
|
05/14/2011, 18:54
|
#13
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
|
Did it work?
|
|
|
05/14/2011, 19:14
|
#14
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
yes it work, but another problem i got if I own the pole i cant open or close the gate....
here is the code
Quote:
#region [Left-Gate]
case 6701:
{
switch (npcRequest.OptionID)
{
case 0://begin talk
if (!Handle.Running && (int)client.Account.State < 3)
{
dialog.Text("Please wait until the right time!");
dialog.Link("I see.", 255);
dialog.Send();
return;
}
if (client.Entity.Guild == null)
{
dialog.Text("You don't have a guild, please don't bother me!");
dialog.Link("I see.", 255);
dialog.Send();
return;
}
if (client.Entity.Guild != null)
{
if (Game.Features.GuildWar.Handle.Holder == client.Entity.Guild.Name)
{
dialog.Text("You belong to the guild that has bring down the great pole, i'll be ");
dialog.Text("glad helping you. What do you want?");
dialog.Link("Open/Close the gate.", 1);
dialog.Link("Let me enter the guild castle.", 2);
//dialog.Link("I want to heal the gate.", 3);
dialog.Link("Let me think it over.", 255);
dialog.Send();
}
else
{
dialog.Text("Your guild is not holding the pole, to enter you have to bring me down!");
dialog.Link("I see.", 255);
dialog.Send();
}
}
break;
case 1://ask to join
{
client.Entity.Teleport(1038, 159, 186);
break;
}
case 2://ask to open/close
{
if (client.Entity.GuildRank == GuildRank.DeputyLeader || client.Entity.GuildRank == GuildRank.GuildLeader)
{
if (Handle.LeftGate.Type == SOBMesh.LeftGateOpen)
Handle.LeftGate.Type = SOBMesh.LeftGate;
else if (Handle.LeftGate.Type == SOBMesh.LeftGate)
Handle.LeftGate.Type = SOBMesh.LeftGateOpen;
if (Handle.LeftGate.HitPoints == 0)
Handle.LeftGate.HitPoints = Handle.LeftGate.MaxHitpoints;
foreach (Receivers.ClientState c in Program.SafeReturn().Values)
if (c.Entity.MapID == 1038)
Handle.LeftGate.SendSpawn(c);
}
else
{
dialog.Text("You're not the leader or the guild leader to do that!");
dialog.Link("I see.", 255);
dialog.Send();
}
break;
}
case 3://ask to heal
break;
}
break;
}
#endregion
|
|
|
|
Similar Threads
|
Can i ask about this for 5369 source
05/14/2011 - CO2 Private Server - 5 Replies
I have this error I dunno what the cause can you tell me what to do please
I have here the image.
|
Help me source 5369!
05/13/2011 - CO2 Private Server - 5 Replies
In the configuration there is no where to put the name of the database or login and password for app serv help plz:o sorry my bad english
|
Unknown type: 25939 + pic any one know it
03/05/2011 - CO2 Private Server - 7 Replies
when i logged in my server 5337 i got this
http://img641.imageshack.us/img641/1089/201103040 75830.jpg
any one can help me
|
Unknown info about Unknown
02/05/2010 - EO PServer Hosting - 1 Replies
Anyone trying to get into UnknownSoulz, or know for definite whats happened?
|
Need item type and token type boot
03/18/2008 - Conquer Online 2 - 1 Replies
Hi All programers and makers of boots, Great job. Could some one make item and token type boot for patch 5118. Please
|
All times are GMT +1. The time now is 03:39.
|
|