Skocz do zawartości
  • 0

System wiadomosci


BlackRode

Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command email [<text>] [<offline player>] [<text>]:
    trigger:
        if arg 1 is "wyslij":
            if arg 3 is set:
                add "%player% - %arg 3%" to yaml list "mail" from file "%arg 2%.yml"
                if arg 2 is online:
                    send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2
                send "&cWysłałeś wiadomość do &6%arg 2%&c! Jej treść to: &6%arg 3%"
        if arg 1 is "odbierz":
            set {_x::*} to yaml list "mail" from file "%arg 2%.yml"
            send "&cWiadomości: %{_x::*}%"
            delete yaml list "mail" from file "%arg 2%.yml"
  
on join:
    set {_x::*} to yaml list "mail" from file "%arg 2%.yml"
    if {_x::*} is set:
        wait 10 tick
        send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2

 

Edytowane przez Bananowiec
Odnośnik do komentarza
https://skript.pl/temat/25040-system-wiadomosci/#findComment-166581
Udostępnij na innych stronach

  • 0
40 minut temu, Bananowiec napisał:

command email [<text>] [<offline player>] [<text>]:
    trigger:
        if arg 1 is "wyslij":
            if arg 3 is set:
                add "%player% - %arg 3%" to yaml list "mail" from file "%arg 2%.yml"
                if arg 2 is online:
                    send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2
                send "&cWysłałeś wiadomość do &6%arg 2%&c! Jej treść to: &6%arg 3%"
        if arg 1 is "odbierz":
            set {_x::*} to yaml list "mail" from file "%arg 2%.yml"
            send "&cWiadomości: %{_x::*}%"
            delete yaml list "mail" from file "%arg 2%.yml"
  
on join:
    set {_x::*} to yaml list "mail" from file "%arg 2%.yml"
    if {_x::*} is set:
        wait 10 tick
        send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2

 

Coś nie do końca :<
Gdy wysyłam wiadomość chyba jest ok, ale jak daje (na drugim koncie) email odbierz pisze "Wiadomosc <none>"

Odnośnik do komentarza
https://skript.pl/temat/25040-system-wiadomosci/#findComment-166597
Udostępnij na innych stronach

  • 0
command email [<text>] [<offline player>] [<text>]:
    trigger:
        if arg 1 is "wyslij":
            if arg 3 is set:
                add "%player% - %arg 3%" to yaml list "mail" from file "%arg 2%.yml"
                if arg 2 is online:
                    send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2
                send "&cWysłałeś wiadomość do &6%arg 2%&c! Jej treść to: &6%arg 3%"
        if arg 1 is "odbierz":
            set {_x::*} to yaml list "mail" from file "%player%.yml"
            send "&cWiadomości: %{_x::*}%"
            delete yaml list "mail" from file "%player%.yml"
  
on join:
    set {_x::*} to yaml list "mail" from file "%player%.yml"
    if {_x::*} is set:
        wait 10 tick
        send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2

Sory, dzisiaj zamyślony chodzę.

Edytowane przez Bananowiec
Odnośnik do komentarza
https://skript.pl/temat/25040-system-wiadomosci/#findComment-166609
Udostępnij na innych stronach

  • 0

Nie no pomagasz a nic nie masz za to więc nikt nie powinien się przeczepiać do błędów :>



 

3 godziny temu, Bananowiec napisał:

command email [<text>] [<offline player>] [<text>]:
    trigger:
        if arg 1 is "wyslij":
            if arg 3 is set:
                add "%player% - %arg 3%" to yaml list "mail" from file "%arg 2%.yml"
                if arg 2 is online:
                    send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2
                send "&cWysłałeś wiadomość do &6%arg 2%&c! Jej treść to: &6%arg 3%"
        if arg 1 is "odbierz":
            set {_x::*} to yaml list "mail" from file "%player%.yml"
            send "&cWiadomości: %{_x::*}%"
            delete yaml list "mail" from file "%player%.yml"
  
on join:
    set {_x::*} to yaml list "mail" from file "%player%.yml"
    if {_x::*} is set:
        wait 10 tick
        send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2

Sory, dzisiaj zamyślony chodzę.

Możesz dodać, że będzie osobny katalog w folderze plugins z wiadomościami a nie plik .yml ??

Czy nie zbyt :< ?

Odnośnik do komentarza
https://skript.pl/temat/25040-system-wiadomosci/#findComment-166638
Udostępnij na innych stronach

  • 0
command email [<text>] [<offline player>] [<text>]:
    trigger:
        if arg 1 is "wyslij":
            if arg 3 is set:
                add "%player% - %arg 3%" to yaml list "mail" from file "Mails/%arg 2%.yml"
                if arg 2 is online:
                    send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2
                send "&cWysłałeś wiadomość do &6%arg 2%&c! Jej treść to: &6%arg 3%"
        if arg 1 is "odbierz":
            set {_x::*} to yaml list "mail" from file "Mails/%player%.yml"
            send "&cWiadomości: %{_x::*}%"
            delete yaml list "mail" from file "Mails/%player%.yml"
  
on join:
    set {_x::*} to yaml list "mail" from file "Mails/%player%.yml"
    if {_x::*} is set:
        wait 10 tick
        send "&cMasz nową wiadomość! Odbierz ją za pomocą &e/email odbierz" to arg 2

 

Odnośnik do komentarza
https://skript.pl/temat/25040-system-wiadomosci/#findComment-166657
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ę...