#My server console is spammed by this message how can i solve this?
1 messages · Page 1 of 1 (latest)
Send your code
i don't even know where that error comes from
it's from a on inventoryclick event
i looked up on my "on inventory click"event
on inventory click:
type of event-inventory is set
if event-inventory's display name contains "효율 - 아이템을 올려놓으세요":
if name of clicked item is " ":
cancel event
if name of clicked item is "강화 시작":
cancel event
if name of player's tool is "{@서버} 효율 강화권":
remove 1 of player's tool from player
else:
send "" to player
send "{@서버} 강화권을 들고 강화를 눌러주세요!" to player
send "" to player
exit
well your comparing a item to a string first off
well nvm
lmao
im dumb
erh
is that just the whole error u sent
or is there more
that's it
no errors found when i reload
but when i try to move item into certain chest that message comes out
do u have anything else that might mess around with inventories?
i do have code that creates guis
but it's like this
create a gui with id "ore store" with virtual chest inventory with 4 rows named "광물상점" and shape "xxxxxxxxx", "xbcdefghx", "x--i-j--x" , and "axxxxxxxz":
set {guilist::2} to "ore store"
make gui slot "x" with black stained glass pane named "! BORDER !"
make gui slot "a" with book named "! 닫기 !":
close player's inventory
make gui slot "b" with coal named "석탄" with lore "&b8원" and "&c※인벤토리에 있는 모든 석탄이 팔립니다※":
set {_coal} to 0
set {_coal} to amount of coal in player's inventory
loop all items in player's inventory:
if loop-item is coal:
remove loop-item from player
set {_total} to {_coal} * 8
send "" to player
send "{@서버} 인벤토리에 있는 석탄 %{_coal}%개를 판매하였습니다" to player
add {_total} to {money.%player%}
send "{@서버} +%{_total}%원, 현재 보유금액: %moneyf({money.%player%})%원" to player
send "" to player
set {updatemoney.%player%} to true
oh yeah i also have codes for custom chest.
opening backpack:
open chest inventory with 6 rows named "%player% 가방 1" to player
set {_N} to 0
loop {backpack1::%player%::*}:
set {_I} to loop-value
set slot {_N} of player's current inventory to {_I}
add 1 to {_N}
closing backpack(save all items in backpack)
on inventory close:
#/가방 1에 대한
if event-inventory's display name contains "%player% 가방 1":
set {_loop} to 0
loop 54 times:
set {backpack1::%player%::%{_loop}%} to slot {_loop} of player's current inventory
add 1 to {_loop}
exit
these are all i got
even when i try to put item from my hand into my inventory that message comes out
It's the inventory close event i think