function script RefineFunc {
for( set .@i,1; .@i <= 10; set .@i,.@i + 1 )
set .@Menu$,.@Menu$ + (( getarg(1) & pow( 2,(.@i-1 ) ) && getequiprefinerycnt( .@i ) < getarg(2) && getequipisequiped( .@i) )?"^FF0000+"+getequiprefinerycnt( .@i )+" ^0000FF"+getequipname( .@i )+" "+( getitemslots( getequipid( .@i ) )?"["+getitemslots( getequipid( .@i ) )+"]":"" )+"^000000":"" )+":";
select( .@Menu$ );
if( !countitem( getarg(0) ) )
mes "You didnt have ^FF0000"+getitemname( getarg(0) )+"^000000 to refine.";
else if( getarg(3) == 1 && !getequipisenableref( @menu ) )
mes "I cant refine this items. Because it is ^FF0000Un-Refineable^000000.";
else{
if( getarg(4) )
while( getequiprefinerycnt( @menu ) < getarg(2) )
successrefitem ( @menu );
else
successrefitem ( @menu );
delitem getarg(0),1;
mes "You have gained : ";
mes "^FF0000+"+getequiprefinerycnt( @menu )+" ^0000FF"+getequipname( @menu )+"^000000";
}
close;
}
i am using this refiner and it cant refine Gentleman's Pipe and Lighthalzen Aura even i set the refinable to 1 in item_db.txt. Does this script have any problem?
i cant refine the gentlemans pipe. i also have lighthalzen aura for lower headgear and i cant also refine it. i make sure that both items are refinable. can you please check this script for me? btw its from sir emistry
//--- Bitmasks ----
// 1 - Top Headgear
// 2 - Armor
// 4 - Left Hand
// 8 - Right Hand
// 16 - Garment
// 32 - Shoes
// 64 - Left Accessory
// 128 - Right Accessory
// 256 - Middle Headgear
// 512 - Lower Headgear
// .....callfunc( "RefineFunc",<itemID>,<BitMasks>,<MaxRefine>,<CheckEquip>,<RefineMode> );
// itemID -> Item that will be used.
// BitMask -> Refer to above bitmask table.
// MaxRefine -> What is the Max Refine. [ Can Bypass Default Server Max Refine ]
// CheckEquip -> Check Equipments is Refineable or not. [ 0 = Disable / 1 = Enable ]
// RefineMode -> +1 / Max Refine. [ 0 = +1 Refine / 1 = Max Refine ]
// Notes : You can Customize it according to whatever way you want.
// Different NPCs / Items with Different Settings.
// It use 1 items that you defined to Refine all Equipments according to your Settings.
//----------- If used this as Item Script -----------
// Example :
// 501,Red_Potion,Red Potion,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "RefineFunc",501,63,10,1,1 ); },{},{}
// Change Item Type to 11
//----------- If used this as NPC Script ------------
// Example :
prontera,164,172,3 script Donation Refine 63,{
callfunc( "RefineFunc",7922,63,10,1,1 );
}
function script RefineFunc {
for( set .@i,1; .@i <= 10; set .@i,.@i + 1 )
set .@Menu$,.@Menu$ + (( getarg(1) & pow( 2,(.@i-1 ) ) && getequiprefinerycnt( .@i ) < getarg(2) && getequipisequiped( .@i) )?"^FF0000+"+getequiprefinerycnt( .@i )+" ^0000FF"+getequipname( .@i )+" "+( getitemslots( getequipid( .@i ) )?"["+getitemslots( getequipid( .@i ) )+"]":"" )+"^000000":"" )+":";
select( .@Menu$ );
if( !countitem( getarg(0) ) )
mes "You didnt have ^FF0000"+getitemname( getarg(0) )+"^000000 to refine.";
else if( getarg(3) == 1 && !getequipisenableref( @menu ) )
mes "I cant refine this items. Because it is ^FF0000Un-Refineable^000000.";
else{
if( getarg(4) )
while( getequiprefinerycnt( @menu ) < getarg(2) )
successrefitem ( @menu );
else
successrefitem ( @menu );
delitem getarg(0),1;
mes "You have gained : ";
mes "^FF0000+"+getequiprefinerycnt( @menu )+" ^0000FF"+getequipname( @menu )+"^000000";
}
close;
}
Question
rexxar31
i am using this refiner and it cant refine Gentleman's Pipe and Lighthalzen Aura even i set the refinable to 1 in item_db.txt. Does this script have any problem?
i cant refine the gentlemans pipe. i also have lighthalzen aura for lower headgear and i cant also refine it. i make sure that both items are refinable. can you please check this script for me? btw its from sir emistry
Edited by ArcencielLink to comment
Share on other sites
3 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.