• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] -> [SOLVED] Spell that makes u faster, but will lower ur damage and defense

Faster... walking speed?
The lower damage and defense can be done by reducing player skills with condition.
 
As the Thread title says :p If someone is able to do it, please make it!

Thanks

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)


local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 8000)
setConditionFormula(condition, 1.3, -24, 1.3, -24)
setCombatCondition(combat, condition)

local condition2 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 8000)
setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCE, -20)
setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELD, -20)
setCombatCondition(combat2, condition2)

function onCastSpell(cid, var)
	local ret = LUA_ERROR
	if(doCombat(cid, combat, var) == LUA_NO_ERROR) and (doCombat(cid, combat2, var) == LUA_NO_ERROR) then
		ret = LUA_NO_ERROR
	end
	return ret
end

this is my spell swift foot increase your speed but decrease your distance and shielding.

SEE YOU IN ARLAXIS.
 
Back
Top