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

[Help] Mass Healing and Buffs

Virgel

New Member
Joined
Jun 14, 2007
Messages
150
Reaction score
2
I know how to create a mass spell like mass healing... but everytime it heals monsters also now... how can i fix that?

Another question is,I know how i can buff a player, but if he is buffed (maybe skill sword + 5) it should not be able to buff him again...

anyone got an idea?

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	min = (level * 1 + maglevel * 4) * 2.08
	max = (level * 1 + maglevel * 4) * 2.7
	if min < 250 then
		min = 250
	end
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)

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

Thx you!
Virgel
 
Last edited:
Greetings...

The actually Mass Healing is healings also creatures... i need it so, that only players get healed :) Same to buffs.

The spells are already done, but they work also on creatures and if a player is buffed you can buff him again :(

I did try so many things but nothing helps...

Virgel
 
if you make an other player faster or give him better skill thats a buff (you help someone with an spell)... this should be able only one time not everytime the spell get casted!

Example

swordskill normal: 40
swordskill buffed1: 45
swordskill buffed2: 50 (this should not be posible)
swordskill buffed2: 55 (this should not be posible)

The buff runs 30minutes and when this buff is activ it should not be posible to gave the player the same buff again...

Actually i can give buffs but cant block the second buff ;)

Virgel
 
Back
Top