Jump to content
  • 0

Golden Thief Bug Card.


Question

Posted

Okay, so the issue is, I want my GTB to nullify only 25% of the magic dmg but still be able to block tarot and Dispell fully, someone told me it's in battle/items.conf but now the issue is it blocks buffs such as Blessing and Increase Agi as well, I was wondering if I could get GTB to block tarot and dispell without blocking buffs as well? Thanks in advance!

3 answers to this question

Recommended Posts

Posted (edited)

edit in item_db the script and change it to 25, then open items.conf at conf/battle/

then change

// Required level of bNoMagicDamage before Status Changes are blocked (Golden Thief Bug card).
// For example, if left at 50. An item can give bNoMagicDamage,40;
// which reduces magic damage by 40%, but does not blocks status changes.
gtb_sc_immunity: 50

from gtb_sc_immunity: 50 to 25

though it will block buffs too

Edited by hatsunerance
  • Upvote 1
Posted (edited)

In ../src/map

In file: status.c

Find this function:

int status_get_sc_def

Within this function, find:

if (status_isimmune(bl))
 switch (type) {
  case SC_DECREASEAGI:
  case SC_SILENCE:
  case SC_COMA:
  case SC_INCREASEAGI:
  case SC_BLESSING:
  case SC_SLOWPOISON:
  case SC_IMPOSITIO:
  case SC_AETERNA:
  case SC_SUFFRAGIUM:
  case SC_BENEDICTIO:
  case SC_PROVIDENCE:
  case SC_KYRIE:
  case SC_ASSUMPTIO:
  case SC_ANGELUS:
  case SC_MAGNIFICAT:
  case SC_GLORIA:
  case SC_WINDWALK:
  case SC_MAGICROD:
  case SC_HALLUCINATION:
  case SC_STONE:
  case SC_QUAGMIRE:
  case SC_SUITON:
  case SC_SWINGDANCE:
  case SC__ENERVATION:
  case SC__GROOMY:
  case SC__IGNORANCE:
  case SC__LAZINESS:
  case SC__UNLUCKY:
  case SC__WEAKNESS:
return 0;
 }

Remove the case skills you don't want GTB to block, sample in case you just want dispell and coma to be blocked:

if (status_isimmune(bl))
 switch (type) {
  case SC_COMA:
return 0;
 }

Dispell is checked in skill.c, so you don't need to worry about it.

I guess you want it to block coma from tarot, right?

If you need it to fully block tarot you need to change it in skill.c

In skill.c

Find:

status_zap(src,0,skill_db[skill_get_index(skillid)].sp[skilllv]); // consume sp only if succeeded [inkfish]

After ADD:

  if(status_isimmune(bl))
break;

Edited by MarkZD

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