محمد ياسر
2019-04-18, 10:29 AM
السلام عليكم ورحمة الله وبركاته
npc بيدي لفل 140
في ال npcs.cs
#region Npc Give Level 140
case 1067:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello There I Am Npc Give Level 140");
dialog.Option("I'm Need Level 140 Bro", 1);
dialog.Option("No Thanks", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ConquerPoints >= 1 && (client.Entity.Level < 140))
{
client.Entity.ConquerPoints -= 1;
client.Entity.Level = 140;
if (client.Entity.Reborn == 1)
{
client.Entity.Atributes = (ushort)(Program.RebornInfo.ExtraAtributePoints(cl ient.Entity.FirstRebornLevel, client.Entity.FirstRebornClass)
+ 52 + 3 * (client.Entity.Level - 15) + client.Entity.ExtraAtributes + client.Entity.MysteryFruit);
}
else
{
client.Entity.Atributes = (ushort)(Program.RebornInfo.ExtraAtributePoints(cl ient.Entity.FirstRebornLevel, client.Entity.FirstRebornClass) +
Program.RebornInfo.ExtraAtributePoints(client.Enti ty.SecondRebornLevel, client.Entity.SecondRebornClass) + 52 + 3 * (client.Entity.Level - 15) + client.Entity.ExtraAtributes + client.Entity.MysteryFruit);
}
using (var rec = new ServerSockets.RecycledPacket())
{
var stream = rec.GetStream();
client.Entity.SendUpdate(stream, client.Entity.Vitality, Game.MsgServer.MsgUpdate.DataType.Vitality);
client.Entity.SendUpdate(stream, client.Entity.Spirit, Game.MsgServer.MsgUpdate.DataType.Spirit);
client.Entity.SendUpdate(stream, client.Entity.Agility, Game.MsgServer.MsgUpdate.DataType.Agility);
client.Entity.SendUpdate(stream, client.Entity.Strength, Game.MsgServer.MsgUpdate.DataType.Strength);
client.Entity.SendUpdate(stream, client.Entity.Atributes, Game.MsgServer.MsgUpdate.DataType.Atributes);
}
}
else
{
dialog.Text("Please get 5000 cps to Get Level 140.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
}
break;
}
#endregion
npc بيدي لفل 140
في ال npcs.cs
#region Npc Give Level 140
case 1067:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello There I Am Npc Give Level 140");
dialog.Option("I'm Need Level 140 Bro", 1);
dialog.Option("No Thanks", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ConquerPoints >= 1 && (client.Entity.Level < 140))
{
client.Entity.ConquerPoints -= 1;
client.Entity.Level = 140;
if (client.Entity.Reborn == 1)
{
client.Entity.Atributes = (ushort)(Program.RebornInfo.ExtraAtributePoints(cl ient.Entity.FirstRebornLevel, client.Entity.FirstRebornClass)
+ 52 + 3 * (client.Entity.Level - 15) + client.Entity.ExtraAtributes + client.Entity.MysteryFruit);
}
else
{
client.Entity.Atributes = (ushort)(Program.RebornInfo.ExtraAtributePoints(cl ient.Entity.FirstRebornLevel, client.Entity.FirstRebornClass) +
Program.RebornInfo.ExtraAtributePoints(client.Enti ty.SecondRebornLevel, client.Entity.SecondRebornClass) + 52 + 3 * (client.Entity.Level - 15) + client.Entity.ExtraAtributes + client.Entity.MysteryFruit);
}
using (var rec = new ServerSockets.RecycledPacket())
{
var stream = rec.GetStream();
client.Entity.SendUpdate(stream, client.Entity.Vitality, Game.MsgServer.MsgUpdate.DataType.Vitality);
client.Entity.SendUpdate(stream, client.Entity.Spirit, Game.MsgServer.MsgUpdate.DataType.Spirit);
client.Entity.SendUpdate(stream, client.Entity.Agility, Game.MsgServer.MsgUpdate.DataType.Agility);
client.Entity.SendUpdate(stream, client.Entity.Strength, Game.MsgServer.MsgUpdate.DataType.Strength);
client.Entity.SendUpdate(stream, client.Entity.Atributes, Game.MsgServer.MsgUpdate.DataType.Atributes);
}
}
else
{
dialog.Text("Please get 5000 cps to Get Level 140.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
}
break;
}
#endregion