Jump to content
  • 0

Increase/Decrease DEF/MDEF bonus value... any idea?


HitsuzenRO

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   1
  • Joined:  05/13/12
  • Last Seen:  

Hi hi~!

Well... the main idea is to Increase/Decrease the bonus value of DEF/MDEF... why you say? well..

i'm actually working on a Race System (using Kamishi's Paletting Services, they are really awesome!!!! /lv ), when you change your race (physicall appareance, using setlook) i'm adding some increments/decrements to some values like stats, maxhp, maxsp, etc. (to do this i've used the sc_start SC_INC<stat/hp/sp> wich changes bonus values for each stat)...

the problem comes when i try to increase/decrease the DEF/MDEF, i have already tried using:

[X] sc_start SC_INCDEFRATE,<time>,<value>; <---- not sure what it does but the def value doesn't increases

[X] sc_start SC_DEF_RATE,<time>,<value>; <--- doesn't increase the DEF Value at Alt+Q Window, i've read it increases the resistense to status changes... same for SC_MDEF_RATE, does not change MDEF value at Alt+Q window...

[X] bonus bDef2,<value>; <---- Actually it works outside items, but it changes again when you equip/unequip anything, same goes for other def bonus..

[X] autobonus "{ bonus nDef2,-100;}",1000,<time>; <---- Does not work. I've read autobonus only triggers when user performs/receive an attack...same for other autobonus2,3,4

Possble Solutions:

1) I thought maybe there could be a way to equip an "invisible" item and the item contains the script for all the increments/decrements using bonus system.... but... sounds kinda crazy right? ^^U

2) Maybe there's a way for the NPC to "recall" a item script ???

3) Add something like "SC_INCREASE_DEF" to status.c and status.h but... to be honest i have no idea how to do it and i think it could be the last option xD

Any idea how can i solve this problem? maybe i made a mistake? any possible solution/idea will be really really appreciated :D Thx for taking your time reading this topic and i hope this can help someone else to solve this kind of situations (if we find a way to solve it xD)

Greetings :D!

Edited by HitsuzenRO
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   1
  • Joined:  05/13/12
  • Last Seen:  

Really: Thank you very much! It actually works like a charm!!! (i'm using eAthena last rev, just had to manually add the part of battle.c and battle.h of the patch and the MAX_ITEMDB variable).

Topic: [sOLVED] /! :lol:

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