• 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+ Problem with changing items

Belfahar

New Member
Joined
Jul 21, 2016
Messages
25
Reaction score
3
I'm changing the status of some items on my server. And I wanted to create new trinkets.

I made changes to items.xml and unscripted equipments. The server opens normally, but the changes do not apply. In the event the necessary level was applied but the item cannot be placed in the ammo slot.
 

Attachments

Not sure what script that first picture is representing, but you can add this line to the item in items.xml:
XML:
<attribute key="slotType" value="ammo" />
 
With this tag i can now equip the item in the correct slot, but the attributes do not appear.

The strange thing is that i already deleted the item description. And she keeps appearing in the game.

XML:
    <item id="3237" article="a" name="sword hilt">
        <attribute key="showAttributes" value="1"/>   
        <attribute key="slotType" value="ammo" />   
        <attribute key="absorbpercentearth" value="5"/>
        <attribute key="weight" value="5200"/>
    </item>

Lua:
    {
        -- sword hilt
        itemid = 3237,
        type = "deequip",
        slot = "ammo",
        level = 500   
    },   
    {
        -- sword hilt
        itemid = 3237,
        type = "equip",
        slot = "ammo",
        level = 500
    },

When I look at the item in game, this information appears.
19:58 You see a sword hilt.
It can only be wielded properly by players of level 500 or higher.
It weighs 52.00 oz.
This was once part of a formidable two handed weapon. It seems to be rotting rapidly
Client ID: 3237
Position: 4174, 4117, 15
Post automatically merged:

I found the error... i change

<attribute key="absorbpercentearth" value="5"/>
to
<attribute key="absorbpercentpoison" value="5"/>

and it works. to remove the description i add
<attribute key="description" value=""/>

with no value... there must be a bug in the item registration... you delete the tag but do not remove the description
Post automatically merged:

Now another doubt. I putting the required level on some items, using exactly the same codes.
In some itens the description appears, and others don't. Does anyone know what can it be?


on unscripted_equipments.lua in game boots of haste dont show the required lvl... but soft boots show...

Lua:
    {
        -- boots of haste
        itemid = 3079,
        type = "equip",
        slot = "feet",
        level = 180,
        vocation = {
            {"Knight", true},
            {"Paladin", true, true},
            {"Elite Knight"},
            {"Royal Paladin"}
        }       
    },
    {
        -- boots of haste
        itemid = 3079,
        type = "deequip",
        slot = "feet",
        level = 180
    },

Lua:
    {
        -- pair of soft boots
        itemid = 6529,
        type = "equip",
        slot = "feet",
        level = 100,
        vocation = {
            {"Knight", true},
            {"Paladin", true, true},
            {"Elite Knight"},
            {"Royal Paladin"}
        }       
    },
    {
        -- pair of soft boots
        itemid = 6529,
        type = "deequip",
        slot = "feet",
        level = 100
    },

This is happening with several items, for example the paladin armor shows the lvl and vocation, dragon scale mail don't

i use the last canary version
 

Attachments

Last edited:
Back
Top