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

Dustbin as a container

Niubi

Member
Joined
Jan 3, 2019
Messages
20
Reaction score
5
Hello. If I good remember, Tibianic had that system that when players throw items to dustbin - it was not removed but you could open dustbin and take it as you could see there f.e. last 15 throwed items. What do I need to do to have dustbin working like this? Thanks
 
Let's try something simple 1st modify it in items.xml?
XML:
    <item id="1777" article="a" name="dustbin">
        <!--
        <attribute key="type" value="trashholder" />
        -->
        <attribute key="allowpickupable" value="1" />
        <attribute key="containerSize" value="15" />
    </item>
 
Code:
    <item id="1777" article="a" name="dustbin">
        <!--
        <attribute key="type" value="trashholder" />
        -->
        <attribute key="allowpickupable" value="1" />
        <attribute key="containerSize" value="15" />
    </item>

(Your proposition): Item lay on the dustbin when I throw it.


Code:
    <item id="1777" article="a" name="dustbin">
        <attribute key="type" value="trashholder" />
        <attribute key="allowpickupable" value="1" />
        <attribute key="containerSize" value="15" />
    </item>

It is a container but item is removed and not added into that container
 
Code:
    <item id="1777" article="a" name="dustbin">
        <!--
        <attribute key="type" value="trashholder" />
        -->
        <attribute key="allowpickupable" value="1" />
        <attribute key="containerSize" value="15" />
    </item>

(Your proposition): Item lay on the dustbin when I throw it.


Code:
    <item id="1777" article="a" name="dustbin">
        <attribute key="type" value="trashholder" />
        <attribute key="allowpickupable" value="1" />
        <attribute key="containerSize" value="15" />
    </item>

It is a container but item is removed and not added into that container
Assuming you are using TFS 1.X then you need to edit the onMoveItem in events to check if toCylinder is the dustbin and if so then to add it to the container, then you need to check if that container contains more than 15 items and if it does then remove the oldest item using container index function.

I would help more but I'm not writing a script for TFS 1.X and have you come back saying it's 0.4 or something.
 
Back
Top