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 out 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.

Solved RankUP - LevelSystem

Discussion in 'Skript' started by AnonymeEnte, Jul 28, 2019.

Thread Status:
Not open for further replies.
  1. AnonymeEnte

    AnonymeEnte Member

    Joined:
    Jul 28, 2019
    Messages:
    2
    Likes Received:
    0
    German:
    Hey, ich habe ein Skript geschrieben wo man sich Level kaufen kann, ich habe nur ein Problem ich weiß nicht wie ich abfragen kann ob der Spieler in dem Level des vorherigens Levels ist. Ich denke das ganze ist nicht so klar deshalb hier ein Beispiel:

    Man kann sich von Level 1 direkt Level 50 kaufen, das ganze möchte ich nicht.

    Bitte sendet mir den fertigen code Zu!

    Mit freundlichen Grüßen.


    English:
    Hey, I wrote a script where you can buy a level, I just have a problem I do not know how to check if the player is in the level of the previous level. I think the whole thing is not so clear so here's an example:

    You can buy level 50 directly from Level 1, I do not want that.

    Please send me the finished code!

    Yours sincerely.


    Code:
    https://pastebin.com/24snwiSu
     
  2. Azternaut

    Azternaut Member

    Joined:
    Feb 3, 2017
    Messages:
    15
    Likes Received:
    2
    Try to implement this:

    Code (Text):
    1.  
    2. command /rankup [<text>] [<text>] [<number>]:
    3.  trigger:
    4.   if arg 1 is "buy":
    5.    if arg 2 is "schwerter":
    6.     if arg 3 is "50":
    7.      if {Level.%player%} < (arg-3 - 1):
    8.       send "&8» &6&lShinePvP &8┃ &cYou cant buy this insntantly from level %{Level.%player%}%!"
    9.       stop
    10.      if {ttokens.%player%} < 12500000:
    11.       send "&8» &6&lShinePvP &8┃ &cDu hast nicht genug Tokens&8."
    12.       stop
    13.      subtract {ttokens.%player%} by 12500000
    14.      set {Level.%player%} to arg-3
    15.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...