المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : نفسى اعمل النظام ده عندى ف السيرفر


abdocoder
2020-05-09, 01:32 AM
نظام ان الايتمز يتفرش كده ومش يبقى جمب بعضه
ممكن مساعدة وحد يساعدنى اخليه كده ازاى
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)

محمد ياسر
2020-05-09, 01:48 AM
اتفضل
#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"
علي اسم الوحش مع تغير الايتمات للي انت عايزه يقع منه

abdocoder
2020-05-09, 02:46 AM
اتفضل
#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"
علي اسم الوحش مع تغير الايتمات للي انت عايزه يقع منه

قولت اجربها على وحوش التون جايلى بالشكل ده الايتمز جمب بعض مش متوزع عشوائى
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)

medo2020
2020-05-09, 03:30 AM
سورس مين

MeGo
2020-05-09, 03:38 AM
هتعمل ال x , y راندوم علي حسب x , y بتوع الاعب

كدا

MsgMapItem.X = (ushort)Kernel.Random.Next(Owner.X - 20, Owner.X + 20);
MsgMapItem.Y = (ushort)Kernel.Random.Next(Owner.Y - 20, Owner.Y + 20);

abdocoder
2020-05-09, 05:19 AM
هتعمل ال x , y راندوم علي حسب x , y بتوع الاعب

كدا

MsgMapItem.X = (ushort)Kernel.Random.Next(Owner.X - 20, Owner.X + 20);
MsgMapItem.Y = (ushort)Kernel.Random.Next(Owner.Y - 20, Owner.Y + 20);

تسلم يدك