summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-08 21:23:51 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-08 21:23:51 +0000
commit6859bee5720898aa7fa2e65f460fc795fa6bbf7b (patch)
tree9a94460f3d5252d1355784583cc52028e0f65d02 /src/map/status.c
parent5e91eb01b017839da608b1ca4d3248866ae58233 (diff)
downloadhercules-6859bee5720898aa7fa2e65f460fc795fa6bbf7b.tar.gz
hercules-6859bee5720898aa7fa2e65f460fc795fa6bbf7b.tar.bz2
hercules-6859bee5720898aa7fa2e65f460fc795fa6bbf7b.tar.xz
hercules-6859bee5720898aa7fa2e65f460fc795fa6bbf7b.zip
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
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 6 insertions, 2 deletions
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]; // 精錬成功率(refine_db.txt)
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)