Exedion
Active Member
- Joined
- Jun 11, 2007
- Messages
- 628
- Reaction score
- 30
Well i work in the week, a spell for paladins, and i dit it with help of Pitufo(credits please) but the spell cause the "Tibia Client Debug" if are 5 or more creatures in the screen :S
well i leave the script here when fix this problem...
you need the gesior function
enjoy? ¬¬
well i leave the script here when fix this problem...
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, -20, 0.8, 0)
local area = createCombatArea(AREA_FULLSCREEN)
setCombatArea(combat, area)
function onTargetTile(cid, pos)
local creatures = getCreaturesInRange(getCreaturePosition(cid), 7, 5, 1, 1)
for _, pid in ipairs(creatures) do
doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(pid), CONST_ANI_INFERNALBOLT)
doSendMagicEffect(getCreaturePosition(pid), CONST_ME_HITAREA)
end
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
you need the gesior function
PHP:
getCreaturesInRange
enjoy? ¬¬