Arena Rooms PVP SS & FB Only
I won't talk a lot, the video will talk itself!
[How To Add]
Game/Entity.cs
Search for this code:
Add these codes after ^^^ :
ServerBase/Constants.cs
Search for this code:
Add these codes after ^^^ ::
Game/Attacking/Calculate.cs
Search for these codes:
Add these codes after "int Damage = 0;":
Game/Attacking/Handle.cs
Search for these codes :
Add these codes after "return false;" :
Database/EntityTable.cs
Search for this code:
Add these code after ^^^ :
Program.cs
Search for this code.. (ShekoProject is the name of a project, before you search on the code, Change it to the Name of your project (Ex : Conquer_Online_Server ... etc)
If you didn't find it, then add it. (Don't forget to change the name of the project)
In the same file, search for this code:
Add these codes after ^^^ :
Then in the same file, Search for this code:
Add these codes after ^^^ :
It will give you an error, No Problem, Continue...
In the same file, Search for this code:
Add these codes before ^^^ :
The Error Fixed ^_^...
In the same file search for this code :
Add these codes before ^^^ :
We have just finished work in Program.cs file.
Now let's add our NPC >> NPCS.cs
Add this NPC :

Upload this SQL File to your Database!

I know that there will be some replies.... You know !
And for who will say it inc and it's suck system, bad codes ... bla bla bla!
Please know that i can make it better than this.. (Specially My friend "SuperAids")
Regards,
Ahmed GameHackerPM!
I won't talk a lot, the video will talk itself!
[How To Add]
Game/Entity.cs
Search for this code:
Code:
#region Variables
Code:
public Time32 WaitingTimeFB;
public Time32 WinnerWaiting;
public bool aWinner = false;
Search for this code:
Code:
public static readonly System.Collections.Generic.List<ulong> PKForbiddenMaps
Code:
public static readonly System.Collections.Generic.List<ulong> FBandSSEvent = new System.Collections.Generic.List<ulong>()
{
1543,
1544,
1545,
1546,
1547,
1548
};
Search for these codes:
Code:
public static uint Melee(Entity attacker, Entity attacked, Database.SpellInformation spell, ref Attack Packet)
{
int Damage = 0;
Code:
if (ServerBase.Constants.FBandSSEvent.Contains(attacker.MapID)) //FB and SS only!
{
Damage = (int)attacked.Hitpoints + 1;
return (uint)Damage;
}
Search for these codes :
Code:
public static bool CanUseSpell(Database.SpellInformation spell, Client.GameState client)
{
if (client.WatchingGroup != null)
return false;
Code:
if (ServerBase.Constants.FBandSSEvent.Contains(client.Entity.MapID))
{
if (spell.ID != 1045 && spell.ID != 1046)//SS and FB only to attack!
{
client.Send(new Message("You can't use any skills here Except FB And SS!", System.Drawing.Color.Red, 0x7dc));
return false;
}
}
Search for this code:
Code:
if (client.Map.BaseID == 1844)
{
client.Entity.MapID = 1002;
client.Entity.X = 428;
client.Entity.Y = 378;
}
Code:
if (ServerBase.Constants.FBandSSEvent.Contains(client.Entity.MapID)) //FB and SS only!
{
client.Entity.MapID = 1002;
client.Entity.X = 428;
client.Entity.Y = 378;
}
Search for this code.. (ShekoProject is the name of a project, before you search on the code, Change it to the Name of your project (Ex : Conquer_Online_Server ... etc)
Code:
using ShekoProject.ServerBase;
In the same file, search for this code:
Code:
public static ServerBase.Threads SystemMessages = new ServerBase.Threads(1000);
Code:
public static bool Room1 = false;
public static bool Room2 = false;
public static bool Room3 = false;
public static bool Room4 = false;
public static bool Room5 = false;
public static bool Room6 = false;
public static uint Room1Price = 0;
public static uint Room2Price = 0;
public static uint Room3Price = 0;
public static uint Room4Price = 0;
public static uint Room5Price = 0;
public static uint Room6Price = 0;
public static ServerBase.Threads GHRooms = new ServerBase.Threads(1000);
Code:
ServerStuff.Execute += new Action(ServerStuff_Execute);
ServerStuff.Start();
Code:
GHRooms.Execute += new Action(GHRooms_Execute);
GHRooms.Start();
In the same file, Search for this code:
Code:
static void ServerStuff_Execute()
{
Code:
static void GHRooms_Execute()
{
#region Rooms FBandSS
#region Room1
if (Room1 == false)
{
int entered1 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1543 && (!Player.Entity.Dead))
{
entered1++;
}
}
if (entered1 > 1)
{
Room1 = true;
}
else if (entered1 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1543 && (!Player.Entity.Dead))
{
if (Time32.Now > Player.Entity.WaitingTimeFB.AddSeconds(20))
{
Player.Entity.ConquerPoints += Room1Price;
Room1Price = 0;
Player.Entity.Teleport(1002, 427, 378);
}
}
}
}
}
else
{
int alive1 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1543 && (!Player.Entity.Dead))
{
alive1++;
}
}
if (alive1 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1543)
{
if (!Player.Entity.Dead)//winner
{
Player.Entity.ConquerPoints += Room1Price * 2;
Player.Entity.WaitingTimeFB = Time32.Now;
Room1 = false;
Kernel.SendWorldMessage(new Network.GamePackets.Message(string.Concat(new object[] { "Congratulations! ", Player.Entity.Name, " has won ", Room1Price * 2, " CPs FB/SS in Room 1." }), System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Room1Price = 0;
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_victory");
Player.SendScreen(str, true);
Player.Entity.WinnerWaiting = Time32.Now;
Player.Entity.aWinner = true;
}
else//loser
{
Player.Entity.Teleport(1002, 439, 392);
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_failure");
Player.SendScreen(str, true);
Player.Entity.Action = Game.Enums.ConquerAction.None;
Player.ReviveStamp = Time32.Now;
Player.Attackable = false;
Player.Entity.TransformationID = 0;
Player.Entity.RemoveFlag(Update.Flags.Dead);
Player.Entity.RemoveFlag(Update.Flags.Ghost);
Player.Entity.Hitpoints = Player.Entity.MaxHitpoints;
Player.Entity.Ressurect();
}
}
}
}
}
#endregion
#region Room2
if (Room2 == false)
{
int entered2 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1544 && (!Player.Entity.Dead))
{
entered2++;
}
}
if (entered2 > 1)
{
Room2 = true;
}
else if (entered2 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1544 && (!Player.Entity.Dead))
{
if (Time32.Now > Player.Entity.WaitingTimeFB.AddSeconds(20))
{
Player.Entity.ConquerPoints += Room2Price;
Room2Price = 0;
Player.Entity.Teleport(1002, 427, 378);
}
}
}
}
}
else
{
int alive2 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1544 && (!Player.Entity.Dead))
{
alive2++;
}
}
if (alive2 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1544)
{
if (!Player.Entity.Dead)//winner
{
Player.Entity.ConquerPoints += Room2Price * 2;
Player.Entity.WaitingTimeFB = Time32.Now;
Room2 = false;
Kernel.SendWorldMessage(new Network.GamePackets.Message(string.Concat(new object[] { "Congratulations! ", Player.Entity.Name, " has won ", Room2Price * 2, " CPs FB/SS in Room 2." }), System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Room2Price = 0;
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_victory");
Player.SendScreen(str, true);
Player.Entity.WinnerWaiting = Time32.Now;
Player.Entity.aWinner = true;
}
else//loser
{
Player.Entity.Teleport(1002, 439, 392);
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_failure");
Player.SendScreen(str, true);
Player.Entity.Action = Game.Enums.ConquerAction.None;
Player.ReviveStamp = Time32.Now;
Player.Attackable = false;
Player.Entity.TransformationID = 0;
Player.Entity.RemoveFlag(Update.Flags.Dead);
Player.Entity.RemoveFlag(Update.Flags.Ghost);
Player.Entity.Hitpoints = Player.Entity.MaxHitpoints;
Player.Entity.Ressurect();
}
}
}
}
}
#endregion
#region Room3
if (Room3 == false)
{
int entered3 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1545 && (!Player.Entity.Dead))
{
entered3++;
}
}
if (entered3 > 1)
{
Room3 = true;
}
else if (entered3 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1545 && (!Player.Entity.Dead))
{
if (Time32.Now > Player.Entity.WaitingTimeFB.AddSeconds(20))
{
Player.Entity.ConquerPoints += Room3Price;
Room3Price = 0;
Player.Entity.Teleport(1002, 427, 378);
}
}
}
}
}
else
{
int alive3 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1545 && (!Player.Entity.Dead))
{
alive3++;
}
}
if (alive3 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1545)
{
if (!Player.Entity.Dead)//winner
{
Player.Entity.ConquerPoints += Room3Price * 2;
Player.Entity.WaitingTimeFB = Time32.Now;
Room3 = false;
Kernel.SendWorldMessage(new Network.GamePackets.Message(string.Concat(new object[] { "Congratulations! ", Player.Entity.Name, " has won ", Room3Price * 2, " CPs FB/SS in Room 3." }), System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Room3Price = 0;
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_victory");
Player.SendScreen(str, true);
Player.Entity.WinnerWaiting = Time32.Now;
Player.Entity.aWinner = true;
}
else//loser
{
Player.Entity.Teleport(1002, 439, 392);
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_failure");
Player.SendScreen(str, true);
Player.Entity.Action = Game.Enums.ConquerAction.None;
Player.ReviveStamp = Time32.Now;
Player.Attackable = false;
Player.Entity.TransformationID = 0;
Player.Entity.RemoveFlag(Update.Flags.Dead);
Player.Entity.RemoveFlag(Update.Flags.Ghost);
Player.Entity.Hitpoints = Player.Entity.MaxHitpoints;
Player.Entity.Ressurect();
}
}
}
}
}
#endregion
#region Room4
if (Room4 == false)
{
int entered4 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1546 && (!Player.Entity.Dead))
{
entered4++;
}
}
if (entered4 > 1)
{
Room4 = true;
}
else if (entered4 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1546 && (!Player.Entity.Dead))
{
if (Time32.Now > Player.Entity.WaitingTimeFB.AddSeconds(20))
{
Player.Entity.ConquerPoints += Room4Price;
Room4Price = 0;
Player.Entity.Teleport(1002, 427, 378);
}
}
}
}
}
else
{
int alive4 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1546 && (!Player.Entity.Dead))
{
alive4++;
}
}
if (alive4 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1546)
{
if (!Player.Entity.Dead)//winner
{
Player.Entity.ConquerPoints += Room4Price * 2;
Player.Entity.WaitingTimeFB = Time32.Now;
Room4 = false;
Kernel.SendWorldMessage(new Network.GamePackets.Message(string.Concat(new object[] { "Congratulations! ", Player.Entity.Name, " has won ", Room4Price * 2, " CPs FB/SS in Room 4." }), System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Room4Price = 0;
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_victory");
Player.SendScreen(str, true);
Player.Entity.WinnerWaiting = Time32.Now;
Player.Entity.aWinner = true;
}
else//loser
{
Player.Entity.Teleport(1002, 439, 392);
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_failure");
Player.SendScreen(str, true);
Player.Entity.Action = Game.Enums.ConquerAction.None;
Player.ReviveStamp = Time32.Now;
Player.Attackable = false;
Player.Entity.TransformationID = 0;
Player.Entity.RemoveFlag(Update.Flags.Dead);
Player.Entity.RemoveFlag(Update.Flags.Ghost);
Player.Entity.Hitpoints = Player.Entity.MaxHitpoints;
Player.Entity.Ressurect();
}
}
}
}
}
#endregion
#region Room5
if (Room5 == false)
{
int entered5 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1547 && (!Player.Entity.Dead))
{
entered5++;
}
}
if (entered5 > 1)
{
Room5 = true;
}
else if (entered5 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1547 && (!Player.Entity.Dead))
{
if (Time32.Now > Player.Entity.WaitingTimeFB.AddSeconds(20))
{
Player.Entity.ConquerPoints += Room5Price;
Room5Price = 0;
Player.Entity.Teleport(1002, 427, 378);
}
}
}
}
}
else
{
int alive5 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1547 && (!Player.Entity.Dead))
{
alive5++;
}
}
if (alive5 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1547)
{
if (!Player.Entity.Dead)//winner
{
Player.Entity.ConquerPoints += Room5Price * 2;
Player.Entity.WaitingTimeFB = Time32.Now;
Room5 = false;
Kernel.SendWorldMessage(new Network.GamePackets.Message(string.Concat(new object[] { "Congratulations! ", Player.Entity.Name, " has won ", Room5Price * 2, " CPs FB/SS in Room 5." }), System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Room5Price = 0;
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_victory");
Player.SendScreen(str, true);
Player.Entity.WinnerWaiting = Time32.Now;
Player.Entity.aWinner = true;
}
else//loser
{
Player.Entity.Teleport(1002, 439, 392);
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_failure");
Player.SendScreen(str, true);
Player.Entity.Action = Game.Enums.ConquerAction.None;
Player.ReviveStamp = Time32.Now;
Player.Attackable = false;
Player.Entity.TransformationID = 0;
Player.Entity.RemoveFlag(Update.Flags.Dead);
Player.Entity.RemoveFlag(Update.Flags.Ghost);
Player.Entity.Hitpoints = Player.Entity.MaxHitpoints;
Player.Entity.Ressurect();
}
}
}
}
}
#endregion
#region Room6
if (Room6 == false)
{
int entered6 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1548 && (!Player.Entity.Dead))
{
entered6++;
}
}
if (entered6 > 1)
{
Room6 = true;
}
else if (entered6 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1548 && (!Player.Entity.Dead))
{
if (Time32.Now > Player.Entity.WaitingTimeFB.AddSeconds(20))
{
Player.Entity.ConquerPoints += Room6Price;
Room6Price = 0;
Player.Entity.Teleport(1002, 427, 378);
}
}
}
}
}
else
{
int alive6 = 0;
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1548 && (!Player.Entity.Dead))
{
alive6++;
}
}
if (alive6 == 1)
{
foreach (Client.GameState Player in ServerBase.Kernel.GamePool.Values)
{
if (Player.Entity.MapID == 1548)
{
if (!Player.Entity.Dead)//winner
{
Player.Entity.ConquerPoints += Room6Price * 2;
Player.Entity.WaitingTimeFB = Time32.Now;
Room6 = false;
Kernel.SendWorldMessage(new Network.GamePackets.Message(string.Concat(new object[] { "Congratulations! ", Player.Entity.Name, " has won ", Room6Price * 2, " CPs FB/SS in Room 6." }), System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Room6Price = 0;
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_victory");
Player.SendScreen(str, true);
Player.Entity.WinnerWaiting = Time32.Now;
Player.Entity.aWinner = true;
}
else//loser
{
Player.Entity.Teleport(1002, 439, 392);
_String str = new _String(true)
{
UID = Player.Entity.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_failure");
Player.SendScreen(str, true);
Player.Entity.Action = Game.Enums.ConquerAction.None;
Player.ReviveStamp = Time32.Now;
Player.Attackable = false;
Player.Entity.TransformationID = 0;
Player.Entity.RemoveFlag(Update.Flags.Dead);
Player.Entity.RemoveFlag(Update.Flags.Ghost);
Player.Entity.Hitpoints = Player.Entity.MaxHitpoints;
Player.Entity.Ressurect();
}
}
}
}
}
#endregion
#endregion
}
In the same file search for this code :
Code:
#region Minning
Code:
#region Winners for FB and SS
if (client.Entity.aWinner == true)
{
if (Time32.Now > client.Entity.WinnerWaiting.AddSeconds(2))
{
/* switch (client.Entity.MapID)
{
case 1543://room 1
{
Room1 = false;
break;
}
case 1544://room 2
{
Room2 = false;
break;
}
case 1545://room 3
{
Room3 = false;
break;
}
case 1546://room 4
{
Room4 = false;
break;
}
case 1547://room 5
{
Room5 = false;
break;
}
case 1548://room 6
{
Room6 = false;
break;
}
}*/
client.Entity.Teleport(1002, 439, 384);
client.Entity.aWinner = false;
}
}
#endregion
Now let's add our NPC >> NPCS.cs
Add this NPC :

Upload this SQL File to your Database!

I know that there will be some replies.... You know !
And for who will say it inc and it's suck system, bad codes ... bla bla bla!
Please know that i can make it better than this.. (Specially My friend "SuperAids")
Regards,
Ahmed GameHackerPM!






