Code:
if (Control == 1)
{
if (MyChar.Silvers >= 50)
{
MyChar.Silvers -= 50;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
MyChar.Teleport(1005, 50, 50);
}
else if (MyChar.Silvers < 50)
{
SendPacket(General.MyPackets.NPCSay("You dont have 50 silvers!!! Go get them now!."));
SendPacket(General.MyPackets.NPCLink("Fine, you Biatch.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
Shouldn't it be
Code:
if (CurrentNPC ==xxxx)
{
if (Control == 1)
{
if (MyChar.Silvers >= 50)
{
MyChar.Silvers -= 50;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
MyChar.Teleport(1005, 50, 50);
}
else if (MyChar.Silvers < 50)
{
SendPacket(General.MyPackets.NPCSay("You dont have 50 silvers!!! Go get them now!."));
SendPacket(General.MyPackets.NPCLink("Fine, you Biatch.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}