About Xp per lvl

Discussion about Helbreath Server Files.
Post Reply
orange1
noob
Posts: 14
Joined: Mon Aug 16, 2004 4:17 am

Post by orange1 »

i have seen in some server something like that:

lvl 1-100 = xp * 8
lvl 101- 130 = xp * 6
lvl 120+ = xp * 3

some1 know how i can do that?


thx for the help
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

editing your source B)
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
wannabee
Loyal fan
Posts: 270
Joined: Sun Dec 21, 2003 12:42 am

Post by wannabee »

from game.cpp:
iGetLevelExp(iLevel - 1) + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17))
last levels exp + level * ( 50 + (level * (level / 17) * (level / 17))
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Human knowleag belongs to THE WORLD<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>So i highly dislike people who keep to their proud selfs... thats why i wanna share everything i got with you guys :D
orange1
noob
Posts: 14
Joined: Mon Aug 16, 2004 4:17 am

Post by orange1 »

thx for the help :)
epic
noob
Posts: 26
Joined: Sun Sep 19, 2004 4:07 pm

Post by epic »

lil tutorial or guide to actually tell me where to start and finish?... pls? :unsure:
<img src='http://myspace-366.vo.llnwd.net/01428/6 ... 0366_l.jpg' border='0' alt='user posted image' />
Nemeliom
Loyal fan
Posts: 327
Joined: Sun Aug 01, 2004 10:20 pm
Contact:

Post by Nemeliom »

i dont understand anything about source... can somebody explain it to me? which program should i use? and how to do it also :(
<img src='http://jove.prohosting.com/mxghost/Neme ... y%20Mx.jpg' border='0' alt='user posted image' /> <span style='color:blue'>Do you like mi pic?</span><br><span style='color:red'>Good Luck 4 every1<br>Mx - Nemeliom</span>
wannabee
Loyal fan
Posts: 270
Joined: Sun Dec 21, 2003 12:42 am

Post by wannabee »

find "iGetLevelExp(iLevel - 1) + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17))" in game.cpp and replace with something like this:

(this is to modify how much exp you need for each level)

Code: Select all

if (iLevel <= 100)  { //checks if level is under or equal to 100
  iGetLevelExp(iLevel - 1)  + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17)) //normal exp
} elseif (iLevel <= 130 && iLevel >= 101) { //checks if level is under 131 and over to 100
  iGetLevelExp(iLevel - 1)  + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17)) / 2 //half exp needed
} elseif (iLevel <= 130 && iLevel >= 101) { //checks if level is over or equal to 130
  iGetLevelExp(iLevel - 1)  + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17)) / 4 //one quater exp needed
}
but for exp ammount you get, you need to look into the things that happen after a NPC dies
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Human knowleag belongs to THE WORLD<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>So i highly dislike people who keep to their proud selfs... thats why i wanna share everything i got with you guys :D
Post Reply