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

[c++] creature events

perdigs

New Member
Joined
Aug 22, 2010
Messages
114
Reaction score
1
Hi i need a help to add in the source code the basic monster events, events with all monsters have by default.
For example:

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Tiger" nameDescription="a Tiger" race="animal" experience="400" speed="150" manacost="0">
	<health now="2400" max="2400"/>
	<look type="1" corpse="11549"/>
	<targetchange interval="2000" chance="1"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="1"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="1"/>
		<flag pushable="1"/>
		<flag canpushitems="0"/>
		<flag canpushcreatures="0"/>
		<flag targetdistance="1"/>
		<flag staticattack="90"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
<attack name="Basic Attack" chance="100"/>
<attack name="Quick Attack" chance="75" interval="2500" range="1"/>
<attack name="Razor Leaf" chance="70" interval="4500"/>
<attack name="Vine Whip" chance="50" interval="6300"/>
<attack name="Headbutt" chance="70" interval="3500" range="1"/>
<attack name="Leech Seed" chance="4" interval="6000"/>
<attack name="Solar Beam" chance="1" interval="3333"/>
<attack name="Sleep Powder" chance="4" interval="7000"/>
<attack name="Stun Spore" chance="5" interval="2000"/>
<attack name="Poison Powder" chance="6" interval="3500"/>	
	</attacks>
	<defenses armor="4" defense="8"/>
	<voices interval="5000" chance="10">
		<voice sentence="GRRR"/>
	</voices>
	<loot>
		<item id="2391" countmax="30" chance="50000"/><!-- seed -->
	</loot>
<script>
	<event name="BasicMode"/>
        <event name="Teleport"/>		
</script>
</monster>

I need add directly on sources for all monsters the events:

PHP:
<script>
	<event name="BasicMode"/>
        <event name="Teleport"/>		
</script>

is possible ?
Please take me a help!
Im using the TFS 0.3.6 PL1 Sources Code!
 
Back
Top