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 Skript armor

Discussion in 'Skript' started by Deleted member 5655, Dec 27, 2017.

Thread Status:
Not open for further replies.
  1. Hello,

    Which kind of Add-on or event can i use to make something like this:
    Code (Skript):
    1. On equip of diamond helmet
    2.     Execute console command "msg %player% You have equipped your helmet.
    Thanks!

     
  2. Best Answer:
    Post #11 by Deleted member 5655, Dec 27, 2017
  3. PotatoGoesMoo

    PotatoGoesMoo Member

    Joined:
    Sep 1, 2017
    Messages:
    20
    Likes Received:
    0
    Hey :emoji_slight_smile:! I don't believe there is an "on equip" event, but seen as alot of players equip their armor with right click, you could try this:
    Code (Skript):
    1. on rightclick with diamond helmet:
    2.     message "You have equipped your helmet."
    Hope I helped!
     
  4. And what if they use their GUI and drag it in?
     
  5. PotatoGoesMoo

    PotatoGoesMoo Member

    Joined:
    Sep 1, 2017
    Messages:
    20
    Likes Received:
    0
    Sorry, I'm only telling you what I know. I've told you my suggestion. However, perhaps you could try to do some fancy work with the "on inventory click" event or something, but besides that, I don't believe there is any "on equip" event according to multiple sources I've looked at.
    --- Double Post Merged, Dec 27, 2017, Original Post Date: Dec 27, 2017 ---
    My bad- Someone actually DID suggest an addon called SharpSK but that comment got no replies whatsoever, so possibly you could look into that.
     
  6. Ar
    Already done that, isn't what I am looking for. It only has on armor equip in global.
     
  7. PotatoGoesMoo

    PotatoGoesMoo Member

    Joined:
    Sep 1, 2017
    Messages:
    20
    Likes Received:
    0
    Hmm... sorry, I have no idea. I've checked everywhere I can find but I don't see anything. Perhaps message a dev?
     
  8. Can you tell me some more about the om inventory click
     
  9. Ouma Shu

    Ouma Shu Member

    Joined:
    Dec 25, 2017
    Messages:
    45
    Likes Received:
    2
    You can do it with SharpSK:
    Code (Skript):
    1.  
    2. On armor equip:
    3.     send "You just equipped an armor!"
     
  10. If you read the topic, you would knew I was not looking for that at all.
     
  11. Ouma Shu

    Ouma Shu Member

    Joined:
    Dec 25, 2017
    Messages:
    45
    Likes Received:
    2
    Then do like that:
    Code (Skript):
    1. On armor equip:
    2.     wait a tick
    3.     if player's helmet is diamond helmet:
    4.         send "You just equipped diamond helmet!" to player
     
  12. That was more what I was looking for! Thanks!
     
  13. Ouma Shu

    Ouma Shu Member

    Joined:
    Dec 25, 2017
    Messages:
    45
    Likes Received:
    2
    No problem. Tell me if it works.
     
  14. Selvati

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    9
    This seems so hostile, everyone is only trying to help, you can't expect people to give you exactly what you want, we try to point you in the right direction, if you want people to just hand you what you're asking for, take your post to the request section.
     
    • Agree Agree x 1
    • Friendly Friendly x 1
  15. Ouma Shu

    Ouma Shu Member

    Joined:
    Dec 25, 2017
    Messages:
    45
    Likes Received:
    2
    Thank you bro to have protected me. =)
     
    • Friendly Friendly x 1
  16. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Yeah dude fuck that guy for trying to help
     
    • Funny Funny x 1
  17. Selvati

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    9
  18. Next problem:

    Code (Skript):
    1. On armor equip:
    2.     wait a tick
    3.     if player's helmet is diamond helmet:
    4.         If {XP.%player%} is smaller than 20000:
    5.              Unequip?!
    --- Double Post Merged, Dec 28, 2017, Original Post Date: Dec 28, 2017 ---
    I clearly said what I was looking for, and that what he replied was not what I was looking for, and now I'm even not allowed to say that?!
     
  19. Selvati

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    9
    The way you typed it had a very hostile/rude tone to it, you should expirement more with your code, I’ve already solved your problem, it’s very obvious, I’m going to leave this one to you to solve so that way you gain more knowledge on the subject, good luck! :9
     
    • Like Like x 1
  20. Thanks. I didn't mean it in a very rude way. I'm from spigot, and this is kinda the way how we say that there. Sorry for that. And I always do experiments with my code, only if I Really can't find it, I'm posting it here.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...