#Item Events
1 messages · Page 1 of 1 (latest)
no
just do that
event-inventory = player's inventory:
name of event-slot = "put name of the item in here":
cancel event```
that dosnt even work
yeah alr tried that but it does not work , i lets you move it to other inv but now out
i just want that you can move the item in your own inv but not put in in a diffrent inv
because you are checking the name of the event-slot. you need to check the slot the player is holding; player's cursor slot
oh ok
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
search for "click type
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
why 3 events
ok i will combine that later
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
wdym why doesnt it work?
that you can not put the dragon egg in any chest
where is the dragon egg normally?
currently just trying to fix a bug here
can u make a screenshot?
in the players inv ?
yes
its an item
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
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```
yep thats wrong
first its !=
it is wrong
!= means not player's inventory
...
and u said it is in the player's inventory