• 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 Ice/Snow Field

Exoltes

Novia OTserv Developer
Joined
Jul 2, 2009
Messages
563
Reaction score
47
Location
Belgium
I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).

I'm trying to make an ice/snow field out of snowbanks (item id: 6609, 6610, 6611).
The same way as fire fields work.

So I edited my 'items.xml' file
Code:
    <item id="6609" article="a" name="snowbank">
        <attribute key="type" value="magicfield"/>
        <attribute key="decayTo" value="6610"/>
        <attribute key="duration" value="200"/>
        <attribute key="field" value="ice">
            <attribute key="damage" value="20"/>
            <attribute key="ticks" value="9000"/>
            <attribute key="count" value="7"/>
            <attribute key="damage" value="10"/>
        </attribute>
    </item>
    <item id="6610" article="a" name="snowbank">
        <attribute key="type" value="magicfield"/>
        <attribute key="decayTo" value="6611"/>
        <attribute key="duration" value="10"/>
        <attribute key="field" value="ice">
            <attribute key="ticks" value="9000"/>
            <attribute key="count" value="7"/>
            <attribute key="damage" value="10"/>
        </attribute>
    </item>
    <item id="6611" article="a" name="snowbank">
        <attribute key="type" value="magicfield"/>
        <attribute key="decayTo" value="0"/>
        <attribute key="duration" value="10"/>
        <attribute key="field" value="ice">
        </attribute>

[02/08/2014 19:19:11] Warning: [Items::loadFromXml] Unknown field value ice
[02/08/2014 19:19:11] Warning: [Items::loadFromXml] Unknown field value ice
[02/08/2014 19:19:11] Warning: [Items::loadFromXml] Unknown field value ice


So what I am looking for is the place where it is defined what the value of attribute key 'field' can be.

So if anyone could help me, it would be appreciated a lot.
 
Tried that and for some reason it didn't work like a field, also edited it in my 'items.otb' to be the same as a fire field.

So I've replaced some existing fields to become the ice field. They do work but still can't get the ice dmg on it. Maybe its possible to make a lua script for this?
 
Gave it a shot but it seems I can't keep the condition.

Code:
local condition = createConditionObject(CONDITION_FREEZING)
setConditionParam(condition, CONDITION_PARAM_PERIODICDAMAGE, -10)
setConditionParam(condition, CONDITION_PARAM_TICKS, 7)
setConditionParam(condition, CONDITION_PARAM_DURATION, 200)
setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 2000)

function onStepIn(cid, item, pos)
    if isPlayer(cid) == TRUE then
        doAddCondition(cid, condition)
    end
end

I would love to make it the same as a fire field but in ice dmg.
 
Back
Top