Growlith1223 Posted February 14, 2013 Share Posted February 14, 2013 Alright then, i stand corrected. that still doesn't mean you need to yell at someone. and like i said, it's your fault that you followed the tutorial. not ours, yours.I also find it funny how im the calm one and getting yelled at by a 12 year old :/Sincerely,Growlith1223 Link to comment Share on other sites More sharing options...
Larias Posted February 14, 2013 Share Posted February 14, 2013 > Alright then, i stand corrected. that still doesn't mean you need to yell at someone. and like i said, it's your fault that you followed the tutorial. not ours, yours.> > Growlith1223Then please go back to your earlier posts and edit them, and I shall go through and edit mine, so that people are not confused. The tutorial will bug people's game and they need to know that.I know you're 16, but maybe next time you will try to research something before you come in to a thread and act like you know what you're talking about. It's a good lesson to learn. Only respond to people who are talking about something if you know what you're talking about. Link to comment Share on other sites More sharing options...
Comagothed Posted February 14, 2013 Share Posted February 14, 2013 so, who is right ? Growlith or Larias ? because i wanted to add this code to my project.. but not sure to add it or not.. Link to comment Share on other sites More sharing options...
Larias Posted February 14, 2013 Share Posted February 14, 2013 > so, who is right ? Growlith or Larias ? because i wanted to add this code to my project.. but not sure to add it or not..Growlith admitted I was right in the above post. This is why I want him to edit his posts.The first part of the code - the client side - will work just fine.Everything after that will mess up your game. Don't do it until it's fixed. Link to comment Share on other sites More sharing options...
iHero Posted February 14, 2013 Author Share Posted February 14, 2013 Sorry, did not need this scandal, but here's the code to fix: (I tested)Find in Sub ServerLoop```' Checks to update player vitals every 5 seconds - Can be tweakedIf Tick > LastUpdatePlayerVitals ThenUpdatePlayerVitalsLastUpdatePlayerVitals = GetTickCount + 5000End If' Checks to spawn map items every 5 minutes - Can be tweakedIf Tick > LastUpdateMapSpawnItems ThenUpdateMapSpawnItemsLastUpdateMapSpawnItems = GetTickCount + 300000End If' Checks to save players every 5 minutes - Can be tweakedIf Tick > LastUpdateSavePlayers ThenUpdateSavePlayersLastUpdateSavePlayers = GetTickCount + 300000End If```And deleteReplace _Sub UpdateSavePlayers_ for:```Private Sub UpdatePlayerVitals(ByVal index As Integer)If Not TempPlayer(index).stopRegen ThenIf GetPlayerVital(index, Vitals.HP) <> GetPlayerMaxVital(index, Vitals.HP) ThenCall SetPlayerVital(index, Vitals.HP, GetPlayerVital(index, Vitals.HP) + GetPlayerVitalRegen(index, Vitals.HP))Call SendVital(index, Vitals.HP)' send vitals to party if in oneIf TempPlayer(index).inParty > 0 Then SendPartyVitals TempPlayer(index).inParty, indexEnd IfIf GetPlayerVital(index, Vitals.MP) <> GetPlayerMaxVital(index, Vitals.MP) ThenCall SetPlayerVital(index, Vitals.MP, GetPlayerVital(index, Vitals.MP) + GetPlayerVitalRegen(index, Vitals.MP))Call SendVital(index, Vitals.MP)' send vitals to party if in oneIf TempPlayer(index).inParty > 0 Then SendPartyVitals TempPlayer(index).inParty, indexEnd IfEnd IfEnd Sub```Replace _Sub UpdateSavePlayers_ for:```Private Sub UpdateSavePlayers(ByVal index As Integer)Dim i As Long' Prevent subscript out rangeIf Not IsPlaying(index) Then Exit Sub' Save playerCall TextAdd("Saving all online players...")Call SavePlayer(index)Call SaveBank(index)End Sub``` Link to comment Share on other sites More sharing options...
Larias Posted February 14, 2013 Share Posted February 14, 2013 > Sorry, did not need this scandal, but here's the code to fix: (I tested)The scandal had nothing to do with you ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) <3Are you sure that``` ' Player loopFor i = 1 To Player_HighIndexIf IsPlaying(i) ThenIf Tick > tmr25 Then' check if they've completed casting, and if so set the actual Spell going```Is okay? that was where my program was having problems. Link to comment Share on other sites More sharing options...
Growlith1223 Posted February 15, 2013 Share Posted February 15, 2013 Please refrain from using Integers…use a Long instead for the UpdateSavePlayers(ByVal Index As Integer)Sincerely,Growlith1223 Link to comment Share on other sites More sharing options...
iHero Posted February 15, 2013 Author Share Posted February 15, 2013 > Please refrain from using Integers…use a Long instead for the UpdateSavePlayers(ByVal Index As Integer)> > Sincerely,> > Growlith1223No. It is recommended to use Bytes, since the maximum number of player hardly will pass of 255 (Maximum byte value). And it is impossible to pass of 32767 (Maximum integer value) Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2013 Share Posted February 15, 2013 > No. It is recommended to use Bytes, since the maximum number of player hardly will pass of 255 (Maximum byte value). And it is impossible to pass of 32767 (Maximum integer value)Yeah but the actual variable (index) is sent around as a long so you should be using it. Link to comment Share on other sites More sharing options...
kyle9217 Posted February 18, 2013 Share Posted February 18, 2013 This brought my CPS down to 50,000 from 1,200,000 Link to comment Share on other sites More sharing options...
tslusny Posted March 4, 2013 Share Posted March 4, 2013 This is my first negavite post since unban, but i must post this.DO NOT USE THIS TUTORIALReasons:* Massive server CPS drop (as [Kyle](http://www.touchofdeathforums.com/community/index.php?/user/49159-kyle9217/) stated above)* This will broke a lot of timers (i mean GetTickCount timers, not VB6 ones) becouse of placing timers into loops* Becouse of above reason, for example only Map# UpdateMapLogic is processed, and for other maps it isn´tIdk why no1 noticed this, but i think reason is that nobody tested it (except [Kyle](http://www.touchofdeathforums.com/community/index.php?/user/49159-kyle9217/)) Link to comment Share on other sites More sharing options...
Kemerd Posted March 10, 2013 Share Posted March 10, 2013 Would any of this work for EO 3.0? Link to comment Share on other sites More sharing options...
tslusny Posted March 10, 2013 Share Posted March 10, 2013 Do not use this tut, it will broke your game. Link to comment Share on other sites More sharing options...
DarkDino Posted September 16, 2013 Share Posted September 16, 2013 This work for EclipseFF ? 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