|
المشاركات 2,515 |
+التقييم 1.28 |
تاريخ التسجيل Jul 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 358 |
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));
}
}
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));
}
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
بعد ازن الناس المحتره عاوز اعديل علي الاتاك بتاع الاسكلات في متركس بروتو | toteo3344 | مشكلات السيرفيرات كونكر الشخصيه | 0 | 2020-05-15 04:06 AM |
حل مشكلة الاسكلات الي بتجيلك بعد ريبورن+الاسكلات مش بتختفي + الاكونت بيهنج[Proto] | Tefa | تطوير سيرفرات كونكر | 7 | 2020-04-19 03:25 PM |
مشكلة الاسكلات اللى بتفضل ف سورس رايزو | nova | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-03-29 01:43 PM |
مشكلة الاسكلات لما بتنزل ريبورن بتفضل معاك | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-03-09 02:13 PM |
حل مشكلة الاصطفة لما تنزل ريبورن بتفضل ليفل عالى | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-09-26 10:25 PM |