Skocz do zawartości
  • 0

Witam pomożecie mi Limit koxow /refili


Pytanie

on any move:
    if player has 21 enchanted golden apple:
        remove 1 enchanted golden apple from player's inventory
        add 1 enchanted golden apple to player's enderchest
        send "&4Nie mozesz posiadac wiecej niz 20 koxow!"
        send "&7Twoj &6kox/y &7zostal odlozony do enderchesta"

Odnośnik do komentarza
https://skript.pl/temat/12514-witam-pomo%C5%BCecie-mi-limit-koxow-refili/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Mi to działa...

on any move:
    if player has 21 enchanted golden apple:
        remove 1 enchanted golden apple from player's inventory
        add 1 enchanted golden apple to player's enderchest
        send "&4Nie mozesz posiadac wiecej niz 20 koxow!"
        send "&7Twoj &6kox/y &7zostal odlozony do enderchesta"

 

Edytowane przez Ixidi
Odnośnik do komentarza
https://skript.pl/temat/12514-witam-pomo%C5%BCecie-mi-limit-koxow-refili/#findComment-87674
Udostępnij na innych stronach

  • 0
  1. on pick up:
  2.     wait 0.1 second
  3.     if amount of enchanted golden apple in player's inventory is greater than 5:
  4.         set {_amount} to amount of enchanted golden apple in player's inventory
  5.         set {_amountend} to {_amount}-5
  6.         set {_add} to "%{_amountend}% enchanted golden apple"
  7.         add "%{_add}%" parsed as item to player's enderchest
  8.         remove all enchanted golden apple from player's inventory
  9.         add 5 enchanted golden apple to player's inventory
  10.         message "&3LimitG»&6Osiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 5, reszte odlozono do twojego enderchestu."
  11.     if amount of ender pearl in player's inventory is greater than 8:
  12.         set {_amount} to amount of ender pearl in player's inventory
  13.         set {_amountend} to {_amount}-8
  14.         set {_add} to "%{_amountend}% ender pearl"
  15.         add "%{_add}%" parsed as item to player's enderchest
  16.         remove all ender pearl from player's inventory
  17.         add 8 ender pearl to player's inventory
  18.         message "&3LimitG»&6Osiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 8, reszte odlozono do twojego enderchestu."
  19.         stop
  20.  
  21. on inventory close:
  22.     if amount of enchanted golden apple in player's inventory is greater than 5:
  23.         set {_amount} to amount of enchanted golden apple in player's inventory
  24.         set {_amountend} to {_amount}-5
  25.         set {_add} to "%{_amountend}% enchanted golden apple"
  26.         add "%{_add}%" parsed as item to player's enderchest
  27.         remove all enchanted golden apple from player's inventory
  28.         add 5 enchanted golden apple to player's inventory
  29.         message "&3LimitG»&6Osiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 5, reszte odlozono do twojego enderchestu."
  30.     if amount of ender pearl in player's inventory is greater than 8:
  31.         set {_amount} to amount of ender pearl in player's inventory
  32.         set {_amountend} to {_amount}-8
  33.         set {_add} to "%{_amountend}% ender pearl"
  34.         add "%{_add}%" parsed as item to player's enderchest
  35.         remove all ender pearl from player's inventory
  36.         add 8 ender pearl to player's inventory
  37.         message "&3LimitG»&6Osiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 8, reszte odlozono do twojego enderchestu."
  38.         stop

masz chyba najlpeij jak sie da jest napisane tylko MSG sobie pozmieniaj 

Odnośnik do komentarza
https://skript.pl/temat/12514-witam-pomo%C5%BCecie-mi-limit-koxow-refili/#findComment-87676
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...