megokarika |
2020-03-09 09:23 PM |
رد: حل مشكلة لما بتنزل ريبورن الاسكلات بتفضل معاك[بروتو]
اقتباس:
المشاركة الأصلية كتبت بواسطة rider
(المشاركة 31635)
سيرش
كود PHP:
public unsafe void reborn(game.entity player, byte rebornclass, serversockets.packet stream)
قبل اخر قوس تحت خالص ضيف
كود PHP:
#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
افتح spell.cs
سيرش
كود PHP:
public unsafe void remove(ushort id, serversockets.packet stream)
اقفلها و بدلها ب دي
كود PHP:
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));
}
}
ارمي ده في databaase
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
|
قبل اخر قوس تحت خالص ضيف ممكن اعرف قبل اخر القوصض دى ف انى حته بالظبط ؟؟؟؟
|