I have this sure refiner script to +10 which requires 4500 mithril coins to be able to refine with 100% chance.
May I request an edit for this script so that it will have 2 options/menu to refine. One option/menu is to require 4500 mithril coins and a second option/menu to require 1 PC of item #7179.
So basically players will have to 2 options in transacting with the NPC whichever they want.
Here is my script:
prt_in,53,56,7 script Mithril Refiner +1 to +10::Mithril Refiner1 86,{
function Refine;
set @itemid, 674;
set @itemquantity, 4500;
set @maxrefine, 10;
mes "[Forger]";
mes "Hi, I can refine any upgradeable equipment of your choice to sure +10. Just pay me ^FF00004,500 Mithril Coins^000000.";
next;
mes "Oh and by the way, I can refine your refinable equipment even if it already has a previous upgrade. I can upgrade them whether if its +5, +7 or +9 doesn't matter.";
menu "Refine equipment",REFIN,"Nothing at all",QUIT;
REFIN:
if (countitem(674)<4500) goto NOREQ;
next;
mes "To refine an item you need:";
mes "^FF0000 "+@itemquantity+" "+getitemname(@itemid)+"^000000";
set @headtop$,getequipname(1);
set @armor$,getequipname(2);
set @handl$,getequipname(3);
set @handr$,getequipname(4);
set @garment$,getequipname(5);
set @shoes$,getequipname(6);
set @accl$,getequipname(7);
set @accr$,getequipname(8);
set @headmid$,getequipname(9);
set @headlow$,getequipname(10);
menu
"[Head - Top] "+@headtop$,HEADTOP,
"[Head - Mid] "+@headmid$,HEADMID,
"[Head - Low] "+@headlow$,HEADLOW,
"[Armor] "+@armor$,ARMOR,
"[Garment] "+@garment$,GARMENT,
"[Left Hand] "+@handl$,HANDL,
"[Right Hand] "+@handr$,HANDR,
"[Left Acc] "+@accl$,ACCL,
"[Right Acc] "+@accr$,ACCR,
"[Shoes] "+@shoes$,SHOES,
"Cancel",QUIT;
HEADTOP:
set @slot, 1;
callfunc Refine;
HEADMID:
set @slot, 9;
callfunc Refine;
HEADLOW:
set @slot, 10;
callfunc Refine;
ARMOR:
set @slot, 2;
callfunc Refine;
GARMENT:
set @slot, 5;
callfunc Refine;
HANDL:
set @slot, 3;
callfunc Refine;
HANDR:
set @slot, 4;
callfunc Refine;
ACCL:
set @slot, 7;
callfunc Refine;
ACCR:
set @slot, 8;
callfunc Refine;
SHOES:
set @slot, 6;
callfunc Refine;
QUIT:
mes "Oh, bye then.";
close;
LATER:
mes "Thanks, have a nice day.";
close;
CANCEL:
mes "Okay, come back another time.";
close;
MAX:
mes "Sorry, but I can't refine this anymore.";
close;
NOWAY:
mes "Oh my, I can't refine this item!!!";
close;
NOREQ:
next;
mes "Sorry, but you don't have the items I need. Get out!";
close;
// ---------------Refine Equipment
function Refine {
if (getequiprefinerycnt(@slot) >= @maxrefine) goto MAX;
if (getequipisenableref(@slot) == 0) goto NOWAY;
menu "Do it!",-,"Cancel",CANCEL;
if (countitem(@itemid) < @itemquantity) goto NOREQ;
delitem @itemid, @itemquantity;
set @repeat, (@maxrefine - getequiprefinerycnt(@slot));
while (@repeat > 0) {
successrefitem(@slot);
set @repeat, @repeat - 1;
}
goto LATER;
}
}
Thank you Sirs.
Anyone? Kindly please help a newbie scripter like me.
Question
johnbond
Hello Sirs,
I have this sure refiner script to +10 which requires 4500 mithril coins to be able to refine with 100% chance.
May I request an edit for this script so that it will have 2 options/menu to refine. One option/menu is to require 4500 mithril coins and a second option/menu to require 1 PC of item #7179.
So basically players will have to 2 options in transacting with the NPC whichever they want.
Here is my script:
Thank you Sirs.
Anyone? Kindly please help a newbie scripter like me.
Thank you.
Link 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.