Skocz do zawartości


Zdjęcie

Czemu nie działa?


Najlepsza odpowiedź Paffcio , 29 May 2016 - 15:50

Daj to w kod bo źle się to czyta, po drugie sekundy w arg1 zapisz i odczytaj tak:

set {_czas} to "%arg-1% seconds" parsed as timespan
wait {_czas}

@down: proszę bardzo :)

Przejdź do postu


  • Zamknięty Temat jest zamknięty
2 odpowiedzi w tym temacie

#1 Dadudze

Dadudze

    Bywalec

  • Użytkownik
  • 174 postów
  • Tesssa

Napisano 29 May 2016 - 15:38

Oto kod

 

command /turbodrop [<text>]:
    permission: turbo.drop
    permission message: &7Nie posiadasz uprawnien!
    trigger:
        set {turbo.drop} to 1
        send "&4&lUWAGA!!! &b&lTurboDrop Zostal Aktywowany na %arg 1% sekund!"
        wait %arg1% seconds
        set {turbo.drop} to 0
        send "&4&lUWAGA!!! &b&lTurboDrop Zostal Zdezaktywowany" to all players
on mine of stone:
    if {turbo.drop} is 0:
        chance of 50.0%:
            send "&4[VillagerSV]&bZdobles Diament!!!." to player
            give diamond to player
        chance of 70.0%:
            send "&4[VillagerSV]&fZdobyles Zelazo!!!!!." to player
            give iron ingot to player
        chance of 50.0%:
            send "&4[VillagerSV]&9Zdobyles Odsydian!!!!!." to player
            give obsidian to player
        chance of 25.0%:
            send "&4[VillagerSV]&2Zdobyles Biblioteczke!!!!!." to player
            give bookshelf to player
        chance of 80.0%:
            send "&4[VillagerSV]&4Zdobyles Redstone!!." to player
            give redstone to player
        chance of 50.0%:
            send "&4[VillagerSV]&0Zdobyles Wegiel!." to player
            give coal to player
        chance of 5.0%:
            send "&4[VillagerSV]&6Zdobyles Zloto!!!!." to player
            give gold ingot to player
        chance of 0.1%:
            send "&4[VillagerSV]&aZdobyles &lEMERALDA!!!!!."
            give emerald to player
    if {turbo.drop} is 1:
        chance of 100.0%:
            send "&4[VillagerSV]&bZdobles Diament!!!." to player
            give diamond to player
        chance of 100.0%:
            send "&4[VillagerSV]&fZdobyles Zelazo!!!!!." to player
            give iron ingot to player
        chance of 100.0%:
            send "&4[VillagerSV]&9Zdobyles Odsydian!!!!!." to player
            give obsidian to player
        chance of 100.0%:
            send "&4[VillagerSV]&2Zdobyles Biblioteczke!!!!!." to player
            give bookshelf to player
        chance of 100.0%:
            send "&4[VillagerSV]&4Zdobyles Redstone!!." to player
            give redstone to player
        chance of 100.0%:
            send "&4[VillagerSV]&0Zdobyles Wegiel!." to player
            give coal to player
        chance of 20.0%:
            send "&4[VillagerSV]&6Zdobyles Zloto!!!!." to player
            give gold ingot to player
        chance of 1.0%:
            send "&4[VillagerSV]&aZdobyles &lEMERALDA!!!!!."
            give emerald to player
command /naprawadrop:
    permission: *
    permission message: &7Nie posiadasz uprawnien!
    trigger:
        set {turbo.drop} to 0

 

Oto logi:

[16:36:54 ERROR]: '%arg1% seconds' is not a time span (sk9.sk, line 22: wait %arg1% seconds')


Użytkownik Dadudze edytował ten post 29 May 2016 - 16:01


craftportal

Craftserve to największy i najlepszy polski hosting serwerów Minecraft, jest solidny i tani więc go polecam

#2 Paffcio

Paffcio

    null

  • Użytkownik+
  • 459 postów

Napisano 29 May 2016 - 15:50   Najlepsza odpowiedź

Daj to w kod bo źle się to czyta, po drugie sekundy w arg1 zapisz i odczytaj tak:

set {_czas} to "%arg-1% seconds" parsed as timespan
wait {_czas}

@down: proszę bardzo :)


Użytkownik Paffcio edytował ten post 29 May 2016 - 16:00

.Paffcio94-Siema.png

.


#3 Dadudze

Dadudze

    Bywalec

  • Użytkownik
  • 174 postów
  • Tesssa

Napisano 29 May 2016 - 16:00

działa dzięki :-)