Removing items with and without lores

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

SoMuchWessel

Active Member
Apr 3, 2017
147
3
18
46
Hello guys,

I was trying to make a shop like skript, where the currency is emeralds.
So i wrote this simple code:

Code:
command /pay <integer>:
    trigger:
        remove arg-1 of emerald from player's inventory

This works, but the problem is: If a emerald has a lore or a name, it does not get removed.
Is there a way to 'ignore' the lores and the names of the emeralds? So even if 1 emerald has a name, another has a lore and another is normal, and the price is 3 emeralds, that they will all get removed?
[doublepost=1569766741,1569502494][/doublepost]I still have not found a solution for this problem.
 
Status
Not open for further replies.