Solved I need help! (Custom signshop)

  • 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.
Okay guys, so i have made my own currency on my server, and i want to make a signshop that works with it.
It wont execute the console command but it does message me and take 1 block






on rightclick on sign:

if {shop.item.%location of block%} is set:

if 1st line is "&6Sælg":

if number of {shop.item.%location of block%} in player's inventory is greater or equal to {shop.amount.%location of block%}:

remove {shop.amount.%location of block%} of {shop.item.%location of block%} from player's inventory

execute console command "/penge tilføj %player% {shop.price.%location of block%}"

send "&a&l+%{shop.price.%location of block%}%"

else:

send "&cDu har ikke tilstrækkelige midler til dette!"
[doublepost=1540772062,1540768996][/doublepost]execute console command "/penge tilføj %player% {shop.price.%location of block%}"


That line dosent work
 
execute console command "/penge tilføj %player% %{shop.price.%location of block%}%"
You forgot to use % in {shop.price.%location of block%}
[doublepost=1540772344,1540772266][/doublepost]execute console command "/penge tilføj %player% %{shop.price.%location of block%}%"
You forgot to use % in {shop.price.%location of block%}
Okay guys, so i have made my own currency on my server, and i want to make a signshop that works with it.
It wont execute the console command but it does message me and take 1 block






on rightclick on sign:

if {shop.item.%location of block%} is set:

if 1st line is "&6Sælg":

if number of {shop.item.%location of block%} in player's inventory is greater or equal to {shop.amount.%location of block%}:

remove {shop.amount.%location of block%} of {shop.item.%location of block%} from player's inventory

execute console command "/penge tilføj %player% {shop.price.%location of block%}"

send "&a&l+%{shop.price.%location of block%}%"

else:

send "&cDu har ikke tilstrækkelige midler til dette!"
[doublepost=1540772062,1540768996][/doublepost]execute console command "/penge tilføj %player% {shop.price.%location of block%}"


That line dosent work
 
Status
Not open for further replies.