Jump to content

Skript Not Working


Narratrr

Recommended Posts

So I have this skript here,

 

command /enchant:
    trigger:
        open virtual chest inventory with 5 rows named "&eEnchant" to player
        format gui slot 10 of player with raw cod named "&7Extra | &bEnchant &7|" with lore "&7Max: 2", and "Cost: &b2500 xp" to run:
            if {extra::%player%::e} = 0:
                if xp of player <= 2500:
                    execute command "/xp take %player% 2500"
                    set line 1 of lore of player's tool to "&7Extra I"
                else:
                    send "&cNot Enough Xp" to player

 

when i try and upgrade it, it just sends "&cNot Enough Xp" when i have more then enough

anyone know whats wrong?

IGN: LastMC

Discord: LastXD#7171

Rank: PRO

Join date: Monday - December - 23rd - 2019

Link to comment
Share on other sites

50 minutes ago, LastMC said:

So I have this skript here,

 

command /enchant:
    trigger:
        open virtual chest inventory with 5 rows named "&eEnchant" to player
        format gui slot 10 of player with raw cod named "&7Extra | &bEnchant &7|" with lore "&7Max: 2", and "Cost: &b2500 xp" to run:
            if {extra::%player%::e} = 0:
                if xp of player <= 2500:
                    execute command "/xp take %player% 2500"
                    set line 1 of lore of player's tool to "&7Extra I"
                else:
                    send "&cNot Enough Xp" to player

 

when i try and upgrade it, it just sends "&cNot Enough Xp" when i have more then enough

anyone know whats wrong?

<= | Means less or equal to

>= | More than or equal to

Basically you just used the wrong symbol and now it only works when you don't have enough

Edited by StarBunnie

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

5 hours ago, StarBunnie said:

<= | Means less or equal to

>= | More than or equal to

Basically you just used the wrong symbol and now it only works when you don't have enough

lol

IGN: LastMC

Discord: LastXD#7171

Rank: PRO

Join date: Monday - December - 23rd - 2019

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...