Jump to content
  • 0
Sign in to follow this  
Yuri

Enchant Npc Problem

Question

hi . does anyone know how to modify this script like refiner? armor shield shoes garment only. please help ^_^

 

 

prontera,155,181,5	script	Sample	757,{mes "Which Item you want to Enchant ?";mes "Make sure there is no Card or Rune in it.";next;setarray .EquipID[0],2502,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310;for( set .@i,0; .@i < getarraysize( .EquipID ); set .@i,.@i + 1 )	set .@EquipMenu$,.@EquipMenu$ + getitemname( .EquipID[.@i] )+( !getitemslots(.EquipID[.@i])?"":"["+getitemslots(.EquipID[.@i])+"]" )+":";set .@Equip,select( .@EquipMenu$ ) - 1;if( !countitem( .EquipID[.@Equip] ) ){	mes "You didnt have this Equipment with you.";	close;}mes "Equipment : ^FF0000"+getitemname( .EquipID[.@Equip] )+"^000000";switch( select( "Quint:Mark:Seal:Glyph" )){	Case 1: setarray .RuneID[0],25214,25215,25216,25217,25218,25219,25220,25221,25222,25223; break;	Case 2: setarray .RuneID[0],25224,25225,25226,25227,25228,25229,25230,25231,25232; break;	Case 3: setarray .RuneID[0],25233,25234,25235,25236,25237,25238,25239,25240,25241,25242,25243; break;	Case 4: setarray .RuneID[0],25244,25245,25246,25247,25248,25249; break;}for( set .@i,0; .@i < getarraysize( .RuneID ); set .@i,.@i + 1 )	set .@RuneMenu$,.@RuneMenu$ + getitemname( .RuneID[.@i] )+":";set .@Rune,select( .@RuneMenu$ ) - 1;mes "Rune : ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000";next;if( select("Confirm:Cancel") == 1 ){	if( !countitem( .RuneID[.@Rune] ) ){		mes "Sorry you didnt have the "+getitemname( .RuneID[.@Rune] )+" with you.";	}else{		delitem .EquipID[.@Equip],1;		delitem .RuneID[.@Rune],1;			getitem2 .EquipID[.@Equip],1,1,0,0,0,0,0,.RuneID[.@Rune];		mes "Done.";		mes "^0000FF"+getitemname( .EquipID[.@Equip] )+"^000000";		mes "Enchanted with ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000";	}}close;}

 

Share this post


Link to post
Share on other sites

2 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.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.