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

مشاهدة النسخة كاملة : مشكلة الاسكلات لما بتنزل ريبورن بتفضل معاك


megokarika
2020-03-09, 12:59 PM
2: مشكلة الاسكلات لما بتنزل ريبورن بتفضل معاك

Tefa
2020-03-09, 02:13 PM
سيرش public unsafe void Reborn(Game.Entity player, byte RebornClass, ServerSockets.Packet stream)
قبل اخر قوس تحت خالص ضيف
#region rem r i d e r
using (var rec = new ServerSockets.RecycledPacket())
{
var saw = rec.GetStream();
{
#region test ruen remove

foreach (var item in player.Owner.Entity.RuneItem.Values)
{
if (item.Position >= 100 || item.Position <= 125)
{

item.Position = (ushort)211;
player.Owner.Entity.RuneItem[item.UID].Position = (ushort)211;
ConquerItemTable.UpdatePosition(item);
player.Owner.Send(item);

if (player.Owner.MySpells.ClientSpells.ContainsKey((u short)(uint)(RuneItems.RuneSkillID(item.ID) / 100)))
player.Owner.MySpells.Remove((ushort)(ushort)(uint )(RuneItems.RuneSkillID(item.ID) / 100), null);
ItemUsage usage = new ItemUsage(true) { ID = ItemUsage.UnequipItem };
//test
usage.UID = item.Position;
player.Owner.Send(usage);

}

}
#endregion
#region runes
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 250))
{
player.Owner.MySpells.Remove(14250, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 440))
{
player.Owner.MySpells.Remove(14440, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 410))
{
player.Owner.MySpells.Remove(14410, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(12 50))
{
player.Owner.MySpells.Remove(1250, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 530))
{
player.Owner.MySpells.Remove(14530, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 260))
{
player.Owner.MySpells.Remove(14260, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(15 780))
{
player.Owner.MySpells.Remove(15780, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 380))
{
player.Owner.MySpells.Remove(14380, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(11 180))
{
player.Owner.MySpells.Remove(11180, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 220))
{
player.Owner.MySpells.Remove(14220, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 160))
{
player.Owner.MySpells.Remove(14160, saw);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 160))
{
player.Owner.MySpells.Remove(14160, saw);

}
#endregion
#region tr
if (player.Owner.Entity.Class > 15 || player.Owner.Entity.Class < 10)
{

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 986))
{
player.Owner.MySpells.Remove(11986, saw);

}



if (player.Owner.MySpells.ClientSpells.ContainsKey(11 990))
{
player.Owner.MySpells.Remove(11990, stream);

}

if (player.Owner.MySpells.ClientSpells.ContainsKey(13 440))
{
player.Owner.MySpells.Remove(13440, stream);

}


if (player.Owner.MySpells.ClientSpells.ContainsKey(11 960))
{
player.Owner.MySpells.Remove(11960, stream);

}
if (player.Owner.MySpells.ClientSpells.ContainsKey(12 50))
{
player.Owner.MySpells.Remove(1250, stream);

}


}
#endregion
#region mo
if (player.Owner.Entity.Class > 65 || player.Owner.Entity.Class < 60)
{

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 550))
{
player.Owner.MySpells.Remove(12550, stream);

}

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 560))
{
player.Owner.MySpells.Remove(12560, stream);

}

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 570))
{
player.Owner.MySpells.Remove(12570, stream);

}

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 160))
{
player.Owner.MySpells.Remove(14160, stream);

}




if (player.Owner.MySpells.ClientSpells.ContainsKey(10 490))
{
player.Owner.MySpells.Remove(10490, stream);

}




if (player.Owner.MySpells.ClientSpells.ContainsKey(10 425))
{
player.Owner.MySpells.Remove(10425, stream);

}




if (player.Owner.MySpells.ClientSpells.ContainsKey(10 425))
player.Owner.MySpells.Remove(10425, stream);



if (player.Owner.MySpells.ClientSpells.ContainsKey(10 420))
player.Owner.MySpells.Remove(10420, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 421))
player.Owner.MySpells.Remove(10421, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 422))
player.Owner.MySpells.Remove(10422, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 423))
player.Owner.MySpells.Remove(10423, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 424))
player.Owner.MySpells.Remove(10424, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 405))
player.Owner.MySpells.Remove(10405, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 410))
player.Owner.MySpells.Remove(10410, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 415))
player.Owner.MySpells.Remove(10415, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 395))
player.Owner.MySpells.Remove(10395, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(10 381))
player.Owner.MySpells.Remove(10381, stream);

}
#endregion
#region nin
if (player.Owner.Entity.Class > 55 || player.Owner.Entity.Class < 50)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(60 11))
player.Owner.MySpells.Remove(6011, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(60 03))
player.Owner.MySpells.Remove(6003, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(60 02))
player.Owner.MySpells.Remove(6002, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(60 10))
player.Owner.MySpells.Remove(6010, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(60 00))
player.Owner.MySpells.Remove(6000, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 070))
player.Owner.MySpells.Remove(12070, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 080))
player.Owner.MySpells.Remove(12080, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 090))
player.Owner.MySpells.Remove(12090, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(60 04))
player.Owner.MySpells.Remove(6004, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 170))
player.Owner.MySpells.Remove(11170, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 180))
player.Owner.MySpells.Remove(11180, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 110))
player.Owner.MySpells.Remove(12110, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 410))
player.Owner.MySpells.Remove(14410, stream);


}
#endregion
#region ar
if (player.Owner.Entity.Class > 45 || player.Owner.Entity.Class < 40)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(11 670))
player.Owner.MySpells.Remove(11670, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 280))
player.Owner.MySpells.Remove(14280, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 660))
player.Owner.MySpells.Remove(11660, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 650))
player.Owner.MySpells.Remove(11650, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 620))
player.Owner.MySpells.Remove(11620, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 610))
player.Owner.MySpells.Remove(11610, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 600))
player.Owner.MySpells.Remove(11600, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 590))
player.Owner.MySpells.Remove(11590, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(80 00))
player.Owner.MySpells.Remove(8000, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(80 01))
player.Owner.MySpells.Remove(8001, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(80 03))
player.Owner.MySpells.Remove(8003, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 380))
player.Owner.MySpells.Remove(14380, stream);



}
#endregion
#region w
if (player.Owner.Entity.Class > 25 || player.Owner.Entity.Class < 20)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(12 700))
player.Owner.MySpells.Remove(12700, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 690))
player.Owner.MySpells.Remove(12690, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 680))
player.Owner.MySpells.Remove(12680, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 670))
player.Owner.MySpells.Remove(12670, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 660))
player.Owner.MySpells.Remove(12660, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 270))
player.Owner.MySpells.Remove(14270, stream);

}
#endregion
#region wt
if (player.Owner.Entity.Class > 135 || player.Owner.Entity.Class < 130)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(11 75))
player.Owner.MySpells.Remove(1175, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 320))
player.Owner.MySpells.Remove(14320, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 500))
player.Owner.MySpells.Remove(14500, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 70))
player.Owner.MySpells.Remove(1170, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 390))
player.Owner.MySpells.Remove(12390, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 370))
player.Owner.MySpells.Remove(12370, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(30 000))
player.Owner.MySpells.Remove(30000, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 00))
player.Owner.MySpells.Remove(1100, stream);

}
#endregion
#region ft
if (player.Owner.Entity.Class > 145 || player.Owner.Entity.Class < 140)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(10 02))
player.Owner.MySpells.Remove(1002, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 80))
player.Owner.MySpells.Remove(1180, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 65))
player.Owner.MySpells.Remove(1165, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 60))
player.Owner.MySpells.Remove(1160, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 50))
player.Owner.MySpells.Remove(1150, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 20))
player.Owner.MySpells.Remove(1120, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 400))
player.Owner.MySpells.Remove(12400, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 380))
player.Owner.MySpells.Remove(12380, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 220))
player.Owner.MySpells.Remove(14220, stream);
}
#endregion
#region pi
if (player.Owner.Entity.Class > 75 || player.Owner.Entity.Class < 70)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(11 030))
player.Owner.MySpells.Remove(11030, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(11 110))
player.Owner.MySpells.Remove(11110, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 710))
player.Owner.MySpells.Remove(14710, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 680))
player.Owner.MySpells.Remove(14680, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 720))
player.Owner.MySpells.Remove(14720, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 270))
player.Owner.MySpells.Remove(14270, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 250))
player.Owner.MySpells.Remove(14250, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14 440))
player.Owner.MySpells.Remove(14440, stream);

}
#endregion
#region DW
if (player.Owner.Entity.Class > 85 || player.Owner.Entity.Class < 80)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(12 300))
player.Owner.MySpells.Remove(12300, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(14 470))
player.Owner.MySpells.Remove(14470, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 120))
player.Owner.MySpells.Remove(12120, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 130))
player.Owner.MySpells.Remove(12130, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 140))
player.Owner.MySpells.Remove(12140, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 160))
player.Owner.MySpells.Remove(12160, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 170))
player.Owner.MySpells.Remove(12170, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 200))
player.Owner.MySpells.Remove(12200, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 240))
player.Owner.MySpells.Remove(12240, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 350))
player.Owner.MySpells.Remove(12350, stream);


}
#endregion
#region ww
if (player.Owner.Entity.Class > 165 || player.Owner.Entity.Class < 160)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(12 980))
player.Owner.MySpells.Remove(12980, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 940))
player.Owner.MySpells.Remove(12940, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 950))
player.Owner.MySpells.Remove(12950, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 930))
player.Owner.MySpells.Remove(12930, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 990))
player.Owner.MySpells.Remove(12990, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 960))
player.Owner.MySpells.Remove(12960, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(13 000))
player.Owner.MySpells.Remove(13000, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(13 030))
player.Owner.MySpells.Remove(13030, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(13 020))
player.Owner.MySpells.Remove(13020, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 890))
player.Owner.MySpells.Remove(12890, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(13 090))
player.Owner.MySpells.Remove(13090, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 850))
player.Owner.MySpells.Remove(12850, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 840))
player.Owner.MySpells.Remove(12840, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 970))
player.Owner.MySpells.Remove(12970, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(13 080))
player.Owner.MySpells.Remove(13080, stream);


if (player.Owner.MySpells.ClientSpells.ContainsKey(12 860))
player.Owner.MySpells.Remove(12860, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(12 870))
player.Owner.MySpells.Remove(12870, stream);

}
#endregion
#region pi
if (player.Owner.Entity.Class > 95 || player.Owner.Entity.Class < 90)
{
if (player.Owner.MySpells.ClientSpells.ContainsKey(15 790))
player.Owner.MySpells.Remove(15790, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(15 750))
player.Owner.MySpells.Remove(15750, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(15 780))
player.Owner.MySpells.Remove(15780, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(15 720))
player.Owner.MySpells.Remove(15720, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(15 710))
player.Owner.MySpells.Remove(15710, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(15 800))
player.Owner.MySpells.Remove(15800, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(15 810))
player.Owner.MySpells.Remove(15810, stream);

if (player.Owner.MySpells.ClientSpells.ContainsKey(15 770))
player.Owner.MySpells.Remove(15770, stream);

}


#endregion
}
}
#endregion
افتح spell.cs
سيرش
public unsafe void Remove(ushort ID, ServerSockets.Packet stream)
اقفلها و بدلها ب دي
public unsafe void Remove(ushort ID, ServerSockets.Packet stream)
{
Game.MsgServer.MsgSpell my_spell;
if (ClientSpells.TryRemove(ID, out my_spell))
{
MsgActionProto Action = new MsgActionProto();
Action.UID = Owner.Entity.UID;
Action.dwParam = ID;
Action.TimeStamp = (uint)Time32.Now.GetHashCode();
Action.ID =MsgActionEmulator.RemoveSpell;
Owner.Send(MsgActionEmulator.SendPacket(Action));
}
}