وبكدا بقيت فى اى بى 6 يا برنس
ودة الكود بتاع الانبسى وهيطحط فى المسار دة
rikardo updated\PacketHandling\NPCDialog.cs
-==(( مربع كود ))==-
#region VipNpc
case 0112988:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Welcome " + GC.MyChar.Name + " we sell more special items here that you cant find anywere else vip 1.2.3.4.5 and 6 to help you to save your things?"));
GC.AddSend(Packets.NPCLink("k see me your offer.", 1));
GC.AddSend(Packets.NPCLink("sorry i don't need", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
GC.AddSend(Packets.NPCSay("Are you interested to buy this vip?"));
GC.AddSend(Packets.NPCLink("Vip1 for 10 k cps", 2));
GC.AddSend(Packets.NPCLink("Vip2 for 15 k cps", 3));
GC.AddSend(Packets.NPCLink("Vip3 for 20 k cps", 4));
GC.AddSend(Packets.NPCLink("Vip4 for 25 k cps", 5));
GC.AddSend(Packets.NPCLink("Vip5 for 30 k cps", 6));
GC.AddSend(Packets.NPCLink("Vip6 for 35 k cps", 7));
GC.AddSend(Packets.NPCLink("No, thanks.", 255));
GC.AddSend(Packets.NPCSetFace(15));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
if ( GC.MyChar.CPs >= 10000)
{
GC.MyChar.CPs -= 10000;
GC.MyChar.VipLevel += 1;
GC.AddSend(Packets.ChatMessage(0, "SYSTEM", GC.MyChar.Name, "Congratulations! Your vip level is " + GC.MyChar.VipLevel + ". Thank you for buying it.", 2001, 0));
GC.Message(2005, GC.MyChar.Name + "Congratulations you succeeded to buy Vip1");
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 3)
{
if (GC.MyChar.CPs >= 15000)
{
if (GC.MyChar.VipLevel == 1)
{
GC.MyChar.CPs -= 15000;
GC.MyChar.VipLevel += 1;
GC.AddSend(Packets.ChatMessage(0, "SYSTEM", GC.MyChar.Name, "Congratulations! Your vip level is " + GC.MyChar.VipLevel + ". Thank you for buying it.", 2001, 0));
GC.Message(2005, GC.MyChar.Name + "Congratulations you succeeded to buy Vip 2");
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("you aren't Vip 1 you must buy Vip 1 frist."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 4)
{
if (GC.MyChar.CPs >= 20000)
{
if (GC.MyChar.VipLevel == 2)
{
GC.MyChar.CPs -= 20000;
GC.MyChar.VipLevel += 1;
GC.AddSend(Packets.ChatMessage(0, "SYSTEM", GC.MyChar.Name, "Congratulations! Your vip level is " + GC.MyChar.VipLevel + ". Thank you for buying it.", 2001, 0));
GC.Message(2005, GC.MyChar.Name + "Congratulations you succeeded to buy Vip 3");
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("you aren't Vip 2 you must buy Vip 2 frist."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
elseif (Control == 5)
{
if (GC.MyChar.CPs >= 25000)
{
if (GC.MyChar.VipLevel == 3)
{
GC.MyChar.CPs -= 25000;
GC.MyChar.VipLevel += 1;
GC.AddSend(Packets.ChatMessage(0, "SYSTEM", GC.MyChar.Name, "Congratulations! Your vip level is " + GC.MyChar.VipLevel + ". Thank you for buying it.", 2001, 0));
GC.Message(2005, GC.MyChar.Name + "Congratulations you succeeded to buy Vip 4");
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("you aren't Vip 3 you must buy Vip 3 frist."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
elseif (Control == 6)
{
if (GC.MyChar.CPs >= 30000)
{
if (GC.MyChar.VipLevel == 4)
{
GC.MyChar.CPs -= 30000;
GC.MyChar.VipLevel += 1;
GC.AddSend(Packets.ChatMessage(0, "SYSTEM", GC.MyChar.Name, "Congratulations! Your vip level is " + GC.MyChar.VipLevel + ". Thank you for buying it.", 2001, 0));
GC.Message(2005, GC.MyChar.Name + "Congratulations you succeeded to buy Vip 5");
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("you aren't Vip 4 you must buy Vip 4 frist."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
elseif (Control == 7)
{
if (GC.MyChar.CPs >= 35000)
{
if (GC.MyChar.VipLevel == 5)
{
GC.MyChar.CPs -= 35000;
GC.MyChar.VipLevel += 1;
GC.AddSend(Packets.ChatMessage(0, "SYSTEM", GC.MyChar.Name, "Congratulations! Your vip level is " + GC.MyChar.VipLevel + ". Thank you for buying it.", 2001, 0));
GC.Message(2005, GC.MyChar.Name + "Congratulations you succeeded to buy Vip 6");
GC.AddSend(Packets.NPCSay("Here you are."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("you aren't Vip 5 you must buy Vip 5 frist."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
اوعا تنسا تدوس F6 وبعد كدا F5
ودة الكود بتاع المكان وى هطحطة فى المسار دة
C:\OldCODB\NPCs.txt
-==(( مربع كود ))==-
0112988 2090 2 0 1002 408 386
وبكدا خلصنا
وبكدا اكون انتهيت عاوز اشوف رددكم الحلوة وبايدك تقيم لو كنت استفدت وبايدك لا برضو
[center]