So this is my skript, the problem is when I click the item its lore changes, and if I close inventory it goes back to the starting lore, what I want is the fix to it so that the lore stays until the player clicks it and it changes to next lore.
Thank you!!
Thank you!!
Code:
command rankupshop:
trigger:
set {_g} to a chest inventory with 1 row named "&8Rank Up Shop"
set slot 4 of {_g} to wheat named "&6Rank Up" with lore "" and "Click Me To Unlock The Rank" and "" and "&a500"
open {_g} to player
on inventory click:
if name of event-inventory is "&8Rank Up Shop":
cancel event
if clicked slot is 4:
if group of player is "farmer-0":
if line 4 of the lore of the item contains "&a500":
set line 4 of the lore of the item to "&a1K"
make player execute command "rankup"
Else:
if group of player is "farmer-1":
if line 4 of the lore of the item contains "&a1k":
set line 4 of the lore of the item to "&a2.5K"
make player execute command "rankup"
Else:
if group of player is "farmer-2":
if line 4 of the lore of the item contains "&a2.5k":
set line 4 of the lore of the item to "&a5K"
make player execute command "rankup"
Else:
if group of player is "farmer-3":
if line 4 of the lore of the item contains "&a5K":
set line 4 of the lore of the item to "&a10K"
make player execute command "rankup"
Else:
if group of player is "farmer-4":
if line 4 of the lore of the item contains "&a10K":
set line 4 of the lore of the item to "&a25K"
make player execute command "rankup"
Else:
if group of player is "farmer-5":
if line 4 of the lore of the item contains "&a25K":
set line 4 of the lore of the item to "&a50K"
make player execute command "rankup"