Hello, its me again I am struggling with making a shop skript where you can buy 1 item by leftclicking, selling 1 item by rightclicking an buying/selling 64 by shift+left/rightclicking.
When i use the "On inventory click" event, the" shift" does not work. (Also no errors ingame and in the console)
well,. now it does not work and i dont know why. But the part with "shift" didnt work. Is there a way to do it with TuSKe? I saw the Tutorial and tried it but i failed. Can someone give me an example how to do it with removing the items out of the inventory and removen the coins?
Addons:
-Skellet
-SkQuery(Lime)
-Bensku Skript latest version
-SkMorkaz
-TuSKe
-Umbaska
-skRayFall
-MundoSk
When i use the "On inventory click" event, the" shift" does not work. (Also no errors ingame and in the console)
code_language.skript:
on inventory click:
if inventory name of player's current inventory is "&cSpawnerkauf":
clicked slot is 1:
if clicked type is left mouse button:
if {coins::%player%} is more than 9999:
remove 10000 from {coins::%player%}
give player a monster spawner named "&fSpawner"
if clicked type is left mouse button with shift:
send "Hello c:"
on inventory click:
if inventory name of current inventory of player is "&cShop":
clicked slot is 11:
open chest with 3 rows named "&cSpawnerkauf" to player
set slot 1 of player's current inventory to monster spawner
command /shop:
trigger:
open chest with 3 rows named "&cShop" to player
set slot 10 of player's current inventory to grass named "&cBlöcke"
set slot 11 of player's current inventory to nether star named "&cBesonderes"
well,. now it does not work and i dont know why. But the part with "shift" didnt work. Is there a way to do it with TuSKe? I saw the Tutorial and tried it but i failed. Can someone give me an example how to do it with removing the items out of the inventory and removen the coins?
Addons:
-Skellet
-SkQuery(Lime)
-Bensku Skript latest version
-SkMorkaz
-TuSKe
-Umbaska
-skRayFall
-MundoSk