Mirage Source
http://miragesource.net/forums/

Level cap?
http://miragesource.net/forums/viewtopic.php?f=193&t=4421
Page 1 of 1

Author:  Nean [ Mon Sep 22, 2008 7:38 am ]
Post subject:  Level cap?

I've been looking through the code, and as far as I can tell, theres no level cap, or exp limit? Would that be included as a bug? Or are level caps, a feature?

Author:  Kousaten [ Mon Sep 22, 2008 1:52 pm ]
Post subject:  Re: Level cap?

It could potentially be a bug, because if you have a freakish user who goes beyond the level data set in your server (I think it's a Long or Integer... which would be absolutely crazy to reach a level to overflow the server >.<).

It'd be easy enough to put something in the level check sub like...

Code:
If GetPlayerLevel(Index) + 1 > SetAmountHere Then

   Set GetPlayerExp(Index, 0)
   Exit Sub

End If


Doing this off the top of my head and I haven't programmed in like six weeks, so it's likely sloppy and incorrect... but it's an idea. :P

Author:  JokeofWeek [ Mon Sep 22, 2008 2:04 pm ]
Post subject:  Re: Level cap?

Kousaten wrote:
It could potentially be a bug, because if you have a freakish user who goes beyond the level data set in your server (I think it's a Long or Integer... which would be absolutely crazy to reach a level to overflow the server >.<).

It'd be easy enough to put something in the level check sub like...

Code:
If GetPlayerLevel(Index) + 1 > SetAmountHere Then

   Set GetPlayerExp(Index, 0)
   Exit Sub

End If


Doing this off the top of my head and I haven't programmed in like six weeks, so it's likely sloppy and incorrect... but it's an idea. :P


Think he means :


Code:
If GetPlayerLevel(Index) + 1 > SetAmountHere Then

   Call SetPlayerExp(Index, 0)
   Exit Sub

End If

Author:  Kousaten [ Mon Sep 22, 2008 2:18 pm ]
Post subject:  Re: Level cap?

Thanks. XD Knew I'd be wrong about something in it.

Not bad with sinuses and a monotone professor lol.

Author:  Matt [ Tue Sep 23, 2008 2:56 pm ]
Post subject:  Re: Level cap?

That method will reset their xp to 0, allowing them to fill it all the time. Lol. Just do this:
Code:
If GetPlayerLevel(Index) + 1 > SetAmountHere Then
   Exit Sub
End If

Author:  Kousaten [ Tue Sep 23, 2008 3:23 pm ]
Post subject:  Re: Level cap?

I suppose you could use that method to make a system to "spend" EXP for things like special items, extra stat bonuses, quests, etc. :3

Author:  Matt [ Tue Sep 23, 2008 3:31 pm ]
Post subject:  Re: Level cap?

No. Most games let you go, to say level 80 with 100% exp bar and leave it at that. It looks better than resetting the exp bar everytime you "level". If you're gonna have a cap, do it properly and cap it. When you fill a bottle, you put a cap on it. You don't empty it and fill it again. :P

Author:  Nean [ Tue Sep 23, 2008 4:50 pm ]
Post subject:  Re: Level cap?

Perfekt wrote:
No. Most games let you go, to say level 80 with 100% exp bar and leave it at that. It looks better than resetting the exp bar everytime you "level". If you're gonna have a cap, do it properly and cap it. When you fill a bottle, you put a cap on it. You don't empty it and fill it again. :P


I like that idea. The other losing all your exp, start over, thing is way over-used. Thanks for the idea. =)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/