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;
}
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
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