Jump to content
  • 0

Refining Help


rexxar31

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

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?

screenjimrov2000.jpg

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;
}

Edited by Arcenciel
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

refer to the bitmask table and add in the equipment part number accordingly to enable the refine process for those part....

default 63...

to add in mid headgear ( 256 ) and low headgear ( 516 )

the bitmask value should be

63 + 256 + 516

* I think i answered you in the PM Box right ? i Just post here so that other member who have some problems can take this as a references *

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   0
  • Joined:  01/03/12
  • Last Seen:  

how to disable item request to refine ?

where the bitmask value?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

what item request to refine ? elaborate more ~

i have included that in the script .... check the script...or else..redownload or visit the download page of this script... or my topic...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...