Skript help

Status
This thread has been locked.

EnchantBook

Premium
Feedback score
13
Posts
705
Reactions
108
Resources
0
how do I check how much xp a player has?
I'm making a custom enchants skript.


EDIT: Ik that you can use "if player's money is between 0 and 99:
message: message
if player's money is between 100 and 10000000:
execute console command "eco take %player% 100
 
Last edited:
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
how do I check how much xp a player has?
I'm making a custom enchants skript.


EDIT: Ik that you can use "if player's money is between 0 and 99:
message: message
if player's money is between 100 and 10000000:
execute console command "eco take %player% 100
Here is the event:
Code:
on player level change:
     **do stuff**

Here is it in a command:
Code:
command /xp-check:
     trigger:
          message "You have %player's level%"

Is that what you are after?
 

EnchantBook

Premium
Feedback score
13
Posts
705
Reactions
108
Resources
0
Here is the event:
Code:
on player level change:
     **do stuff**

Here is it in a command:
Code:
command /xp-check:
     trigger:
          message "You have %player's level%"

Is that what you are after?
isnt that using levels? instead of actual xp
 

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
isnt that using levels? instead of actual xp
Yes, if you want level I think it is this:
Code:
command /xp-check
     trigger:
          message "You have %player's xp level%"
[DOUBLEPOST=1489057434][/DOUBLEPOST]
Yes, if you want level I think it is this:
Code:
command /xp-check
     trigger:
          message "You have %player's xp level%"
Correction:
Code:
%player's level%
%player's level progress%
 
Last edited:

EnchantBook

Premium
Feedback score
13
Posts
705
Reactions
108
Resources
0
I tried using
command /gbooks:
trigger:
if player's level progress is between 0 and 99999:
message "&eYou dont have enough &6Money"
if player's level progress is between 100000 and 1000000000:
execute console command "eco take %player% 100000"
give player 64 book named "&6&l Gold Enchanting Book" with lore "&7>> &eRight-Click &7then hold the item you want to &eenchant &7<<"
but that did not work[DOUBLEPOST=1489059376][/DOUBLEPOST]
Yes, if you want level I think it is this:
Code:
command /xp-check
     trigger:
          message "You have %player's xp level%"
[DOUBLEPOST=1489057434][/DOUBLEPOST]
Correction:
Code:
%player's level%
%player's level progress%
I tried using
command /gbooks:
trigger:
if player's level progress is between 0 and 99999:
message "&eYou dont have enough &6Money"
if player's level progress is between 100000 and 1000000000:
execute console command "eco take %player% 100000"
give player 64 book named "&6&l Gold Enchanting Book" with lore "&7>> &eRight-Click &7then hold the item you want to &eenchant &7<<"
but that did not work
 

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
I tried using
command /gbooks:
trigger:
if player's level progress is between 0 and 99999:
message "&eYou dont have enough &6Money"
if player's level progress is between 100000 and 1000000000:
execute console command "eco take %player% 100000"
give player 64 book named "&6&l Gold Enchanting Book" with lore "&7>> &eRight-Click &7then hold the item you want to &eenchant &7<<"
but that did not work[DOUBLEPOST=1489059376][/DOUBLEPOST]
I tried using
command /gbooks:
trigger:
if player's level progress is between 0 and 99999:
message "&eYou dont have enough &6Money"
if player's level progress is between 100000 and 1000000000:
execute console command "eco take %player% 100000"
give player 64 book named "&6&l Gold Enchanting Book" with lore "&7>> &eRight-Click &7then hold the item you want to &eenchant &7<<"
but that did not work
Do you get any errors? Also, please paste the skript in a code tag.
 
Status
This thread has been locked.
Top