MaxConquer المدير العام
البلد : اسم الشهره : shamas الابراج : عدد المساهمات : 93 النقط : 17228 السٌّمعَة : 6 الميلاد : 04/11/1996 العمر : 28 الموقع : www.maxconquer.hooxs.com العمل/الترفيه : طالب المزاج : conquer
| موضوع: ان بى سى بيديك بوينتات 165 خش وشوف الجمعة 16 يوليو - 3:35:22 | |
| انبي سي بيديك بوينتات افتح Packethanding/Npcdialog.cs وضيف الكود ده
كود PHP: #region Buy attribute points
case 312340:
{
if (GC.MyChar.CPs >= 1000)
{
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello, want buy a attribute points for 1000 cps?"));
GC.AddSend(Packets.NPCLink("I want buy Strength", 1));
GC.AddSend(Packets.NPCLink("I want buy Vitality", 2));
GC.AddSend(Packets.NPCLink("I want buy Agility", 3));
GC.AddSend(Packets.NPCLink("I want buy Spirit", 4));
GC.AddSend(Packets.NPCLink("Bye bye", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 1)
{
GC.MyChar.CPs -= 1000;
GC.MyChar.Str += 1;
GC.AddSend(Packets.NPCSay("Here ist your strenth point."));
GC.AddSend(Packets.NPCLink("Thank you, bye", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
GC.MyChar.CPs -= 1000;
GC.MyChar.Vit += 1;
GC.AddSend(Packets.NPCSay("Here ist your vitality point."));
GC.AddSend(Packets.NPCLink("Thank you, bye", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 3)
{
GC.MyChar.CPs -= 1000;
GC.MyChar.Agi += 1;
GC.AddSend(Packets.NPCSay("Here ist your agility point."));
GC.AddSend(Packets.NPCLink("Thank you, bye", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 4)
{
GC.MyChar.CPs -= 1000;
GC.MyChar.Spi += 1;
GC.AddSend(Packets.NPCSay("Here ist your spirit point."));
GC.AddSend(Packets.NPCLink("Thank you, bye", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (GC.MyChar.CPs <= 1000)
{
GC.AddSend(Packets.NPCSay("Sorry you need 1001 cps for buy attribute points. You can't enter in the npc if you no have this."));
GC.AddSend(Packets.NPCLink("Oh ok.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
#endregion
بعدين افتح OLDCODB/NpcS.txt وضيف الكود ده
كود PHP: 312340 7381 2 0 1002 422 378
[/size] | |
|