niccosaint

ThirstBar 1.0 (Skript)

Nov 16th, 2014
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.28 KB | None | 0 0
  1. # =================
  2. # ThirstBar by niccosaint
  3. # Zakazane:
  4. # - Usuwanie tresci o autorze!                
  5. # - Udostepnaniu skryptu innym!              
  6. # - Podszywanie sie pod autora!              
  7. # - Uzywanie kodu skryptu w swoich skryptach!
  8. # - Zarabianie na skrypcie!
  9. # Dozwolone:
  10. # - Zmienianie configu na wlasne potrzeby
  11. # - Dodawanie wlasnego kodu
  12. # =================
  13.  
  14. # Konfiguracja
  15. options:
  16. # Na jakich swiatach skrypt bedzie dzialal ?
  17.     world: "Swiat1"
  18.     world2: "Swiat2"
  19. # Co ile sekund bedzie schodzilo pragnienie ?
  20.     cd: 30
  21. # Koniec konfigu
  22. # NIE DOTYKAC! xD
  23. on xp spawn:
  24.     cancel event
  25. every {@cd} seconds:
  26.     loop all players in {@world} or {@world2}:
  27.         if loop-player's level > 100:
  28.             if loop-player's level > 149:
  29.                 apply regeneration 1 to loop-player for 10 seconds
  30.                 reduce loop-player's level by 2
  31.             else:
  32.                 apply regeneration 1 to loop-player for 3 seconds
  33.                 set loop-player's level to 100
  34.         if loop-player's level < 5:
  35.             send "&3Wody..." to loop-player
  36.         if loop-player's level > 1:
  37.             reduce loop-player's level by 1
  38.         else:
  39.             kill loop-player
  40.             set loop-player's level to 100
  41.            
  42. on drink:
  43.     if player is in {@world} or {@world2}:
  44.         if player's tool is water bottle named "&7Czysta woda":
  45.             increase player's level by 10
  46.         else if player's tool is water bottle:
  47.             increase player's level by 5
  48.             chance of 10%:
  49.                 apply poison 1 to player for 10 seconds
  50. on eat:
  51.     if player is in {@world} or {@world2}:
  52.         if player's tool is apple or melon:
  53.             increase player's level by 2
  54.         if player's tool is soup:
  55.             increase player's level by 3
  56.         if player's tool is carrot or potato:
  57.             increase player's level by 1
  58.         if player's tool is golden apple or enchanted golden apple:
  59.             increase player's level by 10          
  60.                    
  61. command /water [<text>]:
  62.     permission: water.admin
  63.     permission message: &4Brak dostepu
  64.     trigger:
  65.         if arg 1 is not set:
  66.             send "&6&m----------&6< &4ThirstBar by niccosaint &6>&6&m----------" to player
  67.             send "&b/water get &a- Otrzymaj butelke czystej wody" to player
  68.             send "&b/water refill &a- Zaspokoj pragnienie" to player
  69.             send "&6&m------------------------------------" to player
  70.         if arg 1 is "get":
  71.             give 1 water bottle named "&7Czysta woda" to player
  72.         if arg 1 is "refill":
  73.             set player's level to 100
Advertisement
Add Comment
Please, Sign In to add comment