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

Soulfire spell.

Onizuka

Member
Joined
Jul 5, 2008
Messages
2,291
Reaction score
14
Hey.
So i'll get straight to it, i aint no good at lua.
So i need help with this very simple script for anyone who has the spare few minutes.


Soulfire - TibiaWiki - Quests, Items, Spells, and more

LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)

local condition = createConditionObject(CONDITION_FIRE)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 10, 2000, -10)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

If anyone can write this as its rl tibia suppose to be ill pay 2euro paypal :)
Should be very simple and fast scripting. :)

Regards.
 
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)

local t = {}
for a = 1, 400 do
	t[a] = {}
	for b = 0, 156 do
		t[a][b] = createConditionObject(CONDITION_FIRE)
		setConditionParam(t[a][b], CONDITION_PARAM_DELAYED, true)
		addDamageCondition(t[a][b], math.ceil(a / 3 + b / 3), 9000, -10)
	end
end

function onCastSpell(cid, var)
	if doCombat(cid, combat, var) then
		local target = variantToNumber(var)
		if target == 0 then
			target = getTopCreature(variantToPosition(var)).uid
		end
		if target == 0 then
			return false
		end
		return doTargetCombatCondition(cid, target, t[getPlayerLevel(cid)][getPlayerMagLevel(cid)], CONST_ME_NONE)
	end
end
Enjoy higher memory usage and (re-)load times :p
 
Last edited:
what is a and b?

don't work for me, the burning hit only 10,10,10,10....
i need to damage based on mlevel..
 
Last edited:
Back
Top