<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>
<attribute key="decayTo" value="1493" />
<attribute key="duration" value="120" />
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 cant find where the spells id for monster are=p
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);