Page 1 of 1

Costs of Training per class per level.

Posted: Sun Mar 07, 2004 4:49 pm
by oddmud
I've looked around, and I can't seem to find out how to see how much gold/plat it costs to train per level per class.



Anyone know where to find this information?

Re: Costs of Training per class per level.

Posted: Mon Mar 08, 2004 12:55 pm
by syntax53
I've looked around, and I can't seem to find out how to see how much gold/plat it costs to train per level per class.



Anyone know where to find this information?



this is the formula i use for mmud explorer (http://www.mudinfo.net/index.php?mmudexp). the text in green is pascal(i think?) code given to me from locke cole. the blue is my VB code translation of the formula.





Public Function CalcMoneyRequiredToTrain(ByVal nLevel As Currency, _

ByVal nMarkup As Currency) As Currency

'{ Calculates the copper farthings needed to train for a specific level }

' function CalcMoneyRequiredToTrain(Level, Markup: integer): longword;

' begin

' Result := (longword((Level * 5) * (Markup + 100)) div 100) * 10;

' end;

On Error GoTo Error:



CalcMoneyRequiredToTrain = Fix((nLevel * 5) * (nMarkup + 100) / 100) * 10



Exit Function

Error:

Call HandleError("CalcMoneyRequiredToTrain")

End Function