|
المشاركات 1,941 |
+التقييم 0.96 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
#region SwordsWar
#region Join
case 16420u:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello " + client.Entity.Name + "I'm the master of the swords war .. I can teleport you in but be carefull my swords are flying everywhere inside !");
dialog.Option("Let me join", 1);
dialog.Option("No i'm scared", 255);
dialog.Send();
break;
case 1:
if (World.SwardWar)
{
client.Entity.Teleport(6420, 50, 50);
break;
}
dialog.Text("This is not the right time..Come back at xx:50");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
#endregion
#region Out
case 164210:
{
switch (npcRequest.OptionID)
{
case 0:
{
int num117 = 0;
GameClient[] array3 = Program.GamePool;
for (int l = 0; l < array3.Length; l++)
{
GameClient gameClient10 = array3[l];
if (gameClient10.Entity.MapID == 6420 && !gameClient10.Entity.Dead)
{
num117++;
}
}
dialog.Text(string.Concat(new object[]
{
"Hello ",
client.Entity.Name,
" there Are ",
num117,
" alive Player"
}));
dialog.Option("I want to claim my prize ", 1);
dialog.Send();
break;
}
case 1:
{
if (World.SwardWar)
{
dialog.Text("This is not the right time \nCome back at xx:00");
dialog.Option("okay", 255);
dialog.Send();
break;
}
int num118 = 0;
GameClient[] array3 = Program.GamePool;
for (int l = 0; l < array3.Length; l++)
{
GameClient gameClient11 = array3[l];
if (gameClient11.Entity.MapID == 6420 && !gameClient11.Entity.Dead)
{
num118++;
}
}
if (num118 == 1)
{
client.Entity.Teleport(1002, 301, 278);
// client.Entity.BigBOS_Quest_Reward_Point += 1u;
//uint prize = questini.ReadUInt32("Quests", "Hour");
client.Entity.ConquerPoints += 50000;
ServerBase.Kernel.SendWorldMessage(new Message("Gratz " + client.Entity.Name + "You Wenner Quest Sward War Prize 1 M CPs.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
break;
}
dialog.Text("There are " + num118 + "player alive In map");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
break;
}
#endregion
#endregion
public class World
{
public static bool SwardWar = false;
#region SwardWar
if (DateTime.Now.Minute == 50 && DateTime.Now.Second == 1)
{
World.SwardWar = true;
GameClient[] gamePool6 = Program.GamePool;
for (int n = 0; n < gamePool6.Length; n++)
{
GameClient gameClient6 = gamePool6[n];
gameClient6.MessageBox("Sward War IS Work Join Now and Get Houner And Get " + 25000000 + " CPS ", delegate(GameClient p)
{
p.Entity.Teleport(1002, 294, 366);
}, null, 0u);
}
NpcTyps.addeffect(16420u);
}
if (DateTime.Now.Minute == 0 && World.SwardWar)
{
World.SwardWar = false;
NpcTyps.removeEffect(16420u);
}
#endregion
using Conquer_Online_Server.Client;
using Conquer_Online_Server.Interfaces;
using System;
namespace Conquer_Online_Server.Game.BigBOs
{
public class NpcTyps
{
public enum GetNpc
{
SwardWar = 16420,
}
private static string Effect1 = "fire-bomb_1";
private static string Effect2 = "attach_continuance05";
private static string Effect3 = "attach_continuance05";
private static string Effect4 = "attach_continuance05";
private static string Effect5 = "attach_continuance05";
private static string Effect6 = "tj-long";
public static string GetEffect()
{
Random random = new Random();
int num = random.Next(1, 6);
string result = "";
switch (num)
{
case 1:
result = NpcTyps.Effect1;
break;
case 2:
result = NpcTyps.Effect2;
break;
case 3:
result = NpcTyps.Effect3;
break;
case 4:
result = NpcTyps.Effect4;
break;
case 5:
result = NpcTyps.Effect5;
break;
case 6:
result = NpcTyps.Effect6;
break;
}
return result;
}
public static void addeffect(uint type)
{
if (ServerBase.Kernel.Maps[1002].Npcs.ContainsKey(type))
{
INpc npc = ServerBase.Kernel.Maps[1002].Npcs[type];
npc.effect = NpcTyps.GetEffect();
ServerBase.Kernel.Maps[1002].Npcs.Remove(npc.UID);
ServerBase.Kernel.Maps[1002].AddNpc(npc);
GameClient[] gamePool = Program.GamePool;
for (int i = 0; i < gamePool.Length; i++)
{
GameClient gameClient = gamePool[i];
if (gameClient.Entity.MapID == 1002)
{
npc.SendSpawn(gameClient);
}
}
}
}
public static void removeEffect(uint type)
{
if (ServerBase.Kernel.Maps[1002].Npcs.ContainsKey(type))
{
INpc npc = ServerBase.Kernel.Maps[1002].Npcs[type];
npc.effect = "";
ServerBase.Kernel.Maps[1002].Npcs.Remove(npc.UID);
ServerBase.Kernel.Maps[1002].AddNpc(npc);
GameClient[] gamePool = Program.GamePool;
for (int i = 0; i < gamePool.Length; i++)
{
GameClient gameClient = gamePool[i];
if (gameClient.Entity.MapID == 1002)
{
npc.SendSpawn(gameClient);
}
}
}
}
}
}
using Conquer_Online_Server.Client;
using Conquer_Online_Server.Database;
using Conquer_Online_Server.Game;
using Conquer_Online_Server.Network.GamePackets;
using Conquer_Online_Server.ServerBase;
using System;
namespace Conquer_Online_Server
{
internal class BigPlayers
{
public static void spwannpc(GameClient client, uint UID, ushort X, ushort Y)
{
SobNpcSpawn sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = UID;
sobNpcSpawn.X = X;
sobNpcSpawn.Y = Y;
sobNpcSpawn.Mesh = 8910;
sobNpcSpawn.Type = Enums.NpcType.Talker;
sobNpcSpawn.MapID = 2057;
if (!client.Map.Npcs.ContainsKey(UID))
{
client.Map.Npcs.Add(UID, sobNpcSpawn);
}
}
public static void thundereffect(GameClient client, uint uid)
{
client.SendScreen(new _String(true)
{
UID = uid,
TextsCount = 22,
Type = 10,
Texts =
{
"ssch_wlhd_hit"
}
}, true);
}
public static void SpwanKing(GameClient client, string name, ushort mesh, ushort x, ushort y, ushort MapID, ushort action, uint uid, uint Gramnts, uint RightHand, uint LeftHand, uint righthand0, uint lefthand0, ushort GuildID, byte Class)
{
try
{
Entity.damge1 = 0u;
Entity.damge2 = 0u;
_String @string = new _String(true);
@string.UID = 810u;
@string.TextsCount = 22;
@string.Type = 10;
@string.Texts.Add("ssch_wlhd_hit");
client.SendScreen(@string, true);
MonsterInformation monsterInformation = new MonsterInformation();
monsterInformation.Hitpoints = 200000u;
monsterInformation.Level = 200;
monsterInformation.Mesh = mesh;
monsterInformation.Name = name;
monsterInformation.MaxAttack = 80000u;
monsterInformation.AttackRange = 3;
monsterInformation.AttackType = 2;
monsterInformation.AttackSpeed = 2000;
monsterInformation.ViewRange = 15;
monsterInformation.MoveSpeed = 2000;
monsterInformation.RunSpeed = 500;
monsterInformation.MinAttack = 10000u;
monsterInformation.InSight = 0u;
Entity entity = new Entity(EntityFlag.Monster, false);
Entity.UpdateDamage(client, entity, 0u, 0u);
entity.MagicDefence = 2600;
entity.MapObjType = MapObjectType.Monster;
entity.MonsterInfo = monsterInformation;
entity.MonsterInfo.Owner = entity;
entity.Name = name;
entity.MinAttack = monsterInformation.MinAttack;
entity.MaxAttack = (entity.MagicAttack = monsterInformation.MaxAttack);
entity.Hitpoints = (entity.MaxHitpoints = monsterInformation.Hitpoints);
entity.Body = monsterInformation.Mesh;
entity.Level = monsterInformation.Level;
entity.Defence = 65535;
entity.X = x;
entity.Action = action;
entity.Y = y;
entity.bornx = x;
entity.borny = y;
entity.Gramnts = Gramnts;
entity.CountryFlagmob = 15u;
entity.HairStyle = 514;
entity.Facing = Kernel.GetAngle(x, y, client.Entity.X, client.Entity.Y);
entity.Amount = 729828u;
entity.Amounts = 300000u;
entity.Class = Class;
entity.EntityFlag = EntityFlag.Monster;
entity.UID = uid;
entity.MapID = MapID;
if (name == "Ra.One Great Assessin")
{
entity.AssassinBP = 300u;
}
entity.RightHand = RightHand;
entity.LeftHand = LeftHand;
entity.RightHand0 = righthand0;
entity.LeftHand0 = lefthand0;
entity.SendUpdates = true;
entity.GuildID = GuildID;
entity.GuildRank = 990;
client.Map.RemoveEntity(entity);
_String string2 = new _String(true);
string2.UID = monsterInformation.ID;
string2.Type = 10;
string2.Texts.Add("MBStandard");
client.Map.AddPlayer(entity);
if (name == "Great Assessin")
{
entity.AddFlag3(131072u);
}
client.Entity.Owner.Screen.Reload(null);
@string.UID = uid;
@string.TextsCount = 1;
@string.Type = 10;
@string.Texts.Add("ssch_wlhd_hit");
entity.MonsterInfo.SendScreen(@string);
entity.MonsterInfo.SendScreen(@string);
}
catch (Exception line)
{
Console.WriteLine(line);
}
}
public static void Title(GameClient client, byte title)
{
TitlePacket titlePacket = new TitlePacket(true);
client.Entity.MyTitle = (TitlePacket.Titles)title;
titlePacket.Identifier = client.Entity.UID;
titlePacket.Type = TitlePacket.Types.List;
titlePacket.Count = 1;
titlePacket.Send(client);
client.SendScreen(client.Entity.SpawnPacket, false);
}
public static void SpwanSword(GameClient client)
{
SpellUse spellUse = new SpellUse(true);
spellUse.Attacker = 16421u;
spellUse.SpellID = 10500;
spellUse.Y = 66;
ushort num = 0;
if (Program.Effect1.AddSeconds(2.0) < DateTime.Now)
{
for (int i = 0; i < 14; i++)
{
spellUse.X = ((ushort)(34 + num));
num += 3;
client.SendScreen(spellUse, true);
if (client.Entity.X == spellUse.X && client.Entity.Y == spellUse.Y)
{
client.Entity.Hitpoints -= 20u * client.Entity.MaxHitpoints / 100u;
}
}
Program.Effect1 = DateTime.Now;
}
num = 0;
spellUse.Y = 50;
if (Program.Effect2.AddSeconds(5.0) < DateTime.Now)
{
for (int j = 0; j < 14; j++)
{
spellUse.X = ((ushort)(34 + num));
num += 3;
client.SendScreen(spellUse, true);
if (client.Entity.X == spellUse.X && client.Entity.Y == spellUse.Y)
{
client.Entity.Hitpoints -= 20u * client.Entity.MaxHitpoints / 100u;
}
}
Program.Effect2 = DateTime.Now;
}
num = 0;
spellUse.Y = 39;
if (Program.Effect3.AddSeconds(8.0) < DateTime.Now)
{
for (int k = 0; k < 14; k++)
{
spellUse.X = ((ushort)(34 + num));
num += 3;
client.SendScreen(spellUse, true);
if (client.Entity.X == spellUse.X && client.Entity.Y == spellUse.Y)
{
client.Entity.Hitpoints -= 20u * client.Entity.MaxHitpoints / 100u;
}
}
Program.Effect3 = DateTime.Now;
}
num = 0;
spellUse.X = 44;
if (Program.Effect4.AddSeconds(11.0) < DateTime.Now)
{
for (int l = 0; l < 14; l++)
{
spellUse.Y = ((ushort)(31 + num));
num += 3;
client.SendScreen(spellUse, true);
if (client.Entity.X == spellUse.X && client.Entity.Y == spellUse.Y)
{
client.Entity.Hitpoints -= 20u * client.Entity.MaxHitpoints / 100u;
}
}
Program.Effect4 = DateTime.Now;
}
num = 0;
spellUse.X = 55;
if (Program.Effect5.AddSeconds(14.0) < DateTime.Now)
{
for (int m = 0; m < 14; m++)
{
spellUse.Y = ((ushort)(31 + num));
num += 3;
client.SendScreen(spellUse, true);
if (client.Entity.X == spellUse.X && client.Entity.Y == spellUse.Y)
{
client.Entity.Hitpoints -= 20u * client.Entity.MaxHitpoints / 100u;
}
}
Program.Effect5 = DateTime.Now;
}
num = 0;
spellUse.X = 66;
if (Program.Effect5.AddSeconds(17.0) < DateTime.Now)
{
for (int n = 0; n < 14; n++)
{
spellUse.Y = ((ushort)(num + 31));
num += 3;
client.SendScreen(spellUse, true);
if (client.Entity.X == spellUse.X && client.Entity.Y == spellUse.Y)
{
client.Entity.Hitpoints -= 20u * client.Entity.MaxHitpoints / 100u;
}
}
Program.Effect6 = DateTime.Now;
}
}
public static void SpwanGuildP(Map map, string name, ushort mesh, ushort x, ushort y, ushort MapID, ushort action, uint uid, uint Gramnts, uint RightHand, uint LeftHand, uint righthand0, uint lefthand0, ushort GuildID, byte Class)
{
try
{
_String @string = new _String(true);
@string.UID = 810u;
@string.TextsCount = 22;
@string.Type = 10;
@string.Texts.Add("ssch_wlhd_hit");
GameClient[] gamePool = Program.GamePool;
for (int i = 0; i < gamePool.Length; i++)
{
GameClient GameClient = gamePool[i];
if (GameClient.Entity.InTwinCity)
{
GameClient.SendScreen(@string, true);
}
}
MonsterInformation monsterInformation = new MonsterInformation();
monsterInformation.Hitpoints = 500000u;
monsterInformation.Level = 200;
monsterInformation.Mesh = mesh;
monsterInformation.Name = name;
monsterInformation.MaxAttack = 80000u;
monsterInformation.AttackRange = 3;
monsterInformation.AttackType = 2;
monsterInformation.AttackSpeed = 1000;
monsterInformation.ViewRange = 15;
monsterInformation.MoveSpeed = 2000;
monsterInformation.RunSpeed = 500;
monsterInformation.MinAttack = 10000u;
monsterInformation.InSight = 0u;
Entity entity = new Entity(EntityFlag.Monster, false);
entity.MagicDefence = 2600;
entity.MapObjType = MapObjectType.Monster;
entity.MonsterInfo = monsterInformation;
entity.MonsterInfo.Owner = entity;
entity.Name = name;
entity.MinAttack = monsterInformation.MinAttack;
entity.MaxAttack = (entity.MagicAttack = monsterInformation.MaxAttack);
entity.Hitpoints = (entity.MaxHitpoints = monsterInformation.Hitpoints);
entity.Body = monsterInformation.Mesh;
entity.Level = monsterInformation.Level;
entity.Defence = 65535;
entity.X = x;
entity.Action = action;
entity.Y = y;
entity.bornx = x;
entity.borny = y;
entity.Gramnts = Gramnts;
entity.CountryFlagmob = 15u;
entity.HairStyle = 514;
entity.Facing = Kernel.GetAngle(x, y, x, y);
entity.Amount = 729828u;
entity.Amounts = 300000u;
entity.Class = Class;
entity.EntityFlag = EntityFlag.Monster;
entity.UID = uid;
entity.MapID = MapID;
if (name == "Assassin[PoleGuard]")
{
entity.AssassinBP = 300u;
}
entity.RightHand = RightHand;
entity.LeftHand = LeftHand;
entity.RightHand0 = righthand0;
entity.LeftHand0 = lefthand0;
entity.SendUpdates = true;
entity.GuildID = GuildID;
entity.GuildRank = 990;
map.RemoveEntity(entity);
_String string2 = new _String(true);
string2.UID = monsterInformation.ID;
string2.Type = 10;
string2.Texts.Add("MBStandard");
map.AddPlayer(entity);
if (name == "Assassin[PoleGuard]")
{
entity.AddFlag3(131072u);
}
@string.UID = uid;
@string.TextsCount = 1;
@string.Type = 10;
@string.Texts.Add("ssch_wlhd_hit");
entity.MonsterInfo.SendScreen(@string);
entity.MonsterInfo.SendScreen(@string);
}
catch (Exception line)
{
Console.WriteLine(line);
}
}
}
}
public ushort bornx;
public ushort borny;
private uint _Gramnts;
private uint _Amount;
private uint _Amounts;
private uint _righthand;
private uint _leftHand;
private uint _righthand0;
private uint _leftHand0;
public uint _CountryFlag { get; set; }
public bool InTwinCity;
public uint RightHand
{
get
{
return this._righthand;
}
set
{
this._righthand = value;
Writer.WriteUInt32(value, 212, this.SpawnPacket);
}
}
public uint LeftHand
{
get
{
return this._leftHand;
}
set
{
this._leftHand = value;
Writer.WriteUInt32(value, 208, this.SpawnPacket);
}
}
public uint RightHand0
{
get
{
return this._righthand0;
}
set
{
this._righthand0 = value;
Writer.WriteUInt32(value, 64, this.SpawnPacket);
}
}
public uint LeftHand0
{
get
{
return this._leftHand0;
}
set
{
this._leftHand0 = value;
Writer.WriteUInt32(value, 60, this.SpawnPacket);
}
}
public uint CountryFlagmob
{
get
{
return this._CountryFlag;
}
set
{
this._CountryFlag = value;
Writer.WriteUInt32(value, 231, this.SpawnPacket);
}
}
public uint Gramnts
{
get
{
return this._Gramnts;
}
set
{
this._Gramnts = value;
Writer.WriteUInt32(value, 52, this.SpawnPacket);
}
}
public uint Amount
{
get
{
return this._Amount;
}
set
{
this._Amount = value;
Writer.WriteUInt32(value, 80, this.SpawnPacket);
}
}
public uint Amounts
{
get
{
return this._Amounts;
}
set
{
this._Amounts = value;
Writer.WriteUInt32(value, 76, this.SpawnPacket);
}
}
public void AddPlayer(Entity entity)
{
if (((Dictionary<uint, Entity>)this.Entities).ContainsKey(entity.UID))
return;
this.Entities.Add(entity.UID, entity);
this.Floor[(int)entity.X, (int)entity.Y, MapObjectType.Monster, (object)entity] = false;
}
public static DateTime Effect1;
public static DateTime Effect2;
public static DateTime Effect4;
public static DateTime Effect3;
public static DateTime Effect5;
public static DateTime Effect6;
string effect { get; set; }
16420 0 0 SwordWar 2 40006 -1 1002 297 183 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
164210 0 0 SwordWarWin 2 23100 -1 6420 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
6420 700 0 0
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
سيستم كوستة وحوش يوميه كوستت Code Winner | M.H.B[X-Coder]X | تطوير سيرفرات كونكر | 29 | 2024-03-23 12:34 AM |
كوستت دراجوونس | Hassan Emprator | تطوير سيرفرات كونكر | 9 | 2023-11-08 05:07 AM |
كوستة جديدة Do not die because you do not lose your cps | Mero | تطوير سيرفرات كونكر | 4 | 2023-10-30 08:32 PM |
كوستة No Die | محمد ياسر | تطوير سيرفرات كونكر | 2 | 2023-10-18 02:34 AM |
كوستة الايبك | stevenayman1 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-03-25 02:01 PM |