Enchant

  • 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.

Sitrr

Member
Mar 28, 2022
3
0
1
23
if clicked slot is 12:
@if number of diamond in player's inventory >= 2 ^ {attnum::%{team::%uuid of player%}%}:
@@set {attprice::%{team::%uuid of player%}%} to 2 ^ ({attnum::%{team::%uuid of player%}%} + 1)
@@loop all items in player's inventory:
@@@if loop-item is sword:
@@@@enchant loop-item with {attnum::%{team::%uuid of player%}%}
@@execute op command "/opengu2"

the enchant does not work
Could you tell how to put a variable into the integer part of enchant?
 
upload_2022-11-26_12-17-22.png

upload_2022-11-26_12-17-46.png


upload_2022-11-26_12-18-32.png
upload_2022-11-26_12-18-33.png
upload_2022-11-26_12-18-33.png
upload_2022-11-26_12-18-33.png
upload_2022-11-26_12-18-33.png
upload_2022-11-26_12-18-33.png
upload_2022-11-26_12-18-33.png
upload_2022-11-26_12-18-33.png
:emoji_poop::emoji_poop::emoji_poop::emoji_poop::emoji_poop:
[doublepost=1669461577,1669461525][/doublepost]if loop-item is sword:

sword does not exist so you will need to do

... is stone sword or iron sword
or you do
... is any sword
 
Status
Not open for further replies.