Guest User

Losowanie - poprawiony kod

a guest
Jan 24th, 2014
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.31 KB | None | 0 0
  1. #=========================#
  2. #       Stasio88          #
  3. # Skrypt stworzony dla    #
  4. # MPCforum.pl. Losowanie  #
  5. #=========================#
  6.  
  7. # Poprawki by mrkacperek #
  8.  
  9. command /losowanie:
  10.     trigger:
  11.         if player has permission "losowanie.stasio":
  12.             if player has 64 gold ingot:
  13.                 give a gold ingot of thorns 10 named "&4Item-Losowanie" to player
  14.                 send "&aTwoj przedmiot do loterii zostal stworzony!"
  15.                 remove 64 gold ingot from player
  16.             else:
  17.                 send "&c Nie posiadasz &a64 &csztuk Zlota!"
  18.  
  19.  
  20. on right click with gold ingot:
  21.     if player has permission "losowanie.stasio":
  22.         if name of player's tool is "&4Item-Losowanie":
  23.             chance of 20%:
  24.                 send "&2Zaczekaj losuje nagrode..."
  25.                 wait 1 real seconds
  26.                 remove gold ingot from player
  27.                 wait 2 real seconds
  28.                 send "&b&lUWAGA LOSUJE! Poczekaj 5 sekund!"
  29.                 wait 5 real seconds
  30.                 execute console command "/give %player% 310 1"
  31.                 execute console command "/give %player% 311 1"
  32.                 execute console command "/give %player% 312 1"
  33.                 execute console command "/give %player% 313 1"
  34.                 execute console command "/give %player% 276:19 1"
  35.                 apply regeneration 1 to the player for 300 seconds
  36.                 send "&2Otrzymałes zestaw PvP!"
  37.                 broadcast "%player% otrzymal zestaw PvP!"
  38.                 stop
  39.             chance of 90%:
  40.                 send "&2Zaczekaj losuje nagrode..."
  41.                 wait 1 real seconds
  42.                 remove gold ingot from player
  43.                 wait 2 real seconds
  44.                 send "&b&lUWAGA LOSUJE! Poczekaj 5 sekund!"
  45.                 wait 5 real seconds
  46.                 send "&b&lTo nie Twoj dzien... Nic nie wygrales..."
  47.                 stop
  48.             chance of 100%:
  49.                 send "&2Zaczekaj losuje nagrode..."
  50.                 wait 1 real seconds
  51.                 remove gold ingot from player
  52.                 wait 2 real seconds
  53.                 send "&b&lUWAGA LOSUJE! Poczekaj 5 sekund!"
  54.                 wait 5 real seconds
  55.                 execute console command "/give %player% 310 1"
  56.                 execute console command "/give %player% 311 1"
  57.                 execute console command "/give %player% 312 1"
  58.                 execute console command "/give %player% 313 1"
  59.                 execute console command "/give %player% 276:19 1 @sharpness 5"
  60.                 apply regeneration 1 to the player for 300 seconds
  61.                 send "&2Otrzymałes zestaw PvP!"
  62.                 broadcast "%player% otrzymal zestaw super Vipa na naszym serwerze! Gratulujemy"
  63.                 wait 5 real seconds
  64.                 send "Gratuluje wygranej, zyczymy kolejnej super nagrody w przyszlej loterii"
  65.                 stop
Advertisement
Add Comment
Please, Sign In to add comment