|
.Set("Money", e.Money)
.Set("stuff1", e.stuff1)
client.Entity.Money = reader.ReadUInt32("Money");
client.Entity.stuff1 = reader.ReadUInt32("stuff1");
public uint StrResID;
public uint stuff1;
if(client.Entity.stuff1 == 1)
{
// عفوا لقد حصلت علي الاسطف بالفعل
}else{
// هنا لو هو مش معاها نقطه الاسطف وقته هنا اياخد الاسطف + الكود بتاع نقطة الاسطف وكده هو مش اياخده تاني
client.Entity.stuff1 = 1;
}
#region SwordMaster
if (Name == "SwordMaster")
{
uint ItemID = 0;
byte type1 = 30;
for (int i = 0; i < 6; i++)
{
type1 = (byte)Kernel.Random.Next(1, 31);
switch (type1)
{
case 1:
ItemID = 720891;
break;
case 2:
ItemID = 1088000;
break;
case 3:
ItemID = 1088000;
break;
case 4:
ItemID = 1088000;
break;
case 5:
ItemID = 200407;
break;
case 6:
ItemID = 200110;
break;
case 7:
ItemID = 200407;
break;
case 8:
ItemID = 200110;
break;
case 9:
ItemID = 200109;
break;
case 10:
ItemID = 200106;
break;
case 11:
ItemID = 720891;
break;
case 12:
ItemID = 720891;
break;
case 13:
ItemID = 720884;
break;
case 14:
ItemID = 720884;
break;
case 15:
ItemID = 720884;
break;
case 16:
ItemID = 1088000;
break;
case 17:
ItemID = 1088000;
break;
case 18:
ItemID = 1088000;
break;
case 19:
ItemID = 1088000;
break;
case 20:
ItemID = 1088000;
break;
case 21:
ItemID = 723341;
break;
case 22:
ItemID = 723341;
break;
case 23:
ItemID = 723341;
break;
case 24:
ItemID = 723341;
break;
case 25:
ItemID = 723342;
break;
case 26:
ItemID = 723342;
break;
case 27:
ItemID = 723342;
break;
case 28:
ItemID = 200011;
break;
case 29:
ItemID = 200009;
break;
case 30:
ItemID = 200008;
break;
case 31:
ItemID = 3007108;
break;
}
var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem MsgMapItem = new Network.GamePackets.MsgMapItem(true);
MsgMapItem.Item = new Network.GamePackets.MsgItemInfo(true);
MsgMapItem.Item.Color = (AurionConquer.Game.Enums.Color)Kernel.Random.Next(4, 8);
MsgMapItem.Item.ID = ItemID;
MsgMapItem.Item.Plus = MsgMapItem.Item.Plus;
MsgMapItem.Item.MaximDurability = infos.Durability;
MsgMapItem.Item.Durability = infos.Durability;
MsgMapItem.Item.MobDropped = true;
MsgMapItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
MsgMapItem.ItemID = ItemID;
MsgMapItem.MapID = Owner.MapID;
MsgMapItem.MapObjType = Game.MapObjectType.Item;
MsgMapItem.X = X;
MsgMapItem.Y = Y;
if (MsgMapItem.Item.ID == 730004)
MsgMapItem.Item.Plus = 4;
if (MsgMapItem.Item.ID == 730003)
MsgMapItem.Item.Plus = 3;
if (MsgMapItem.Item.ID == 730005)
MsgMapItem.Item.Plus = 5;
MsgMapItem.Type = Network.GamePackets.MsgMapItem.Drop;
MsgMapItem.OnFloor = Time32.Now;
MsgMapItem.ItemColor = MsgMapItem.Item.Color;
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(MsgMapItem.UID))
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(MsgMapItem);
SendScreenSpawn(MsgMapItem);
}
}
return;
}
#endregion
"SwordMaster"
#region SwordMaster
if (Name == "SwordMaster")
{
uint ItemID = 0;
byte type1 = 30;
for (int i = 0; i < 6; i++)
{
type1 = (byte)Kernel.Random.Next(1, 31);
switch (type1)
{
case 1:
ItemID = 720891;
break;
case 2:
ItemID = 1088000;
break;
case 3:
ItemID = 1088000;
break;
case 4:
ItemID = 1088000;
break;
case 5:
ItemID = 200407;
break;
case 6:
ItemID = 200110;
break;
case 7:
ItemID = 200407;
break;
case 8:
ItemID = 200110;
break;
case 9:
ItemID = 200109;
break;
case 10:
ItemID = 200106;
break;
case 11:
ItemID = 720891;
break;
case 12:
ItemID = 720891;
break;
case 13:
ItemID = 720884;
break;
case 14:
ItemID = 720884;
break;
case 15:
ItemID = 720884;
break;
case 16:
ItemID = 1088000;
break;
case 17:
ItemID = 1088000;
break;
case 18:
ItemID = 1088000;
break;
case 19:
ItemID = 1088000;
break;
case 20:
ItemID = 1088000;
break;
case 21:
ItemID = 723341;
break;
case 22:
ItemID = 723341;
break;
case 23:
ItemID = 723341;
break;
case 24:
ItemID = 723341;
break;
case 25:
ItemID = 723342;
break;
case 26:
ItemID = 723342;
break;
case 27:
ItemID = 723342;
break;
case 28:
ItemID = 200011;
break;
case 29:
ItemID = 200009;
break;
case 30:
ItemID = 200008;
break;
case 31:
ItemID = 3007108;
break;
}
var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem MsgMapItem = new Network.GamePackets.MsgMapItem(true);
MsgMapItem.Item = new Network.GamePackets.MsgItemInfo(true);
MsgMapItem.Item.Color = (AurionConquer.Game.Enums.Color)Kernel.Random.Next(4, 8);
MsgMapItem.Item.ID = ItemID;
MsgMapItem.Item.Plus = MsgMapItem.Item.Plus;
MsgMapItem.Item.MaximDurability = infos.Durability;
MsgMapItem.Item.Durability = infos.Durability;
MsgMapItem.Item.MobDropped = true;
MsgMapItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
MsgMapItem.ItemID = ItemID;
MsgMapItem.MapID = Owner.MapID;
MsgMapItem.MapObjType = Game.MapObjectType.Item;
MsgMapItem.X = X;
MsgMapItem.Y = Y;
if (MsgMapItem.Item.ID == 730004)
MsgMapItem.Item.Plus = 4;
if (MsgMapItem.Item.ID == 730003)
MsgMapItem.Item.Plus = 3;
if (MsgMapItem.Item.ID == 730005)
MsgMapItem.Item.Plus = 5;
MsgMapItem.Type = Network.GamePackets.MsgMapItem.Drop;
MsgMapItem.OnFloor = Time32.Now;
MsgMapItem.ItemColor = MsgMapItem.Item.Color;
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(MsgMapItem.UID))
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(MsgMapItem);
SendScreenSpawn(MsgMapItem);
}
}
return;
}
#endregion
"SwordMaster"
MsgMapItem.X = (ushort)Kernel.Random.Next(Owner.X - 20, Owner.X + 20);
MsgMapItem.Y = (ushort)Kernel.Random.Next(Owner.Y - 20, Owner.Y + 20);
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
عايز امسح ايتم من السيرفر كلو وهو السيرفر بيرستر .. لسورس اليكس | MaNGaWy | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2020-05-08 10:30 PM |
يارجاله دلؤتي restart مش شغال في السيرفر عندي ولما بقفل القنصل الانر بور بيتمسح | ahmedfathy | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-10-25 01:43 PM |
نفسى فى سورس عدل | اسلام | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-09-27 06:12 PM |
اعمل شفرات للاعبين و للـناس الـvip زى السيرفر الاول عـ العالـم | Ahmeed Sheeko | تطوير سيرفرات كونكر | 3 | 2019-08-01 10:08 PM |
مشكلة عندي في السيرفر الصطف بتتحول لي صول | محمودمحمدسالم | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-07-12 10:01 PM |