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

Skrypt CobleX


Shazad

Rekomendowane odpowiedzi

Opublikowano

Witam. Napisze mi ktoś skrypt na CobleX z byle jakmiś itemami. Ma tak działać: Po wpisaniu komendy /cobblex da ci cobblex jak masz 9staków cobbla.

Opublikowano


options:

nazwa: "&3CobbleX"

server: &6[SM&bHC]

enchant: thorns 2

cobblex: sponge

command /cx:

trigger:

player has 576 cobblestone:

remove 576 cobblestone from player

clear {cobblex.%player%}

wait a tick

give a {@cobblex} of {@enchant} named {@nazwa} to the player

send "&aDostaleś CobbleX"

command /cobblexdodaj [<item>]:

aliases: /cd

permission: cobblex.dodaj

trigger:

if argument is item:

add argument 1 to {cobblelose::*}

send "{@server} &2&lDodales do listy: &9%arg 1%!"

stop

if argument is not set:

send "{@server} &2&lBlad: /cobblexdodaj (item)"

stop

command /cobblexusun [<item>]:

aliases: /cu

permission: cobblex.usun

trigger:

if argument is item:

remove argument 1 from {cobblelose::*}

send "{@server} &2&lUsuneles %arg 1%!"

stop

if argument is not set:

send "{@server} &2&lBlad: /cobblexusun (item)"

stop

command /cobblexusunall:

permission: usun.all

trigger:

clear {cobblelose::*}

send "{@server} &3&lUsuneles cala liste!"

stop

command /cobblexdodajall:

permission: dodaj.all

trigger:

add all items to {cobblelose::*}

send "{@server} &3&lDodales do listy wszystkie przedmioty w grze!"

command /cobblexpomoc:

permission: dropzcx.pomoc

trigger:

send "&3===============&2&lAdminPanelcobblex&3================"

send "&2| &1/cobblexdodaj (itemek) &2| Dodaje itemek do dropu"

send "&2| &1/cobblexusun (itemek) &2| Usuwa itemek z dropu"

send "&2| &1/cobblexusunall &2| Czysci liste dropu"

send "&2| &1/cobblexdodajall &2| Dodaje do dropu wszystkie ity z gry"

send "&2| &1/cobblexdrop &2| Drop z marmuru!"

send "&2| &1Po reloadu skryptu itemki sie resetuja!"

send "&3===============&2&lAdminPanelcobblex&3================"

on break of {@cobblex}:

cancel event

set event-block to air

drop a random item of {cobblelose::*} at event-block

ŁAP :D

Opublikowano

@1361622928-U485574.pngIrek321321 Ten skrypt nie podziała, bo parsowanie jest robione już na samym początku [<item>]

Trzeba usunąć if argument is item:­

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

Opublikowano

Postanowiłem że zmienie cały skrypt i napisze autorski bo ten troche obciąza serwer i czasem sie buguje :/ Może zdąże dziś to dodam ^^

Opublikowano
options:
        nazwa: "&3CobbleX"
        server: &6[SM&bHC]
        enchant: thorns 2
        cobblex: sponge
command /cx:
        trigger:
                player has 576 cobblestone:
                        remove 576 cobblestone from player
                        clear {cobblex.%player%}
                        wait a tick
                        give a {@cobblex} of {@enchant} named {@nazwa} to the player    
                        send "&aDostaleś CobbleX" 
command /cobblexdodaj [<item>]:
        aliases: /cd
        permission: cobblex.dodaj
        trigger:
                if argument is item:
                        add argument 1 to {cobblelose::*}
                        send "{@server} &2&lDodales do listy: &9%arg 1%!"
                        stop
                if argument is not set:
                        send "{@server} &2&lBlad: /cobblexdodaj (item)"
                        stop
command /cobblexusun [<item>]:
        aliases: /cu
        permission: cobblex.usun
        trigger:
                if argument is item:
                        remove argument 1 from {cobblelose::*}
                        send "{@server} &2&lUsuneles %arg 1%!"
                        stop
                if argument is not set:
                        send "{@server} &2&lBlad: /cobblexusun (item)"
                        stop
command /cobblexusunall:
        permission: usun.all
        trigger:
                clear {cobblelose::*}
                send "{@server} &3&lUsuneles cala liste!"
                stop
command /cobblexdodajall:
        permission: dodaj.all
        trigger:
                add all items to {cobblelose::*}
                send "{@server} &3&lDodales do listy wszystkie przedmioty w grze!"
command /cobblexpomoc:
        permission: dropzcx.pomoc
        trigger:
                send "&3===============&2&lAdminPanelcobblex&3================"
                send "&2| &1/cobblexdodaj (itemek) &2| Dodaje itemek do dropu"
                send "&2| &1/cobblexusun (itemek) &2| Usuwa itemek z dropu"
                send "&2| &1/cobblexusunall &2| Czysci liste dropu"
                send "&2| &1/cobblexdodajall &2| Dodaje do dropu wszystkie ity z gry"
                send "&2| &1/cobblexdrop &2| Drop z marmuru!"
                send "&2| &1Po reloadu skryptu itemki sie resetuja!"
                send "&3===============&2&lAdminPanelcobblex&3================"
on break of {@cobblex}:
        cancel event
        set event-block to air
        drop a random item of {cobblelose::*} at event-block
ŁAP 

Jak tam dodać np miecz diax sharpness 5?

Opublikowano


OK zakończyłem :) U mnie wszystko działa !

KOD :

 

variables:

{cobblex.%player%} = 1

 

command /cx:

trigger:

player has 576 cobblestone:

remove 576 cobblestone from player

clear {cobblex.%player%}

wait a tick

set {cobblex.%player%} to a random integer from 1 to 3

if {cobblex.%player%} is 1:

send "&aDostales 1 cobblex!"

give a glowstone of thorns 2 named "&2CobbleX" to the player

if {cobblex.%player%} is 2:

send "&aDostales 2 cobblex!"

give a glowstone of thorns 2 named "&2CobbleX" to the player

if {cobblex.%player%} is 3:

send "&aDostales 3 cobblex!"

give a glowstone of thorns 2 named "&2CobbleX" to the player

give a glowstone of thorns 2 named "&2CobbleX" to the player

give a glowstone of thorns 2 named "&2CobbleX" to the player

else:

send "&4Blad:&cNie posiadasz 9 stakow cobblestone!."

 

 

command /cxa [<text="help">] [<items>]:

permission: cobble.admin

trigger:

argument 1 is not "help", "add" or "remove":

send "&4Blad:&cNieznana komenda,lub zla nazwa itema !"

stop

argument 1 is "help":

send "&8/cxa add < item > -&bDodanie nowego item'a do cx."

send "&8/cxa remove < item > -&bUsuwanie item'a z cx"

send "&8Lista item'ow w cx:&6 %{cobblelose2::*}%"

argument 1 is "add":

if argument 2 is not set:

send "&cZapomniales o nazwie przedmiotu!"

else:

add argument 2 to {cobblelose2::*}

send "&aDodano ' %arg 2% ' do cx"

argument 1 is "remove":

if argument 2 is not set:

send "&cZapomniales o nazwie przedmiotu!"

else:

remove argument 2 from {cobblelose2::*}

send "&cUsunieto ' %arg 2% ' z cx"

 

on place a glowstone of thorns 2:

remove 1 glowstone of thorns 2 from player

set event-block to air

drop a random item of {cobblelose2::*}

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...