Jump to content
  • 0

How to make an selection refined equipment box?


Question

Posted

Hi guys. i want to make a box that if you double click it this box will let you choose for an +10 equipments. for example 1 +10 buckler, 1 +10 boots, 1 +10 chain mail etc

1 answer to this question

Recommended Posts

  • 0
Posted

Well you can create a box that will call a function that will allow him to choose the items that he wants.

You just need to find a box and edit the items as needed.
 

// item_db.txt
35022,Freebie_Headgear_Box,Freebie Costume Headgear Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "freecoshg"; },{},{}

// script.txt
function	script	freecoshg	{ 
setarray .freehg[0],19537,19835,31197,19973,20148;
mes "Please select your Freebie Costume Headgear:";
next;
select(""+getitemname(.freehg[0])+":"+getitemname(.freehg[1])+":"+getitemname(.freehg[2])+":"+getitemname(.freehg[3])+":"+getitemname(.freehg[4])+"");
	//*getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
	getitem2 .freehg[@menu-1],1,1,10,0,0,0,0,0;
   	 announce "Congratulations! "+strcharinfo(0)+" has just received the amazing "+getitemname(.freehg[@menu-1])+" from the "+getitemname(35022)+"!",0;
	end;
}

 

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