Code:
#region Escort Chief
case 30165:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Do you want to clear your inventory? It's free.");
dialog.Option("Yes, actually i do.", 1);
dialog.Option("Just passing by.", 255);
dialog.Send();
break;
}
case 1:
{
dialog.Text("Are you sure?");
dialog.Option("Yes, i am.", 2);
dialog.Option("No, i don't know what i was thinking.", 255);
dialog.Send();
break;
}
case 2:
{
foreach (Game.Item I in GC.MyChar.Inventory)
GC.AddSend(Packets.ItemPacket(I.UID, 0, 3));
GC.MyChar.Inventory = new ArrayList(40);
dialog.Text("Well it's done.");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
}
break;
}
#endregion
Code:
foreach (Game.Item I in GC.MyChar.Inventory)
GC.AddSend(Packets.ItemPacket(I.UID, 0, 3));
GC.MyChar.Inventory = new ArrayList(40);