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

[Problem] Skrypt na gildie.


Rekomendowane odpowiedzi

Opublikowano

Witam. Posiadam pewien problem. Otóż tworząc claima jest ok, gitara, nice. Ale chce by po wejściu na dany claim pisało, że Wszedłeś na Claima gildii bla bla bla. Daję do 10 like za szybką i fachową pomoc.

 

Oto kawałek skryptu jak robi claim:

if {sk.c.%player%.clan} is "None":
message "{@C-Logo}&cMusisz miec gildie by to zrobic"
stop trigger
if {sk.c.%player%.rank} is "Leader" or "Officer":
set {_clan.name} to {sk.c.%player%.clan}#for clarity
if {sk.c.land::%chunk at player%} is {_clan.name}:
message "{@C-Logo}&cJuz zaclaimowales tutaj"
stop trigger
if "{@Contiguous}" is not "False", "false", "off" or "Off":
if {sk.c.%{sk.c.%player%.clan}%.landcount} is not 0:
set {_chunkN} to chunk at block 16 meters north of player
set {_chunkS} to chunk at block 16 meters south of player
set {_chunkE} to chunk at block 16 meters east of player
set {_chunkW} to chunk at block 16 meters west of player
{sk.c.%player%.clan} is not {sk.c.land::%{_chunkN}%}
{sk.c.%player%.clan} is not {sk.c.land::%{_chunkS}%}
{sk.c.%player%.clan} is not {sk.c.land::%{_chunkE}%}
{sk.c.%player%.clan} is not {sk.c.land::%{_chunkW}%}
message "{@C-Logo}&cClaimy musza byc w 1 grupie"
stop trigger
if "{@Eco-Mode}" is not "Vault":
loop {sk.c.%{_clan.name}%.members::*}:
add {sk.c.%loop-value%.power} to {_maxclaim}
if {sk.c.%{_clan.name}%.landcount} is greater than or equal to {_maxclaim}:
message "{@C-Logo}&cNie mozesz zaclaimowac wiecej niz %{_maxclaim}% chunks!"
stop trigger
if "{@Eco-Mode}" is not "Mixed":
loop {sk.c.%{_clan.name}%.members::*}:
add {sk.c.%loop-value%.power} to {_maxclaim}
if {sk.c.%{_clan.name}%.landcount} is greater than or equal to {_maxclaim}:
message "{@C-Logo}&cNie mozesz claimowac wiecej niz %{_maxclaim}% chunks!"
stop trigger
if {sk.c.land::%chunk at player%} is set:
if "{@Eco-Mode}" is not "Vault" or "Mixed":
"{@War}" is "on" or "true"
set {_other.clan} to {sk.c.land::%chunk at player%}
set {sk.c.%{_other.clan}%.power} to 0
if size of {sk.c.%{_other.clan}%.members::*} is 0:
if {_other.clan} is "None":
message "{@C-Logo}&cNie mozesz zclaimowac tego"
stop trigger
message "{@C-Logo}&cNie mozesz zclaimowac tego"
stop trigger
loop {sk.c.%{_other.clan}%.members::*}:
add {sk.c.%loop-value%.power} to {sk.c.%{_other.clan}%.power}
if {sk.c.%{_other.clan}%.power} is less than {sk.c.%{_other.clan}%.landcount}:
message "Musisz posiadac wiecej powera"
set {sk.c.land::%chunk at player%} to {_clan.name}
subtract 1 from {sk.c.%{_other.clan}%.landcount}
add 1 to {sk.c.%{_clan.name}%.landcount}
message "{@C-Logo}&You claimed this chunk from %{_other.clan}%"
stop trigger
message "{@C-Logo}&cTu juz ma inna gildia"
stop trigger
TABy są ok tylko tutaj się tak zrobiło. Proszę o pomoc.
Opublikowano

Moze cos takiego ci sie przyda :D

if {claim.wg.greeting} is true:
	make console execute command "rg flag -w %world of player% g-%arg 2% greeting &7Obecny teren nalezy do gildii: &f[&g%arg 2%&f]"
if {claim.wg.farewell} is true:
	make console execute command "rg flag -w %world of player% g-%arg 2% farewell &7Opuszczono teren gildii: &f[&g%arg 2%&f]"

585051449511123978085.jpeg

Opublikowano

Spróbuj

# Oto mój taki kodek;x taki przykładzik

on walking:

if {teren.gildi.%player%} is true:
if {graczjestwgildi.%player%} is true:

send "&bWszedles na teren swojej gildi"

else:

send "&bNie jestes na ternie swojej gildi. Uciekaj!"

Wytabuj jak coś

A tak poza tym to chyba skrypt empires;3

baner3m.jpg

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...