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

darkmu

Well-Known Member
Joined
Aug 26, 2007
Messages
278
Solutions
1
Reaction score
50
Location
Paraná,Brazil
Could someone help me or give me examples such as using the function to present colored effects on the screen and such, when clicking on a chest, or using an onThink () to make the character's effect come out?
Because the only way I use it would be in spells, but I would like to pass these effects (without damage) on the characters.
 
Just pass position as first paramter and effect as second
ex:
LUA:
doSendMagicEffect(Position(x, y, z), CONST_ME_TELEPORT)
 
Just pass position as first paramter and effect as second
ex:
LUA:
doSendMagicEffect(Position(x, y, z), CONST_ME_TELEPORT)

Yes, but I would like to know if it is possible to make the same spell, I define the field and use the function to present it.

Example:
arr = {
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}
}
 
I don't know if it's possible using doSendMagicEffect, but you can use doAreaCombatHealth and pass damage as 0
LUA:
local area = createCombatArea(arr)

doAreaCombatHealth(creature.uid, COMBAT_ICEDAMAGE, position, area, 0, 0, CONST_ME_ICETORNADO)

Tell me if it's not what you need :D
 
I don't know if it's possible using doSendMagicEffect, but you can use doAreaCombatHealth and pass damage as 0
LUA:
local area = createCombatArea(arr)

doAreaCombatHealth(creature.uid, COMBAT_ICEDAMAGE, position, area, 0, 0, CONST_ME_ICETORNADO)

Tell me if it's not what you need :D

@darkmu Work!
remember to declare this line outside the main function: local area = createCombatArea(arr)
 
Last edited:
I don't know if it's possible using doSendMagicEffect, but you can use doAreaCombatHealth and pass damage as 0
LUA:
local area = createCombatArea(arr)

doAreaCombatHealth(creature.uid, COMBAT_ICEDAMAGE, position, area, 0, 0, CONST_ME_ICETORNADO)

Tell me if it's not what you need :D

That's more or less, so I didn't want it to hurt, just leave the only effect ha ha ha
 
Back
Top