diff options
author | Skotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-08-19 15:46:55 +0000 |
---|---|---|
committer | Skotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-08-19 15:46:55 +0000 |
commit | af7c783667e77887131d186f51fb60f7dc31b87c (patch) | |
tree | 7b9be10c508ee9a1fcfea8e661fa376b0ff8a8f3 /src/map/script.c | |
parent | fe89d7ef6e558134e58c95ddcbbe9f4f362c4119 (diff) | |
download | hercules-af7c783667e77887131d186f51fb60f7dc31b87c.tar.gz hercules-af7c783667e77887131d186f51fb60f7dc31b87c.tar.bz2 hercules-af7c783667e77887131d186f51fb60f7dc31b87c.tar.xz hercules-af7c783667e77887131d186f51fb60f7dc31b87c.zip |
- Implemented usage of packets 0x7fa and 0x7f7, 0x7f8, 0x7f9. These are used for proper deletion of items as well as movement/spawn packets for Renewal clients.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14383 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/map/script.c b/src/map/script.c index 3430db937..bf81b984f 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5677,7 +5677,7 @@ BUILDIN_FUNC(delitem) if(log_config.enable_logs&0x40) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -amount, &sd->status.inventory[i]); - pc_delitem(sd,i,amount,0); + pc_delitem(sd,i,amount,0,0); return 0; //we deleted exact amount of items. now exit } else { amount-=sd->status.inventory[i].amount; @@ -5688,7 +5688,7 @@ BUILDIN_FUNC(delitem) } //Logs - pc_delitem(sd,i,sd->status.inventory[i].amount,0); + pc_delitem(sd,i,sd->status.inventory[i].amount,0,0); } } //2nd pass @@ -5706,7 +5706,7 @@ BUILDIN_FUNC(delitem) if(log_config.enable_logs&0x40) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -amount, &sd->status.inventory[i]); - pc_delitem(sd,i,amount,0); + pc_delitem(sd,i,amount,0,0); return 0; //we deleted exact amount of items. now exit } else { amount-=sd->status.inventory[i].amount; @@ -5715,7 +5715,7 @@ BUILDIN_FUNC(delitem) if(log_config.enable_logs&0x40) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]); - pc_delitem(sd,i,sd->status.inventory[i].amount,0); + pc_delitem(sd,i,sd->status.inventory[i].amount,0,0); } } @@ -5804,7 +5804,7 @@ BUILDIN_FUNC(delitem2) if(log_config.enable_logs&0x40) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -amount, &sd->status.inventory[i]); - pc_delitem(sd,i,amount,0); + pc_delitem(sd,i,amount,0,0); return 0; //we deleted exact amount of items. now exit } else { amount-=sd->status.inventory[i].amount; @@ -5813,7 +5813,7 @@ BUILDIN_FUNC(delitem2) if(log_config.enable_logs&0x40) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]); - pc_delitem(sd,i,sd->status.inventory[i].amount,0); + pc_delitem(sd,i,sd->status.inventory[i].amount,0,0); } } @@ -6471,7 +6471,7 @@ BUILDIN_FUNC(successrefitem) pc_unequipitem(sd,i,2); // status calc will happen in pc_equipitem() below clif_refine(sd->fd,0,i,sd->status.inventory[i].refine); - clif_delitem(sd,i,1); + clif_delitem(sd,i,1,3); //Logs items, got from (N)PC scripts [Lupus] if(log_config.enable_logs&0x40) @@ -6526,7 +6526,7 @@ BUILDIN_FUNC(failedrefitem) // 精錬失敗エフェクトのパケット clif_refine(sd->fd,1,i,sd->status.inventory[i].refine); - pc_delitem(sd,i,1,0); + pc_delitem(sd,i,1,0,2); // 他の人にも失敗を通知 clif_misceffect(&sd->bl,2); } @@ -9798,7 +9798,7 @@ BUILDIN_FUNC(successremovecards) if(log_config.enable_logs&0x40) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]); - pc_delitem(sd,i,1,0); + pc_delitem(sd,i,1,0,3); //Logs items, got from (N)PC scripts [Lupus] if(log_config.enable_logs&0x40) @@ -9872,7 +9872,7 @@ BUILDIN_FUNC(failedremovecards) if(log_config.enable_logs&0x40) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]); - pc_delitem(sd,i,1,0); + pc_delitem(sd,i,1,0,2); } if(typefail == 1){ // カードのみ損失(武具を返す) int flag; @@ -9889,7 +9889,7 @@ BUILDIN_FUNC(failedremovecards) item_tmp.card[j]=0; for (j = sd->inventory_data[i]->slot; j < MAX_SLOTS; j++) item_tmp.card[j]=sd->status.inventory[i].card[j]; - pc_delitem(sd,i,1,0); + pc_delitem(sd,i,1,0,2); //Logs items, got from (N)PC scripts [Lupus] if(log_config.enable_logs&0x40) @@ -10566,7 +10566,7 @@ BUILDIN_FUNC(clearitem) if(log_config.enable_logs&0x40) log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]); - pc_delitem(sd, i, sd->status.inventory[i].amount, 0); + pc_delitem(sd, i, sd->status.inventory[i].amount, 0, 0); } } return 0; |