Solved Probably a simple fix

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

Helepso

Member
Mar 9, 2024
3
0
1
33
I have a voucher redeem thing but its not working with multiple of the item, the only add-on im using is Skbee
code_language.skript:
on right click:
  if player's tool is paper named "&a&lMONEY VOUCHER &7(Right click to Redeem)":
    set {_p} to (2nd element of ((1st element of uncolored lore of event-item) split at " | "))
    execute console command "eco give %player% %{_p}%"
    remove 1 of player's tool from player's inventory
    send "&7You have redeemed a voucher for &a%{_p}%&7!" to player
 
oh also i didnt write this myself but the person who did i dont have contact with anymore