مشاهدة النسخة كاملة : مشكله رمي اسطفه نو فري مش بتظهر عالارض
neno2052
2019-11-17, 07:33 PM
يجدعان انا عملت شنط بتفتحها بتجبلك اسطفه +4 و+6 زي اونلاين بس الحاجه الي بتيجي مش بتظهر غالارض ودا عيب كود add تقريبا ممكن حد يقولي الحل ؟
Hassan Emprator
2019-11-17, 07:40 PM
مش فاهم وضح
Hassan Emprator
2019-11-17, 07:53 PM
ابحث عن
public bool Add
بدلها بي
public bool Add(uint id, byte plus, byte Bless, byte Hp, byte Soc1, byte Soc2, byte Days, byte times = 1, bool bound = true, uint PurificationItemID = 0, uint PurificationLevel = 0, uint PurificationDuration = 0, bool Permnant = false)
{
try
{
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(id, plus);
while (times > 0)
{
if (Count <= 39)
{
ConquerItem item;
item = new ConquerItem(true);
{
#region Stacksize
if (infos.BaseInformation.StackSize > 1)
{
//item.StackSize = (byte)times;
ushort _StackCount = infos.BaseInformation.StackSize;
if (times <= infos.BaseInformation.StackSize)
_StackCount = (ushort)times;
item.StackSize = (ushort)_StackCount;
Database.ConquerItemTable.UpdateStack(item);
times -= (byte)_StackCount;
}
else
{
item = new ConquerItem(true);
item.StackSize = 1;
times--;
}
#endregion Stacksize
item.ID = id;
item.Plus = plus;
item.Bless = Bless;
item.Enchant = Hp;
item.SocketOne = (Enums.Gem)Soc1;
item.SocketTwo = (Enums.Gem)Soc2;
item.DayStamp = DateTime.Now;
item.Days = Days;
item.Bound = true;
TimeSpan Remain = item.DayStamp.AddDays(item.Days) - DateTime.Now;
item.TimeLeftInMinutes = (uint)Remain.TotalSeconds;
item.Durability = item.MaximDurability = infos.BaseInformation.Durability;
};
this.Add(item, Enums.ItemUse.CreateAndAdd);
Database.ConquerItemTable.Update_Free(item, Owner);
if (!Permnant)
{
#region purfy without stablize
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
purify.AddedOn = DateTime.Now;
purify.Available = true;
purify.ItemUID = item.UID;
purify.PurificationLevel = PurificationLevel;
purify.PurificationDuration = PurificationDuration * 24 * 60 * 60;
purify.PurificationItemID = PurificationItemID;
Database.ItemAddingTable.AddPurification(purify);
item.Purification = purify;
item.Mode = MrHassan.Game.Enums.ItemMode.Update;
item.Send(Owner);
ItemAdding effect = new ItemAdding(true);
effect.Type = ItemAdding.PurificationEffect;
effect.Append2(purify);
Owner.Send(effect);
#endregion
}
else
{
#region purfy with stabliz
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
purify.AddedOn = DateTime.Now;
purify.Available = true;
purify.ItemUID = item.UID;
purify.PurificationLevel = PurificationLevel;
purify.PurificationDuration = PurificationDuration * 24 * 60 * 60;
purify.PurificationItemID = PurificationItemID;
Database.ItemAddingTable.AddPurification(purify);
item.Purification = purify;
item.Mode = MrHassan.Game.Enums.ItemMode.Update;
item.Send(Owner);
ItemAdding effect = new ItemAdding(true);
effect.Type = ItemAdding.PurificationEffect;
effect.Append2(purify);
Owner.Send(effect);
var Backup = item.Purification;
Backup.PurificationDuration = 0;
item.Purification = Backup;
item.Send(Owner);
effect.Type = ItemAdding.StabilizationEffect;
effect.Append2(Backup);
Owner.Send(effect);
Database.ItemAddingTable.Stabilize(item.UID, Backup.PurificationItemID);
#endregion
}
}
else
{
return false;
}
// times--;
}
}
catch (Exception e)
{
Program.SaveException(e);
}
return true;
لو لسا اديني الاكواد وانا هتعامل
midoazoz
2019-11-17, 09:04 PM
ثواني يعني ايه مش بتظهر ع الارض مش فاهم هي الشنط مش بتقع لما تموت الوحش ؟؟ ده الي تقصده مش بتظهر؟؟
لو تقصد كده فده لان الكود الي يوقع غير add يا حب
وعموما هات الكود بتاع التوقيع الي في monstertable
اشوفه واعدلهولك
ولو مش الي انا فهمته شوف كده الي قلك عليه حسن
Hassan Emprator
2019-11-17, 11:52 PM
تم حل المشكله عا الخاص
vBulletin® v3.8.8 Beta 1, Copyright ©2000-2024, TranZ by code