Tzar
05-31-2012, 09:33 PM
[عفواً لايمكن عرض الروابط في الإرشيف
ضيف الاكواد دى فى NPCDialogs.cs
#region CP Leveler
case 7878:
switch (Control)
{
case 0:
if (GC.MyChar.Level < 137)
{
GC.AddSend(Packets.NPCSay("Hello " + GC.MyChar.Name + "! You are currently level " + GC.MyChar.Level + "."));
if (GC.MyChar.Level >= 130)
{
GC.AddSend(Packets.NPCSay(" I can level you to level " + (GC.MyChar.Level + 1) + " for only 1kk CPs!"));
GC.AddSend(Packets.NPCLink("Cool, let's do it!", 1));
}
else
{
GC.AddSend(Packets.NPCSay(" You need to be at least level 130 in order to take advantage of my leveling offers."));
}
GC.AddSend(Packets.NPCLink("I see, thank you.", 255));
}
else
{
GC.AddSend(Packets.NPCSay("Hello " + GC.MyChar.Name + "! Congratulations on level " + GC.MyChar.Level + "!"));
GC.AddSend(Packets.NPCLink("Thank you!", 255));
}
break;
case 1:
if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.CPs -= 1000000;
GC.MyChar.Experience = 0;
GC.MyChar.StatPoints += 3;
GC.MyChar.Level++;
GC.MyChar.CurHP = GC.MyChar.MaxHP;
GC.AddSend(Packets.String(GC.MyChar.EntityID, 10, "movego"));
GC.AddSend(Packets.String(GC.MyChar.EntityID, 10, "Thunder-9"));
GC.AddSend(Packets.String(GC.MyChar.EntityID, 10, "w-jet"));
Game.World.SendMsgToAll("SYSTEM", "Congratulations " + GC.MyChar.Name + " on reaching level " + GC.MyChar.Level + "!", 2011, 0);
GC.AddSend(Packets.NPCSay("Congratulations! You are now level " + GC.MyChar.Level + "!"));
GC.AddSend(Packets.NPCLink("Thank you!", 255));
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough CPs! Come back when you have " + (1000000 - GC.MyChar.CPs) + " more!"));
GC.AddSend(Packets.NPCLink("Oh, my bad.", 255));
}
break;
}
GC.AddSend(Packets.NPCSetFace(84));
GC.AddSend(Packets.NPCFinish());
break;
#endregion
وضيف السطر ده فى ملف NPC.ini الى جوه OldCODB
7878 3956 2 84 1036 212 208[/QUOTE]
ضيف الاكواد دى فى NPCDialogs.cs
#region CP Leveler
case 7878:
switch (Control)
{
case 0:
if (GC.MyChar.Level < 137)
{
GC.AddSend(Packets.NPCSay("Hello " + GC.MyChar.Name + "! You are currently level " + GC.MyChar.Level + "."));
if (GC.MyChar.Level >= 130)
{
GC.AddSend(Packets.NPCSay(" I can level you to level " + (GC.MyChar.Level + 1) + " for only 1kk CPs!"));
GC.AddSend(Packets.NPCLink("Cool, let's do it!", 1));
}
else
{
GC.AddSend(Packets.NPCSay(" You need to be at least level 130 in order to take advantage of my leveling offers."));
}
GC.AddSend(Packets.NPCLink("I see, thank you.", 255));
}
else
{
GC.AddSend(Packets.NPCSay("Hello " + GC.MyChar.Name + "! Congratulations on level " + GC.MyChar.Level + "!"));
GC.AddSend(Packets.NPCLink("Thank you!", 255));
}
break;
case 1:
if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.CPs -= 1000000;
GC.MyChar.Experience = 0;
GC.MyChar.StatPoints += 3;
GC.MyChar.Level++;
GC.MyChar.CurHP = GC.MyChar.MaxHP;
GC.AddSend(Packets.String(GC.MyChar.EntityID, 10, "movego"));
GC.AddSend(Packets.String(GC.MyChar.EntityID, 10, "Thunder-9"));
GC.AddSend(Packets.String(GC.MyChar.EntityID, 10, "w-jet"));
Game.World.SendMsgToAll("SYSTEM", "Congratulations " + GC.MyChar.Name + " on reaching level " + GC.MyChar.Level + "!", 2011, 0);
GC.AddSend(Packets.NPCSay("Congratulations! You are now level " + GC.MyChar.Level + "!"));
GC.AddSend(Packets.NPCLink("Thank you!", 255));
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough CPs! Come back when you have " + (1000000 - GC.MyChar.CPs) + " more!"));
GC.AddSend(Packets.NPCLink("Oh, my bad.", 255));
}
break;
}
GC.AddSend(Packets.NPCSetFace(84));
GC.AddSend(Packets.NPCFinish());
break;
#endregion
وضيف السطر ده فى ملف NPC.ini الى جوه OldCODB
7878 3956 2 84 1036 212 208[/QUOTE]