Guest User

Untitled

a guest
Oct 10th, 2013
858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.28 KB | None | 0 0
  1. variables:
  2.     {punkty.%player%} = 100   #punkty na start
  3.     {spawn.zombie} = true    # spawn zombie co 10 sekund
  4. options:
  5.     nazwa_zombie: Zombiaczek    # nazwa spawnowanych zombie
  6. on respawn:
  7.     add diamond sword named "&9CS-Wloclawek &6%player%" to player's inventory
  8.     add bow of infinity named "&9Luk! &6%player%" to player's inventory
  9.     add 10 steak named "&9Jedzenie! &6%player%" to player's inventory
  10.     add arrow of power 10 named "&9Szybka strzala! &6%player%" to player's inventory
  11.     add iron helmet named "&9Czapeczka! &6%player%" to the player's helmet
  12.     add iron chestplate named "&9Klata! &6%player%" to the player's chestplate
  13.     add iron leggings named "&9Gacie! &6%player%" to the player's leggings
  14.     add iron boots named "&9Butki! &6%player%" to the player's boots
  15.     wait 1 second
  16.     execute console command "/playsound random.fizz %player%"
  17. on first join:
  18.     set {punkty.%player%} to 100
  19.     add 10 golden apple named "&9Jabluszko! &6%player%" to player's ender chest
  20. on death of player:
  21.     remove diamond sword named "&9CS-Wloclawek &6%player%" from drops
  22.     remove bow of infinity named "&9Luk! &6%player%" from drops
  23.     remove 10 steak named "&9Jedzenie! &6%player%" from drops
  24.     remove arrow of power 10 named "&9Szybka strzala! &6%player%" from drops
  25.     remove iron helmet named "&9Czapeczka! &6%player%" from drops
  26.     remove iron chestplate named "&9Klata! &6%player%" from drops
  27.     remove iron leggings named "&9Gacie! &6%player%" from drops
  28.     remove iron boots named "&9Butki! &6%player%" from drops
  29.     remove xp from drops
  30.     attacker is player:
  31.         add {punkty.%victim%}/10 to {punkty.%attacker%}
  32.         add 1 to the attacker's level
  33.         remove 1 from victim's level
  34.         apply potion of speed 2 to attacker for 5 seconds
  35.         remove 20 from victim's balance
  36.         strike lightning effect at the victim
  37.         if attacker has permission "ranga.gracz":
  38.             set {money} to random integer between 25 and 50
  39.             add {money} to the attacker's balance
  40.             send "&2Dostales %{money}%$ i %{punkty.%victim%}/10% punktow za zabicie %victim%!" to attacker
  41.             stop
  42. on death of zombie:
  43.     remove all drops from drops
  44.     remove xp from drops
  45.     add 3 emeralds to drops
  46. on pickup emerald:
  47.     delete event-entity
  48.     cancel event
  49.     add 1 to player's level
  50.     execute console command "playsound random.orb %player%"
  51. every 10 second:
  52.     if {spawn.zombie} is true:
  53.         spawn zombie at {spawnzombie}
  54.         set name of spawned entity to "{@nazwa_zombie}"
  55. command /zombie:
  56.     trigger:
  57.         set {spawnzombie} to location of player
  58.         send "Ustawiono!"
  59.         stop
  60. command /punkty <offlineplayer = %player%>:
  61.     usage: /punkty <gracz>
  62.     aliases: pkt
  63.     trigger:
  64.         if arg 1 is player:
  65.             send "&9Masz &6%{punkty.%arg 1%}%&9 punktow!"
  66.             stop
  67.         if {punkty.%arg 1%} is not set:
  68.             send "&4Nie ma takiego gracza!"
  69.             stop
  70.         else:  
  71.             send "&9Gracz &6%arg 1%&9 ma &6%{punkty.%arg 1%}%&9 punktow!"
  72.             stop
  73. command /reset:
  74.     trigger:
  75.         loop all players:
  76.             set {punkty.%loop-player%} to 100
  77.             send "&2Usunieto punkty wszystkich graczy!"
  78.    
  79. on consume apple of sharpness 1:              #jedzenie jabłka z ostroscia 1
  80.     apply speed 3 to player for 5 second
  81. on walking on water:                        #odradzanie woda
  82.     heal player by 0.1 hearts
  83. on rightclick on player:
  84.     if player is holding sword:
  85.         send "&6%name of target player%&9 ma&6 %{punkty.%name of target player%}%&9 punktow!"
Advertisement
Add Comment
Please, Sign In to add comment