viewing paste Unknown #45765 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// SVN - COSTUME ITEM EFFECT NOT WORKING
        if( sc->count && sc->data[SC_ITEMSCRIPT] ) {
                struct item_data *data = itemdb_exists(sc->data[SC_ITEMSCRIPT]->val1);
                if( data && data->script )
                        run_script(data->script,0,sd->bl.id,0);
        }
 
        pc_bonus_script(sd);
 
 
// SVN - RAMOD COSTUME ITEM EFFECT WORKING
 
        if( sc->count && sc->data[SC_ITEMSCRIPT] ) {
                struct item_data *data = itemdb_exists(sc->data[SC_ITEMSCRIPT]->val1);
                if( data && data->script )
                        run_script(data->script,0,sd->bl.id,0);
                if( !calculating ) //Abort, run_script his function. [Skotlex]
                        return 1;
        }
 
        pc_bonus_script(sd);
Viewed 554 times, submitted by unknown.