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:
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"
else:
set slot 11 of current inventory of player to book named "Lumberjack ✔" with lore "& aBreak 1000 oak logs"
Sincerely, Cupex
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:
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"
else:
set slot 11 of current inventory of player to book named "Lumberjack ✔" with lore "& aBreak 1000 oak logs"
Sincerely, Cupex