I'm looking to add Uses to my sellwands, but I'm unsure on how to actually add them, could I get some help?
Right now argument 3 does nothing in the sellwandgive command, so that'd be great help too.
Posted by: deegl from the skUnity Discord. View the thread on skUnity Discord here
Right now argument 3 does nothing in the sellwandgive command, so that'd be great help too.
code_language.skript:
command /sellwandgive [<player>] [<number>] [<number>]:
permission: op
trigger:
if arg-1 is set:
if arg-2 is set:
give arg-1 1 of blaze rod named "<##C5FB42>&lSELLWAND &7[<##C5FB42>%arg-2%x&7]" with lore "&8Sellwand", "", "<##0C9039>│ <##C5FB42>Description", "<##0C9039>│ &fSell items in a chest.", "", "<##0C9039>│ <##C5FB42>Statistics", "<##0C9039>│ &fMultiplier: <##C5FB42>%arg-2%x", "<##0C9039>│ &fUses: <##C5FB42>%arg-2%x", "", "&7&oRight-Click on a chest to use."
else:
give arg-1 1 of blaze rod named "<##C5FB42>&lSELLWAND &7[<##C5FB42>1x&7]" with lore "&8Sellwand", "", "<##0C9039>│ <##C5FB42>Description", "<##0C9039>│ &fSell items in a chest.", "", "<##0C9039>│ <##C5FB42>Statistics", "<##0C9039>│ &fMultiplier: <##C5FB42>1x", "", "&7&oRight-Click on a chest to use."
else:
send "{@prefix} &f/sellwandgive [player] [multiplier] [uses] ."
on rightclick on chest or hopper with blaze rod:
if player's tool is blaze rod named "<##C5FB42>&lSELLWAND &7[<##C5FB42>1x&7]":
set {_name} to uncolored name of player's tool
replace all "(", ")", "SELLWAND", " " and "x" with "" in {_name}
set {_multiplier} to 1
sellItems(player, inventory of clicked block, {_multiplier}+0)
cancel event
Posted by: deegl from the skUnity Discord. View the thread on skUnity Discord here