Hey guys,
I skripted a sign shop. And i want to sell a stack of item while a Player is sneaking. This is my Code:
Why it's not working?
@Wolwer
There are no Errors while loading the Skript. Please help!
I skripted a sign shop. And i want to sell a stack of item while a Player is sneaking. This is my Code:
Why it's not working?
Code:
On rightclick on sign:
if line 1 of event-block is "&8[&cVERKAUFEN&8]":
set {schildsell.%player%} to line 3 of event-block parsed as a integer
set {ivnsee.%player%} to line 2 of event-block parsed as a item type
if inventory of player contains {ivnsee.%player%}:
remove {ivnsee.%player%} from player's inventory
add {schildsell.%player%} to {Taler::%uuid of player%}
set action bar of player to "&8» &7&oDu hast erfolgreich &a%line 2 of event-block% &7&overkauft&8."
else:
set action bar of player to "&8» &cDu hast kein %{ivnsee.%player%}% im Inventar&8!"
On rightclick on sign:
if line 1 of event-block is "&8[&cVERKAUFEN&8]":
if player is sneaking:
set {schildsell.%player%} to line 3 of event-block parsed as a integer
set {ivnsee.%player%} to line 2 of event-block parsed as a item type
if inventory of player contains 64 of line 2 of event-block parsed as a item type:
loop 64 times:
add line 3 of event-block parsed as a integer to {Taler::%uuid of player%}
remove 64 of {ivnsee.%player%} from player's inventory
set action bar of player to "&8» &7&oDu hast erfolgreich 64x &a%line 2 of event-block% &7&overkauft&8."
else:
set action bar of player to "&8» &cDu hast kein 64x %{ivnsee.%player%}% im Inventar&8!"
@Wolwer
There are no Errors while loading the Skript. Please help!
Last edited: