本帖最后由 yang1zhi 于 2019-6-16 16:59 编辑
var lost_s = [] for (var id in $gameParty._items) { var item = $dataItems[id] if (item .itypeId != 2) { for (var i=0;i<$gameParty._items[id];i++) { lost_s.push(id) } } } for (var i=0;i<lost_s.length;i++) { var id = lost_sp[i] var item = $dataItems[id] $gameParty.gainItem(item, -1); }
var lost_s = []
for (var id in $gameParty._items) {
var item = $dataItems[id]
if (item .itypeId != 2) {
for (var i=0;i<$gameParty._items[id];i++) {
lost_s.push(id)
}
}
}
for (var i=0;i<lost_s.length;i++) {
var id = lost_sp[i]
var item = $dataItems[id]
$gameParty.gainItem(item, -1);
}
|