Jump to content
  • 0

block exp at certain point


Question

5 answers to this question

Recommended Posts

Posted

First modify pc_checkbaselevelup in pc.c

 

Probably you will need create a new command.
This will depend of your ideia, one time for up to 350 or gain exp to up 350.
 
If you want up to 350 just on time by command, I think is something like this
 

next = pc_gets_status_point(sd->status.base_level);
sd->status.base_level ++;
sd->status.status_point += next;


Check the db\statpoints.txt to accept points to 350 and set max level to 349.

Try make that alone, if you can't tell me and maybe I make the source code, but you will be copy and past correctly if I make this.

Posted

In pc.c you will change pc_checkbaselevelup funcion (6.149 line +-)

After unsigned int next = pc_nextbaseexp(sd);
Add this
 

if (sd->status.base_level >= pc_maxbaselv(sd) - 1)
return 0;


sd->status.base_level: character level
pc_maxbaselv(sd): max level to class of character

Now, to up the max level just if by atcommand baselvl (i don't test to up with getexp script command), because i think the pc_nextbaseexp is used by getexp, so this will be need more time and its complicate for me.

If you want this jut to level 349 to 350 so used:





if (sd->status.base_level == 349 && sd->status.base_level >= pc_maxbaselv(sd) - 1)
return 0;


Have "a bug", where the exp is gainned to 108% 500% 1000% but you not gain a level xD
I make a basic modification, need more specify, but i think this what you need for now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...