View Drop Display Name

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

Yaşarhan

Active Member
May 16, 2020
87
6
8
23
Turkey Istanbul
I am trying to show the drops display names the player has received in send.

Also, if there is no drop add the command.

Code:
on death:
    if attacker is a player:
        if victim isn't a player:
            set {_drops::*} to drops
            remove drops from the drops
            wait 5 ticks
            add {_drops::*} to attacker's inventory
            loop all players in radius 15 of the attacker:
                send "&6%attacker%&6 Drops: %{_drops::*}%" to loop-player

I guess it just shows items id, I will trying to convert it to display name.
 
Last edited:
Code:
loop {_drops::*}:
    add display name of (loop-value parsed as item) to {_names::*}
Now the list {_names::*} has names of items instead of IDs. (I guess)


No error, sir but value none.
This code:

Code:
on death:
    if attacker is a player:
        if victim isn't a player:
            set {_drops::*} to drops
            remove drops from the drops
            wait 5 ticks
            add {_drops::*} to attacker's inventory
            loop {_drops::*}:
                add display name of (loop-value parsed as item) to {_names::*}
                loop all players in radius 15 of the attacker:
                    send "%{_names::*}%" to loop-player
[doublepost=1590674374,1590612356][/doublepost]Nobody can solve it ?
 
Status
Not open for further replies.