• 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 [tfs 1.3] Damage area spell with direction and effect offset

Cebal

Member
Joined
Aug 28, 2009
Messages
18
Solutions
2
Reaction score
8
Hello guys! Im looking for a simple script of a spell that causes damage on area with direction and bigger effect sprites (32x128) with offset for each of directions.
For example player's looking North and uses spell:

Spell effect would be for example 200 with offset x+1, y-1. I'd like to see 1 effect near player but it'd hit everyone on its direction where I put "1" on area example below:
{0, 1, 0}
{0, 1, 0}
{0, 1, 0}
{0, 1, 0}
{0, 3, 0}
{0, 0, 0}

Then if player's looking South:
Spell effect 201 with an offset x+2, y+1 and hits within area example:
{0, 0, 0}
{0, 3, 0}
{0, 1, 0}
{0, 1, 0}
{0, 1, 0}
{0, 1, 0}

Thanks!
 
Back
Top