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

A players ml went above the max ml limit

Xaiman

New Member
Joined
Feb 27, 2010
Messages
94
Reaction score
0
Well randomly about 30 mins ago my server started crashing every 30 sec :/ well after some investigating a guy came up and said he thought it was him. Come to find out, any time he did spells it would crash the server. he said his char was fine untill he got level 500 (thats when you can get your 2nd promo) after he got the promo, this started happening. well i made him a new char, gave his level back and solved it.

I looked in the database and the max ml for his voc is 44 (pally) some how his ml was 93 and in the (mana spent) thing for his char it was at 0.

This has happened 1 other time in my server, right when we started development. I was wondering if anyone has had this happen and what i can do to prevent it from happening again?
 
ml rate is 999 x.x high rate ot and idk exactly what you mean by the spells mana cost (as in like what spell) but my spells are anywere from 2k to 20k mana but for a pally its like 1-3k. i think the highest is 2k actually.
 
This Is Ml Bug LoL And its very often To Many Servers But You Might Have Some Errors In Scripts.
The Only Way To Fix This Problem Make Magic Level x100 cuz 999x is insane -.^
 
@up
nah It Couldnt Be A Vocation Problem Via Magic Level Cuz Any Promoted Folder For Vocations Dosen't Control Magic Level.
So the 2 only resons of this:-
1- Magic Level is Too High
2- Errors In The First Vocation Folder Which is Palladin
 
@up i lowered the magic rate to 500. but what vocation file are you talking about the xml or the lua? I cant see any error in either but this problem does seem only to be on pallys.

P.S. You must have not played ot's when they first came out :p it was like exp rate 9999999 and skill the same lol
 
@up i lowered the magic rate to 500. but what vocation file are you talking about the xml or the lua? I cant see any error in either but this problem does seem only to be on pallys.

P.S. You must have not played ot's when they first came out :p it was like exp rate 9999999 and skill the same lol

I was joking -.-. 'Source Edit' is 2 words. I also didn't know you had your ml rate set so high.
 
@up i lowered the magic rate to 500. but what vocation file are you talking about the xml or the lua? I cant see any error in either but this problem does seem only to be on pallys.

P.S. You must have not played ot's when they first came out :p it was like exp rate 9999999 and skill the same lol

Can You Copy The Paladin File And The Promoted File??
 
idk exactly what you mean. i have paladin file. all chars are based off of the sample chars in the database. Here is my voc.lua and voc.xml files tho. i see nothing in them that would effect the ml gain.

The xml:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
	<vocation id="0" name="Beggar" description="a beggar" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
		<vocation id="1" name="Mage" description="a Mage" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="1500" soulmax="1" gainsoulticks="120" fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.5" experience="1.0"/>
	</vocation>
	<vocation id="2" name="Druid" description="a Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="1500" soulmax="1" gainsoulticks="120" fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.5" experience="1.0"/>
	</vocation>
	<vocation id="3" name="Archer" description="an Archer" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.4" attackspeed="1500" soulmax="1" gainsoulticks="120" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.2" magDamage="1.2" magHealingDamage="1.5" defense="1.2" magDefense="1.0" armor="1.0"/>
		<skill fist="1.4" club="1.4" sword="1.4" axe="1.4" distance="1.1" shielding="1.4" fishing="1.5" experience="1.0"/>
	</vocation>
	<vocation id="4" name="Knight" description="a Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="3.0" attackspeed="1500" soulmax="1" gainsoulticks="120" fromvoc="4">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.5" defense="1.5" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.5" experience="1.0"/>
	</vocation>
	<vocation id="5" name="Death Mage" description="a Death Mage" needpremium="1" gaincap="100" gainhp="10" gainmana="45" gainhpticks="2" gainhpamount="100" gainmanaticks="2" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="1" gainsoulticks="120" fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
	<vocation id="6" name="Death Druid" description="a Death Druid" needpremium="1" gaincap="100" gainhp="10" gainmana="45" gainhpticks="2" gainhpamount="100" gainmanaticks="2" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="1" gainsoulticks="15" fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.9" sword="1.9" axe="1.9" distance="1.9" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
	<vocation id="7" name="Death Archer" description="a Death Archer" needpremium="1" gaincap="120" gainhp="25" gainmana="25" gainhpticks="2" gainhpamount="100" gainmanaticks="2" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="1" gainsoulticks="15" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="2.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
	<vocation id="8" name="Death Knight" description="a Death Knight" needpremium="1" gaincap="200" gainhp="40" gainmana="5" gainhpticks="2" gainhpamount="100" gainmanaticks="2" gainmanaamount="100" manamultiplier="2.0" attackspeed="1000" soulmax="1" gainsoulticks="15" fromvoc="4">
		<formula meleeDamage="2.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
	<vocation id="9" name="Holy Mage" description="a Holy Mage" needpremium="1" gaincap="200" gainhp="10" gainmana="80" gainhpticks="1" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1000" manamultiplier="1.1" attackspeed="800" soulmax="1" gainsoulticks="5" fromvoc="5">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
	<vocation id="10" name="Holy Druid" description="a Holy Druid" needpremium="1" gaincap="200" gainhp="10" gainmana="80" gainhpticks="1" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1000" manamultiplier="1.1" attackspeed="800" soulmax="1" gainsoulticks="5" fromvoc="6">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.9" sword="1.9" axe="1.9" distance="1.9" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
	<vocation id="11" name="Holy Archer" description="a Holy Archer" needpremium="1" gaincap="500" gainhp="45" gainmana="45" gainhpticks="1" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1000" manamultiplier="1.4" attackspeed="500" soulmax="1" gainsoulticks="5" fromvoc="7">
		<formula meleeDamage="1.0" distDamage="3.5" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
	<vocation id="12" name="Holy Knight" description="a Holy Knight" needpremium="1" gaincap="500" gainhp="80" gainmana="10" gainhpticks="1" gainhpamount="1000" gainmanaticks="1" gainmanaamount="1000" manamultiplier="1.6" attackspeed="400" soulmax="1" gainsoulticks="5" fromvoc="8">
		<formula meleeDamage="3.5" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

</vocations>


The lua:

Code:
function isSorcerer(cid)
	return isInArray({1, 5}, getPlayerVocation(cid))
end

function isDruid(cid)
	return isInArray({2, 6}, getPlayerVocation(cid))
end

function isPaladin(cid)
	return isInArray({3, 7}, getPlayerVocation(cid))
end

function isKnight(cid)
	return isInArray({4, 8}, getPlayerVocation(cid))
end

function isRookie(cid)
	return isInArray({0}, getPlayerVocation(cid))
end
 
For some reason this is now happening to all pallys where they can get above the max. The only things i have changed since this problem started was i did a couple source edits, 1 to fix house commands, and 1 to remove red skull item loss so idk wtf that would have to do with this. But i havent touched the voc files or anything that would effect that magic level of paladins.
 
Back
Top