i need help.. i want to make a npc which tells: exchange 2kk silvers for 2k cps
then if u give the npc 2,000,000 silvers it gives u 2,000 cps
then if u give the npc 2,000,000 silvers it gives u 2,000 cps
if (CurrentNPC == 74547)
{
SendPacket(General.MyPackets.NPCSay("I can exchange 2,000,000 silvers into 2,000 cps. Do you want to trade?"));
SendPacket(General.MyPackets.NPCLink("Yes", 1));
SendPacket(General.MyPackets.NPCLink("No", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 74547)
{
if (Control == 1)
{
if (MyChar.Silvers >= 2000000)
{
MyChar.Silvers -= 2000000;
MyChar.CPs += 2000;
Drop(); //dont need this but i use it to refresh the client
}
}
}
if (CurrentNPC == 7501)
{
SendPacket(General.MyPackets.NPCSay("Do you need Conquer Points? Give me 2M Silvers and ill give you 2k Cps"));
SendPacket(General.MyPackets.NPCLink("Ok Sweet", 1));
SendPacket(General.MyPackets.NPCLink("No Thanks, Rip Off Much!", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 7501)
{
if (Control == 1)
{
if (MyChar.Silvers >= 2000000)
{
MyChar.Silvers -= 2000000;
MyChar.CPs += 2000;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
}
}
}