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

Fire Field bug

Eclipso

Mapper
Joined
Apr 12, 2017
Messages
96
Reaction score
6
Hey Otlanders ihave an problem with my server when i use firebomb and it make fire field its doesn't make any dmg for players But it give +20 health can any one help me pls Thanks :)
 
Hey Otlanders ihave an problem with my server when i use firebomb and it make fire field its doesn't make any dmg for players But it give +20 health can any one help me pls Thanks :)

Post your LUA script (..data/spells/scripts/attack/fire bomb.lua) and tell us your TFS version
 
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1492)

local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Tfs 4.0

And ineed tell u when i walk on any fire its add +10 health no take -10 damge
 
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1492)

local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Tfs 4.0

And ineed tell u when i walk on any fire its add +10 health no take -10 damge

it looks fine, last time I had issues with damage was because of the source..

Try this:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, ITEM_FIREFIELD_PVP_FULL)

local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
The problem might be on your items.xml, make sure it has the attribute.

Code:
<attribute key="damage" value="20" />
 
i add that and its still Add +20 health

Might be worth a try with the items.xml

../data/items/items.xml

search for the following items, the third one (1489) will not have any damage associated with it, meaning it can be ignored:

XML:
<item id="1487" article="a" name="fire field">
<item id="1488" article="a" name="fire field">
<item id="1489" article="a" name="fire field">

check the following attributes in 1487:

XML:
<attribute key="damage" value="20" />
<attribute key="ticks" value="10000" />
<attribute key="count" value="7" />
<attribute key="damage" value="10" />

check the following attributes in 1488:

XML:
<attribute key="ticks" value="10000" />
<attribute key="count" value="7" />
<attribute key="damage" value="10" />

<attribute key="damage" value="20" /> - damage on cast rune
<attribute key="damage" value="10" /> - damage over time (fire condition)

-------------------

if this is how your items.xml looks, change it to negative value, i.e. -20 and -10 in both; 1487/1488

NOTE: This will only mitigate the issue, it will not be fixed completely. (The fire bomb rune will work)
 
XML:
    <item id="1487" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="replaceable" value="0" />
        <attribute key="field" value="fire">
            <attribute key="damage" value="20" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1488" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="replaceable" value="0" />
        <attribute key="field" value="fire">
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1489" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="replaceable" value="0" />
        <attribute key="field" value="fire" />
    </item>
Note:That's my items.xml look :0
 
Last edited by a moderator:
<item id="1487" article="a" name="fire field">
<attribute key="type" value="magicfield" />
<attribute key="replaceable" value="0" />
<attribute key="field" value="fire">
<attribute key="damage" value="20" />
<attribute key="ticks" value="10000" />
<attribute key="count" value="7" />
<attribute key="damage" value="20" />
</attribute>
</item>
<item id="1488" article="a" name="fire field">
<attribute key="type" value="magicfield" />
<attribute key="replaceable" value="0" />
<attribute key="field" value="fire">
<attribute key="ticks" value="10000" />
<attribute key="count" value="7" />
<attribute key="damage" value="10" />
</attribute>
</item>
<item id="1489" article="a" name="fire field">
<attribute key="type" value="magicfield" />
<attribute key="replaceable" value="0" />
<attribute key="field" value="fire" />
Note:That's my items.xml look :0

Of course, that's what I was expecting. Change to this:

XML:
<item id="1487" article="a" name="fire field">
<attribute key="type" value="magicfield" />
<attribute key="replaceable" value="0" />
<attribute key="field" value="fire">
<attribute key="damage" value="-20" />
<attribute key="ticks" value="10000" />
<attribute key="count" value="7" />
<attribute key="damage" value="-20" />
</attribute>
</item>
<item id="1488" article="a" name="fire field">
<attribute key="type" value="magicfield" />
<attribute key="replaceable" value="0" />
<attribute key="field" value="fire">
<attribute key="ticks" value="10000" />
<attribute key="count" value="7" />
<attribute key="damage" value="-10" />
</attribute>
</item>
<item id="1489" article="a" name="fire field">
<attribute key="type" value="magicfield" />
<attribute key="replaceable" value="0" />
<attribute key="field" value="fire" />
 
its still add +20 health
if u need come see problem with ur eyes come see here ip:156.217.111.252
ot version:8.6
 
Last edited:
its still add +20 health
if u need come see problem with ur eyes come see here ip:156.217.111.252
ot version:8.6

server appears to be offline. Make sure the ID from items.xml is the same when casting the rune (look at the fire field for ID)
 
yes it same id

hey ihad seen that on the forgotten server when i was run server
[07/05/2017 08:44:06] [Warning - Items::loadFromXml] Unknown key value damage
[07/05/2017 08:44:06] [Warning - Items::loadFromXml] Unknown key value ticks
[07/05/2017 08:44:06] [Warning - Items::loadFromXml] Unknown key value count
[07/05/2017 08:44:06] [Warning - Items::loadFromXml] Unknown key value damage
Maybe the problem comes from here?
 
Last edited by a moderator:
hey ihad seen that on the forgotten server when i was run server
[07/05/2017 08:44:06] [Warning - Items::loadFromXml] Unknown key value damage
[07/05/2017 08:44:06] [Warning - Items::loadFromXml] Unknown key value ticks
[07/05/2017 08:44:06] [Warning - Items::loadFromXml] Unknown key value count
[07/05/2017 08:44:06] [Warning - Items::loadFromXml] Unknown key value damage
Maybe the problem comes from here?

Yes, if it's not a problem then I'd suggest you download new 0.4 TFS source, or already compiled server and see how that goes.

[8.60] The Forgotten Server 0.4
 
ok the problem is from the TFS source but my tfs source is compiled 100 (
BROKEN 2B HP AND MP LIMIT same for Monsters ) how can i get it without bug FFS :(
 
Back
Top