Skocz do zawartości
  • 0

TurboDrop Pomocy


MaxTheFuck

Pytanie


variables:
    {turbodrop.%player%} = false


on mine of stone:
    if {turbodrop.%player%} is true:
        give 2 diamond to the player
        send "&aTurboDrop!"
    if {turbodrop.%player%} is false:
        give 1 diamond to the player
        send "&cTurboDrop!"

command /turbodrop [<player>] [<text>]:
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&cBlad: &4Poprawne uzycie: /turbodrop [Gracz] [Czas]"
        if arg 1 is set:
            if arg 2 is set:
                broadcast "&8[&aTURBODROP&8] &aTurboDrop wylosowany dla gracza &6%player% &ana czas &6 &aminut."
                set {turbodrop.%player%} to true
                wait arg 2
                broadcast "&cTURBODROP WYGASL"
                set {turbodrop.%player%} to false

 

Nie działą mi wait arg 2 dlaczego?
       

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0
variables:
    {turbodrop.%player%} = false


on mine of stone:
    if {turbodrop.%player%} is true:
        give 2 diamond to the player
        send "&aTurboDrop!"
    if {turbodrop.%player%} is false:
        give 1 diamond to the player
        send "&cTurboDrop!"

command /turbodrop [<player>] [<text>]:
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&cBlad: &4Poprawne uzycie: /turbodrop [Gracz] [Czas]"
        if arg 1 is set:
            if arg 2 is set:
                broadcast "&8[&aTURBODROP&8] &aTurboDrop wylosowany dla gracza &6%player% &ana czas &6 &aminut."
                set {turbodrop.%player%} to true
                set {zmienna.%player%} to arg 2 parsed as number
                wait {zmienna.%player%} second
                broadcast "&cTURBODROP WYGASL"
                set {turbodrop.%player%} to false

 

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/#findComment-77443
Udostępnij na innych stronach

  • 0
8 minut temu, ShroN napisał:

variables:
    {turbodrop.%player%} = false


on mine of stone:
    if {turbodrop.%player%} is true:
        give 2 diamond to the player
        send "&aTurboDrop!"
    if {turbodrop.%player%} is false:
        give 1 diamond to the player
        send "&cTurboDrop!"

command /turbodrop [<player>] [<text>]:
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&cBlad: &4Poprawne uzycie: /turbodrop [Gracz] [Czas]"
        if arg 1 is set:
            if arg 2 is set:
                broadcast "&8[&aTURBODROP&8] &aTurboDrop wylosowany dla gracza &6%player% &ana czas &6 &aminut."
                set {turbodrop.%player%} to true
                set {zmienna.%player%} to arg 2 parsed as number
                wait {zmienna.%player%} second
                broadcast "&cTURBODROP WYGASL"
                set {turbodrop.%player%} to false

 

http://scr.hu/0we7q/seno5

//Nie cytuj całego postu, lub umieść go w spoiler ~bvcz

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/#findComment-77445
Udostępnij na innych stronach

  • 0
variables:
    {turbodrop.%player%} = false


on mine of stone:
    if {turbodrop.%player%} is true:
        give 2 diamond to the player
        send "&aTurboDrop!"
    if {turbodrop.%player%} is false:
        give 1 diamond to the player
        send "&cTurboDrop!"

command /turbodrop [<player>] [<number>]:
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&cBlad: &4Poprawne uzycie: /turbodrop [Gracz] [Czas]"
        if arg 1 is set:
            if arg 2 is set:
                broadcast "&8[&aTURBODROP&8] &aTurboDrop wylosowany dla gracza &6%player% &ana czas &6 &aminut."
                set {turbodrop.%player%} to true
                set {zmienna.%player%} to arg 2 parsed as number
                wait {zmienna.%player%} second
                broadcast "&cTURBODROP WYGASL"
                set {turbodrop.%player%} to false

Zapomniałem zmienić na <number>

 

 

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/#findComment-77446
Udostępnij na innych stronach

  • 0
7 minut temu, ShroN napisał:

variables:
    {turbodrop.%player%} = false


on mine of stone:
    if {turbodrop.%player%} is true:
        give 2 diamond to the player
        send "&aTurboDrop!"
    if {turbodrop.%player%} is false:
        give 1 diamond to the player
        send "&cTurboDrop!"

command /turbodrop [<player>] [<number>]:
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&cBlad: &4Poprawne uzycie: /turbodrop [Gracz] [Czas]"
        if arg 1 is set:
            if arg 2 is set:
                broadcast "&8[&aTURBODROP&8] &aTurboDrop wylosowany dla gracza &6%player% &ana czas &6 &aminut."
                set {turbodrop.%player%} to true
                set {zmienna.%player%} to arg 2 parsed as number
                wait {zmienna.%player%} second
                broadcast "&cTURBODROP WYGASL"
                set {turbodrop.%player%} to false

Zapomniałem zmienić na <number>

http://scr.hu/0we7q/1skv5

//Nie cytuj całego postu ~bvcz

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/#findComment-77448
Udostępnij na innych stronach

  • 0
variables:
    {turbodrop.%player%} = false


on mine of stone:
    if {turbodrop.%player%} is true:
        give 2 diamond to the player
        send "&aTurboDrop!"
    if {turbodrop.%player%} is false:
        give 1 diamond to the player
        send "&cTurboDrop!"

command /turbodrop [<player>] [<number>]:
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&cBlad: &4Poprawne uzycie: /turbodrop [Gracz] [Czas]"
        if arg 1 is set:
            if arg 2 is set:
                broadcast "&8[&aTURBODROP&8] &aTurboDrop wylosowany dla gracza &6%player-arg% &ana czas &6 &aminut."
                set {turbodrop.%player%} to true
                set {zmienna.%player%} to number-arg
                wait {zmienna.%player%} second
                broadcast "&cTURBODROP WYGASL"
                set {turbodrop.%player%} to false

Jak to nie zadziała to już sam nie wiem xd

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/#findComment-77451
Udostępnij na innych stronach

  • 0
1 minutę temu, jahumen napisał:

Nie mozliwe, musisz miec jakas stara zepsuta wersje skripta.

W normalnej, czesc set zmienna to arg 2 parsed as number, dziala bez zarzutow (przynajmniej mi)

Pobiore najnowsza i sprawdze

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/#findComment-77453
Udostępnij na innych stronach

  • 0

variables:
    {turbodrop.%player%} = false


on mine of stone:
    if {turbodrop.%player%} is true:
        give 2 diamond to the player
        send "&aTurboDrop!"
    if {turbodrop.%player%} is false:
        give 1 diamond to the player
        send "&cTurboDrop!"

command /turbodrop [<player>] [<text>]:
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&cBlad: &4Poprawne uzycie: /turbodrop [Gracz] [Czas]"
        if arg 1 is set:
            if arg 2 is set:
                broadcast "&8[&aTURBODROP&8] &aTurboDrop wylosowany dla gracza &6%player% &ana czas &6 &aminut."
                set {turbodrop.%player%} to true
                set {_wait} to "%arg 2% seconds" parsed as timespan
                wait {_wait}
                broadcast "&cTURBODROP WYGASL"
                set {turbodrop.%player%} to false 

Nie dziękuj

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/#findComment-77455
Udostępnij na innych stronach

  • 0
16 godzin temu, krzysek napisał:


variables:
    {turbodrop.%player%} = false


on mine of stone:
    if {turbodrop.%player%} is true:
        give 2 diamond to the player
        send "&aTurboDrop!"
    if {turbodrop.%player%} is false:
        give 1 diamond to the player
        send "&cTurboDrop!"

command /turbodrop [<player>] [<text>]:
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&cBlad: &4Poprawne uzycie: /turbodrop [Gracz] [Czas]"
        if arg 1 is set:
            if arg 2 is set:
                broadcast "&8[&aTURBODROP&8] &aTurboDrop wylosowany dla gracza &6%player% &ana czas &6 &aminut."
                set {turbodrop.%player%} to true
                set {_wait} to "%arg 2% seconds" parsed as timespan
                wait {_wait}
                broadcast "&cTURBODROP WYGASL"
                set {turbodrop.%player%} to false 

Nie dziękuj

Dzięki działą ;D

Odnośnik do komentarza
https://skript.pl/temat/10469-turbodrop-pomocy/#findComment-77475
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ę...