• 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]Get magic lvl wasting only soul points

Exedion

Active Member
Joined
Jun 11, 2007
Messages
629
Reaction score
30
Anyone can help me with a system to get ml using using only soul points spells?
 
You can do something like dat:
Spells.xml
XML:
   <instant name="Spell Name" words="spell words" lvl="1" mana="0" soul="1" exhaustion="1000" prem="0" enabled="1" needlearn="0" event="script" value="soul down.lua">
</instant>

soul down.lua
LUA:
function onCastSpell(cid, var)
	local by = Erexo
	local counter = 100 -- 1wasted soul gives you 100spend mana
	local pos, soul = getPlayerPosition(cid), getPlayerSoul(cid)
	if by == Erexo then
		doPlayerAddSpentMana(cid, counter * soul + counter)
		doPlayerAddSoul(cid, -soul)
		doSendMagicEffect(pos, 12)
	end
return true
end

Why "counter * soul + counter" ?
Because one soul you wasted to execute spell.

Not tested but should work.
 
Last edited:
Back
Top