//**************************************************************************************************
// Created by dev LOOLP
// Version 1.0
// Compatible with rAthena
// Function : automatic item exchange, based on item array, trade, quantity.
// Keeping credit is a matter of respect and thanks
//**************************************************************************************************
.@menu = select(
(countitem(501)?"- Exchange with "+getitemname(501)+"":""),
(countitem(502)?"- Exchange with "+getitemname(502)+"":""),
(countitem(503)?"- Exchange with "+getitemname(503)+"":""),
"- Nothing"
);
switch(.@menu) {
case 1:
set .choice, 0;
delitem .@item[0],1;
getitem .@exchange[.choice],.@amount[.choice];
break;
case 2:
set .choice, 1;
delitem .@item[1],1;
getitem .@exchange[.choice],.@amount[.choice];
break;
case 3:
set .choice, 2;
delitem .@item[2],1;
getitem .@exchange[.choice],.@amount[.choice];
break;
default:
mes "[ Exchanger ]";
mes "There's nothing i can do for you.";
mes " ";
mes "Please come back to me later!";
break;
}
end;
}
kindly help me on adding amount i want to exchange.. example if i have 100 501.. and id like to exchange all 100 at once .. so i dont have to click the NPC 100times
Question
celeron0134
kindly help me on adding amount i want to exchange.. example if i have 100 501.. and id like to exchange all 100 at once .. so i dont have to click the NPC 100times
thanks
Link to comment
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.