• 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 Combat types

poe6man3

Member
Joined
Aug 6, 2020
Messages
87
Solutions
1
Reaction score
12
Is there tutorial that contain every single possibility to do with combat (inside spells) if not then is there somebody kind enough to write it for me ?
 
The only thing you need is imagination and a bit of common sense

Im on phone... so
Lua:
If playerPos:getDistance(targetPos) < 2 then
    return execute:combat...
end
playerPos:sendMagicEffect(CONST_ME_POFF)

EDIT: For AOE spells you will need to use onTileCombat function
Also you can search for spells on resources so you can get an idea about spells mechanics
 
Last edited:
Back
Top