|
@@ -5134,10 +5134,8 @@ int buildin_getitem(struct script_state *st)
|
|
|
}
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, nameid, amount, NULL);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
@@ -5220,10 +5218,8 @@ int buildin_getitem2(struct script_state *st)
|
|
|
}
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, nameid, amount, &item_tmp);
|
|
|
- }
|
|
|
- //Logs
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -5297,10 +5293,8 @@ int buildin_getnameditem(struct script_state *st)
|
|
|
}
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, item_tmp.nameid, item_tmp.amount, &item_tmp);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
push_val(st->stack,C_INT,1);
|
|
|
return 0;
|
|
@@ -5433,10 +5427,8 @@ int buildin_delitem(struct script_state *st)
|
|
|
if(sd->status.inventory[i].amount>=amount){
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -amount, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
pc_delitem(sd,i,amount,0);
|
|
|
return 0; //we deleted exact amount of items. now exit
|
|
@@ -5444,7 +5436,7 @@ int buildin_delitem(struct script_state *st)
|
|
|
amount-=sd->status.inventory[i].amount;
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40) {
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]);
|
|
|
}
|
|
|
//Logs
|
|
@@ -5464,10 +5456,8 @@ int buildin_delitem(struct script_state *st)
|
|
|
if(sd->status.inventory[i].amount>=amount){
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -amount, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
pc_delitem(sd,i,amount,0);
|
|
|
return 0; //we deleted exact amount of items. now exit
|
|
@@ -5475,10 +5465,8 @@ int buildin_delitem(struct script_state *st)
|
|
|
amount-=sd->status.inventory[i].amount;
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
pc_delitem(sd,i,sd->status.inventory[i].amount,0);
|
|
|
}
|
|
@@ -5544,10 +5532,8 @@ int buildin_delitem2(struct script_state *st)
|
|
|
if(sd->status.inventory[i].amount>=amount){
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -amount, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
pc_delitem(sd,i,amount,0);
|
|
|
return 0; //we deleted exact amount of items. now exit
|
|
@@ -5555,10 +5541,8 @@ int buildin_delitem2(struct script_state *st)
|
|
|
amount-=sd->status.inventory[i].amount;
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
pc_delitem(sd,i,sd->status.inventory[i].amount,0);
|
|
|
}
|
|
@@ -6091,10 +6075,8 @@ int buildin_successrefitem(struct script_state *st)
|
|
|
ep=sd->status.inventory[i].equip;
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
sd->status.inventory[i].refine++;
|
|
|
pc_unequipitem(sd,i,2);
|
|
@@ -6103,10 +6085,8 @@ int buildin_successrefitem(struct script_state *st)
|
|
|
clif_delitem(sd,i,1);
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, 1, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
clif_additem(sd,i,1,0);
|
|
|
pc_equipitem(sd,i,ep);
|
|
@@ -6146,10 +6126,8 @@ int buildin_failedrefitem(struct script_state *st)
|
|
|
i=pc_checkequip(sd,equip[num-1]);
|
|
|
if(i >= 0) {
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
sd->status.inventory[i].refine = 0;
|
|
|
pc_unequipitem(sd,i,3);
|
|
@@ -8808,10 +8786,8 @@ int buildin_successremovecards(struct script_state *st)
|
|
|
item_tmp.card[j]=0;
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, item_tmp.nameid, 1, NULL);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
if((flag=pc_additem(sd,&item_tmp,1))){ // 持てないならドロップ
|
|
|
clif_additem(sd,0,0,flag);
|
|
@@ -8827,20 +8803,16 @@ int buildin_successremovecards(struct script_state *st)
|
|
|
item_tmp.attribute=sd->status.inventory[i].attribute;
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
for (j = 0; j < MAX_SLOTS; j++)
|
|
|
item_tmp.card[j]=0;
|
|
|
pc_delitem(sd,i,1,0);
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, item_tmp.nameid, 1, &item_tmp);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
if((flag=pc_additem(sd,&item_tmp,1))){ // もてないならドロップ
|
|
|
clif_additem(sd,0,0,flag);
|
|
@@ -8885,10 +8857,8 @@ int buildin_failedremovecards(struct script_state *st)
|
|
|
item_tmp.card[j]=0;
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, item_tmp.nameid, 1, NULL);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
if((flag=pc_additem(sd,&item_tmp,1))){
|
|
|
clif_additem(sd,0,0,flag);
|
|
@@ -8902,10 +8872,8 @@ int buildin_failedremovecards(struct script_state *st)
|
|
|
|
|
|
if(typefail == 0 || typefail == 2){ // 武具損失
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
pc_delitem(sd,i,1,0);
|
|
|
clif_misceffect(&sd->bl,2);
|
|
@@ -8918,20 +8886,16 @@ int buildin_failedremovecards(struct script_state *st)
|
|
|
item_tmp.attribute=sd->status.inventory[i].attribute;
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
for (j = 0; j < MAX_SLOTS; j++)
|
|
|
item_tmp.card[j]=0;
|
|
|
pc_delitem(sd,i,1,0);
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, item_tmp.nameid, 1, &item_tmp);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
if((flag=pc_additem(sd,&item_tmp,1))){
|
|
|
clif_additem(sd,0,0,flag);
|
|
@@ -9494,10 +9458,8 @@ int buildin_clearitem(struct script_state *st)
|
|
|
if (sd->status.inventory[i].amount) {
|
|
|
|
|
|
//Logs items, got from (N)PC scripts [Lupus]
|
|
|
- if(log_config.pick > 0 ) {
|
|
|
+ if(log_config.enable_logs&0x40)
|
|
|
log_pick(sd, "N", 0, sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]);
|
|
|
- }
|
|
|
- //Logs
|
|
|
|
|
|
pc_delitem(sd, i, sd->status.inventory[i].amount, 0);
|
|
|
}
|