I'd like to get Mana pills working, so my players can refresh mana, please help me out with this, I'm using powersoruce CO, it's almost complete.
else if (ItemParts[0] == "1001040")//SoulPill
{
CurMP += 2000;
if (CurMP > MaxMP)
CurMP = MaxMP;
MyClient.SPack(General.MPack.Vital(UID, 2, CurMP));
RemoveItem(ItemUID);
}
case "1001040": // SoulPill
{
if (CurMP != MaxMP)
{
CurMP += 2000;
if (CurMP > MaxMP)
CurMP = MaxMP;
LiveManager.SendPacket(SystemControl.MyPackets.Vital((long)UID, 2, CurMP));
RemoveItem(ItemUID);
}
break;
}
else if (ItemParts[0] == "1001040")//SoulPill
{
CurMP += 2000;
if (CurMP > MaxMP)
CurMP = MaxMP;
MyClient.SendPacket(General.MyPackets.Vital(UID, 2, CurMP));
RemoveItem(ItemUID);
}