I'm trying to get the player item command to go only up to +9 even when they try getting +12 items.
This is what I've tried:
Code:
Item.Plus = byte.Parse(Cmd[3]);
if (Item.Plus >= 9)
{
Item.Plus = 9;
}
--------------------------
Item.Plus = byte.Parse(Cmd[3]);
if (Item.Plus = 9)
{
Item.Plus = 9;
}
-------------------------
Item.Plus = (byte)(Math.Min((byte)8, byte.Parse(Cmd[3])));
The only one which somewhat succeeded was the first one which only gave 1 item when typing in /item *** xx 9 x *** xx xx.
But then again the same happened when trying to get a +12.
I also tried editing the rest of the command/re-writing it but that just threw me a bunch of errors.
I know that I can change my packets to the LOTF version of them, which might work, but I don't really know how.
Help Plox.






