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

Spell [RELEASE] Arrow Shower "New" Version 8.41 ¬¬

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...

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? ¬¬
 
i known thats old but can u help me fix that?
Code:
[10/10/2018 10:59:44] [Error - Spell Interface]
[10/10/2018 10:59:44] data/spells/scripts/attack/envenom.lua
[10/10/2018 10:59:44] Description:
[10/10/2018 10:59:44] (luaSetCombatArea) Area not found
 
Back
Top