Jump to content
  • 0

block exp at certain point


Prime

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  01/11/12
  • Last Seen:  

My server max lvl is 350 but i want that player can only reach 349 and 350 only by quest, how can i block exp past 349?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

This is more of a general question.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  01/11/12
  • Last Seen:  

can someone help me :C

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/18/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  01/11/12
  • Last Seen:  

How to add it i want only reachable by command /:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/18/12
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...