Get Equipped Card

prism

New member
Messages
69
Points
0
I'm trying to make it so that if Tao Gunka Card is equipped, this status will not provide a bonus.

case SC_DELUGE:
if( status->current_equip_card_id = 4302 )
val2 = 0; //HP increase*
else
  val2 = val1*3; //HP increase*
 
I tried doing this but it doesn't seem to work. It just gives 0 HP bonus no matter what.
 
What's your emulator? Because I can't find anything like this in current herc setup. Well, not for deluge, at least.

 
I'm using Hercules.

case SC_DELUGE:
val2 = skill->deluge_eff[val1-1]; //HP increase
 
That's the original code from status.c I changed it to be 3% per level.
 
I was able to get it to work by replacing:
 
    if( status->current_equip_card_id = 4302 )    
 
with:
if(sd->equip_index[EQI_ARMOR] >= 0 && sd->status.inventory[sd->equip_index[EQI_ARMOR]].card[0] == 4302)

 
Back
Top