Skript Version: Skript 2.1.2
Skript Author: Bensku
Minecraft Version: 1.8
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
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: