viewing paste pc_bonus debug | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Index: map/pc.c
===================================================================
--- map/pc.c    (revision 17101)
+++ map/pc.c    (working copy)
@@ -2612,6 +2612,8 @@
 #endif
        default:
                ShowWarning("pc_bonus: unknown type %d %d !\n",type,val);
+               ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !\n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],
+                       sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]
                break;
        }
        return 0;
@@ -3181,6 +3183,8 @@
                break;
        default:
                ShowWarning("pc_bonus2: unknown type %d %d %d!\n",type,type2,val);
+               ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !\n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],
+                       sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]
                break;
        }
        return 0;
@@ -3308,6 +3312,8 @@
 
        default:
                ShowWarning("pc_bonus3: unknown type %d %d %d %d!\n",type,type2,type3,val);
+               ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !\n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],
+                       sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]
                break;
        }
 
@@ -3350,6 +3356,8 @@
 
        default:
                ShowWarning("pc_bonus4: unknown type %d %d %d %d %d!\n",type,type2,type3,type4,val);
+               ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !\n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],
+                       sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]
                break;
        }
 
@@ -3378,6 +3386,8 @@
 
        default:
                ShowWarning("pc_bonus5: unknown type %d %d %d %d %d %d!\n",type,type2,type3,type4,type5,val);
+               ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !\n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],
+                       sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]
                break;
        }
Viewed 526 times, submitted by clydelion.