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.

Custom Fortune

Discussion in 'Requests' started by kkk kk, Jan 18, 2021.

  1. kkk kk

    kkk kk New Member

    Jun 23, 2020
    Likes Received:
    Hiya! I realise that there’s an unlikely chance that people might do this but, it’s a sincere request, please.

    Category: OP Prison/Custom enchants

    Suggested name: Custom fort?

    Spigot/Skript Version: Spigot - 1.8.8, Skript - dev36

    What I want:
    So, I have an OP Prison server and.. I’ve seen one server have infinite fortune i.e it reached up to 3 trillion and stuff. I want something like this with an auto sell (it’s alrighty to not have the auto sell as I could code that in)

    Ideas for commands: /fortune [integer] which gives a fortune crystal of the first argument (integer).

    Ideas for permissions: permission to get the fortune crystal: fortune.give

    When I'd like it by: I don’t really care bout the time

  2. cuddlytrap

    cuddlytrap Member

    Dec 18, 2020
    Likes Received:
    i am confused by what you mean, but this may work :emoji_slight_smile:

    Code (Text):
    2. command /fortune [integer]:
    3.   permission: fortune.give
    4.   trigger:
    5.     give player 1 nether star named "&5&lFortune Crystal" with lore "&7Power Level: &e%arg-integer%"
    6.     send "&e[&5CustomFort&e] &7You have been granted a &5Fortune Crystal &7with a power level of &e%arg-integer%&7!"
    --- Double Post Merged, Feb 21, 2021, Original Post Date: Feb 21, 2021 ---
    if you want the player to get a random fortune crystal levell, you could do something like this:

    Code (Text):
    2. command /fortune:
    3.   permission: fortune.get
    4.   trigger:
    5.     open virtual chest inventory with 3 rows named "&b&lFortune Getter" to player
    6.     set {GreyGlass} to 0
    7.     loop 27 times:
    8.       format gui slot {GreyGlass} of player with gray stained glass pane named " "
    9.       add 1 to {GreyGlass}
    10.     format gui slot 13 of player with nether star named "&9Buy a &5Fortune Crystal&9!" with lore "&7Click here to buy a Fortune Crystal" and "&7Cost: &e10 Exp Levels" to close:
    11.       if player's level is less than 10:
    12.         send "&e[&5CustomFort&e] &7You need more &eExp Levels &7to purchase this."
    13.       else:
    14.         reduce player's level by 10
    15.         set {PowerLevel} to a random integer between 1 and 999999999
    16.         give player 1 nether star named "&5&lFortune Crystal" with lore "&7Power Level: &e%{PowerLevel}%"
    This skript requires the addon: TuSKe
    idk if it requires others xD

Share This Page