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

Monsters fire is not decaying

huxizz

New Member
Joined
Jan 6, 2009
Messages
17
Reaction score
0
Location
sweden
As the topic saying. i got the problem that the fire is'nt decaying and i cant find the problem.
 
Make sure it looks like this in items.xml
PHP:
    <item id="1492" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1493" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="damage" value="20" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>

You probably didn't have this part:

PHP:
        <attribute key="decayTo" value="1493" />
        <attribute key="duration" value="120" />
 
I got the same as that and still have the problem. i think it have something to do with what id the monster spell have? or am i far away?

Make sure it looks like this in items.xml
PHP:
    <item id="1492" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1493" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="damage" value="20" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>

You probably didn't have this part:

PHP:
        <attribute key="decayTo" value="1493" />
        <attribute key="duration" value="120" />
 
if i'm not mistaken shouln't it decay to nothing? Otherwise it'll never decay? probably wrong but just a thought
 
i cant find where the spells id for monster are=p

TFS, monsters.cpp
Code:
		else if(tmpName == "firefield")
			combat->setParam(COMBATPARAM_CREATEITEM, 1492);
		else if(tmpName == "poisonfield")
			combat->setParam(COMBATPARAM_CREATEITEM, 1496);
		else if(tmpName == "energyfield")
			combat->setParam(COMBATPARAM_CREATEITEM, 1495);
 
Back
Top