greenieken Posted March 18, 2013 Posted March 18, 2013 Hello. Can somebody help me with my script: new_1-2,95,71,4 script +10 Refiner 100,{ for ( .@i = 1; .@i <= 10; .@i++ ) { if ( getequipisequiped(.@i) ) { .@id = getequipid(.@i); .@ref = getequiprefinerycnt(.@i); .@card1 = getequipcardid( .@i, 0 ); .@card2 = getequipcardid( .@i, 1 ); .@card3 = getequipcardid( .@i, 2 ); .@card4 = getequipcardid( .@i, 3 ); delitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, .@card4; getitem2 .@id, 1, 1, 101, 0, .@card1, .@card2, .@card3, .@card4; equip .@id; } } end; } It refines non-refinable items. Can someone help me for it not to refine the non-refinable items? thanks. Quote
Skorm Posted March 18, 2013 Posted March 18, 2013 (edited) new_1-2,95,71,4 script +101 Refiner 100,{ for ( .@i = 1; .@i <= 10; .@i++ ) { if ( getequipisequiped(.@i) && getequipisenableref(.@i) ) { .@id = getequipid(.@i); .@ref = getequiprefinerycnt(.@i); .@card1 = getequipcardid( .@i, 0 ); .@card2 = getequipcardid( .@i, 1 ); .@card3 = getequipcardid( .@i, 2 ); .@card4 = getequipcardid( .@i, 3 ); delitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, .@card4; getitem2 .@id, 1, 1, 101, 0, .@card1, .@card2, .@card3, .@card4; equip .@id; } } end; }The problem is that script is using:getitem2 .@id, 1, 1, 101, 0, .@card1, .@card2, .@card3, .@card4; So it's bypassing refine restrictions. Added: && getequipisenableref(.@i) To check if the equipped item can be refined. Also please use [ code][ /code] without spaces when posting scripts. Edited March 19, 2013 by Skorm 1 Quote
Capuche Posted March 18, 2013 Posted March 18, 2013 Like this ? new_1-2,95,71,4 script +10 Refiner 100,{ for ( .@i = 1; .@i <= 10; .@i++ ) { if ( getequipisequiped(.@i) ) while( getequiprefinerycnt(.@i) < 10 ) successrefitem .@i; } end; } Quote
Skorm Posted March 18, 2013 Posted March 18, 2013 Like this ? new_1-2,95,71,4 script +10 Refiner 100,{ for ( .@i = 1; .@i <= 10; .@i++ ) { if ( getequipisequiped(.@i) ) while( getequiprefinerycnt(.@i) < 10 ) successrefitem .@i; } end; } I don't think so that would only refine the item to +10... There are commands that go past that. Unless the 101 was just a typo on his part. I would add getequipisenableref(.@i) anyways as a precaution. I don't see why you feel the need to omit that. Quote
Capuche Posted March 18, 2013 Posted March 18, 2013 I would add getequipisenableref(.@i) anyways as a precaution. You're right I forgot this command prontera,155,178,4 script +10 Refiner 100,{ for ( .@i = 1; .@i <= 10; .@i++ ) { if ( getequipisequiped(.@i) && getequipisenableref(.@i) ) while( getequiprefinerycnt(.@i) < 10 ) successrefitem .@i; } end; } I don't think so that would only refine the item to +10 Try it if you doubt Quote
Skorm Posted March 19, 2013 Posted March 19, 2013 (edited) I don't think so that would only refine the item to +10Try it if you doubt... while( getequiprefinerycnt(.@i) < 10 ) successrefitem .@i; It did exactly what I thought it was going to do. What I'm saying is he might want his items to be +101... because... getitem2 .@id, 1, 1, 101, 0, .@card1, .@card2, .@card3, .@card4; Edited March 19, 2013 by Skorm Quote
Question
greenieken
Hello. Can somebody help me with my script:
6 answers 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.