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!

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

Daily Quests

Discussion in 'Requests' started by Cupex, Nov 13, 2021.

  1. Cupex

    Cupex Member

    Feb 16, 2020
    Likes Received:
    Hello dear SkUnity Community!
    I need a little script.
    It should work something like this:
    Every day (at a certain time, for example: 3 p.m.) the player receives 3 quests that are randomly selected from a list of all quests that are available. These quests are then displayed in a GUI with the name of the quest and what task you have to do.
    Here is an example: Quest Name: Lumberjack, Task: Destroy 1000 oak logs. Here is a picture how I imagine how the GUI should look like:

    New Quest in.png



    If you click on a quest, the chat says that you have accepted the quest. (You have accepted the 'Lumberjack' quest)

    With the command /quest you can see how much you have completed from the quest.

    When you have completed the quest, it says in the chat that you have completed the quest and you get a reward. (e.g. 100 Coins.). My variable is balance of player

    I ask you to add 9 examples to the list.
    Name: Quest-1,2,3,4,5,6,7,8,9
    Lore: Task from Quest-1,2,3,4,5,6,7,8,9

    I would have written the GUI code like this:
    if {quest.1 ::% player%} is "Lumberjack":
    if {quest.lumberjack ::% player%} is false:
    set slot 11 of current inventory of player to book named "Lumberjack" with lore "& cBreak 1000 oak logs"
    set slot 11 of current inventory of player to book named "Lumberjack ✔" with lore "& aBreak 1000 oak logs"

    Sincerely, Cupex

Share This Page