- Code
else if (cmd.Equals("admin", StringComparison.OrdinalIgnoreCase))
{
try
{
Inventory[0] = XmlDatas.ItemDescs[3840];
Inventory[1] = XmlDatas.ItemDescs[3843];
Inventory[2] = XmlDatas.ItemDescs[3841];
Inventory[3] = XmlDatas.ItemDescs[3845];
UpdateCount++;
return;
}
catch
{
psr.SendPacket(new TextPacket()
{
BubbleTime = 0,
Stars = -1,
Name = "",
Text = "Error!"
});
}
}
The Number at "Inventory[0] = XmlDatas."ItemDescs[3840]"" can be chosen by yourself. Inventory[0] is the sword, 1 is the ability Item, 3 is the Armor and 4 is the ring. The rest are the inventory slots.