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

TFS 1.X+ Gate of experience works, but doesn't show level requirement

overdriven

Active Member
Joined
Mar 10, 2020
Messages
70
Solutions
1
Reaction score
42
17:41 You see a gate of expertise.
Only the worthy may pass.
Item ID: 1229, Action ID: 1030
This is what I see when I look at the door. Why it doesn't show level requirement?

How do I fix it? I'm running TFS 1.5 with Nekiro's 7.72 downgrade.
Post automatically merged:

Found a solution.

in data/items/items.xml have to add leveldoor attribute:

XML:
    <item id="1229" article="a" name="gate of expertise">
        <attribute key="type" value="door"/>
        <attribute key="leveldoor" value="1000" /> <!-- this was missing -->
        <attribute key="blockprojectile" value="1"/>
        <attribute key="description" value="Only the worthy may pass."/>
    </item>
 
Last edited:
You can also use this

Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if player:getLevel() >= yourlevel then
        if item.itemid == 1247 then
            player:teleportTo(toPosition, true)
            item:transform(item.itemid + 1)
        end
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You have to get (typeyourlevel).")
    end
    return true
end
 
You can also use this

Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if player:getLevel() >= yourlevel then
        if item.itemid == 1247 then
            player:teleportTo(toPosition, true)
            item:transform(item.itemid + 1)
        end
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You have to get (typeyourlevel).")
    end
    return true
end
thank but this is simplier and it has corrected the problem .
Lua:
<attribute key="leveldoor" value="1000" /> <!-- this was missing -->
 
Back
Top