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

[Monster] Monster attack faster

StormRusher

New Member
Joined
Dec 23, 2009
Messages
138
Reaction score
0
request[1] solved edited~~


Does it possible to make a monster attack faster ? I mean, when a player enter in the range the monster attacks immediately, but i dont want change the attack rate of the monster, only the "first attack".. hope its possible..

Ty
 
Last edited:
data/monster/.../monstername.xml
PHP:
		<attack name="melee" interval="3000" chance="20" range="7" radius="3" target="0" min="-200" max="-600">
			<attribute key="areaEffect" value="blackspark"/>
		</attack>

example from apocalypse!
 
Lua:
<attack name="melee" interval="3000" chance="20"

This means:

Interval 3000 = Every 3 seconds, there is

chance="20" = 20% chance that you will attack opponement.

Which means average 1 hit every 15 seconds.

Lets tweak it:

If you put chance to 100%.
And put Interval to 500 instead of 3000.

You will attack 1 time every 0.5 seconds. (Average 2 attacks each second).

Lua:
<attack name="melee" interval="500" chance="100"
 
Lua:
<attack name="melee" interval="3000" chance="20"

This means:

Interval 3000 = Every 3 seconds, there is

chance="20" = 20% chance that you will attack opponement.

Which means average 1 hit every 15 seconds.

Lets tweak it:

If you put chance to 100%.
And put Interval to 500 instead of 3000.

You will attack 1 time every 0.5 seconds. (Average 2 attacks each second).

Lua:
<attack name="melee" interval="500" chance="100"


thanks... but i was on the right way ;P
 
I think its not possible to do what i need, i needed that the monster spam the attack (like an sd shoot) and then when shooted, wait (2seconds) before attack again =x
 
Back
Top