celeron0134 Posted May 14, 2021 Share Posted May 14, 2021 /* item_db.conf { Id: 1010 AegisName: "Phracon" Name: "Phracon" Buy: 200 Weight: 200 BuyingStore: true Type: 11 Script: <" callfunc( "F_RefineSystem",1010,1,0,10,1000 ); "> }, { Id: 1011 AegisName: "Emveretarcon" Name: "Emveretarcon" Buy: 1000 Weight: 200 BuyingStore: true Type: 11 Script: <" callfunc( "F_RefineSystem",1011,2,0,10,2500 ); "> }, { Id: 984 AegisName: "Oridecon" Name: "Oridecon" Buy: 1100 Weight: 200 BuyingStore: true Type: 11 Script: <" callfunc( "F_RefineSystem",984,3,0,10,20000 ); "> }, { Id: 985 AegisName: "Elunium" Name: "Elunium" Buy: 1100 Weight: 200 BuyingStore: true Type: 11 Script: <" callfunc( "F_RefineSystem",985,0,0,10,20000 ); "> }, */ // Usage: (ItemType, must set to 11) // callfunc( "F_RefineSystem",1010,1,0,10,1000 ); // Phracon // callfunc( "F_RefineSystem",1011,2,0,10,2500 ); // Emveretarcon // callfunc( "F_RefineSystem",984,3,0,10,20000 ); // Oridecon // callfunc( "F_RefineSystem",985,0,0,10,20000 ); // Elunium function script F_RefineSystem { [email protected]_itemid = getarg( 0,0 ); [email protected] = getarg( 1,0 ); [email protected]_refine = getarg( 2,0 ); [email protected]_refine = getarg( 3,( MAX_REFINE-1 ) ); [email protected] = getarg( 4,0 ); if ( [email protected]_itemid && [email protected] < 5 ) { for ( [email protected] = EQI_HEAD_TOP; [email protected] <= EQI_ACC_R; [email protected]++ ) { [email protected] = 0; [email protected] = getequipid( [email protected] ); if ( [email protected] == -1 ) [email protected]++; [email protected] = getequiprefinerycnt( [email protected] ); [email protected] = getitemslots( [email protected] ); [email protected]_type = getiteminfo( [email protected],2 ); if ( [email protected]_type == IT_ARMOR && [email protected] > 0 ) [email protected]++; if ( [email protected]_type == IT_WEAPON && ( [email protected] == 0 || getequipweaponlv( [email protected] ) > [email protected] ) ) [email protected]++; if ( [email protected] ) if ( [email protected] >= [email protected]_refine && [email protected] <= [email protected]_refine ) [email protected]$ = [email protected]$ + ( [email protected] ? "+"[email protected]+" ":"" ) + getitemname( [email protected] )+" ["[email protected]+"]"; [email protected]$ = [email protected]$ + ":"; } [email protected] = select( [email protected]$ ); if ( Zeny >= [email protected] ) { Zeny -= [email protected]; delitem [email protected]_itemid,1; if ( rand( 100 ) < getequippercentrefinery( [email protected] ) ) { successrefitem [email protected]; specialeffect2 EF_REFINEOK; } else { failedrefitem [email protected]; specialeffect2 EF_REFINEFAIL; } } close; } return; } so when an equipment is already +10 and you accidentally clicked the +10 .. it will break the +10 equipment how to solve this thanks Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted September 4, 2021 Share Posted September 4, 2021 set the max refine value to 9 instead of 10. Quote Link to comment Share on other sites More sharing options...
/* item_db.conf { Id: 1010 AegisName: "Phracon" Name: "Phracon" Buy: 200 Weight: 200 BuyingStore: true Type: 11 Script: <" callfunc( "F_RefineSystem",1010,1,0,10,1000 ); "> }, { Id: 1011 AegisName: "Emveretarcon" Name: "Emveretarcon" Buy: 1000 Weight: 200 BuyingStore: true Type: 11 Script: <" callfunc( "F_RefineSystem",1011,2,0,10,2500 ); "> }, { Id: 984 AegisName: "Oridecon" Name: "Oridecon" Buy: 1100 Weight: 200 BuyingStore: true Type: 11 Script: <" callfunc( "F_RefineSystem",984,3,0,10,20000 ); "> }, { Id: 985 AegisName: "Elunium" Name: "Elunium" Buy: 1100 Weight: 200 BuyingStore: true Type: 11 Script: <" callfunc( "F_RefineSystem",985,0,0,10,20000 ); "> }, */ // Usage: (ItemType, must set to 11) // callfunc( "F_RefineSystem",1010,1,0,10,1000 ); // Phracon // callfunc( "F_RefineSystem",1011,2,0,10,2500 ); // Emveretarcon // callfunc( "F_RefineSystem",984,3,0,10,20000 ); // Oridecon // callfunc( "F_RefineSystem",985,0,0,10,20000 ); // Elunium function script F_RefineSystem { [email protected]_itemid = getarg( 0,0 ); [email protected] = getarg( 1,0 ); [email protected]_refine = getarg( 2,0 ); [email protected]_refine = getarg( 3,( MAX_REFINE-1 ) ); [email protected] = getarg( 4,0 ); if ( [email protected]_itemid && [email protected] < 5 ) { for ( [email protected] = EQI_HEAD_TOP; [email protected] <= EQI_ACC_R; [email protected]++ ) { [email protected] = 0; [email protected] = getequipid( [email protected] ); if ( [email protected] == -1 ) [email protected]++; [email protected] = getequiprefinerycnt( [email protected] ); [email protected] = getitemslots( [email protected] ); [email protected]_type = getiteminfo( [email protected],2 ); if ( [email protected]_type == IT_ARMOR && [email protected] > 0 ) [email protected]++; if ( [email protected]_type == IT_WEAPON && ( [email protected] == 0 || getequipweaponlv( [email protected] ) > [email protected] ) ) [email protected]++; if ( [email protected] ) if ( [email protected] >= [email protected]_refine && [email protected] <= [email protected]_refine ) [email protected]$ = [email protected]$ + ( [email protected] ? "+"[email protected]+" ":"" ) + getitemname( [email protected] )+" ["[email protected]+"]"; [email protected]$ = [email protected]$ + ":"; } [email protected] = select( [email protected]$ ); if ( Zeny >= [email protected] ) { Zeny -= [email protected]; delitem [email protected]_itemid,1; if ( rand( 100 ) < getequippercentrefinery( [email protected] ) ) { successrefitem [email protected]; specialeffect2 EF_REFINEOK; } else { failedrefitem [email protected]; specialeffect2 EF_REFINEFAIL; } } close; } return; }so when an equipment is already +10 and you accidentally clicked the +10 .. it will break the +10 equipment how to solve this thanks
Link to comment
Share on other sites