dantexd
Member
- Joined
- Sep 1, 2010
- Messages
- 97
- Reaction score
- 23
Hello, sorry for bothering but I downloaded a data pack to work on it but I`m having some issues anyone has an idea of what is happening here?
Though if someone can add a link for spells or some type of learning place so I can study what is going on with the next problems?
I have no knowledge at scripting sorry but with an example I will be able to fix all the problems like this.
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 134)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -7, -70, -7, -75, 10, 10, 5.1, 5.5)
function onCastSpell(cid, var)
local position1 = {x=getThingPosition(getCreatureTarget(cid)), y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
doSendMagicEffect(position1, 157)
return doCombat(cid, combat, var)
end
Though if someone can add a link for spells or some type of learning place so I can study what is going on with the next problems?
I have no knowledge at scripting sorry but with an example I will be able to fix all the problems like this.
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 134)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -7, -70, -7, -75, 10, 10, 5.1, 5.5)
function onCastSpell(cid, var)
local position1 = {x=getThingPosition(getCreatureTarget(cid)), y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z}
doSendMagicEffect(position1, 157)
return doCombat(cid, combat, var)
end