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
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, ITEM_FIREFIELD_PVP_FULL)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
i add that and its still Add +20 health
<item id="1487" article="a" name="fire field">
<item id="1488" article="a" name="fire field">
<item id="1489" article="a" name="fire field">
<attribute key="damage" value="20" />
<attribute key="ticks" value="10000" />
<attribute key="count" value="7" />
<attribute key="damage" value="10" />
<attribute key="ticks" value="10000" />
<attribute key="count" value="7" />
<attribute key="damage" value="10" />
<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>
<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
<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
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?