Jump to content
  • 0

R>Duplicate Equip Item Like refine menu


Question

4 answers to this question

Recommended Posts

Posted
- script copyitem -1,{

OnInit:

bindatcmd "copyitem",strnpcinfo(3)+"::OnAtcommand",1,1;

end;

OnAtcommand:

.@aid = getcharid( 3,.@atcmd_parameters$[0] );

if( .@aid ){

.@origin = getcharid(3);

.@i = select( "Head Top","Armor","Hand L","Hand R","Garment","Shoe","Acc L","Acc R","Head Mid","Low" );

attachrid( .@aid );

.@equip = getequipid( .@i );

if( .@equip != -1 ){

.@refine = getequiprefinerycnt( .@i );

.@slot = getequipcardcnt( .@i );

for( .@x = 0; .@x < .@slot; .@x++ )

.@card[.@x] = getequipcardid( .@i,.@x );

}

attachrid( .@origin );

if( .@equip != -1 ){

getitem2 .@equip,1,1,.@refine,0,.@card[0],.@card[1],.@card[2],.@card[3];

equip .@equip[.@i];

dispbottom "Cloned "+.@atcmd_parameters$[0]+" equipments.";

}

else{

dispbottom "Nothing to clone on that equipment slot";

}

}

close;

}

 

 

freeze again sir

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