Functions not popping up in gui!

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Kondii

Member
Jun 29, 2017
17
1
3
25
Skript Version: Skript 2.1.2
Skript Author: Bensku
Minecraft Version: 1.8

code_language.skript:
function bandemoremedlem1(p: player):

    set {_bankkonto} to "%{bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}%" parsed as a number

    if {_bankkonto} is more than 2499:

        add 1 to {bander::%{bande::%{uuid::%{_p}%}%}%::maxmedlemmer}

        send "{@prefix} &7Du har nu købt &a1 medlem&7 mere til din bande!" to {_p}

        remove 2500 from {bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}

        stop

    else:

        send "{@prefix} &7Din bande har ikke nok penge på jeres bande konto!" to {_p}

        stop



function bandemoremedlem2(p: player):

    set {_bankkonto} to "%{bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}%" parsed as a number

    if {_bankkonto} is more than 9999:

        add 1 to {bander::%{bande::%{uuid::%{_p}%}%}%::maxmedlemmer}

        send "{@prefix} &7Du har nu købt &a1 medlem&7 mere til din bande!" to {_p}

        remove 10000 from {bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}

        stop

    else:

        send "{@prefix} &7Din bande har ikke nok penge på jeres bande konto!" to {_p}

        stop

      

function bandemoremedlem3(p: player):

    set {_bankkonto} to "%{bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}%" parsed as a number

    if {_bankkonto} is more than 99999:

        add 1 to {bander::%{bande::%{uuid::%{_p}%}%}%::maxmedlemmer}

        send "{@prefix} &7Du har nu købt &a1 medlem&7 mere til din bande!" to {_p}

        remove 100000 from {bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}

        stop

    else:

        send "{@prefix} &7Din bande har ikke nok penge på jeres bande konto!" to {_p}

        stop

      

function mindrebandeskade(p: player):

    set {_bankkonto} to "%{bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}%" parsed as a number

    if {_bankkonto} is more than 9999:

        if {bander::%{bande::%{uuid::%{_p}%}%}%::damage} is more than 0:

            remove 1 from {bander::%{bande::%{uuid::%{_p}%}%}%::damage}

            send "{@prefix} &7Du har nu købt &a1%%&7 mindrere bande skade!" to {_p}

            remove 10000 from {bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}

            stop

            loop {bande::%{bande::%{uuid::%{_p}%}%}%::medlemmer::*}:

                set {_loop} to "%loop-value%" parsed as a offline player

                send "{@prefix} &a%{_p}%&7 købe &a1%% &7mindre bandeskade til banden!" to {_loop} 

                stop

        else:

            send "{@prefix} &7Din bande er allerede på &a0%%&7 bandeskade!" to {_p}       

            stop

    else:

        send "{@prefix} &7Din bande har ikke nok penge på jeres bande konto!" to {_p}

        stop

        if arg 1 is "shop":

            if {bande::%uuid of player%} is set:
              

                open chest with 6 rows named "&b&lBande shop" to player

                wait 1 second

                if {bander::%{bande::%uuid of player%}%::maxmedlemmer} is between 0 and 5:

                    format slot 10 of player with diamond sword named "&3Køb 1 medlem mere!" with lore "&bKøb adgang til at have et medlem mere,||&b i din bande||&7Pris: &f$2.500||&7&oPengene tages fra bandens konto!" to run [bandemoremedlem1(player)]

                if {bander::%{bande::%uuid of player%}%::maxmedlemmer} is between 6 and 10:

                    format slot 10 of player with diamond sword named "&3Køb 1 medlem mere!" with lore "&bKøb adgang til at have et medlem mere,||&b i din bande||&7Pris: &f$10.000||&7&oPengene tages fra bandens konto!" to run [bandemoremedlem2(player)]

                if {bander::%{bande::%uuid of player%}%::maxmedlemmer} is higher than 10:

                    format slot 10 of player with diamond sword named "&3Køb 1 medlem mere!" with lore "&bKøb adgang til at have et medlem mere,||&b i din bande||&7Pris: &f$100.000||&7&oPengene tages fra bandens konto!" to run [bandemoremedlem3(player)]

                    format slot 16 of player with diamond chestplate named "&3Køb 1%% mindre bande skade!" with lore "&bKøb 1%% mindre bande skade.||&bMindre chance for at skade en fra din bande.||&7Pris: &f$10.000||&7&oPengene tages fra bandens konto!" to run [mindrebandeskade(player)]

            else:

                message "{@prefix} &BKommer snart"

                #message "{@prefix} &cDu har ikke en bande!"

Problem:
So in the functions, the gui show up but nothing appears in it. There should come somethings where you can buy extra things to your gang. (Sry about my english)

Addons:
SkQuery
SkRayFall
Tusku
Umbaska
WildSkript
 
Last edited:
Status
Not open for further replies.