Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,700 resources
01
Days
05
Hours
00
Mins
41
Secs

I need your help

Status
This thread has been locked.

EnchantBook

Premium
Feedback score
13
Posts
705
Reactions
108
Resources
0
I am currently trying to make a custom enchants script and it's almost done.
but I have one issue that I can't look past.

That is the fact that I can't seem to find how to use XP instead of Levels when players buy books.
Does anyone know?
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
I am currently trying to make a custom enchants script and it's almost done.
but I have one issue that I can't look past.

That is the fact that I can't seem to find how to use XP instead of Levels when players buy books.
Does anyone know?
We already solved this...
 

Yandere

Professional Memer
Premium
Feedback score
9
Posts
566
Reactions
230
Resources
0

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0

EnchantBook

Premium
Feedback score
13
Posts
705
Reactions
108
Resources
0
Then use XP??

http://njol.ch/projects/skript/doc/classes/#experience

Code:
command /buy-book:
     if player's xp is more than 35000:
          give player a book
          remove 35000 xp from player
          message "Purchase Successful!"
     else:
          message "You don't have enough XP!"
          message "You need 35000 XP, you only have %player's XP% XP!"

Try that.
kind of works, just dosnt take away xp[DOUBLEPOST=1489568882][/DOUBLEPOST]
Then use XP??

http://njol.ch/projects/skript/doc/classes/#experience

Code:
command /buy-book:
     if player's xp is more than 35000:
          give player a book
          remove 35000 xp from player
          message "Purchase Successful!"
     else:
          message "You don't have enough XP!"
          message "You need 35000 XP, you only have %player's XP% XP!"

Try that.
I got it to work, thank you
 
Last edited:
Status
This thread has been locked.
Top