Solved How do I make my skript detect lore?

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

    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!

Doodle

Well-Known Member
Sep 3, 2023
490
63
28
I'm making a duping skript (basic, I know) and I am trying to make a system that allows it to detect lore and use that to scan I think item can be duped or not.
Code:
if player's tool is not air:
    set {_lore} to line 1 of item lore
    if {_lore} contains "&6&o@no-dupe":
        send action bar "&cYou can't dupe this item!" to player
    else:
        give player's tool to player
Any tips?

(Any info about lore would be great.)
 
Last edited:
I'm making a duping skript (basic, I know) and I am trying to make a system that allows it to detect lore and use that to scan I think item can be duped or not.
Code:
if player's tool is not air:
    set {_lore} to line 1 of item lore
    if {_lore} contains "&6&o@no-dupe":
        send action bar "&cYou can't dupe this item!" to player
    else:
        give player's tool to player
Any tips?

(Any info about lore would be great.)
This might not work but here is what i came
up with on my old skript editor

code_language.skript:
if player's tool isn't air:
    set {_lore} to line 1 of item _lore
    if {_lore} contains "(no dupe)":
        send action bar "&cYou cannot dupe this item!" to player
    else if {_lore} does not contain "(no dupe)":
        give player's tool to player
    else:
        #do whatever

Hope this helps!

Please like my post!
Means the world to me.
 
  • Like
Reactions: Doodle
This might not work but here is what i came
up with on my old skript editor

code_language.skript:
if player's tool isn't air:
    set {_lore} to line 1 of item _lore
    if {_lore} contains "(no dupe)":
        send action bar "&cYou cannot dupe this item!" to player
    else if {_lore} does not contain "(no dupe)":
        give player's tool to player
    else:
        #do whatever

Hope this helps!

Please like my post!
Means the world to me.
I fixed it already, but thanks anyway!
 
  • Like
Reactions: TheDever
How you show this?
1694028077174.png