Jump to content
  • 0

Skripting (/Dupe & /Toggle)


FonderGaming

Question

I'm making a Dupe server, and without knowledge of skripting, I went online and looked at a tutorial. It looked pretty good so I copied what was on the tutorial and run /skript reload dupe, just to be greeted with "Found 10 Errors" or whatever it says. This is the skript:image.thumb.png.38068c2c87acb2ad2b6d5cd72f35c6bd.pngIf someone who knows a dupe skript can read this and tell me a way to fix it, please. Go ahead.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hey there.

You probably got an indentation error and errors related to loops.

Here, I've made one for you. Copy paste this, save, reload and enjoy. 🙂

(untested, report any errors if any)

every 10 seconds:
    give (all players where [{ri::*} contains input's uuid]) random element of all items

command dupe:
    trigger:
        give player player's tool

command toggle:
    trigger:
        if {ri::*} contains player's uuid:
            remove player's uuid from {ri::*}
            send "&7You will &cno longer &7recieve random items."
            stop
        add player's uuid to {ri::*}
        send "&7You will &anow &7recieve random items every &a10 seconds&7."

 

Next time, use the Skript category to post skript related questions.

Edited by CoolProgrammer
Small typo.

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

  • 0

It still has 1 error. /toggle does not work. Error message:

 

Cant understand this condition/effect: give all players (random element of all items) where [{ri::*} contains input's uuid] (dupe.sk, line 2: give all players (random element of all items) where [{ri::*} contains input's uuid])

Edited by FonderGaming
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...