Jump to content
  • 0

VIT DEF PROBLEM


alexander03

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.03
  • Content Count:  154
  • Reputation:   0
  • Joined:  01/03/20
  • Last Seen:  

Hello sir and maam,
Any body can help me how to set this

i look for ithis line on src/status.cpp folder , iwonder how to change this

// Def2
if (bl->type == BL_MER)
stat = (int)(status->vit + ((float)level / 10) + ((float)status->vit / 5));
else {
stat = status->def2;
stat += (int)(((float)level + status->vit) / 2 + (bl->type == BL_PC ? ((float)status->agi / 5) : 0)); //base level + (every 2 vit = +1 def) + (every 5 agi = +1 def)
}

status->def2 = cap_value(stat, 0, SHRT_MAX);

All i want to change is
-I dont want the vit def increase when my base level increase

-i dont want agi give a vit def also

-only VIT can increase the Vit Def and every 2 vit = 1 vit def

thank you , hopefully anybodty can help me which line i going to change and how,.

im using Renewal server

Edited by alexander03
identify renewal server
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.02
  • Content Count:  176
  • Reputation:   60
  • Joined:  01/11/19
  • Last Seen:  

replace the stat+= line with this :

stat+= (int) (status->vit / 2)

This will affect everything that's not a mercenary though, not just player characters, you didn't specify if that's what you want.

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.03
  • Content Count:  154
  • Reputation:   0
  • Joined:  01/03/20
  • Last Seen:  

may i know sir which line and how  to change it ? to make it clear?

ill just want sir on my def status to change

because when my level increase also my VIT def increase, so i dont want it and i want to change, i want to change only vit can increase my vit def
also when i levelup my agi status every 5 agi i got 1 VIT def and i dont like that

so iwant to know which line to change , and can u sir please clear where sir ? thank u sir for replying

 

On 8/20/2020 at 2:45 PM, Seravy said:

replace the stat+= line with this :

stat+= (int) (status->vit / 2)

This will affect everything that's not a mercenary though, not just player characters, you didn't specify if that's what you want.

sir it works

my VIT def not increase anymore when my level is increase ,also on my agi dont give VIT def anymore
thank u sir very much your number 1 ?

FIX!!

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...