• 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 Check + count corpses in local area (spell)

  • Thread starter Thread starter Xikini
  • Start date Start date
X

Xikini

Guest
TFS 0.3.7.

Attempting to re-create an old spell 'Undead Legion'.
Undead Legion is supposed to work like this.

Checks amount of summons of player. If more then 2 summons, cancel spell.
Checks local area for bodies and counts how many.
Checks how much mana will be required to cast the spell. 20 mana per body.
If enough mana, then do cast spell.
Removes bodies, summon skeletons, convince skeletons.

I'm unsure how to check and count the local area (3by3 area).

Can anyone show me how it should be done?

Thanks,

Xikini
 
Back
Top