viewing paste Unknown #22713 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14
        if(req.itemid[i] == ITEMID_ACID_BOTTLE || req.itemid[i] == ITEMID_FIRE_BOTTLE) // Creator's
        {
            int16 item_index;
            if ((item_index = pc->search_inventory(sd,req.itemid[i])) == INDEX_NOT_FOUND
              || sd->status.inventory[item_index].amount < req.amount[i]
            ) {
                if( map->list[sd->bl.m].flag.gvg )
                    req.itemid[i] = ITEMID_WOEACIDBOTTLE;
                if( map->list[sd->bl.m].flag.battleground )
                    req.itemid[i] = ITEMID_BGACIDBOTTLE;
                
                req.amount[i] = 1;
            }
        }
Viewed 721 times, submitted by Guest.