#INVSEE not working

1 messages · Page 1 of 1 (latest)

regal ravine
#

I found my old script for INVSEE, but after many attempts, I don't know what's wrong with it. Is anyone able to help me fix it? Code below.

command /inspect [<player>]:
    executable by: players
    permission: inspect.players
    permission message: &4Nie posiadasz dostępu do tej komendy.
    trigger:
        if arg 1 is not set:
            send "&cUżycie: &6/inspect <gracz>" to player
            stop
        set {inspectingPlayers::%player%} to true    
        open chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%&e:" to player
        set {_num} to 0
        loop 36 times:
            if {_num} is between 0 and 8:
                set slot ({_num} + 27) of player's current inventory to slot {_num} of arg-1's inventory
            if {_num} is between 9 and 35:
                set slot ({_num} - 9) of player's current inventory to slot {_num} of arg-1's inventory
            add 1 to {_num}
        set slot (integers between 36 and 44) of player's current inventory to black stained glass pane named " "
        if arg-1's cursor slot is not air:
            set slot 47 of player's current inventory to arg-1's cursor slot
        else:
            set slot 47 of player's current inventory to white stained glass pane named "&aSlot kursora"
        if arg-1's helmet is not air:
            set slot 48 of player's current inventory to arg-1's helmet
        else:
            set slot 48 of player's current inventory to white stained glass pane named "&aHelm"
        if arg-1's chestplate is not air:
            set slot 50 of player's current inventory to arg-1's chestplate
        else:
            set slot 50 of player's current inventory to white stained glass pane named "&aNapiersnik"
        if arg-1's leggings is not air:
            set slot 51 of player's current inventory to arg-1's leggings
        else:
            set slot 51 of player's current inventory to white stained glass pane named "&aNogawice"    
        if arg-1's boots is not air:
            set slot 52 of player's current inventory to arg-1's boots
        else:
            set slot 52 of player's current inventory to white stained glass pane named "&aButy"
        set {_h} to arg-1's health
        set {_hp} to ({_h} * 10)
        set {_f} to arg-1's food level
        set {_fp} to ({_f} * 10)
        set {_l} to arg-1's level
        set {_loc} to arg-1's location formatted as string
        set {_w} to arg-1's world
        set slot 53 of player's current inventory to book named "&eGracz &b%arg 1%:" with lore " &aZycie: &c%{_h}% (%{_hp}%%%) ", " &aGlod: &c%{_f}% (%{_fp}%%%) ", " &aPoziom: &c%{_l}% ", " &aPozycja: &c%{_loc}% (%{_w}%) " and "&aEfekty: &c%potion effects of arg-1 ? ""&cBrak""%"
        
on inventory click:
    clicked inventory is not player's inventory
    {inspectingPlayers::%player%} is set
    cancel event
    
on inventory close:
    {inspectingPlayers::%player%} is set
    clear {inspectingPlayers::%player%}
tardy barn
#

why is
set {_loc} to arg-1's location formatted as string
formatted as string? does it break without it

regal ravine
#

honestly, i havent tested without this

tardy barn
#

also what did you want to do with
"&aEfekty: &c%potion effects of arg-1 ? ""&cBrak""%"

regal ravine
#

this is an indicator of the effects the player

#

Brak - manes that they dont habe then

regal ravine
#

The code is old and written from various sources. The best thing for me would be to simply have someone fix the mistakes I made and send me the corrected code. I'm not good at scripting for Minecraft.

untold pumice
#

have you tried finding another invsee code

regal ravine
#

I just wish that, while checking someone's inventory, I could see everything - the entire armor, the second hand, how much food they have, and their health.

warm glacier
#

My lord whats this

cyan osprey
#

isnt open %someone%'s inventory to player a thing

#

as for the armour and offhand maybe just create a gui and add 1 row