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

one question

Ralfegor

New Member
Joined
Apr 6, 2008
Messages
297
Reaction score
1
is there a function to add magic level?
i know about this one
doPlayerAddSkillTry(cid, skillid)
0 = Fist Fighting
1 = Club Fighting
2 = Sword Fighting
3 = Axe Fighting
4 = Distance Fighting
5 = Shielding
6 = Fishing

but there no magic ID
 
Code:
function doPlayerAddMagLevel(cid, amount)
	for i = 1, amount do
		doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid, getPlayerMagLevel(cid, true) + 1) - getPlayerSpentMana(cid)) / getConfigInfo('rateMagic'))
	end
	return true
end
 
Back
Top