Jump to content
  • 0

request 1 click refiner


Question

Posted

may i have 1 click refiner npc like this

+10 hat

+10 middle

+10 lower

+10 armor

+10 footgear

+10 garment

+10 shield

+10 weapon

+10 accesorry

if player click the npc he will choose equipment for refine

thx

6 answers to this question

Recommended Posts

Posted

just free npc refiner 100% +10 but player will choose what equipment like

+10 hat

+10 middle

+10 lower

+10 armor

+10 footgear

+10 garment

+10 shield

+10 weapon

+10 accesorry

Posted
<header> {
setarray .@pos$[1],"Upper Headgear","Armor","Left hand","Right hand","Garment","Footgear","Left Accessory","Right Accessory","Mid Headgear","Lower Headgear";
set .@menu$,"";
for (set .@i,1; .@i <= 10; set .@i,.@i+1) {
if (getequipisequiped(.@i))
 set .@menu$, .@menu$+.@pos$[.@i]+" [^0055FF"+getequipname(.@i)+"^000000]";
set .@menu$, .@menu$+":"; }
set @i, select(.@menu$);
if (!getequipisequiped(@i)) { message strcharinfo(0),"Nothing is equipped there!"; close; }
if (getarg(0)) {
if (!getequipisenableref(@i)) { message strcharinfo(0),getequipname(@i)+" cannot be refined."; close; }
if (getequiprefinerycnt(@i) >= 10 ) { message strcharinfo(0),"+"+getequiprefinerycnt(@i)+" "+getequipname(@i)+" cannot be refined any further."; close; } }
while (getequiprefinerycnt(@i) < 10) successrefitem @i;
message strcharinfo(0),"All done!";
close;
}

Posted

<header> {
setarray .@pos$[1],"Upper Headgear","Armor","Left hand","Right hand","Garment","Footgear","Left Accessory","Right Accessory","Mid Headgear","Lower Headgear";
set .@menu$,"";
for (set .@i,1; .@i <= 10; set .@i,.@i+1) {
if (getequipisequiped(.@i))
 set .@menu$, .@menu$+.@pos$[.@i]+" [^0055FF"+getequipname(.@i)+"^000000]";
set .@menu$, .@menu$+":"; }
set @i, select(.@menu$);
if (!getequipisequiped(@i)) { message strcharinfo(0),"Nothing is equipped there!"; close; }
if (getarg(0)) {
if (!getequipisenableref(@i)) { message strcharinfo(0),getequipname(@i)+" cannot be refined."; close; }
if (getequiprefinerycnt(@i) >= 10 ) { message strcharinfo(0),"+"+getequiprefinerycnt(@i)+" "+getequipname(@i)+" cannot be refined any further."; close; } }
while (getequiprefinerycnt(@i) < 10) successrefitem @i;
message strcharinfo(0),"All done!";
close;
}

You just totally nuked my brain! Hopefully one finest day I am able to understand this script and write it myself xD

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...