From 6859bee5720898aa7fa2e65f460fc795fa6bbf7b Mon Sep 17 00:00:00 2001 From: Lupus Date: Tue, 8 Mar 2005 21:23:51 +0000 Subject: fixed script command 'isequippedcnt' added new script command for new cards 'cardscnt' (to fix cards exploits! should check old cards, too) fixed @jail / @unjail SAVE POINT abuse git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1217 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index f81952518..de2efce5a 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -268,6 +268,10 @@ int percentrefinery[5][10]; // static int atkmods[3][20]; // 武器ATKサイズ修正(size_fix.txt) static char job_bonus[3][MAX_PC_CLASS][MAX_LEVEL]; +int current_equip_item_index; //Contains inventory index of an equipped item. To pass it into the EQUP_SCRIPT [Lupus] +//we need it for new cards 15 Feb 2005, to check if the combo cards are insrerted into the CURRENT weapon only +//to avoid cards exploits + /*========================================== * 精錬ボーナス *------------------------------------------ @@ -537,7 +541,7 @@ int status_calc_pc(struct map_session_data* sd,int first) } for(i=0;i<10;i++) { - index = sd->equip_index[i]; + current_equip_item_index = index = sd->equip_index[i]; //We pass INDEX to current_equip_item_index - for EQUIP_SCRIPT (new cards solution) [Lupus] if(index < 0) continue; if(i == 9 && sd->equip_index[8] == index) @@ -594,7 +598,7 @@ int status_calc_pc(struct map_session_data* sd,int first) // ?備品によるステ?タス?化はここで?行 for(i=0;i<10;i++) { - index = sd->equip_index[i]; + current_equip_item_index = index = sd->equip_index[i]; //We pass INDEX to current_equip_item_index - for EQUIP_SCRIPT (new cards solution) [Lupus] if(index < 0) continue; if(i == 9 && sd->equip_index[8] == index) -- cgit v1.2.3-70-g09d2