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

Help with a pitfall.

Jfrye

Mapper, trying to learn scripting
Joined
Jan 8, 2009
Messages
366
Solutions
5
Reaction score
86
Location
Mexico Missouri
Hey, Im having a small issue with a pitfall that will not change after someone goes down.

TFS 1.1 10.77

XML:
    <item id="3310" article="a" name="pitfall">
        <attribute key="floorchange" value="down" />
    </item>
    <item id="3311" article="a" name="pitfall">
        <attribute key="floorchange" value="down" />
        <attribute key="decayTo" value="3310" />
        <attribute key="duration" value="60" />
    </item>

Item 3310 does not change to 3311 after you go down it. But 3311 will change to 3310 correctly. Does anyone know how to fix this so 3310 turns to 3311 as soon as the player enters?
 
Last edited by a moderator:
This isn't something in items.xml that can be changed, I don't think.

You'd need to create a movements script..
I don't know how to script 1.x though.

LUA:
 onStepIn(cid, et, cet, era)
    if there is ground underneath this hole then
        transform tile to 3311
        relocate all items beneath this hole
    end
    return true
end
 
Last edited by a moderator:
Add this to your movements.xml.
XML:
<movevent event="StepIn" itemid="3310" script="decay.lua"/>
 
Last edited by a moderator:
Solution

Similar threads

Back
Top