• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Avesta] Fire Field , Energy Field , Poison Field

oldtimes

Member
Joined
Jan 21, 2013
Messages
311
Reaction score
23
These runes: Fire Field , Energy Field , Poison Field ain't working properly when you attack monsters.

If you attack a player, they work just fine.
But if you attack a monster they wont hurt them at all and the field wont even show up.

Anyone know the problem maybe? Any ideas?
 
I think the items.xml is not working, here is sample I use and works for me.

XML:
	<item id="1487" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1488"/>
		<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>
	<item id="1488" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1489"/>
		<attribute key="duration" value="120"/>
		<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="decayTo" value="0"/>
		<attribute key="duration" value="120"/>
		<attribute key="field" value="fire"/>
	</item>
	<item id="1490" article="a" name="poison field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="120"/>
		<attribute key="field" value="poison">
			<attribute key="ticks" value="5000"/>
			<attribute key="start" value="5"/>
			<attribute key="damage" value="100"/>
		</attribute>
	</item>
	<item id="1491" article="an" name="energy field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="120"/>
		<attribute key="field" value="energy">
			<attribute key="damage" value="30"/>
			<attribute key="ticks" value="10000"/>
			<attribute key="damage" value="25"/>
		</attribute>
	</item>
	<item id="1492" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<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>
	<item id="1493" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="field" value="fire">
			<attribute key="ticks" value="10000"/>
			<attribute key="count" value="7"/>
			<attribute key="damage" value="10"/>
		</attribute>
	</item>
	<item id="1494" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="field" value="fire"/>
	</item>
	<item id="1495" article="an" name="energy field">
		<attribute key="type" value="magicfield"/>
		<attribute key="field" value="energy">
			<attribute key="damage" value="30"/>
			<attribute key="ticks" value="10000"/>
			<attribute key="damage" value="25"/>
		</attribute>
	</item>
	<item id="1496" article="a" name="poison field">
		<attribute key="type" value="magicfield"/>
		<attribute key="field" value="poison">
			<attribute key="ticks" value="5000"/>
			<attribute key="start" value="5"/>
			<attribute key="damage" value="100"/>
		</attribute>
	</item>
	<item id="1497" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
	</item>
	<item id="1498" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="20"/>
	</item>
	<item id="1499" article="a" name="rush wood">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="45"/>
	</item>
	<item id="1500" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1501"/>
		<attribute key="duration" value="10"/>
		<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>
	<item id="1501" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1502"/>
		<attribute key="duration" value="10"/>
		<attribute key="field" value="fire">
			<attribute key="ticks" value="10000"/>
			<attribute key="count" value="7"/>
			<attribute key="damage" value="10"/>
		</attribute>
	</item>
	<item id="1502" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="10"/>
		<attribute key="field" value="fire"/>
	</item>
	<item id="1503" article="a" name="poison gas">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="10"/>
		<attribute key="field" value="poison">
			<attribute key="ticks" value="5000"/>
			<attribute key="start" value="5"/>
			<attribute key="damage" value="100"/>
		</attribute>
	</item>
	<item id="1504" article="an" name="energy field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="10"/>
		<attribute key="field" value="energy">
			<attribute key="damage" value="30"/>
			<attribute key="ticks" value="10000"/>
			<attribute key="damage" value="25"/>
		</attribute>
	</item>

Note that I have changed in sources on the fields made by monsters
 
I think the items.xml is not working, here is sample I use and works for me.

XML:
	<item id="1487" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1488"/>
		<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>
	<item id="1488" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1489"/>
		<attribute key="duration" value="120"/>
		<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="decayTo" value="0"/>
		<attribute key="duration" value="120"/>
		<attribute key="field" value="fire"/>
	</item>
	<item id="1490" article="a" name="poison field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="120"/>
		<attribute key="field" value="poison">
			<attribute key="ticks" value="5000"/>
			<attribute key="start" value="5"/>
			<attribute key="damage" value="100"/>
		</attribute>
	</item>
	<item id="1491" article="an" name="energy field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="120"/>
		<attribute key="field" value="energy">
			<attribute key="damage" value="30"/>
			<attribute key="ticks" value="10000"/>
			<attribute key="damage" value="25"/>
		</attribute>
	</item>
	<item id="1492" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<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>
	<item id="1493" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="field" value="fire">
			<attribute key="ticks" value="10000"/>
			<attribute key="count" value="7"/>
			<attribute key="damage" value="10"/>
		</attribute>
	</item>
	<item id="1494" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="field" value="fire"/>
	</item>
	<item id="1495" article="an" name="energy field">
		<attribute key="type" value="magicfield"/>
		<attribute key="field" value="energy">
			<attribute key="damage" value="30"/>
			<attribute key="ticks" value="10000"/>
			<attribute key="damage" value="25"/>
		</attribute>
	</item>
	<item id="1496" article="a" name="poison field">
		<attribute key="type" value="magicfield"/>
		<attribute key="field" value="poison">
			<attribute key="ticks" value="5000"/>
			<attribute key="start" value="5"/>
			<attribute key="damage" value="100"/>
		</attribute>
	</item>
	<item id="1497" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
	</item>
	<item id="1498" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="20"/>
	</item>
	<item id="1499" article="a" name="rush wood">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="45"/>
	</item>
	<item id="1500" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1501"/>
		<attribute key="duration" value="10"/>
		<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>
	<item id="1501" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="1502"/>
		<attribute key="duration" value="10"/>
		<attribute key="field" value="fire">
			<attribute key="ticks" value="10000"/>
			<attribute key="count" value="7"/>
			<attribute key="damage" value="10"/>
		</attribute>
	</item>
	<item id="1502" article="a" name="fire field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="10"/>
		<attribute key="field" value="fire"/>
	</item>
	<item id="1503" article="a" name="poison gas">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="10"/>
		<attribute key="field" value="poison">
			<attribute key="ticks" value="5000"/>
			<attribute key="start" value="5"/>
			<attribute key="damage" value="100"/>
		</attribute>
	</item>
	<item id="1504" article="an" name="energy field">
		<attribute key="type" value="magicfield"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="10"/>
		<attribute key="field" value="energy">
			<attribute key="damage" value="30"/>
			<attribute key="ticks" value="10000"/>
			<attribute key="damage" value="25"/>
		</attribute>
	</item>

Note that I have changed in sources on the fields made by monsters

Didnt help at all.
 
Then you might've fucked something up, keep in mind that your monsters most likely are shooting wrong id on fire/poison/energy

assuming as the server host you are, you have ability to alter source code.

Change:

Code:
		else if(asLowerCaseString(name) == "firefield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1492);
		}
		else if(asLowerCaseString(name) == "poisonfield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1496);
		}
		else if(asLowerCaseString(name) == "energyfield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1495);
		}

to this:

Code:
		else if(asLowerCaseString(name) == "firefield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1487);
		}
		else if(asLowerCaseString(name) == "poisonfield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1490);
		}
		else if(asLowerCaseString(name) == "energyfield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1491);
		}

Or edit the 'static' fields in items.xml to act correct
 
Then you might've fucked something up, keep in mind that your monsters most likely are shooting wrong id on fire/poison/energy

assuming as the server host you are, you have ability to alter source code.

Change:

Code:
		else if(asLowerCaseString(name) == "firefield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1492);
		}
		else if(asLowerCaseString(name) == "poisonfield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1496);
		}
		else if(asLowerCaseString(name) == "energyfield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1495);
		}

to this:

Code:
		else if(asLowerCaseString(name) == "firefield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1487);
		}
		else if(asLowerCaseString(name) == "poisonfield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1490);
		}
		else if(asLowerCaseString(name) == "energyfield"){
			combat->setParam(COMBATPARAM_CREATEITEM, 1491);
		}

Or edit the 'static' fields in items.xml to act correct


I think you missunderstood me.
The problem is when you as a player shoot a field rune at a monster. When you do this it wont hurt the monster or the field wont even show up under the monster.
But when you shoot a player it works perfect.
 
Keep in mind if you do not patch the source thing, monsters will shoot static fields. Also take a look on fire elementals and slimes/slime summons corpses
 
Back
Top