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

Fury - Monster spell

breadmaker

New Member
Joined
Jul 16, 2010
Messages
160
Reaction score
3
Hello.
Anyone can make for me an monster script:

TFS 0.3.6


If monster use this spell (Fury), his damage will be increase by 20% (only in "physical hits - melee")
 
use spell utito tempo.

but the edit of this spell for 20% physical would be this.

LUA:
local conditionAttrib = createConditionObject(CONDITION_ATTRIBUTES)

setConditionParam(conditionAttrib, CONDITION_PARAM_TICKS, 10000)
setConditionParam(conditionAttrib, CONDITION_PARAM_SKILL_SHIELDPERCENT, 0)
setConditionParam(conditionAttrib, CONDITION_PARAM_SKILL_MELEEPERCENT, 120)

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatCondition(combat, conditionAttrib)

function onCastSpell(cid, var)
	if(doCombat(cid, combat, var) == LUA_NO_ERROR) then
		return LUA_NO_ERROR
	end
	return LUA_ERROR
end
 
So what i must do, my master ?
Its possible to make it in LUA (Creaturescripts+Spell) or in C++ ?
Anyway, it will be nice if anyone got piece of code.

BUMP !
 
Back
Top