#buy item with xp levels

1 messages · Page 1 of 1 (latest)

meager hawk
#

im a little confused on how to make items buyable using xp levels, ive got it to give me the item but can figure out how to take the xp levels from the player and make it a minimum to buy it, so if they dont have enough levels they cant buy the item.

heres what i got thus far, any help will be appreciated

left_click_commands:
  - '[console] exp take %player_name% 20l'
  - '[player] ce lostbook common 1'
  - '[message] &aSuccessfully Brought for 20 Levels'
  - '[console] close'
jolly hound