1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Functions not popping up in gui!

Discussion in 'Skript' started by Kondii, Aug 27, 2017.

Thread Status:
Not open for further replies.
  1. Kondii

    Kondii Member

    Joined:
    Jun 29, 2017
    Messages:
    17
    Likes Received:
    1
    Skript Version: Skript 2.1.2
    Skript Author: Bensku
    Minecraft Version: 1.8

    Code (Skript):
    1.  
    2. function bandemoremedlem1(p: player):
    3.  
    4.     set {_bankkonto} to "%{bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}%" parsed as a number
    5.  
    6.     if {_bankkonto} is more than 2499:
    7.  
    8.         add 1 to {bander::%{bande::%{uuid::%{_p}%}%}%::maxmedlemmer}
    9.  
    10.         send "{@prefix} &7Du har nu købt &a1 medlem&7 mere til din bande!" to {_p}
    11.  
    12.         remove 2500 from {bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}
    13.  
    14.         stop
    15.  
    16.     else:
    17.  
    18.         send "{@prefix} &7Din bande har ikke nok penge pÃ¥ jeres bande konto!" to {_p}
    19.  
    20.         stop
    21.  
    22.  
    23.  
    24. function bandemoremedlem2(p: player):
    25.  
    26.     set {_bankkonto} to "%{bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}%" parsed as a number
    27.  
    28.     if {_bankkonto} is more than 9999:
    29.  
    30.         add 1 to {bander::%{bande::%{uuid::%{_p}%}%}%::maxmedlemmer}
    31.  
    32.         send "{@prefix} &7Du har nu købt &a1 medlem&7 mere til din bande!" to {_p}
    33.  
    34.         remove 10000 from {bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}
    35.  
    36.         stop
    37.  
    38.     else:
    39.  
    40.         send "{@prefix} &7Din bande har ikke nok penge pÃ¥ jeres bande konto!" to {_p}
    41.  
    42.         stop
    43.  
    44.      
    45.  
    46. function bandemoremedlem3(p: player):
    47.  
    48.     set {_bankkonto} to "%{bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}%" parsed as a number
    49.  
    50.     if {_bankkonto} is more than 99999:
    51.  
    52.         add 1 to {bander::%{bande::%{uuid::%{_p}%}%}%::maxmedlemmer}
    53.  
    54.         send "{@prefix} &7Du har nu købt &a1 medlem&7 mere til din bande!" to {_p}
    55.  
    56.         remove 100000 from {bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}
    57.  
    58.         stop
    59.  
    60.     else:
    61.  
    62.         send "{@prefix} &7Din bande har ikke nok penge pÃ¥ jeres bande konto!" to {_p}
    63.  
    64.         stop
    65.  
    66.      
    67.  
    68. function mindrebandeskade(p: player):
    69.  
    70.     set {_bankkonto} to "%{bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}%" parsed as a number
    71.  
    72.     if {_bankkonto} is more than 9999:
    73.  
    74.         if {bander::%{bande::%{uuid::%{_p}%}%}%::damage} is more than 0:
    75.  
    76.             remove 1 from {bander::%{bande::%{uuid::%{_p}%}%}%::damage}
    77.  
    78.             send "{@prefix} &7Du har nu købt &a1%%&7 mindrere bande skade!" to {_p}
    79.  
    80.             remove 10000 from {bander::%{bande::%{uuid::%{_p}%}%}%::bankkonto}
    81.  
    82.             stop
    83.  
    84.             loop {bande::%{bande::%{uuid::%{_p}%}%}%::medlemmer::*}:
    85.  
    86.                 set {_loop} to "%loop-value%" parsed as a offline player
    87.  
    88.                 send "{@prefix} &a%{_p}%&7 købe &a1%% &7mindre bandeskade til banden!" to {_loop}
    89.  
    90.                 stop
    91.  
    92.         else:
    93.  
    94.             send "{@prefix} &7Din bande er allerede pÃ¥ &a0%%&7 bandeskade!" to {_p}      
    95.  
    96.             stop
    97.  
    98.     else:
    99.  
    100.         send "{@prefix} &7Din bande har ikke nok penge pÃ¥ jeres bande konto!" to {_p}
    101.  
    102.         stop
    103.  
    104.         if arg 1 is "shop":
    105.  
    106.             if {bande::%uuid of player%} is set:
    107.              
    108.  
    109.                 open chest with 6 rows named "&b&lBande shop" to player
    110.  
    111.                 wait 1 second
    112.  
    113.                 if {bander::%{bande::%uuid of player%}%::maxmedlemmer} is between 0 and 5:
    114.  
    115.                     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)]
    116.  
    117.                 if {bander::%{bande::%uuid of player%}%::maxmedlemmer} is between 6 and 10:
    118.  
    119.                     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)]
    120.  
    121.                 if {bander::%{bande::%uuid of player%}%::maxmedlemmer} is higher than 10:
    122.  
    123.                     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)]
    124.  
    125.                     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)]
    126.  
    127.             else:
    128.  
    129.                 message "{@prefix} &BKommer snart"
    130.  
    131.                 #message "{@prefix} &cDu har ikke en bande!"
    132.  
    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
     
    #1 Kondii, Aug 30, 2017
    Last edited: Sep 2, 2017
Thread Status:
Not open for further replies.

Share This Page

Loading...