• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua [help]Directional Spells with lua function

Exedion

Active Member
Joined
Jun 11, 2007
Messages
629
Reaction score
30
is possible make directional spells like fire wave with the function:

LUA:
doCombatAreaHealth

and how i can do it?
 
i don't think so. it'll only work in spells with doCombat where direction="1"

and how i can do doCombat with summons? when i try, the area are executed with the player direction, not with the summon :/

can do sourcers edit for that or for my thread request?
 
for those who may need this, YES, THIS CAN BE!

Take a look for the example:
Code:
doCombatAreaHealth(cid, COMBAT_FIREDAMAGE, [color=red]getCreatureLookPosition(cid)[/color], area, -1, -300, CONST_ME_HITBYFIRE)

in param "POS" add the function "getCreatureLookPosition(cid)" to make this a directional spell :)
 

Similar threads

Back
Top