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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

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

/rebirth skript

Discussion in 'Skript' started by dnadany, Dec 14, 2019.

  1. dnadany

    dnadany Member

    Joined:
    Dec 14, 2019
    Messages:
    2
    Likes Received:
    0
    Hey guys , i have made a rebirth skript with help from people on the Skunity discord server, it resets your balance and clears your inventory, but gives you perks such as speed and permission to break bedrock
    now I have one issue, i need someone to test if its working!


    Code (Text):
    1.  
    2. #Rebirth Reload Skript
    3. command /reloadrebirth:
    4.   trigger:
    5.         execute console command "/skript reload rebirth"
    6.  
    7. command /rebirth:
    8.     trigger:
    9.         if player has permission "rebirth.1":
    10.         if player's balance >= 500000000:
    11.         reduce player's balance by 500000000
    12.         wait 1 second
    13.         set player's balance to 0
    14.         clear player's inventory
    15.         execute console command "/pex user %player% add rebirth.2"
    16.         execute console command "/pex user %player% remove rebirth.1"
    17.         execute console command "/pex user %player% add rebirth.speed"
    18.         broadcast "%player% is now on Rebirth 2"
    19.         execute console command "/pex user %player% suffix " [2]"
    20.         else
    21.         message "&4(&c!&4) &cNot enought money!
    22.         message "&4(&c!&4) &cYou need $500,000,000.00!
    23.                    else
    24.         if player has permission "rebirth.2":
    25.         if player's balance >= 1000000000:
    26.         reduce player's balance by 1000000000
    27.         wait 1 second
    28.         set player's balance to 0
    29.         clear player's inventory
    30.         execute console command "/pex user %player% add rebirth.3"
    31.         execute console command "/pex user %player% remove rebirth.2"
    32.         execute console command "/pex user %player% add break.bedrock"
    33.         broadcast "%player% is now on Rebirth 3"
    34.         execute console command "/pex user %player% suffix " [3]"
    35.         else
    36.         message "&4(&c!&4) &cNot enought money!
    37.         message "&4(&c!&4) &cYou need $1,000,000,000.00!
    38.                    else
    39.         if player has permission "rebirth.3":
    40.         message "More Rebirth comming soon!"
    41.     else
    42.         if player's balance >= 100000000:
    43.         reduce player's balance by 100000000
    44.         wait 1 second
    45.         set player's balance to 0
    46.         clear player's inventory
    47.         execute console command "/pex user %player% add rebirth.1"
    48.         broadcast "%player% is now on Rebirth 1"
    49.         execute console command "/pex user %player% suffix " [1]"
    50.         else
    51.         message "&4(&c!&4) &cNot enought money!
    52.         message "&4(&c!&4) &cYou need $100,000,000.00!
    53.  
    54. # Rebirth 2 Special
    55.  
    56. command /myspeed [<text>]:
    57.     usage:
    58.     if player has permission "rebirth.speed":
    59.     if args 1 is not set: /myspeed on/off
    60.     Message "&4(&c!&4) &c/myspeed on/off"  
    61.     if args 1 is set "on":
    62.     execute console command "/speed %player% walk 2"
    63.     Message "&6(&e!&6) &eYou have toggled speed!"
    64.     if args 1 is set "off":
    65.     execute console command "/speed %player% walk 1"
    66.     Message "&6(&e!&6) &eYou have disabled speed!"
    67.  
    68.  
    69. # Rebirth 3 Special
    70.  
    71. on block damage:
    72. if player has permission "break.bedrock":
    73.     if event-block is bedrock:
    74.         if player's tool is diamond pickaxe:
    75.             set event-block to air
    76.             give player bedrock
    77.  
    78.  
     
  2. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    29
    Likes Received:
    1
    I don't know your issue but i saw your code is not placed well

    Code (Text):
    1.  
    2. command /myspeed [<text>]:
    3.     trigger:
    4.         if player has permission "rebirth.speed":
    5.             if arg 1 isn't set::
    6.                 send "d" to player
    7.                 stop
    8.             if arg 1 is "on":
    9.                 execute console command "/speed %player% walk 2"
    10.                 Message "&6(&e!&6) &eYou have toggled speed!"
    11.                 stop
    12.             if arg 1 is "off":
    13.                 execute console command "/speed %player% walk 1"
    14.                 Message "&6(&e!&6) &eYou have disabled speed!"
    15.                 stop
    16.  
    17.  
    18. # Rebirth 3 Special
    19.  
    20. on block damage:
    21.     if player has permission "break.bedrock":
    22.         if event-block is bedrock:
    23.             if player's tool is diamond pickaxe:
    24.                 set event-block to air
    25.                 give 1 bedrockto event-player
    And show me your skript error please
     
  3. dnadany

    dnadany Member

    Joined:
    Dec 14, 2019
    Messages:
    2
    Likes Received:
    0
    hey! i contacted people from the skunity discord and they told me to make the skript again!
     
Loading...