celeron0134 Posted May 14, 2021 Group: Members Topic Count: 66 Topics Per Day: 0.02 Content Count: 194 Reputation: 1 Joined: 12/13/16 Last Seen: February 14, 2023 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 { .@ore_itemid = getarg( 0,0 ); .@level = getarg( 1,0 ); .@min_refine = getarg( 2,0 ); .@max_refine = getarg( 3,( MAX_REFINE-1 ) ); .@zeny = getarg( 4,0 ); if ( .@ore_itemid && .@level < 5 ) { for ( .@i = EQI_HEAD_TOP; .@i <= EQI_ACC_R; .@i++ ) { .@fail = 0; .@itemid = getequipid( .@i ); if ( .@itemid == -1 ) .@fail++; .@refine = getequiprefinerycnt( .@i ); .@slot = getitemslots( .@itemid ); .@itemid_type = getiteminfo( .@itemid,2 ); if ( .@itemid_type == IT_ARMOR && .@level > 0 ) .@fail++; if ( .@itemid_type == IT_WEAPON && ( .@level == 0 || getequipweaponlv( .@i ) > .@level ) ) .@fail++; if ( !.@fail ) if ( .@refine >= .@min_refine && .@refine <= .@max_refine ) .@menu$ = .@menu$ + ( .@refine ? "+"+.@refine+" ":"" ) + getitemname( .@itemid )+" ["+.@slot+"]"; .@menu$ = .@menu$ + ":"; } .@i = select( .@menu$ ); if ( Zeny >= .@zeny ) { Zeny -= .@zeny; delitem .@ore_itemid,1; if ( rand( 100 ) < getequippercentrefinery( .@i ) ) { successrefitem .@i; specialeffect2 EF_REFINEOK; } else { failedrefitem .@i; 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 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM 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...
Question
celeron0134
/* 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 { .@ore_itemid = getarg( 0,0 ); .@level = getarg( 1,0 ); .@min_refine = getarg( 2,0 ); .@max_refine = getarg( 3,( MAX_REFINE-1 ) ); .@zeny = getarg( 4,0 ); if ( .@ore_itemid && .@level < 5 ) { for ( .@i = EQI_HEAD_TOP; .@i <= EQI_ACC_R; .@i++ ) { .@fail = 0; .@itemid = getequipid( .@i ); if ( .@itemid == -1 ) .@fail++; .@refine = getequiprefinerycnt( .@i ); .@slot = getitemslots( .@itemid ); .@itemid_type = getiteminfo( .@itemid,2 ); if ( .@itemid_type == IT_ARMOR && .@level > 0 ) .@fail++; if ( .@itemid_type == IT_WEAPON && ( .@level == 0 || getequipweaponlv( .@i ) > .@level ) ) .@fail++; if ( !.@fail ) if ( .@refine >= .@min_refine && .@refine <= .@max_refine ) .@menu$ = .@menu$ + ( .@refine ? "+"+.@refine+" ":"" ) + getitemname( .@itemid )+" ["+.@slot+"]"; .@menu$ = .@menu$ + ":"; } .@i = select( .@menu$ ); if ( Zeny >= .@zeny ) { Zeny -= .@zeny; delitem .@ore_itemid,1; if ( rand( 100 ) < getequippercentrefinery( .@i ) ) { successrefitem .@i; specialeffect2 EF_REFINEOK; } else { failedrefitem .@i; 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
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.