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

Lua Target area spell

commandore

New Member
Joined
Jul 1, 2021
Messages
2
Reaction score
0
Hello everyone.

In the beginning - I am sorry for such a dumb question.
How can I make the spell be an area spell and target at once? I mean the area should be executed on the target. Does the needtarget tag in spells.xml guarantee that?
Also another question - according to this tutorial, there are three numbers(0, 1, 3) you can use while 'creating an area'. I was playing with such things long time ago but I am pretty sure that there was also '2'. If so, could anyone explain what does '2' stands for, please?

Thank you in advance!
 

M0ustafa

1337
Senator
Joined
Mar 4, 2017
Messages
2,562
Solutions
315
Reaction score
1,134
Location
Egypt
I think you'll have to set a range too.
XML:
needtarget="1" range="5"
and I think "2" is the same as "3", Just the center of the spell, I've found it here in combat.cpp
C++:
        if (value == 2 || value == 3) {
            area.setCenter(y, x);
        }
 
Top