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.

Solved I need help with Skript for Minecraft server

Discussion in 'Skript' started by Zan, Apr 26, 2018.

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

    Zan Member

    Joined:
    Apr 26, 2018
    Messages:
    6
    Likes Received:
    0
    Hello,
    i need help with creating a skript. I want to set player exp to 0 when he dies.


    Best regards,
    Zan

     
  2. Best Answer:
    Post #10 by XSKRIPTX, Apr 26, 2018
  3. JustADev

    JustADev Well-Known Member

    Joined:
    Apr 8, 2017
    Messages:
    380
    Likes Received:
    9
    You don't need to, I mean, when they die, they lose all of their xp already.. so what's the point
     
  4. Z

    Zan Member

    Joined:
    Apr 26, 2018
    Messages:
    6
    Likes Received:
    0
    Thats the problem, they don't lose all of their exp, thats why i need skript
     
  5. JustADev

    JustADev Well-Known Member

    Joined:
    Apr 8, 2017
    Messages:
    380
    Likes Received:
    9
    Code (Skript):
    1. on death of player:
    2.     cancel the drops of experience
    This requires TusKE 1.0 Addon
     
  6. Z

    Zan Member

    Joined:
    Apr 26, 2018
    Messages:
    6
    Likes Received:
    0
    Thanks for the help but i have a problem with TusKE 1.0 Addon, its not working on my server (http://prntscr.com/jaebsh). I even tried with previous versions of TusKE and also doesn't work.
     
  7. JustADev

    JustADev Well-Known Member

    Joined:
    Apr 8, 2017
    Messages:
    380
    Likes Received:
    9
    Do you have vault installed?
     
  8. Z

    Zan Member

    Joined:
    Apr 26, 2018
    Messages:
    6
    Likes Received:
    0
    Ofcourse i have
     
  9. JustADev

    JustADev Well-Known Member

    Joined:
    Apr 8, 2017
    Messages:
    380
    Likes Received:
    9
    What server ver do you have
     
  10. Z

    Zan Member

    Joined:
    Apr 26, 2018
    Messages:
    6
    Likes Received:
    0
  11. X

    XSKRIPTX Member

    Joined:
    Dec 26, 2017
    Messages:
    18
    Likes Received:
    1
    Code (Skript):
    1. set player's level to <NUMBER>
    example 1:
    Code (Skript):
    1. set player's level to 10
    example 2:
    Code (Skript):
    1. command /setlvl <player> <number>:
    2.     trigger:
    3.         if arg 1 is not set:
    4.             send "set a player!"
    5.         else:
    6.             if arg 2 is not set:
    7.                 send "set a number of exp"
    8.             else:
    9.                 set arg-1's level to arg 2
    10.                 send "%arg-1%'s lvl is now %arg-2%
     
    #10 XSKRIPTX, Apr 26, 2018
    Last edited: Apr 26, 2018
    • Like Like x 1
    • Informative Informative x 1
  12. Z

    Zan Member

    Joined:
    Apr 26, 2018
    Messages:
    6
    Likes Received:
    0
    Thanks for the help! It worked.
     
  13. X

    XSKRIPTX Member

    Joined:
    Dec 26, 2017
    Messages:
    18
    Likes Received:
    1
    ^^
     
Thread Status:
Not open for further replies.
Loading...