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

undefenied damage

foxkbt

Member
Joined
Sep 29, 2009
Messages
290
Reaction score
7
Location
Salvador
i set one new spell if a "setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_UNDEFINEDDAMAGE)"

but does not show the damage of the attack

I need a function that does the damage appear purple

thx
 
There isn't such a DAMAGETYPE that has purple damage.
But you can do it as following:
Do a combat that has no own damage. Add "setCombatCallback(combat,CALLBACK_PARAM_TARGETTILE,"your_function")

and make a function which checks if there is a player on pos and if it is deal a certain damage to the player and add "doSendAnimatedText(pos,damage,COLOR_PURPLE)"
 
i dont know do that
and a dont want to change damage type

my attack speel is that

PHP:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_UNDEFINEDDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_SOUND_WHITE)
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_DARKPURPLE)

function onGetFormulaValues(cid, level, skill, maglevel, factor, fist)
	local skillTotal, magTotal = (getPlayerSkillLevel(cid, SKILL_FIST)/3)+ (level/5), getPlayerMagLevel(cid)
	
	return -(skillTotal + (magTotal*6)), -(skillTotal + (magTotal*8.3))
end

setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

local area = createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4)
setCombatArea(combat1, area)

function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 89456) == 1 then
		doPlayerSendCancel(cid, "voce esta impossibilitado de gastar mana.")
else
	return doCombat(cid, combat1, var)
end
end

i only want to do this speel show damage
thanks
 
Back
Top