#Item Events

1 messages · Page 1 of 1 (latest)

buoyant canopy
#

sounds like you were on the right track

#

just cancel the event if event-inv != player's inv

mental fox
#

no

#

just do that

#
    event-inventory = player's inventory:
        name of event-slot = "put name of the item in here":
            cancel event```
cosmic wolf
#

i just want that you can move the item in your own inv but not put in in a diffrent inv

buoyant canopy
#

because you are checking the name of the event-slot. you need to check the slot the player is holding; player's cursor slot

cosmic wolf
#

thx for your help

#

just gotta check now for fast move

#

(instant move)

#

@buoyant canopy do you know by any chance if that also possibile without addons ? i dont wanna download an extra addone just for that

buoyant canopy
#

search for "click type

cosmic wolf
#

ok thx

#

@buoyant canopy sorry to ping you agin but i got problem , for some reason kind random i can still put the items in the chest ... like somtimes i can and sometimes it wont let me

#
    if event-item is dragon egg:
        event-inventory != player's inventory:
            cancel event

on inventory click:
    cursor slot of player is dragon egg:
        event-inventory != player's inventory:
            cancel event

on inventory click:
    if event-item is dragon egg:
        if click action is left mouse button with shift:
            cancel event```this is my code
buoyant canopy
#

why 3 events

cosmic wolf
#

do you think thats the problem ?

#
    if event-item is dragon egg:
        if event-inventory != player's inventory:
            cancel event
        else if click action is left mouse button with shift:
            cancel event
    else if cursor slot of player is dragon egg:
        event-inventory != player's inventory:
            cancel event```
@buoyant canopy still the same issue
mental fox
cosmic wolf
#

its wrong

mental fox
#

you didnt really say what u wanted

#

so what is it that u want?

cosmic wolf
#

that you can not put the dragon egg in any chest

mental fox
#

where is the dragon egg normally?

cosmic wolf
#

currently just trying to fix a bug here

mental fox
#

can u make a screenshot?

cosmic wolf
#

in the players inv ?

mental fox
#

yes

cosmic wolf
#

its an item

mental fox
#

bro

#

my skript is fine

cosmic wolf
#
    if event-item is dragon egg:
        if event-inventory != player's inventory:
            cancel event
        else if click action is left mouse button with shift:
            cancel event
    else if cursor slot of player is dragon egg:
        event-inventory != player's inventory:
            cancel event```
this lets the player somtimes put it in the chest
mental fox
#

if thats what u want

#
    event-inventory = player's inventory:
        event-slot contains dragon egg named "put name of the item in here":
            cancel event```
cosmic wolf
#

first its !=

mental fox
#

holy crap u are mental

#

bro

cosmic wolf
#

it is wrong

mental fox
#

!= means not player's inventory

cosmic wolf
#

...

mental fox
#

and u said it is in the player's inventory

cosmic wolf
#

yep

#

it should not go out of the players inv

mental fox
#
    event-itemstack contains dragon egg named "name":
        cancel event```
#

try this

#

@cosmic wolf

#

does it work?

cosmic wolf
#

on inventory move isnt even an valid expression

mental fox
#

it is

#

check skhub

#

bro 💀

cosmic wolf
#

that is an extension and very outdated and old

mental fox
#

bro you are really lost

#

I already told you the answer and u still cant figure it out