Simple & best explanation :
Double click on ItemEditor.cs
1 click the Toolbox , you see it on the right side.
2 create a Label name it "temcode:"
3 create a textbox , leave it blank. now scroll down you will a "Design" Tab
and you will see "TextBox1" (which is the default name)
4 go back to the toolbox and create a button, name it Get item code or whatever you want to name it
5 Hold Cntrl and click the Blank textbox and the button you just created, double click again there will be a pop-up showing codes.
copy this code
Code:
string category = listBoxCategory.GetItemText(listBoxCategory.SelectedItem); int value = (int)numericUpDownIndex.Value;
int cat=0;
if (category == "Sword")
{
cat = 0;
}
if (category == "Axes")
{
cat = 1;
}
else if (category == "Maces & Scepters")
{
cat = 2;
}
else if (category == "Spears")
{
cat = 3;
}
else if (category == "Bows & Crossbows")
{
cat = 4;
}
else if (category == "Staffs & Books")
{
cat = 5;
}
else if (category == "Shields")
{
cat = 6;
}
else if (category == "Helms")
{
cat = 7;
}
else if (category == "Armors")
{
cat = 8;
}
else if (category == "Pants")
{
cat = 9;
}
else if (category == "Gloves")
{
cat = 10;
}
else if (category == "Boots")
{
cat = 11;
}
else if (category == "Wings & Misc")
{
cat = 12;
}
else if (category == "Pets & Misc")
{
cat = 13;
}
else if (category == "Jewels & Misc")
{
cat = 14;
}
else if (category == "Magic books")
{
cat = 15;
}
int icode = value + (cat * 512);
string s = icode.ToString();
// replace itemcode.txt for your textboxname.cs
Itemcode.Text = s;
and the end of the code there's a text says "Itemcode.Text"
replace it with your Blank textbox name which is the one I told you in instruction # 3
in the Design Tab. so , it's textBox1. Now replace Itemcode.Text with textBox1.Text.
Now Compile the Source and done.
@
natzugen
SIMPLE EXPLANATION RIGHT?? why can't you do that?? don't make things getting longer..
For those who don't know how to add
follow my instructions.