Solved Formula to set the only specific slots in an inventory.

Discussion in 'Plugin Development' started by ItsComits, Dec 30, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    ItsComits

    Hello, I am wondering if there is a much shorter way of getting these slots:
    [​IMG]
    Currently, I am doing
    (slot > 9 && slot < 17 || slot > 18 && slot < 26 || slot > 27 && slot < 35 || slot > 36 && slot < 44)
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    ItsComits

  4. Offline

    timtower Administrator Administrator Moderator

    @ItsComits module 9, then check if between 0 and 8
    Then start counting at 9 till 45

    Or just keep the old system while fixing the ( and )
    It is good and solid.
     
    Last edited: Dec 30, 2017
Thread Status:
Not open for further replies.

Share This Page