#how do I make /repair
1 messages · Page 1 of 1 (latest)
We're not here to skript for you, there's some great tutorials in the pinned messages of both of the other skript-help channels
you can search the docs for the keyword "durability"
there's an expression for an items (current) durability, and its max duability
https://skripthub.net/docs/?id=1119
last line of the example from the doc ^
figure the command part out yourself, we aren't here to spoonfeed you
permission: Nuh.Uh
permission message: There Is Docs For A Reason Buddy.
trigger:
set name of player's tool to "Make It Yourself"
set durability of player's tool to 0```
i'll do it if you pay me
80$
should break the tool :p
How much lol
Check the docs
Itll take you five min to do yourself
this is all you need tbh @grim torrent
Make a command and make it so it sets the durability of the person who runs the command to 1500
For the rest, check the docs and see how to structure a command
and etc
1500???
Why?
That may very well add extra
As was explained above, there’s literally an effect to do this, and an expression to find the maximum durability if needed
command /repair:
permission: repair.tool
trigger:
repair player's tool
@grim torrent
don't bring back dead threads.
There's no such rule and discord's forum system is total ass anyways.
And I wanted people who have same question in the near future to get the answer and not hear 'no spoonfeeding lol'
That’s kinda facts 🗣️🗣️🗣️🗣️🗣️🔥🔥🔥🔥🔥 @arctic harbor
if you’re going to bump an old post…
instead of dropping code without explaining how it works, at least explain how to create the command and combine examples from the docs to teach/explain how it works
so if people were to search, they would actually learn something instead of feeding their spoonfeeding addiction
although your snippet is very simple (and the amount of explaining is minimal) people learning will appreciate it more and you won’t get bashed by others telling you “no spoonfeeding”
Respectfully, shut up 😂
At least I'm helping. I can guarantee you that just dropping a code is way better than giving 0 help like the 7 users who 'contributed' here did. Come here just to say some shit instead of just helping the guy.
I used to be a piece of sh## in Skript, got spoonfed 89128318293 times and now I'm good, I earn a living with Skript. But spoonfeeding bad, we need to waste our time bashing instead of helping the person.
Also, me explaining such a simple and self-explanatory code could be received by Noomkiki as an attempt to undermine his intelligence.
Firstly, “respectfully shut up” isnt very respectful. It’s possible to have a respectful disagreement; i’ve actually had a few people do so when telling me theyve appreciated being spoon-feed.
I’ll give you the same response i gave them: if you’re able to take handouts and go through a trial-and-error learning process, great. However, not everyone (especially new/young skripters) have the discipline or background to make that work.
Not spoon-feeding isnt just “say[ing] some shit”, it’s introducing them to using the documentation and teaching them the process of (ideally independent) problem solving, which are paramount skills in coding.
As for you coming off as rude or judgemental for needing to explain “simple and self-explanatory code”, that relies entirely on your attitude. Also, in environments like this, the way you communicate respect is through patience—which spoon-feeding is anything but
Crazy. One of the worst people when it comes to helping is saying this
mind elaborating and explaining who you're talking about?
If you're talking about x8ight, he's one of the best people in helping new skripters since he actually teaches them something instead of spoonfeeding
x8 is one of the best helpers/teachers here on skunity
it'd be even more crazy if you were talking about them
you have absolutely no clue what you're even saying
if you looked at x8's past message history, it's obvious he's been one of the most helpful people in this discord server
you spewing this false information is rude, unhelpful and extremely hurtful to people who spend hours of their day helping others for no personal benefit
get to know the community and its people before making extremely out-of-touch, hurtful and false statements smh
Read what he said again. He explained exactly why spoon feeding is not good. At the very least explain the code. He was respectful. So respectfully frick off
Im not saying that spoonfeeding is good… im just trying to get across that many of you people who try to “help” go too harsh on new people because you have high standards and expectations
x8 just happens to be one of these individuals
Of course he gives useful information, but it could be delivered better
So say that instead of saying what you said. U could have been clearer about your attitude. That’s all 👍😉. No hard feelings
Also I completely agree that a lot of the helpers can be pretty harsh 😭
d1 yap
😈😭
being harsh isn't a bad thing when it comes to teaching something, if people are ignorant and do not try to learn something it's not a bad thing to be harsh to them to get them back in the right direction; here is an example:
new skripter: can someone make me a script to repair items
helper: we're not here to make scripts for you, try it yourself, then if you experience any issues ask for help again
new skripter: explanation part*
helper: explanation part*
new skripter: I don't get what you're saying, can't you just do it for me?
^^^ this is an example of when being harsh is necessary or they will continue doing it and not learn much, there are a lot of other situations like this.
another example is when they just never check the docs which has the answer to a lot of simple questions that people ask
Listen, guys, I didn't look at x8ight's background, I'm sure he's a good person when helping users who got the basics covered, he probably has helped me too in the past.
But that doesn't mean he should support being overly harsh and rude to brand new users who are still making their very first steps with skript or programming.
If you do this, you won't get my respect or support. If someone is actively making the IT or programming community even more toxic, harsh, hermetic and unwelcome than it already is, he should be condemned for that!
And the thing is, people are so incredibly officious that even I have managed to hear someone tell me he won't spoonfeed me and that I should understand some console error immediately. Basically accussing me of being a complete beginner who should learn basics before asking questions, which is just amusing to hear when you have first downloaded Skript in 2014.
d1
yap
@vague snow is a great person who helped me out greatly when i first started
by not giving me the answers and instead helped me
"FIRSTLY" 🤓 Thank you @arctic harbor I use the Discord search function and your response came up as first result for my question. Bring up old threads, as it's useful for those who know how to search. Keep doing you, King!!! 👑
if you “keep doing you”, then that means to keep spoonfeeding finished code before letting others learn the process and do it themselves
while it is convenient for others who want a copy-paste solution, it will ultimately hurt their potential skill and would not provide any learning value
while i don’t disagree in bumping older threads to provide a summary of how to solve it, i disagree in how this was executed - rather, one should provide a step-by-step summary/instructions on how to create it, so others may learn, understand, and grow
do you have any message proof of x8 being overly harsh and rude?
really, it’s hard to understand why you singled out x8 for making skunity (comparatively to the IT/programming community) more toxic, there isn’t a single message anyone (especially x8) sent in this thread that was overly harsh/rude/toxic
if you’re here to complain about how “toxic” skunity is, you chose the wrong thread as an example
i don’t see what your skript download date has to do with this, if you ask a basic question (especially when it comes to syntax errors) then you can expect a basic response (like “read the error”)
as for being a skript veteran (assuming because you talked about your skript download date) one should know even more about the importance of not spoonfeeding
Isnt this shit already fucking solved? You guys gotta stop paying attention to a dead post. In addition, @grim torrent please put the solved tag
Yeah. We've kinda absolutely and utterly trashed this thread, so lemme apologize to everyone who I have offended (x8ight), I wasn't meaning to insult you, that's why I've said 'respectfully' it was in a joking way, but I think you've kinda caught it.
Now, lemme provide a solution to everyone looking for it.
To create a /repair command, you need to define a command, which is very easy with Skript's syntax!
command /repair:
Now, you need a trigger: word, you can imagine it as a kind of a splitter that divides your command definition from it's actions, more about this in a moment:
command /repair:
trigger:
Next, you need the code that will actually repair player's tool!
command /repair:
trigger:
repair player's tool
Now, if you're perceptive, you can see that this command will actually be usable by everyone with no limits! And you (probably) don't want that.
Adding a permission requirement to a command is very easy, here's the code with permission node added:
command /repair:
permission: skript.repair
trigger:
repair player's tool
We can also give this command a cooldown with a special command cooldown syntax, did you know about it?
command /repair:
permission: skript.repair
cooldown: 5 minutes
trigger:
repair player's tool
You can even add a cooldown and permission message if you want.
command /repair:
permission: skript.repair
permission message: "You don't have the required permission to use this command!"
cooldown: 5 minutes
cooldown message: "This command is on cooldown, please wait!"
trigger:
repair player's tool
Now, again, the simplest version of this command, with just the permission, if you don't want all the extras:
command /repair:
permission: skript.repair
trigger:
repair player's tool
Only staff can
Not true
4/10 rage bait
Ypu can add the solved tag or close this post by right-clicking on it
😂