Jump to content
  • 0

I want Max Level character to lose exp


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

I tried setting this config death_penalty_maxlv to 1 but nothing happens when I died. It should deduct an exp and level down the character.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

OnPCDieEvent:
sleep2 1000; //not sure if the config happend immediatly
if(!BaseExp)
set BaseLevel,BaseLevel- 1;
if(!JobExp)
set JobLevel,JobLevel - 1;
end;

I think that this config only reduces the exp, but not the level. For this I think you need to create a script for that. Look above for example. Not sure if that will work tho xD.

Regards,

Chris

 

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

On 4/27/2019 at 12:53 AM, nasagnilac said:

I tried setting this config death_penalty_maxlv to 1 but nothing happens when I died. It should deduct an exp and level down the character.

what do you mean by nothing happen ?

did you check the exp number before and after death ?

at max level there is exp still , so it's not like as soon as they die will loss a level

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

Yes.. there is an exp but its not deducted.
 

// When a player dies, how should we penalize them?
// 0 = No penalty.
// 1 = Lose % of current level when killed.
// 2 = Lose % of total experience when killed.
death_penalty_type: 1
 
// Base exp. penalty rate (Each 100 is 1% of their exp)
death_penalty_base: 200
 
// Job exp. penalty rate (Each 100 is 1% of their exp)
death_penalty_job: 200
 
// When a player dies (to another player), how much zeny should we penalize them with?
// NOTE: It is a percentage of their zeny, so 100 = 1%
zeny_penalty: 0
 
// Will players on max base/job level lose the EXP on death?
// 0: Never lose (default as in official).
// 1: Lose Base EXP.
// 2: Lose Job EXP.
death_penalty_maxlv: 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

I want to create a server where max level is still deducting exp and level down so that insurance item will be useful.

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  790
  • Reputation:   225
  • Joined:  01/30/13
  • Last Seen:  

You would need to implement a level down mechanism for that. That's pretty tough to do as you'd also have to reward the stat points. That means you will need to remember where the character put them last (unless you want this to result in a full stat reset). Would probably require quite some coding.

I assume you mainly want the insurance to function as money sink.

But you could have a similar effect by selling long-lasting food items. They give some bonus stats but expire on death. So it's kind of similar to downleveling, as you lose stats on death. And since they are sold, players can invest zeny to get the boost back. That's an easier alternative.

  • Like 1
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...