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] skGuilds Jak zrobic itemy do tworzenia gildii dla vipa ?


Rekomendowane odpowiedzi

Opublikowano

Moze ktos wie dlaczego ten kod nie dziala ?

 

options:
     guild.reqitems_vip: itemy vipa
 
if arg 1 is "zaloz" or "<span style="height: 14px;" id="rr6ip3833mkg_8" class="rr6ip3833mkg">create</span>" or "z" or "c":
            if arg 2 is not set:
                send "{@tag} &cWpisz tag gildii."
                <span style="height: 14px;" id="rr6ip3833mkg_3" class="rr6ip3833mkg">stop</span>
            if arg 3 is not set:
                send "{@tag} &cWpisz nazwe gildii."
                stop
            if {skGuilds::inGuild::%player%} is set:
                send "{@tag} &cJestes juz w gildii!"
                stop
            if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is set:
                send "{@tag} &cJestes liderem innej gildii, usun ja aby stworzyc wlasna!"
                stop
            if length of arg 2 is less than 3:
                send "{@tag} &cTag musi miec minimum 3 liter!"
                stop
            if length of arg 2 is greater than 5:
                send "{@tag} &cTag musi miec maximum 5 liter!"
                stop
            if length of arg 3 is greater than 25:
                send "{@tag} &cNazwa nie moze byc dluzsza niz 25 liter!"
                stop
            if length of arg 3 is less than 10:
                send "{@tag} &cNazwa nie moze byc krotsza niz 10 liter!"
                stop
            if {skGuilds::GildiaTag::%arg 2%} is set:
                send "{@tag} &cGildia o takim tagu juz istnieje!"
                stop
            if {skGuilds::GildiaNazwa::%arg 3%} is set:
                send "{@tag} &cGildia o takiej nazwie juz istnieje!"
            if distance between player and {skGuilds::Spawn} is <span style="height: 14px;" id="rr6ip3833mkg_1" class="rr6ip3833mkg">more</span> than 150:
                if player has permission "skguild.gracz":
                    if player doesn't have {@guild.reqitems}:
                        send "{@tag} &cNie masz wymaganych itemow na gildie."
                        send "{@tag} &cPotrzebujesz: &7{@guild.reqitems}"
                if player has permission "skguilds.vip":
                    if player doesn't have {@guild.reqitems_vip}:
                        send "{@tag} &cNie masz wymaganych itemow na gildie."
                        send "{@tag} &cPotrzebujesz: &7{@guild.reqitems_vip}"
                    else:
                        remove {@guild.reqitems} from the player
                        set {skGuilds::inGuild::%player%} to arg 2
                        set {skGuilds::GildiaTag::%arg 2%} to true
                        set {skGuilds::GildiaNazwa::%arg 3%} to true
                        set {skGuilds::NazwaGildii::%arg 2%} to arg 3
                        set {skGuilds::TagGildii::%arg 2%} to arg 2
                        add arg 3 to {skGuilds::Gildie::*}
                        add arg 2 to {skGuilds::Tagi::*}
                        set {skGuilds::PVP::%arg 2%} to false
                        set {skGuilds::%arg 2%::Powieksz::LVL::1} to false
                        set {skGuilds::%arg 2%::Powieksz::LVL::2} to false
                        set {skGuilds::%arg 2%::Powieksz::LVL::3} to false
                        add player to {skGuilds::Czlonkowie::%arg 2%::*}
                        set {skGuilds::%arg 2%::Powieksz::LVL::4} to false
                        set {skGuilds::%arg 2%::Powieksz::LVL::5} to false
                        set {skGuilds::Opis::%arg 2%} to "&eNowa gildia!"
                        set {skGuilds::Lider::%arg 2%} to "%player%"
                        set {skGuilds::Zabojstwa::%arg 2%} to 0
                        set {skGuilds::GuildPoints::%arg 2%} to 1000
                        set {_Center} to block at location (x-coordinate of player, y-coordinate of player, z-coordinate of player) in "world"
                        set {skGuilds::Baza::%arg 2%} to {_Center}
                        set {skGuilds::Polozenie::%arg 2%} to {_Center}
                        set block at {_Center} to {@guild.item}
                        set {_Gildia} to arg 2
                        add {_Gildia} to {skGuilds::Cuboids::*}
                        set {skGuilds::Cuboid::Large::%{_Gildia}%} to 50
                        set {skGuilds::Cuboid::Center::%{_Gildia}%} to {_Center}
                        "%{_Gildia}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%}, {skGuilds::Cuboid::Large::%{_Gildia}%}};
                        set {skGuilds::DataZalozenia::%arg 2%} to now
                        edit tag of player to "&e[&6%arg 2%&e] &e"
                        broadcast "{@tag} Gildia &e%arg 3% &8[&e%arg 2%&8] &7zostala zalozona przez &e%player%"
                        stop
           else:
                send "{@tag} &cJestes za blisko spawnu!"

@ref!

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...