Hi community. I'm wondering if someone can help me out in the simplest way possible. :3
Say I want to trade a beret that I'm carrying for a coronet but I want to keep the refine rate. How would that work with delitem2 and getitem2? I've tried looking at other scripts and the wiki samples but I can't figure it out.
This is how far I got. It doesn't work, it gives the Coronet fine but sadly not with the Berets refine rate:
Say I want to trade a beret that I'm carrying for a coronet but I want to keep the refine rate. How would that work with delitem2 and getitem2? I've tried looking at other scripts and the wiki samples but I can't figure it out.
This is how far I got. It doesn't work, it gives the Coronet fine but sadly not with the Berets refine rate:
Code:
getinventorylist;
set @refineitemid, getequipid(5172); // save id of the item
set @refinerycnt, getequiprefinerycnt(5172); //save refinery count
next;
mes "[Headgear Trader]";
mes "Are you sure you want to trade your Beret for a Coronet?";
menu "Yes!",-,"No, I would like a different sprite!",L_Menu2;
delitem 5172,1;
getitem2 2249,1,1,@refinerycnt,0,0,0,0,0;
mes "The deal has been a success! Enjoy your new Headgear~";
close;