Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie] Jak odczytać wielkość liter?


Rekomendowane odpowiedzi

Opublikowano

Witam. Chciałbym się zapytać (to jest moim problemem) czy da się zrobić by skrypt czytał czy literka jest duża czy mała... Załóżmy: Robię sobie gildię "LikE" i zapraszam kolegę. On dołącza, ale do gildii "Like". Czy da się zrobić by czytało czy to "E" jest duże czy małe?

 

 

Za sensowne odpowiedzi Like.

Opublikowano

Witam. Chciałbym się zapytać (to jest moim problemem) czy da się zrobić by skrypt czytał czy literka jest duża czy mała... Załóżmy: Robię sobie gildię "LikE" i zapraszam kolegę. On dołącza, ale do gildii "Like". Czy da się zrobić by czytało czy to "E" jest duże czy małe?

 

 

Za sensowne odpowiedzi Like.

Jaki plugin na gildie?

Opublikowano

Jaki plugin na gildie?

Mówimy o skripcie nieprawdaż? Więc skrypt (autorski)

 

while message contains "E"?

Nwm, czy o taki efekt Ci chodzi.

Chodzi mi o to by, np. literka jest E i ktoś wpisze e to mu nie działa, a jak wpisze E to jest gitara i mu działa... Inaczej wytłumaczyć nie umiem xD

Opublikowano

Skript jest na tyle glupi ze nie rozroznia "E" i "e"

Niestety, ale ty jesteś na tyle głupi że nie doceniasz Skripta.

 

Niewiem gdzie chcesz to dodać, ala dla Sk jest różnica w wielkości.

 

If message contains "e"

If message costains "E"

Opublikowano

Niestety, ale ty jesteś na tyle głupi że nie doceniasz Skripta.

 

Niewiem gdzie chcesz to dodać, ala dla Sk jest różnica w wielkości.

 

If message contains "e"

If message costains "E"

Chcę by przy założeniu gildii u mnie trzeba było pisać dużymi literami, message wywala błędy. Inne pomysły?

 

EDIT: Lekko zmieniłem, ale nadal jak wpisałem Q i w grze napisałem q to może być ;/

Opublikowano

po 1 fo 'if message cointains "A"'

po 2 tego sie uzywa tylko w ON CHAT

Opublikowano

po 1 fo 'if message cointains "A"'

po 2 tego sie uzywa tylko w ON CHAT

To Cię zachwycę, ale jak dobrze ustawisz to może być, żeby było też do jakiejś komendy, że musi być ta literka/cyferka czy bóg wie co. Tylko nie wiem jak zrobić by wielkość liter miała znaczenie..

Opublikowano

To jak masz:

 

command /załoz []

(tab)if %arg 1% cointains "a" or "b" i wypisz dalsze litery małe

(tab)(tab)cancel event

(tab)else

(tab)(tab)dalszy kod.

 

To tylko duże przepuści. Chyba, pisane z głowy.

 

Opublikowano

To jak masz: command /załoz [] (tab)if %arg 1% cointains "a" or "b" i wypisz dalsze litery małe (tab)(tab)cancel event (tab)else (tab)(tab)dalszy kod. To tylko duże przepuści. Chyba, pisane z głowy.

Niestety nie pomogło i nie wiem czy jest jakiś sposób na to.. ;<

Opublikowano

         

message "{@tag} &7Uzycie: &8/gildia zaloz [Tag] [Nazwa]"
        argument 1 is "dolacz":
            if argument 2 is set:
                if {gildia.%argument 2%.tag} is set:
                    if {gildia.%player%.zapro} is argument 2:
                        if {gildia.%player%.status} is false:
                            set {gildia.%player%.status} to true
                            delete {gildia.%player%.zapro}
                            set {gildia.%player%.tag} to argument 2
                            message "{@tag} &7Dolaczyles do gildii &8%{gildia.%argument 2%.nazwa}% &7o tagu &8%argument 2%"
                        else:
                            message "{@tag} &7Jestes juz w gildii!"
                    else:
                        message "{@tag} &7Ta gildia wcale Cie nie zaprosila!"
                else:
                    message "{@tag} &7Nie znaleziono gildii o tagu &8%argument 2%"
            else:
                message "{@TAG} &7Podaj tag gildii &cdrukowane litery!
Opublikowano
message "{@tag} &7Uzycie: &8/gildia zaloz [Tag] [Nazwa]"
        argument 1 is "dolacz":
            if argument 2 is set:
                if {gildia.%argument 2%.tag} is set:
                    if {gildia.%player%.zapro} is argument 2:
                        if {gildia.%player%.status} is false:
                            set {gildia.%player%.status} to true
                            delete {gildia.%player%.zapro}
                            set {gildia.%player%.tag} to argument 2
                            message "{@tag} &7Dolaczyles do gildii &8%{gildia.%argument 2%.nazwa}% &7o tagu &8%argument 2%"
                        else:
                            message "{@tag} &7Jestes juz w gildii!"
                    else:
                        message "{@tag} &7Ta gildia wcale Cie nie zaprosila!"
                else:
                    message "{@tag} &7Nie znaleziono gildii o tagu &8%argument 2%"
            else:
                message "{@TAG} &7Podaj tag gildii &cdrukowane litery!

Nie rozumiem zbytnio Twojej 1 linijki. Ma się zaczynać od message?

Opublikowano

czały kod masz


tag: &f[&3PixMGildie&f] #TAG pluginu
variables:
        {g.%player%.status} = false
        {g.%player%.smr} = 0
        {g.%player%.zab} = 0
       
command /gildia [<text>] [<text>] [<text>]:
        aliases: pomoc
        trigger:
            if argument 1 is not set:
                message "?PixMGildie"
                message "&6 /g zaloz&8 [Tag] [Nazwa] - Zakladamy gildie"#            
                message "&6 /g dolacz&8 [Tag] - Dolacza do gildii"#            
                message "&6 /g opusc&8  Gracz opuszcza gildie"#    
                message "&6 /g zapros&8 [Nick] - Zaprasza gracza do gildii"
                message "&6 /g wyrzuc&8 [Nick] - Wyrzucasz gracza z gildii"
                message "&6 /g gracz&8 [Nick]  - Informacje o graczu"            
            argument 1 is "zaloz":
                if argument 2 is set:
                    if argument 3 is set:
                        if {g.%argument 2%.tag} is not set:
                            if {g.%argument 3%.nazwa} is not set:
                                if player has 64 Diamong:
                                    if {gildia.%player%.status} is false:
                                        set {g.%player%.status} to true
                                        set {g.%player%.tag} to argument 2
                                        remove 64 Diamond from player
                                        set {g.%argument 2%.tag} to argument 2
                                        set {g.%argument 2%.nazwa} to argument 3
                                        set {g.%argument 2%.dom} to location of player
                                        set {g.%argument 2%.lider} to player
                                        message "{@tag} &7Utworzyles gildie &8%argument 3% &7o tagu &8%argument 2%"
                                    else:
                                        message "{@tag} &7Jestes juz w gildii!"
                                else:
                                    message "{@tag} &7Aby utworzyc gildie, musisz posiadac potrzebne &6Materialy!"
                            else:
                                message "{@tag} &7Istnieje juz gildia o nazwie &8%argument 3%"
                        else:
                            message "{@tag} &7Istnieje juz gildia o tagu &8%argument 2%"
                    else:
                        message "{@tag} &7Uzycie: &8/g zaloz [Tag] [Nazwa]"
                else:
                    message "{@tag} &7Uzycie: &8/g zaloz [Tag] [Nazwa]"
            argument 1 is "dolacz":
                if argument 2 is set:
                    if {g.%argument 2%.tag} is set:
                        if {g.%player%.zapro} is argument 2:
                            if {g.%player%.status} is false:
                                set {g.%player%.status} to true
                                delete {g.%player%.zapro}
                                set {g.%player%.tag} to argument 2
                                message "{@tag} &7Dolaczyles do gildii &8%{gildia.%argument 2%.nazwa}% &7o tagu &8%argument 2%"
                            else:
                                message "{@tag} &7Jestes juz w gildii!"
                        else:
                            message "{@tag} &7Ta gildia wcale Cie nie zaprosila!"
                    else:
                        message "{@tag} &7Nie znaleziono gildii o tagu &8%argument 2%"
                else:
                    message "{@tag} &7Podaj tag gildii!"
            argument 1 is "opusc":
                if {g.%player%.status} is true:
                    set {g.%player%.status} to false
                    delete {g.%player%.tag}
                    message "{@tag} &7Opusciles gildie"
                    stop
                else:
                    message "{@tag} &7Nie jestes w zadnej gildii!"
            argument 1 is "gracz":
                if argument 2 is not set:
                    message "&3~~~~&a %player% &3~~~~"
                    if {g.%player%.status} is true:
                        message " &7Gildia: &f[&8%{gildia.%player%.tag}%&f]&b %{gildia.%{gildia.%player%.tag}%.nazwa}%"
                    else:
                        message " &3Gildia: &f-"
                    message " &6Zabojstwa: &8%{gildia.%player%.zab}% "
                    message " &6Smierci: &8%{gildia.%player%.smr}% "
                if argument 2 is set:
                    if {gildia.%argument 2%.status} is true or false:
                        message "&3~~~~&a %argument 2% &3~~~~"
                        if {g.%argument 2%.status} is true:
                            message " &7Gildia: &f[&8%{gildia.%argument 2%.tag}%&f]&b %{gildia.%{gildia.%argument 2%.tag}%.nazwa}%"
                        else:
                            message " &7Gildia: &f-"
                        message " &7Zabojstwa: &8%{gildia.%argument 2%.zab}% "
                        message " &7Smierci: &8%{gildia.%argument 2%.smr}%"
                    else:
                        message "{@tag} &7Nie znaleziono gracza o nicku &8%argument 2%"
            argument 1 is "zapros":
                if {gildia.%{g.%player%.tag}%.lider} is player:
                    if argument 2 is set:
                        set {g.%argument 2%.zapro} to {gildia.%player%.tag}
                        message "{@tag} &7Zaprosiles gracza &8%argument 2%"
                    else:
                        message "{@tag} &7Podaj nick gracza!"
                else:
                    message "{@tag} &7By zaprosic musisz byc liderem gildi!"
            argument 1 is "wyrzuc":
                if {g.%{gildia.%player%.tag}%.lider} is player:
                    if argument 2 is set:
                        if {g.%argument 2%.tag} is {gildia.%player%.tag}:
                            set {g.%argument 2%.status} to false
                            delete {g.%argument 2%.tag}
                            message "{@tag} &7Wyrzuciles gracza &8%argument 2% &7ze swojej gildii!"
                            stop
                        else:
                            message "{@tag} &7Nie znaleziono gracza o nicku &8%argument 2%"
                    else:
                        message "{@tag} &7Podaj nick gracza!"
                else:
                    message "{@tag} &7Aby zapraszac graczy musisz byc liderem gildi!"
                         
    on damage:
        if {tp.%victim%} is true:
            set {tp.%victim%} to false
            stop
    on damage:
        if {g.%attacker%.tag} is {gildia.%victim%.tag}:
            cancel event
            message "{@tag} &7Nie mozesz bic &8%victim%" to attacker
    on death:
        add 1 to {g.%attacker%.zab}
        add 1 to {g.%player%.smr}
    on logout:
        if {gildia.%{gildia.%player%.tag}%.lider} is player:
            set {g.%player%.lider} to true
    on join:
        if {gildia.%player%.lider} is true:
            set {g.%{gildia.%player%.tag}%.lider} to player

 
Opublikowano

 

czały kod masz

tag: &f[&3PixMGildie&f] #TAG pluginu
variables:
        {g.%player%.status} = false
        {g.%player%.smr} = 0
        {g.%player%.zab} = 0
       
command /gildia [<text>] [<text>] [<text>]:
        aliases: pomoc
        trigger:
            if argument 1 is not set:
                message "?PixMGildie"
                message "&6 /g zaloz&8 [Tag] [Nazwa] - Zakladamy gildie"#            
                message "&6 /g dolacz&8 [Tag] - Dolacza do gildii"#            
                message "&6 /g opusc&8  Gracz opuszcza gildie"#    
                message "&6 /g zapros&8 [Nick] - Zaprasza gracza do gildii"
                message "&6 /g wyrzuc&8 [Nick] - Wyrzucasz gracza z gildii"
                message "&6 /g gracz&8 [Nick]  - Informacje o graczu"            
            argument 1 is "zaloz":
                if argument 2 is set:
                    if argument 3 is set:
                        if {g.%argument 2%.tag} is not set:
                            if {g.%argument 3%.nazwa} is not set:
                                if player has 64 Diamong:
                                    if {gildia.%player%.status} is false:
                                        set {g.%player%.status} to true
                                        set {g.%player%.tag} to argument 2
                                        remove 64 Diamond from player
                                        set {g.%argument 2%.tag} to argument 2
                                        set {g.%argument 2%.nazwa} to argument 3
                                        set {g.%argument 2%.dom} to location of player
                                        set {g.%argument 2%.lider} to player
                                        message "{@tag} &7Utworzyles gildie &8%argument 3% &7o tagu &8%argument 2%"
                                    else:
                                        message "{@tag} &7Jestes juz w gildii!"
                                else:
                                    message "{@tag} &7Aby utworzyc gildie, musisz posiadac potrzebne &6Materialy!"
                            else:
                                message "{@tag} &7Istnieje juz gildia o nazwie &8%argument 3%"
                        else:
                            message "{@tag} &7Istnieje juz gildia o tagu &8%argument 2%"
                    else:
                        message "{@tag} &7Uzycie: &8/g zaloz [Tag] [Nazwa]"
                else:
                    message "{@tag} &7Uzycie: &8/g zaloz [Tag] [Nazwa]"
            argument 1 is "dolacz":
                if argument 2 is set:
                    if {g.%argument 2%.tag} is set:
                        if {g.%player%.zapro} is argument 2:
                            if {g.%player%.status} is false:
                                set {g.%player%.status} to true
                                delete {g.%player%.zapro}
                                set {g.%player%.tag} to argument 2
                                message "{@tag} &7Dolaczyles do gildii &8%{gildia.%argument 2%.nazwa}% &7o tagu &8%argument 2%"
                            else:
                                message "{@tag} &7Jestes juz w gildii!"
                        else:
                            message "{@tag} &7Ta gildia wcale Cie nie zaprosila!"
                    else:
                        message "{@tag} &7Nie znaleziono gildii o tagu &8%argument 2%"
                else:
                    message "{@tag} &7Podaj tag gildii!"
            argument 1 is "opusc":
                if {g.%player%.status} is true:
                    set {g.%player%.status} to false
                    delete {g.%player%.tag}
                    message "{@tag} &7Opusciles gildie"
                    stop
                else:
                    message "{@tag} &7Nie jestes w zadnej gildii!"
            argument 1 is "gracz":
                if argument 2 is not set:
                    message "&3~~~~&a %player% &3~~~~"
                    if {g.%player%.status} is true:
                        message " &7Gildia: &f[&8%{gildia.%player%.tag}%&f]&b %{gildia.%{gildia.%player%.tag}%.nazwa}%"
                    else:
                        message " &3Gildia: &f-"
                    message " &6Zabojstwa: &8%{gildia.%player%.zab}% "
                    message " &6Smierci: &8%{gildia.%player%.smr}% "
                if argument 2 is set:
                    if {gildia.%argument 2%.status} is true or false:
                        message "&3~~~~&a %argument 2% &3~~~~"
                        if {g.%argument 2%.status} is true:
                            message " &7Gildia: &f[&8%{gildia.%argument 2%.tag}%&f]&b %{gildia.%{gildia.%argument 2%.tag}%.nazwa}%"
                        else:
                            message " &7Gildia: &f-"
                        message " &7Zabojstwa: &8%{gildia.%argument 2%.zab}% "
                        message " &7Smierci: &8%{gildia.%argument 2%.smr}%"
                    else:
                        message "{@tag} &7Nie znaleziono gracza o nicku &8%argument 2%"
            argument 1 is "zapros":
                if {gildia.%{g.%player%.tag}%.lider} is player:
                    if argument 2 is set:
                        set {g.%argument 2%.zapro} to {gildia.%player%.tag}
                        message "{@tag} &7Zaprosiles gracza &8%argument 2%"
                    else:
                        message "{@tag} &7Podaj nick gracza!"
                else:
                    message "{@tag} &7By zaprosic musisz byc liderem gildi!"
            argument 1 is "wyrzuc":
                if {g.%{gildia.%player%.tag}%.lider} is player:
                    if argument 2 is set:
                        if {g.%argument 2%.tag} is {gildia.%player%.tag}:
                            set {g.%argument 2%.status} to false
                            delete {g.%argument 2%.tag}
                            message "{@tag} &7Wyrzuciles gracza &8%argument 2% &7ze swojej gildii!"
                            stop
                        else:
                            message "{@tag} &7Nie znaleziono gracza o nicku &8%argument 2%"
                    else:
                        message "{@tag} &7Podaj nick gracza!"
                else:
                    message "{@tag} &7Aby zapraszac graczy musisz byc liderem gildi!"
                         
    on damage:
        if {tp.%victim%} is true:
            set {tp.%victim%} to false
            stop
    on damage:
        if {g.%attacker%.tag} is {gildia.%victim%.tag}:
            cancel event
            message "{@tag} &7Nie mozesz bic &8%victim%" to attacker
    on death:
        add 1 to {g.%attacker%.zab}
        add 1 to {g.%player%.smr}
    on logout:
        if {gildia.%{gildia.%player%.tag}%.lider} is player:
            set {g.%player%.lider} to true
    on join:
        if {gildia.%player%.lider} is true:
            set {g.%{gildia.%player%.tag}%.lider} to player
 

 

Co mam tu wywnioskować oprócz tego, że dajesz mi gildie?

Opublikowano

Skript rozroznia wielkosc liter, gdy zaznaczysz w configu "case sensivity" czy jakos tak na 'true', jednak tego stanowczo odradzam !

Moze jednak zamienic sobie argument tekstowy, aby zawieral tylko wielkie litery.

			set {_arg2} to arg 2
			replace "a" in {_arg2} with "A"
			replace "b" in {_arg2} with "B"
			replace "c" in {_arg2} with "C"
			replace "d" in {_arg2} with "D"
			replace "e" in {_arg2} with "E"
			replace "f" in {_arg2} with "F"
			replace "g" in {_arg2} with "G"
			replace "h" in {_arg2} with "H"
			replace "i" in {_arg2} with "I"
			replace "j" in {_arg2} with "J"
			replace "k" in {_arg2} with "K"
			replace "l" in {_arg2} with "L"
			replace "m" in {_arg2} with "M"
			replace "n" in {_arg2} with "N"
			replace "o" in {_arg2} with "O"
			replace "p" in {_arg2} with "P"
			replace "q" in {_arg2} with "Q"
			replace "r" in {_arg2} with "R"
			replace "s" in {_arg2} with "S"
			replace "t" in {_arg2} with "T"
			replace "u" in {_arg2} with "U"
			replace "v" in {_arg2} with "V"
			replace "w" in {_arg2} with "W"
			replace "x" in {_arg2} with "X"
			replace "y" in {_arg2} with "Y"
			replace "z" in {_arg2} with "Z"
784091427630431250239.png


Regulamin sygnatur


Opublikowano

 

Skript rozroznia wielkosc liter, gdy zaznaczysz w configu "case sensivity" czy jakos tak na 'true', jednak tego stanowczo odradzam !

Moze jednak zamienic sobie argument tekstowy, aby zawieral tylko wielkie litery.

			set {_arg2} to arg 2
			replace "a" in {_arg2} with "A"
			replace "b" in {_arg2} with "B"
			replace "c" in {_arg2} with "C"
			replace "d" in {_arg2} with "D"
			replace "e" in {_arg2} with "E"
			replace "f" in {_arg2} with "F"
			replace "g" in {_arg2} with "G"
			replace "h" in {_arg2} with "H"
			replace "i" in {_arg2} with "I"
			replace "j" in {_arg2} with "J"
			replace "k" in {_arg2} with "K"
			replace "l" in {_arg2} with "L"
			replace "m" in {_arg2} with "M"
			replace "n" in {_arg2} with "N"
			replace "o" in {_arg2} with "O"
			replace "p" in {_arg2} with "P"
			replace "q" in {_arg2} with "Q"
			replace "r" in {_arg2} with "R"
			replace "s" in {_arg2} with "S"
			replace "t" in {_arg2} with "T"
			replace "u" in {_arg2} with "U"
			replace "v" in {_arg2} with "V"
			replace "w" in {_arg2} with "W"
			replace "x" in {_arg2} with "X"
			replace "y" in {_arg2} with "Y"
			replace "z" in {_arg2} with "Z"

Stary, epic. Jesteś zajebisty, aż Ci dam 10 like :D

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...