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

How to include new atacks

mengueh

Newbie
Joined
May 5, 2013
Messages
64
Reaction score
5
Hello otland.

I'm a newbie programmer but I really like to learn about it.
Today I come here to ask you guys a basic help with monster.
I was testing all the monster from my data to verify if they are ok (atks, healing, life, xp, bestiary, etc...) until I got to Crustacea Gigantica.
What Am I doing? I'm comparing the wiki source with de .lua file and fixing what I have to fix.

So here's the thing:
I need to add 3 attacks in Crustacea Gigantica


Capturar.PNG

How can I set it up in the .lua file? I mean, the ice wave damage and ice strike?

Thanks OTLand ;-)
 
It is not necessary to use lua as long as you want to use existing attacks. But if it is new attack, you need to link spell .lua script in monster's xml file.

Code:
<attacks>
  <attack name="melee" interval="2000" min="0" max="-300" poison="160" />
  <attack name="poisonfield" interval="2000" chance="10" range="7" radius="1" target="1">
   <attribute key="shootEffect" value="poison" />
  </attack>
  <attack name="earth" interval="2000" chance="10" range="7" radius="1" target="1" min="-40" max="-70">
   <attribute key="shootEffect" value="poison" />
  </attack>
</attacks>
(forgottenserver/data/monster/monsters/giant_spider.xml for example)

You can check any creature spell script on forum. Like:
And add one to one :p
 
Back
Top