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

Prośba o napisanie prostego skryptu na pkt


koslsjshshs

Rekomendowane odpowiedzi

Opublikowano

Hej,

 

Czy mógł by ktoś napisać mi prosty skrypt na pkt działał by on tak:

 

Ktoś zniszczy klocek glowstone to dostanie 45 pkt

Ktoś zabije gracza dostanie 25 pkt

Pod komendą /pkt będzie pokazywało się ile już pkt zebrałeś 

Po kliknięciu prawym przyciskiem na gwiazdę witchera otwiera się GUI w którym jest np. Dirt za 10 pkt i po kliknięciu na niego wykonuje się komenda np. gm 1

i oczywiście po zakupie zabiera graczowi tyle pkt ile kosztowała komenda 

 

Z góry dziękuje.

Opublikowano
options:
    cash_creative: 1000 #Kasa za Creative
variables:
    points.%player% = 0
    
on break of glowstone:
    add 45 to {points.%player%}
on death of player:
    attacker is a player:
        add 25 to {points.%player%}
command /pkt:
    trigger:
        if {points.%player%} is set:
            send "&7Twoje punkty: &6%{points.%player%}"
        else:
            send "&cBrak punktów :("
on click with nether star:
    open chest with 3 rows named "&3Nether Shop" to player
    format slot 0 of player with 1 of Paper named "&6GM 1" to close then run [if {points.%player%} is greater than {@cash_creative}:]->[execute player command "gamemode 1"]->[send "&aZakupiles Creative"]->[remove {@cash_creative} from {points.%player%}] 

­

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Opublikowano
options:
    cash_creative: 1000 #Kasa za Creative
variables:
    points.%player% = 0
    
on break of glowstone:
    add 45 to {points.%player%}
on death of player:
    attacker is a player:
        add 25 to {points.%player%}
command /pkt:
    trigger:
        if {points.%player%} is set:
            send "&7Twoje punkty: &6%{points.%player%}"
        else:
            send "&cBrak punktów :("
on click with nether star:
    open chest with 3 rows named "&3Nether Shop" to player
    format slot 0 of player with 1 of Paper named "&6GM 1" to close then run [if {points.%player%} is greater than {@cash_creative}:]->[execute player command "gamemode 1"]->[send "&aZakupiles Creative"]->[remove {@cash_creative} from {points.%player%}] 

­

 

@JimForce

 

Dzięki tylko są 3 błędy 

 

post-857601-0-14014600-1448215325.png

Opublikowano

­Posiadasz nową wersje SkQuery i plugin WildSkript?

 

options:
    cash_creative: 1000 #Kasa za Creative
variables:
    points.%player% = 0
    
on break of glowstone:
    add 45 to {points.%player%}
on death of player:
    attacker is a player:
        add 25 to {points.%player%}
command /pkt:
    trigger:
        if {points.%player%} is set:
            send "&7Twoje punkty: &6%{points.%player%}%"
        else:
            send "&cBrak punktów :("
on click with nether star:
    open chest with 3 rows named "&3Nether Shop" to player
    format slot 0 of player with 1 of Paper named "&2Creative" to close then run [if {points.%player%} is greater than {@cash_creative}:]->[execute player command "gamemode 1"]->[send "&aZakupiles Creative"]->[remove {@cash_creative} from {points.%player%}] 

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Opublikowano

 

­Posiadasz nową wersje SkQuery i plugin WildSkript?

 

 

options:
    cash_creative: 1000 #Kasa za Creative
variables:
    points.%player% = 0
    
on break of glowstone:
    add 45 to {points.%player%}
on death of player:
    attacker is a player:
        add 25 to {points.%player%}
command /pkt:
    trigger:
        if {points.%player%} is set:
            send "&7Twoje punkty: &6%{points.%player%}%"
        else:
            send "&cBrak punktów :("
on click with nether star:
    open chest with 3 rows named "&3Nether Shop" to player
    format slot 0 of player with 1 of Paper named "&2Creative" to close then run [if {points.%player%} is greater than {@cash_creative}:]->[execute player command "gamemode 1"]->[send "&aZakupiles Creative"]->[remove {@cash_creative} from {points.%player%}] 

 

@JimForce

@MsDaniel55

 

Tak mam najnowsze teraz znikł jeden błąd ( to z /pkt już naprawione ) 

 

post-857601-0-37322700-1448216891.png

 

Ps. Mam skquery 4.0 i Wildskript 1.8

Opublikowano

to: [if {points.%player%} is greater than {@cash_creative}:]->[execute player command "gamemode 1"]->[send "&aZakupiles Creative"]->[remove {@cash_creative} from {points.%player%}]

trzeba rozpisac jako nowa komenda:

command /jakaskomenda:

    trigger:

        if {points.%player%} is greater than {@cash_creative}:

            execute player command "gamemode 1"

            send "&aZakupiles Creative"

            remove {@cash_creative} from {points.%player%}

a tam daj w tym gui:

 to close then run [execute player command "jakaskomenda"]

Opublikowano

to: [if {points.%player%} is greater than {@cash_creative}:]->[execute player command "gamemode 1"]->[send "&aZakupiles Creative"]->[remove {@cash_creative} from {points.%player%}]

trzeba rozpisac jako nowa komenda:

command /jakaskomenda:

    trigger:

        if {points.%player%} is greater than {@cash_creative}:

            execute player command "gamemode 1"

            send "&aZakupiles Creative"

            remove {@cash_creative} from {points.%player%}

a tam daj w tym gui:

 to close then run [execute player command "jakaskomenda"]

@MsDaniel55

@JimForce

Ok teraz działa ale nie wyświetla się żaden papier ani nic po prostu puste pole jest w tym gui i jak się na nie kliknie komenda się wykonuje ale nie zabiera pkt ani nie mówi jak nie masz pkt że nie możesz kupić

 

post-857601-0-62238000-1448218988.png

post-857601-0-55611100-1448219022.png

 

ROBI SIĘ TAK ŻE ZABIERA PKT NA MINUS !!!

Opublikowano

W variables daj zmiwnna w {} bo jest bez.. ta kasa

 

I jak jest np {zmienna.%player%} to zamień wszędzie . Na :: czyli np {zmienna::%player%} tak jest poprawnie

Co do kasy na minusie to daj zamiast if {points.%player%} is greater than {@cash_creative}

to:

if {points::%player%} >= {@cash_creative}:

Co do Bugu to po open chest with .... daj pod spodem wait 3 ticks

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...