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

(Spell) Increase Magic Level (need to know how)

Captain Orhotek

New Member
Joined
May 20, 2009
Messages
118
Reaction score
1
I need a spell that can increase the magic level of the person using it. I have tried to do a edit of the knight skill increase spell but nothing has worked so far.
 
Well I actually found that there is already a spell for this that the sorcerer can use. Just edit that to what you need. Main reason I couldnt get mine to work before finding that is because it counts magiclevel as a stat and not skill.

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
 
local condition2 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition2, CONDITION_PARAM_SKILL_CLUB, 50)
setConditionParam(condition2, CONDITION_PARAM_SKILL_SWORD, 50)
setConditionParam(condition2, CONDITION_PARAM_SKILL_AXE, 50)
setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELD, 50)
setConditionParam(condition2, CONDITION_PARAM_STAT_MAGICLEVEL, 1)
setCombatCondition(combat, condition2)

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

A simple code so you see how it works with each skill.
 
Back
Top