Advertisement
pascal25565

Skript Skill for Nico

Nov 10th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.06 KB | None | 0 0
  1. # Variable = {autoheal.%player%.buyed}
  2.  
  3. command /buyskill [<text>] [<text>]:
  4.     trigger:
  5.         if arg 1 is "autoheal":
  6.             if arg 2 is not set:
  7.                 if {autoheal.%player%.buyed} is not set:
  8.                     if player's balance is greater than or equal to 1000:
  9.                         #Hier werden 1000 Money von den Spieler abgezogen, und die Variable '{autoheal.%player%.buyed}' wird auf 'buyed' gesetzt.
  10.                         remove 1000 from player's balance
  11.                         set {autoheal.%player%.buyed} to "buyed"
  12.                         send "&aDu hast den Skill 'AutoHeal' gekauft für 1000 Money."
  13.                         stop
  14.                     else:
  15.                         send "&cDu hast nicht genügend Geld! %player's balance% / 1000"
  16.                         stop
  17.                 else:
  18.                     send "&cDu hast den Skill 'AutoHeal' bereits gekauft."
  19.                     stop
  20.             else:
  21.                 if arg 2 is "info":
  22.                     send "&aMit dem 'AutoHeal' Skill wirst du jede 10 Minuten geheilt."
  23.                     stop
  24.                    
  25.                    
  26. every 10 minutes:
  27.     loop all players:
  28.         if {autoheal.%loop-player%.buyed} is set:
  29.             #Hier werden alle Spieler die ihre Variable '{autoheal.%loop-player%.buyed}' gesetzt haben geheilt.
  30.             heal the player by 10 hearts
  31.             stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement