- Katılım
- 5 Temmuz 2014
- Mesajlar
- 653
- Elmaslar
- 1.984
- Puan
- 16.070
- Yaş
- 54
- Konum
- Afyon
- Minecraft
- byfatih
Discord:
ofez #6281
Bugün sizlerle kendi yaptığım aspirin skript'ini paylaşacağım.
Peki bu aspirin skripti ne işe yarar? diyecek olursanız, Rpg serverler için; bazı şeyleri tükettiğinizde hastalık kapıyorsunuz ve bunun tedavisi için de aspirin gerekiyor /aspirin yazarak da 10 oyun parasına alabiliyoruz. (Elimizde tutmak kaydıyla sağ tıka basılı tutarak yiyebilirsiniz.)
Dilerseniz skript kodumuza geçelim.
Kod:
on right click with stone button:
if name of player's tool is "&f&lAspirin":
play raw sound "random.eat" at player with pitch 1 volume 10
wait 2 second
if name of player's tool is "&f&lAspirin":
remove 1 stone button named "&f&lAspirin" from player
play raw sound "random.burp" at player with pitch 1 volume 10
heal the player
apply speed 1 to player for 5 second
make console execute command "/effect %player% clear"
on consume:
if chance of 5%:
send "&c Eyvah bu yediğin şey zehirli çıktı!!" to player
apply Hunger 2 to player for 5 second
apply Slowness 2 to player for 5 second
apply Nausea 1 to player for 9999 minute
apply Poison 1 to player for 15 second
send "&c Bir aspirin bulman gerekiyor!!" to player
wait 1 second
push the player backwards
command /aspirin:
trigger:
if player's balance is greater than or equal to 10:
send "&e&l[ &r&cEczane &e&l] &c»&e Geçmiş olsun. İyi günler..." to player
give 1 stone button named "&f&lAspirin" to player
else:
send "&e&l[ &r&cEczane &e&l] &c»&e Malesef yeterli paranız yok!" to player