• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[SOLVED] items do not sink in water

Solution
The simplest solution is probably to hook the water ID into movements and, in the script, use item:remove() and apply a MAGIC_EFFECT to toPosition
No, no need to create new logic to handle that.

View attachment 96769

The items I throw into the water won't disappear, how can I fix this?
There is a tool for that - trashholder.
You can use it setting an attribute in items.xml
XML:
  <item id="4608" name="shallow water">
    <attribute key="description" value="You see the silvery movement of fish." />
    <attribute key="type" value="trashholder" />
    <attribute key="effect" value="bluebubble" />
The simplest solution is probably to hook the water ID into movements and, in the script, use item:remove() and apply a MAGIC_EFFECT to toPosition
No, no need to create new logic to handle that.

View attachment 96769

The items I throw into the water won't disappear, how can I fix this?
There is a tool for that - trashholder.
You can use it setting an attribute in items.xml
XML:
  <item id="4608" name="shallow water">
    <attribute key="description" value="You see the silvery movement of fish." />
    <attribute key="type" value="trashholder" />
    <attribute key="effect" value="bluebubble" />
 
Solution
No, no need to create new logic to handle that.


There is a tool for that - trashholder.
You can use it setting an attribute in items.xml
XML:
  <item id="4608" name="shallow water">
    <attribute key="description" value="You see the silvery movement of fish." />
    <attribute key="type" value="trashholder" />
    <attribute key="effect" value="bluebubble" />
tyt.webp

I have it set like that but the item doesn't disappear (only the effect of being thrown into the water appears, but the item doesn't want to disappear)

I actually noticed that trash doesn't work either




I noticed that I can throw gold coins into the trash and they disappear, but when I do the same with items, the items don't want to disappear
trash.webp
 
Last edited:
View attachment 96770

I have it set like that but the item doesn't disappear (only the effect of being thrown into the water appears, but the item doesn't want to disappear)

I actually noticed that trash doesn't work either




I noticed that I can throw gold coins into the trash and they disappear, but when I do the same with items, the items don't want to disappear
View attachment 96771
What engine are you using?.
 
What engine are you using?.
He is using [8.0] [TFS 1.2] - Server Global Full [Real Map] (https://otland.net/threads/8-0-tfs-1-2-server-global-full-real-map.280265/)
I already managed to compile and run it, but couldn't reproduce it.

o6KH5Cm.gif


Maybe the .exe that comes with the project is bugged? I didn't run it (and i dont think anyone should ;d)
 
He is using [8.0] [TFS 1.2] - Server Global Full [Real Map] (https://otland.net/threads/8-0-tfs-1-2-server-global-full-real-map.280265/)
I already managed to compile and run it, but couldn't reproduce it.

o6KH5Cm.gif


Maybe the .exe that comes with the project is bugged? I didn't run it (and i dont think anyone should ;d)

Just to be sure
You're showing a result that works for you, but he reports that it doesn't for him - so where's your solution?
You shouldn't show users a test in a completely different place on the map (a different water ID - remember, there are waters you can walk on there) Here is position: 32399, 31773, 7

Afterward, I'd suggest checking the
LUA:
events/player.lua onMoveItem function
; maybe something's wrong here.
And if everything above is correct, the final step is to include the water ID in the movements.xml file - it doesn't take long and solves the problem on any server and any version
 
You're showing a result that works for you, but he reports that it doesn't for him - so where's your solution?
I am showing that this issue cannot be reproduced, those tiles use trashholder.

it doesn't take long and solves the problem on any server and any version
You should patch the root cause of the issue (which this time was an unfortunate user edit, for some reason he DMed me about it instead of posting), and not band-aid fix it with Lua events.
Debugger is a tool that also works for any server and any version. I recommend you learn to use it as well.
 
I am showing that this issue cannot be reproduced, those tiles use trashholder.


You should patch the root cause of the issue (which this time was an unfortunate user edit, for some reason he DMed me about it instead of posting), and not band-aid fix it with Lua events.
Debugger is a tool that also works for any server and any version. I recommend you learn to use it as well.

If the problem is solved, then it's ok. They usually inform you about it

Also I don’t need guidance here, but thanks for your good intentions
 
Back
Top