The BitMask Table :
//--- 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
If you want to allow the refine on those part....then just put in the Number ( for Single Part Refiner ) or Add in all the Number ( for Multiple Part Refiner )
For Example :
A Refiner that can refine Top Headgear Only ( BitMask = 1 )
A Refiner that can refine Both Left / Right Accessory Only ( BitMask = 126 + 64 = 190 )
A Refiner that can refine Armor / Garment / Shoes Only ( BitMask = 2 + 16 + 32 = 50 )
and etc.....
Function Script Calling :
callfunc( "RefineFunc",<itemID>,<BitMasks>,<MaxRefine>,<CheckEquip>,<RefineMode> );
Explaination on Each Argument :
// 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 ]
Sample Script :
Use as Item ( Refine Ticket ) :
501,Red_Potion,Red Potion,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "RefineFunc",501,63,10,1,1 ); },{},{}
Caution : Change Item Type to 11
Use as NPC Script ( Custom 100% Refiner ) :
prontera,155,181,5 script Refiner 757,{
callfunc( "RefineFunc",501,63,10,1,1 );
}
You can create as many NPC / Items for refine as you want to...
just make sure youprovide the correct Settings.
With this script, you can create several NPC that can allow users to refine items 100% success using certain items and different max refine level.
So, that your server wont need to focus on using 1 NPC. You can make 1 NPC for refine +5 / +6 / +7 using Elunium without fail, then you can further the refine to +8 / +9 using another NPC with different Items, and lastly +10 another NPC. It is all up to you.
Refine Function [ Version 4 ]
Changelog :
Scripts : View ♥ Download
Please spend your time to read all the things i have write / mentioned in the post before you asking any questions.
if got bug / problems please do report to me.
Good Morning Emistry,
Im looking for an NPC refiner that if it refine fails, it will still get the item and does not destroyed