• 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!

Solved Items passing through cave walls

potinho

Advanced OT User
Joined
Oct 11, 2009
Messages
1,403
Solutions
17
Reaction score
151
Location
Brazil
I have this behavior on my server, players can throw items at cave walls and monsters kick items (like chests and boxes) into the walls too. The property of the walls seems to be correct, can anyone help me fix it?
1708461972761.png
1708461919913.gif
 

Attachments

Last edited:
"just google"? are you mad

I assume this is the project he is referring to Releases · ottools/ItemEditor (https://github.com/ottools/ItemEditor/releases)

Using the latest (v0.5.1) I can see the "full ground" flag is set on the 1098 files I have:
View attachment 82372

it seems there are multiple dirt walls:
View attachment 82373
No, I said that because is not the first time Ive seen this error, I'm at.phone is not easy to do a research from here
Post automatically merged:

Here I found a posible solution, I remember there were an script on where it was easier to do this, also this was corrected in c++ but since I quit using otx2 long ago can't remember the solution or where it was
 
Last edited:
No, I said that because is not the first time Ive seen this error, I'm at.phone is not easy to do a research from here
Post automatically merged:

Here I found a posible solution, I remember there were an script on where it was easier to do this, also this was corrected in c++ but since I quit using otx2 long ago can't remember the solution or where it was
i have looked on official repo, but i've found nothing like this, at least in topic names
 
"just google"? are you mad

I assume this is the project he is referring to Releases · ottools/ItemEditor (https://github.com/ottools/ItemEditor/releases)

Using the latest (v0.5.1) I can see the "full ground" flag is set on the 1098 files I have:
View attachment 82372

it seems there are multiple dirt walls:
View attachment 82373
tried to change, but seems to not be realted with walls, dont happen with city walls or mountain walls, and have the same attribute
 
try

Lua:
<event type="moveitem" name="CaveThings" event="script" value="caveThings.lua"/>

Lua:
local items = {101, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382}

function onMoveItem(moveItem, frompos, position, cid)
    local item = getTileThingByPos(position)
    if (item.itemid > 0 and isInArray(items, item.itemid)) then
        return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) and false
    end
    return true
end
 
Yeah that why it's just a workaround, try it.

<event type="moveitem" name="CaveThings" event="script" value="caveThings.lua"/>

Lua:
local items = {101, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382}

function onMoveItem(moveItem, frompos, position, cid)
local item = getTileThingByPos(position)
if (item.itemid > 0 and isInArray(items, item.itemid)) then
return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) and false
end
return true
end
 
Back
Top