EOSERV Forum > EOSERV > Needing Rebirth code for eoserv 0.7.0
Page: << 1 >>
Needing Rebirth code for eoserv 0.7.0
Author Message
Post #204891 Needing Rebirth code for eoserv 0.7.0

as it stats in subject I was hopeing someone would have this code.

4 years, 25 weeks ago
Post #204892 Re: Needing Rebirth code for eoserv 0.7.0

Create a new column in your database to save the number of times the character has been reborn.

Add an "int reborn;" to your character object (character.hpp around line 182) and load/save this any time the level and other stats are.

When the player levels up (npc.cpp after line 765) add something like:

if (character->level == 250) {
character->level = 0;
++character->reborn;
}

Adjust any stat calculations you do based on "level" to be "(250 * reborn) + level".

...or alternatively crunch your exp and stat values so they aren't crazy. 


---
http://sordie.co.uk
http://twitter.com/@SordieEO
4 years, 25 weeks ago
Post #204894 Re: Needing Rebirth code for eoserv 0.7.0

thanks sordie :)

4 years, 24 weeks ago
Post #204895 Re: Needing Rebirth code for eoserv 0.7.0

Just be careful with this. Fudging there level back to zero can cause some issues with various elements of the game in which the level is checked(map warps, equipment requirements, skill master requirements, respawn locations set by level, etc.).

4 years, 24 weeks ago
Post #204897 Re: Needing Rebirth code for eoserv 0.7.0

yeah I was wondering about that thanks apollo

4 years, 24 weeks ago
Post #204899 Re: Needing Rebirth code for eoserv 0.7.0
Sordie posted: (10th Oct 2019, 09:00 am)

...or alternatively crunch your exp and stat values so they aren't crazy. 



^ This is your best option. There is no need for a server to get to the state where players have to be "reborn".  Stop giving goats 10k exp.  Stop making weapons with 50-50 damage.


---
http://sordie.co.uk
http://twitter.com/@SordieEO
4 years, 24 weeks ago
Post #204900 Re: Needing Rebirth code for eoserv 0.7.0

this code was for a friend whom no longer has his server up soooo. xD u can delete this post :) thanks Apollo,sordie  I appreciate the code :)


4 years, 24 weeks ago
Page: << 1 >>

EOSERV Forum > EOSERV > Needing Rebirth code for eoserv 0.7.0