|
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((ushort)(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(14250))
{
player.Owner.MySpells.Remove(14250, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14440))
{
player.Owner.MySpells.Remove(14440, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14410))
{
player.Owner.MySpells.Remove(14410, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(1250))
{
player.Owner.MySpells.Remove(1250, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14530))
{
player.Owner.MySpells.Remove(14530, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14260))
{
player.Owner.MySpells.Remove(14260, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(15780))
{
player.Owner.MySpells.Remove(15780, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14380))
{
player.Owner.MySpells.Remove(14380, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(11180))
{
player.Owner.MySpells.Remove(11180, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14220))
{
player.Owner.MySpells.Remove(14220, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14160))
{
player.Owner.MySpells.Remove(14160, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14160))
{
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(11986))
{
player.Owner.MySpells.Remove(11986, saw);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(11990))
{
player.Owner.MySpells.Remove(11990, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(13440))
{
player.Owner.MySpells.Remove(13440, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(11960))
{
player.Owner.MySpells.Remove(11960, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(1250))
{
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(12550))
{
player.Owner.MySpells.Remove(12550, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(12560))
{
player.Owner.MySpells.Remove(12560, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(12570))
{
player.Owner.MySpells.Remove(12570, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(14160))
{
player.Owner.MySpells.Remove(14160, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(10490))
{
player.Owner.MySpells.Remove(10490, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(10425))
{
player.Owner.MySpells.Remove(10425, stream);
}
if (player.Owner.MySpells.ClientSpells.ContainsKey(10425))
player.Owner.MySpells.Remove(10425, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10420))
player.Owner.MySpells.Remove(10420, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10421))
player.Owner.MySpells.Remove(10421, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10422))
player.Owner.MySpells.Remove(10422, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10423))
player.Owner.MySpells.Remove(10423, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10424))
player.Owner.MySpells.Remove(10424, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10405))
player.Owner.MySpells.Remove(10405, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10410))
player.Owner.MySpells.Remove(10410, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10415))
player.Owner.MySpells.Remove(10415, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10395))
player.Owner.MySpells.Remove(10395, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(10381))
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(6011))
player.Owner.MySpells.Remove(6011, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(6003))
player.Owner.MySpells.Remove(6003, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(6002))
player.Owner.MySpells.Remove(6002, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(6010))
player.Owner.MySpells.Remove(6010, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(6000))
player.Owner.MySpells.Remove(6000, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12070))
player.Owner.MySpells.Remove(12070, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12080))
player.Owner.MySpells.Remove(12080, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12090))
player.Owner.MySpells.Remove(12090, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(6004))
player.Owner.MySpells.Remove(6004, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11170))
player.Owner.MySpells.Remove(11170, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11180))
player.Owner.MySpells.Remove(11180, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12110))
player.Owner.MySpells.Remove(12110, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14410))
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(11670))
player.Owner.MySpells.Remove(11670, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14280))
player.Owner.MySpells.Remove(14280, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11660))
player.Owner.MySpells.Remove(11660, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11650))
player.Owner.MySpells.Remove(11650, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11620))
player.Owner.MySpells.Remove(11620, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11610))
player.Owner.MySpells.Remove(11610, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11600))
player.Owner.MySpells.Remove(11600, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11590))
player.Owner.MySpells.Remove(11590, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(8000))
player.Owner.MySpells.Remove(8000, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(8001))
player.Owner.MySpells.Remove(8001, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(8003))
player.Owner.MySpells.Remove(8003, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14380))
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(12700))
player.Owner.MySpells.Remove(12700, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12690))
player.Owner.MySpells.Remove(12690, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12680))
player.Owner.MySpells.Remove(12680, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12670))
player.Owner.MySpells.Remove(12670, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12660))
player.Owner.MySpells.Remove(12660, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14270))
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(1175))
player.Owner.MySpells.Remove(1175, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14320))
player.Owner.MySpells.Remove(14320, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14500))
player.Owner.MySpells.Remove(14500, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(1170))
player.Owner.MySpells.Remove(1170, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12390))
player.Owner.MySpells.Remove(12390, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12370))
player.Owner.MySpells.Remove(12370, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(30000))
player.Owner.MySpells.Remove(30000, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(1100))
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(1002))
player.Owner.MySpells.Remove(1002, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(1180))
player.Owner.MySpells.Remove(1180, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(1165))
player.Owner.MySpells.Remove(1165, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(1160))
player.Owner.MySpells.Remove(1160, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(1150))
player.Owner.MySpells.Remove(1150, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(1120))
player.Owner.MySpells.Remove(1120, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12400))
player.Owner.MySpells.Remove(12400, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12380))
player.Owner.MySpells.Remove(12380, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14220))
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(11030))
player.Owner.MySpells.Remove(11030, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(11110))
player.Owner.MySpells.Remove(11110, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14710))
player.Owner.MySpells.Remove(14710, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14680))
player.Owner.MySpells.Remove(14680, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14720))
player.Owner.MySpells.Remove(14720, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14270))
player.Owner.MySpells.Remove(14270, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14250))
player.Owner.MySpells.Remove(14250, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14440))
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(12300))
player.Owner.MySpells.Remove(12300, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(14470))
player.Owner.MySpells.Remove(14470, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12120))
player.Owner.MySpells.Remove(12120, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12130))
player.Owner.MySpells.Remove(12130, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12140))
player.Owner.MySpells.Remove(12140, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12160))
player.Owner.MySpells.Remove(12160, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12170))
player.Owner.MySpells.Remove(12170, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12200))
player.Owner.MySpells.Remove(12200, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12240))
player.Owner.MySpells.Remove(12240, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12350))
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(12980))
player.Owner.MySpells.Remove(12980, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12940))
player.Owner.MySpells.Remove(12940, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12950))
player.Owner.MySpells.Remove(12950, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12930))
player.Owner.MySpells.Remove(12930, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12990))
player.Owner.MySpells.Remove(12990, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12960))
player.Owner.MySpells.Remove(12960, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(13000))
player.Owner.MySpells.Remove(13000, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(13030))
player.Owner.MySpells.Remove(13030, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(13020))
player.Owner.MySpells.Remove(13020, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12890))
player.Owner.MySpells.Remove(12890, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(13090))
player.Owner.MySpells.Remove(13090, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12850))
player.Owner.MySpells.Remove(12850, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12840))
player.Owner.MySpells.Remove(12840, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12970))
player.Owner.MySpells.Remove(12970, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(13080))
player.Owner.MySpells.Remove(13080, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12860))
player.Owner.MySpells.Remove(12860, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(12870))
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(15790))
player.Owner.MySpells.Remove(15790, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(15750))
player.Owner.MySpells.Remove(15750, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(15780))
player.Owner.MySpells.Remove(15780, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(15720))
player.Owner.MySpells.Remove(15720, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(15710))
player.Owner.MySpells.Remove(15710, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(15800))
player.Owner.MySpells.Remove(15800, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(15810))
player.Owner.MySpells.Remove(15810, stream);
if (player.Owner.MySpells.ClientSpells.ContainsKey(15770))
player.Owner.MySpells.Remove(15770, stream);
}
#endregion
}
}
#endregion
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));
}
}
الذين يشاهدون محتوى الموضوع الآن : 2 ( الأعضاء 0 والزوار 2) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حل مشكلة لما بتنزل ريبورن الاسكلات بتفضل معاك[بروتو] | Tefa | تطوير سيرفرات كونكر | 21 | 2021-08-06 12:03 AM |
حل مشكلة الاسكلات الي بتجيلك بعد ريبورن+الاسكلات مش بتختفي + الاكونت بيهنج[Proto] | Tefa | تطوير سيرفرات كونكر | 7 | 2020-04-19 03:25 PM |
مشكلة الاسكلات اللى بتفضل ف سورس رايزو | nova | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-03-29 01:43 PM |
حل مشكلة الاصطفة لما تنزل ريبورن بتفضل ليفل عالى | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-09-26 10:25 PM |
حل مشكلة الاكونتات بتنزل معاها جيانج ايبك | محمد ياسر | تطوير سيرفرات كونكر | 3 | 2019-07-11 03:40 PM |