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:
Here's the code:
Thanks!
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!