Drakkhan
Illuria Project Lead
- Joined
- Oct 3, 2013
- Messages
- 141
- Reaction score
- 22
In "fire wave.lua" the code is:
Somewhere in there, the direction the player is facing is determined so the wave goes in the direction. Is it in the combat area? or in the line "return doCombat(cid, combat, var)"? How does the code decide to check the direction the player is facing as opposed to just firing north all the time?
Regards,
Drakkhan
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)
local area = createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Somewhere in there, the direction the player is facing is determined so the wave goes in the direction. Is it in the combat area? or in the line "return doCombat(cid, combat, var)"? How does the code decide to check the direction the player is facing as opposed to just firing north all the time?
Regards,
Drakkhan