kite28
Member
- Joined
- May 15, 2012
- Messages
- 71
- Reaction score
- 6
Hello, I need help with the harness because I don't know what's wrong anymore. Not working . maybe writing new ones.
TFS 1.4.2
1. I need a directional spell. Whenever the character turns, a magical effect strikes a specific place, and in the script it is possible to change the position of the effect and the area of effect.
2. Aoe with one effect and aoe with many effect
This is my old script but no work.
Very thanks for help <3
TFS 1.4.2
1. I need a directional spell. Whenever the character turns, a magical effect strikes a specific place, and in the script it is possible to change the position of the effect and the area of effect.
2. Aoe with one effect and aoe with many effect
This is my old script but no work.
LUA:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_TEAL)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -5.0, -1200, -5.0, -1400)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -400)
addCombatCondition(combat1, condition)
arr1 = {
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 3, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
}
local area1 = createCombatArea(arr1)
setCombatArea(combat1, area1)
function onCastSpell(cid, var)
local waittime = 1 -- Tempo de exhaustion
local storage = 8032
if exhaustion.check(cid, storage) then
return false
end
local p = getCreaturePosition(cid)
local x = {
[0] = {x=p.x+2, y=p.y-1, z=p.z},
[1] = {x=p.x+4, y=p.y+1, z=p.z},
[2] = {x=p.x+2, y=p.y+4, z=p.z},
[3] = {x=p.x-1, y=p.y+1, z=p.z}
}
local y = {
[0] = 91, --
[1] = 89, --prawo
[2] = 92, --dol
[3] = 90 --lewo
}
pos = x[getCreatureLookDirection(cid)]
eff = y[getCreatureLookDirection(cid)]
doSendMagicEffect(pos, eff)
doCreatureSay(cid, "Katon Gokakyu no Jutsu", TALKTYPE_MONSTER)
exhaustion.set(cid, storage, waittime)
doCombat(cid, combat1, var)
end
Last edited: