• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

custom spells and monster

Status
Not open for further replies.

fredde3436

Member
Joined
Jul 6, 2009
Messages
226
Reaction score
7
I want to add custom spells ONLY to monster usage.
How do i do?

When i open the monsterfile, i see probably Attack name "energy"
on a demon.

But in the spell folder there is no attack named like that?
How do u do so the custom spell get used by the monster?
 
just make normal custom spell and make it needlearn or sth like that
 
But, how do i add spell so monster use it?
Attack name "custom spell name" and its done?
or how?
 
yeah, just write the name of custom attack, like some monsters have sudden death or ultimate healing
 
So, I write the spellname and not the "execution" word?
If i name the spell: devine flash and execution word "exevo flash".
im gonna use the "Devine flash" in the monster.xml?
 
20th August 2009, 14:32 <V
21st August 2009, 14:31 < Bump
You Said It One Minute To Early :p
 
Here you go. Part of my pet system, won't post the spells they do. Cause I don't wanna give that away :P But the spells work like normal spells. But you might wanna add a check if the caster is a creature and not a player

LUA:
if not isPlayer(cid) then

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="pet" nameDescription="a pet" race="blood" experience="0" speed="4000" manacost="0">
	<health now="430000" max="430000"/>
	<look type="143" head="20" body="30" legs="40" feet="50" addons="3" corpse="4046"/>
	<targetchange interval="5000" chance="8"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="1"/>
		<flag convinceable="1"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="1"/>
		<flag staticattack="90"/>
		<flag runonhealth="429"/>
		<flag skull="black"/>
	</flags>
	<attacks>
		<attack name="melee" interval="1000" skill="20" attack="55"/>
		<attack name="PETATTACK" interval="2000" chance="100" />
	</attacks>
	<defenses armor="15" defense="12">
		<defense name="petheal" interval="2000" chance="100">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<immunities>
	</immunities>
	<voices interval="5000" chance="10">
	</voices>
	<loot>
	</loot>
</monster>
 
Requested deletion/close.
 
Status
Not open for further replies.
Back
Top