Custom AuctionHouse Issue

  • 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.

Castolo GR

New Member
Feb 25, 2020
3
0
1
47
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:
command /house:
    permission: op
    trigger:
        set {ahin} to number of {ahi}
        set {slot} to 0
        if {ahi} is set:
            open chest with 6 row named "&bAuction House" to player
            loop {ahin} times:
                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"]
                add 1 to {slot}
        else:
            open chest with 6 row named "&bAuction House" to player
           
command /hhouse [<text>] [<number>]:
    permission: op  
    trigger:
        if player is holding air:
            if arg-1 is not set:
                send "&cPlease enter one of the following: sell, view, expired"
            else:
                if arg-2 is not set:
                    send "&cPlease enter a price!"
        else:
            set {price::%player's held item%} to arg-2
            set {name::%player's held item%} to name of player's held item
            add player's held item to {ahi}
            remove player's held item from player
            send "&aYour item has been added to the AuctionHouse for &e%{price::%player's held item%}%"

Thanks!
 
Status
Not open for further replies.