Solved Problem with 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 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.

lijo62

Member
Jun 12, 2017
2
0
1
25
Hello everyone, since I changed the version of my server we have problems with the lore, the lines no longer separate properly ...

I know the lines were separating with " "however it no longer works ...

Similarly, the syntax [with lore 'line 1', 'line 2'] or [with lore 'line 1' and 'line 2'] is not optimized at all!
It takes more than 20 minutes for my server to start since this change of syntax when the loading time was previously less than 2 minutes ...

More the %nl% syntax doesn't work too ...

Do you know how to help me?
Thank you very much!

Skript version: latest
SkQuery version: 4.1.1

I apologize for my bad Englishn I'm French!
[doublepost=1572813731,1572634762][/doublepost]Problem solved with this part of my code :

Code:
every 1 second:
    loop all players:
        wait 1 tick
        loop all items in loop-player's current inventory:
            clear {_lore}
            clear {_lore::*}
            if lore of loop-item is set:
                if line 2 of lore of loop-item is not set:
                    set {_lore} to "%lore of loop-item%"
                    set {_lore::*} to {_lore} split by "||"
                    set lore of loop-item to {_lore::*}
        loop all items in loop-player's inventory:
            clear {_lore}
            clear {_lore::*}
            if lore of loop-item is set:
                if line 2 of lore of loop-item is not set:
                    set {_lore} to "%lore of loop-item%"
                    set {_lore::*} to {_lore} split by "||"
                    set lore of loop-item to {_lore::*}
 
Status
Not open for further replies.