Tdogthedog Posted August 26, 2010 Author Share Posted August 26, 2010 TDog's simple way to make a .txt file experience table for EO… (This is not ment to out prove all the .ini tuts one by ballie and that this is just another way of doing it and shorter)1) Server Side: Make a .txt file in your data folder called LevelExp.txt2) Then fill it like this.. Example: [Pic Example](http://www.freemmorpgmaker.com/files/imagehost/pics/84389ab94250a20a270b4b343e8b1897.txt)3) open up your server source… find the function GetPlayerNextLevel in the modPlayer module and change it to this:```Function GetPlayerNextLevel(ByVal Index As Long) As Long Dim filename As String Dim F As Long Dim I As Integer Dim Phrase As String filename = App.Path & "\Data\LevelExp.txt" F = FreeFile Open filename For Input As #F For I = 1 To MAX_LEVELS Input #F, Phrase If I = GetPlayerLevel(Index) Then Input #F, Phrase GetPlayerNextLevel = CInt(Mid$(Phrase, Len("Exp" & I + 1 & "=") + 1, Len(Phrase))) I = MAX_LEVELS Close #F End If NextEnd Function```and then build make your new .exe and your done…*let me know how it works..* Link to comment Share on other sites More sharing options...
Robin Posted August 26, 2010 Share Posted August 26, 2010 You're reading data every single procedure call. l2cache.Read Derrick's tutorial. That's the _right_ way of doing it. Link to comment Share on other sites More sharing options...
Tdogthedog Posted August 26, 2010 Author Share Posted August 26, 2010 I never said this is the right way.. or the best way… all I said is that this is a shorter way...and it works perfectly and no lag.. Link to comment Share on other sites More sharing options...
Robin Posted August 26, 2010 Share Posted August 26, 2010 We've been through this many times TDog, I'm getting sick of explaining it to you. If you're using EO, then you need to do things properly. Doing a half-arsed approach is what got Stable into the state it is now.HDD File I/O every single NextLevelCheck is a stupid, stupid way of doing things.Here's an analogy; There are several different ways of sitting in a car. One of them is sitting in your seat with your seatbelt on. Another way is leaning halfway out of the window, one foot in the driver's face, the other foot turning the steering wheel and your arm reaching out to touch passing traffic.Guess which one your system is. Link to comment Share on other sites More sharing options...
Dark Crusade Posted August 26, 2010 Share Posted August 26, 2010 Tdog get your fucking foot out of my face I'm trying to drive. Link to comment Share on other sites More sharing options...
Robin Posted August 26, 2010 Share Posted August 26, 2010 @Kreator:> Tdog get your fucking foot out of my face I'm trying to drive.That's exactly how it feels to be driving along EO right now. It feels like there's some downy sat next to me with one foot in my face, the other one fucking with my steering. Link to comment Share on other sites More sharing options...
Tdogthedog Posted August 26, 2010 Author Share Posted August 26, 2010 ok to anyone that read the posts above this… actually know its a short source edit for those that get confused easly when putting in edits and that aslong as you don't go to like 1000 levels or something that extreme this still works with out a problem. Link to comment Share on other sites More sharing options...
Robin Posted August 26, 2010 Share Posted August 26, 2010 @TDog:> its a short source edit for those that get confused easlyYes, because game development is perfectly suited for those with metal disorders which causes them to become confused whilst copying & pasting code into VB6.looks at TDog.Why are you developing games, again? Link to comment Share on other sites More sharing options...
Tdogthedog Posted August 26, 2010 Author Share Posted August 26, 2010 well someone has to fix EO bugs around here even though its not your way of doing them… Link to comment Share on other sites More sharing options...
Robin Posted August 26, 2010 Share Posted August 26, 2010 @TDog:> well someone has to fix EO bugs around here even though its not your way of doing them…![](http://i38.photobucket.com/albums/e112/Kite_Minase/Reaction/kagami-in-thought.jpg) Link to comment Share on other sites More sharing options...
Tdogthedog Posted August 26, 2010 Author Share Posted August 26, 2010 Robin you make me wonder when all the pic responses you return are chicks… Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2010 Share Posted August 26, 2010 @TDog:> Robin you make me wonder when all the pic responses you return are chicks…His idea of porn? Link to comment Share on other sites More sharing options...
Sputnak Posted August 26, 2010 Share Posted August 26, 2010 Lol I love this topic XD I need some popcorn… Link to comment Share on other sites More sharing options...
Dark Crusade Posted August 26, 2010 Share Posted August 26, 2010 @Dr:> Lol I love this topic XD I need some popcorn…The store sells popcorn. Usually you can get your choice of buttered, salted, caramelised, and more. Link to comment Share on other sites More sharing options...
Angus123 Posted May 27, 2011 Share Posted May 27, 2011 Tell me the error … how to fix it?GetPlayerNextLevel = CInt(Mid$(Phrase, Len("Exp" & I + 1 & "=") + 1, Len(Phrase))) Link to comment Share on other sites More sharing options...
gdog12356 Posted May 27, 2011 Share Posted May 27, 2011 @Reign:> Yes, because game development is perfectly suited for those with metal disorders which causes them to become confused whilst copying & pasting code into VB6.lawlstill looks like a great edit. Link to comment Share on other sites More sharing options...
Carim123 Posted May 27, 2011 Share Posted May 27, 2011 @Angus123:> Tell me the error … how to fix it?> > GetPlayerNextLevel = CInt(Mid$(Phrase, Len("Exp" & I + 1 & "=") + 1, Len(Phrase)))Why are you using this? Even I could tell it's inefficient from a glance, and I'm a wreck of a programmer, ;d. Link to comment Share on other sites More sharing options...
RyokuHasu Posted May 28, 2011 Share Posted May 28, 2011 @Angus123:> Tell me the error … how to fix it?> > GetPlayerNextLevel = CInt(Mid$(Phrase, Len("Exp" & I + 1 & "=") + 1, Len(Phrase)))-_- Angus I've seen several "dumb" question that you have asked… O.o why are you trying to code again? It requires a basic minamal understanding... even if you just copy and pasting you still need to know what you are doing. Also they are right, this is a bad idea to use. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now