1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved On inventory click: bug and custom max durability

Discussion in 'Skript' started by Spartan9802, Apr 28, 2017.

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

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Hello,
    I use "on inventory click" to retrieve each placement in a backpack, unfortunately the event "on inventory click" is not called when one remains to squeeze and that one moves the cursor on several slots.
    I really would not use "on inventory close" ...

    Is it possible to increase the maximum durability of a weapon or armor ?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Could I ask why not? It would be better and less hassle than use the inventory click event for this.
    Regarding to your second question, it's not possible, you can do some math and make the durability of the item as your custom durability but that's it.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I did this three years ago and I'm not going to test it right now, but if I remember correctly, negative durability on items make them last longer. diamond_sword:-200 will increase its durability by 200
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    That was fixed in the 1.6.2
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Thank you for your answers, I preferred to use "on inventory click" to realize a function start / invsee but for the backpack and thus make it possible to open two windows for the same backpack, but I thought the system I can do it With "on inventory close" :emoji_wink:

    Agree that the 1.6.2 and fixed that :/
     
Thread Status:
Not open for further replies.

Share This Page

Loading...