Setting levels for each reset

Results 1 to 2 of 2
  1. #1
    Apprentice essenza is offline
    MemberRank
    Oct 2009 Join Date
    7Posts

    information Setting levels for each reset

    Hi is my first guide (sorry for English).

    I noticed that many ask, not having knowledge of PHP, like changing the level at Which the character will be reset after using a simple MuWeb as a portal of your shard.

    for up to 0.6 mu web you have to open the file / includes / character_functions.php

    for mu web 0.8 open the file / includes / character.class.php

    for mu web 0.9 I do not know sorry XD

    Going in these files is the $ resetup = $ row [1] (1), inserted two / / so that it becomes a comment and it is turned off, below is a code made by me, is very simple $ row [1 ] denotes the number of reset the character takes at the moment, so if $ row [1] equals 0, $ resetup becomes 1 so that the character receives the first reset, on $ exp post the experience which the character has at the level that is returned, otherwise the experience back to 0 and obviously not fitting for a character level 150 because it would be like having to redo 150 levels before seeing the first level up, as you can see the exp at level 150 that a character 3577500 I have and I take a point to make it possible to move up a level when you kill a monster. (at least in my server shows me that your experience can not be sure it's the same)

    Obviously $ clevel indicates the level where the character must be reported, you can put all you want to reset if 5 not enough just to create another row and change the values.
    Finally, to allow the code to work you need to edit the query so that it can use this new information.

    $ sql_reset_script = "Update Character Set [clevel] = '$ clevel', [experience] = '$ exp', [money] = '$ resetmoeny', [LevelUpPoint] = '$ resetpt', [resets] = '$ resetup 'WHERE name =? "

    Put two well here / / so that you disable the old code and place this above in place, if everything goes well and correctly

    Example:
    Spoiler:


    reset1-->150
    reset2-->150
    reset3-->200
    reset4-->200
    reset5-->250
    reset6-->300
    reset7-->300

    Code:

    if ( $row[1] == 0 ) { $resetup = '1'; $exp = '3577499'; $clevel = '150'; }
    if ( $row[1] == 1 ) { $resetup = '2'; $exp = '8359999'; $clevel = '150'; }
    if ( $row[1] == 2 ) { $resetup = '3'; $exp = '16187499'; $clevel = '200'; }
    if ( $row[1] == 3 ) { $resetup = '4'; $exp = '280287699'; $clevel = '200'; }
    if ( $row[1] == 4 ) { $resetup = '5'; $exp = '280287699'; $clevel = '250'; }
    if ( $row[1] == 5 ) { $resetup = '6'; $exp = '280287699'; $clevel = '300'; }
    if ( $row[1] == 6 ) { $resetup = '7'; $exp = '280287699'; $clevel = '300'; }




    ENJOY ^_^
    Last edited by essenza; 17-12-09 at 09:24 AM.


  2. #2
    Apprentice lggx2002 is offline
    MemberRank
    Jun 2009 Join Date
    Tbilisi, GeorgiLocation
    18Posts

    Re: Setting levels for each reset

    could anyone tell me how to do the same on muweb 0.9



Advertisement