void HandleInventoryExp(int ItemID)
{
try
{
//Set new slots
int newslots = Character.Information.Slots + 32;
//If item has been used before
if (Character.Information.ExpandedStorage == 1)
{
//Need to get official message for this
string full = "You allready used this item";
Send(Packet.ChatPacket(7, Character.Information.UniqueID, full, ""));
}
//Continue to update inventory
else
{
MsSQL.UpdateData("UPDATE character SET Slots='" + newslots + "',Storage_Expanded='1' WHERE Name='" + Character.Information.Name + "'");
//Reload character(Teleport same location)
//Todo relocate user after usage
//TMP teleport player to update.
Character.Information.Scroll = true;
StartScrollTimer(500);
}
}
catch (Exception ex)
{
Systems.Debugger.Write(ex);
}
}