on any move:
loop all items in player's inventory:
if level of protection of loop-item is 4:
enchant loop-item with protection 3
send "&7Zamieniono enchant!"
if level of protection of player's helmet is 4:
enchant player's helmet with protection 3
send "&7Zamieniono enchant!"
if level of protection of player's chestplate is 4:
enchant player's chestplate with protection 3
send "&7Zamieniono enchant!"
if level of protection of player's leggings is 4:
enchant player's leggings with protection 3
send "&7Zamieniono enchant!"
if level of protection of player's boots is 4:
enchant player's boots with protection 3
send "&7Zamieniono enchant!"
if player have golden apple:1:
set {_goldenapple} to number of golden apple:1 in player's inventory
remove {_goldenapple} of golden apple:1 from player
if player have golden apple:
set {_goldenapple2} to number of golden apple in player's inventory
remove {_goldenapple2} of golden apple from player
if player have glass bottle:
set {_glassbottle} to number of glass bottle in player's inventory
remove {_glassbottle} of glass bottle from player
if player have boat:
set {_boat} to number of boat in player's inventory
remove {_boat} of boat from player
Pytanie
takMordo 0
on any move: loop all items in player's inventory: if level of protection of loop-item is 4: enchant loop-item with protection 3 send "&7Zamieniono enchant!" if level of protection of player's helmet is 4: enchant player's helmet with protection 3 send "&7Zamieniono enchant!" if level of protection of player's chestplate is 4: enchant player's chestplate with protection 3 send "&7Zamieniono enchant!" if level of protection of player's leggings is 4: enchant player's leggings with protection 3 send "&7Zamieniono enchant!" if level of protection of player's boots is 4: enchant player's boots with protection 3 send "&7Zamieniono enchant!" if player have golden apple:1: set {_goldenapple} to number of golden apple:1 in player's inventory remove {_goldenapple} of golden apple:1 from player if player have golden apple: set {_goldenapple2} to number of golden apple in player's inventory remove {_goldenapple2} of golden apple from player if player have glass bottle: set {_glassbottle} to number of glass bottle in player's inventory remove {_glassbottle} of glass bottle from player if player have boat: set {_boat} to number of boat in player's inventory remove {_boat} of boat from player
Dałoby rade żeby nie on any movement:
tylko every 5 seconds ???
bo wtedy wypiedala 300bledow
Odnośnik do komentarza
Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.