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

Small SD

Status
Not open for further replies.

Blade33711

Member
Joined
Aug 6, 2012
Messages
133
Solutions
1
Reaction score
5
Location
Poland
How to make a small sd during the attack?
I saw this on another server.

TFS 0.4
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -5.0, -150, -6.0, 0)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 
Last edited:
This is the hit effect, which appears on target CONST_ME_MORTAREA:
Code:
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
This is distance effect CONST_ANI_SUDDENDEATH:
Code:
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)

All effects you can find in data/lib/constant.lua
 
Like this:
72t1jo.png
 
Status
Not open for further replies.
Back
Top