The point of the NPC: If you have 40 Bronze Prizes, it takes them away, and then gives you Silver Prize. Is this a good start? I know it may not be and yes I know some stuffs missing, but can anyone finish it or tell me what do to next? I'm so tired 2 am I will check tomorrow sorry if this didn't make sense.
Code:
#region
case 300009:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("If you give me 40 Bronze Prizes, I can give you 1 Silver prize, deal?"));
GC.AddSend(Packets.NPCLink("Sure", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.InventoryContains(2100055, 40)) // Checks if you have 40 Bronze Prizes
{
GC.MyChar.AddItem(2100065, 0); //Adds Silver Prize
GC.MyChar.RemoveItem(GC.MyChar.NextItem(2100055)); // Removes the 40 Bronze Prizes from inventory
}
break;
}
#endregion