|
@@ -319,11 +319,12 @@ function script F_CashReduceStat {
|
|
|
|
|
|
if((readparam(.@type) + .@amount) < 1) return;
|
|
if((readparam(.@type) + .@amount) < 1) return;
|
|
|
|
|
|
- if(.@itemid)
|
|
|
|
|
|
+ if(.@itemid) {
|
|
if(countitem(.@itemid))
|
|
if(countitem(.@itemid))
|
|
delitem .@itemid,1;
|
|
delitem .@itemid,1;
|
|
else
|
|
else
|
|
return;
|
|
return;
|
|
|
|
+ }
|
|
StatusPoint += needed_status_point(.@type, .@amount);
|
|
StatusPoint += needed_status_point(.@type, .@amount);
|
|
statusup2 .@type,.@amount;
|
|
statusup2 .@type,.@amount;
|
|
return;
|
|
return;
|