Upgrading System

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

WiebeHero

Active Member
Aug 23, 2017
135
5
0
23
Hello i am WiebeHero and i have been recoding my upgrading system for a while but im running into 1 problem:
Code:
on inventory click:
    if cursor slot of player is stone hoe:
        if name of cursor slot of player is "&7Stone Club [Lv 1]":
            if lore of cursor slot of player is "&7Upgrade Progress 0 / 2":
                if name of clicked item is "&7Stone Club [Lv 1]":
                    cancel the event
                    set name of player's clicked item to "&7Stone Club [Lv 1]"
                    set cursor of player to air
So what isnt working properly? Set name of player's clicked item to "&7Stone Club [Lv 1]" and thats what the only problem is.
If anyone can help me with this it would be much appericiated!

Best regards,
WiebeHero
[doublepost=1507743599,1507743551][/doublepost]
  1. So what isnt working properly? Set name of player's clicked item to "&7Stone Club [Lv 1]" and thats what the only problem is.If anyone can help me with this it would be much appericiated!
[doublepost=1507744289][/doublepost]Im an idiot and i solved it on my own XD
[doublepost=1507744809][/doublepost]Nevermind reopened
[doublepost=1507745770][/doublepost]Nevermind now REALLY solved here is the code for anyone wondering:
Code:
on inventory click:
    if cursor slot of player is stone hoe:
        if lore of cursor slot of player contains "&7Upgrade Progress: 0 / 2":
            if lore of clicked item contains "&7Upgrade Progress: 0 / 2":
                cancel the event
                set the 6th line of lore of clicked item to "&7Upgrade Progress: 1 / 2"
                set cursor of player to air
 
Status
Not open for further replies.