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!


    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.

Custom AuctionHouse Issue

Discussion in 'Skript' started by Castolo GR, Apr 5, 2020.

Thread Status:
Not open for further replies.
  1. Castolo GR

    Castolo GR New Member

    Feb 25, 2020
    Likes Received:
    I have created a small AuctionHouse Script, which when I reload doesn't show any errors but when I try to execute one of its commands, it says "An internal error occured while attempting to perform this command."

    I am using:
    • Skript 1.15.2
    • skQuery
    • Tuske
    • Skutilities
    • skRayfall

    Here's the code:
    Code (Text):
    1. command /house:
    2.     permission: op
    3.     trigger:
    4.         set {ahin} to number of {ahi}
    5.         set {slot} to 0
    6.         if {ahi} is set:
    7.             open chest with 6 row named "&bAuction House" to player
    8.             loop {ahin} times:
    9.                 format slot {slot} of player with {ahi} named "%{name::%player's held item%}%" with lore "&aPrice: %{price::%player's held item%}%" to close then run [execute console command "/eco take %player% 100"]
    10.                 add 1 to {slot}
    11.         else:
    12.             open chest with 6 row named "&bAuction House" to player
    14. command /hhouse [<text>] [<number>]:
    15.     permission: op  
    16.     trigger:
    17.         if player is holding air:
    18.             if arg-1 is not set:
    19.                 send "&cPlease enter one of the following: sell, view, expired"
    20.             else:
    21.                 if arg-2 is not set:
    22.                     send "&cPlease enter a price!"
    23.         else:
    24.             set {price::%player's held item%} to arg-2
    25.             set {name::%player's held item%} to name of player's held item
    26.             add player's held item to {ahi}
    27.             remove player's held item from player
    28.             send "&aYour item has been added to the AuctionHouse for &e%{price::%player's held item%}%"
Thread Status:
Not open for further replies.

Share This Page