Uhmm try right clicking it and extract method if there is that option if not IDK
public static void AddItem(int itemid, int bless, int dura, int enchant, int plus, int position, int soc1, int soc2, int color, ClientSocket CSocket)
{
Struct.ItemInfo Item = new Struct.ItemInfo();
if (dura == 255)
{
Item.Dura = Item.MaxDura;
}
else
{
Item.Dura = dura;
}
Item.Bless = bless;
Item.Enchant = enchant;
Item.ItemID = itemid;
Item.Plus = plus;
Item.Position = position;
Item.Soc1 = soc1;
Item.Soc2 = soc2;
Item.Color = color;
Item.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(Item, CSocket);
while (!created)
{
Item.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(Item, CSocket);
}
CSocket.Client.Inventory.Add(Item.UID, Item);
CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
}
public static void AddItem(int itemid, int bless, int dura, int enchant, int plus, int position, int soc1, int soc2, int color, ClientSocket CSocket)
You're the damnedest idiot I have ever seen.Quote:
Legend, legend... You look like a really tough guy. Wanna make a competition for coding? Any place, any time, anything. Games, Programs, Databases, Shopping Systems, Websites, Register Systems, Fully Integrated Admin Systems, IP Checkers/Changers, Hacks, Bots, PC Themes, in one word ANY THING that can be coded!
Yes or No?
Note: We both have to do the same thing.
Regards,
Psycho|Kid
I thought e*PvP Staff were supposed to be role models and assist, not to be Grammar Nazis and spam.Quote:
dame - Whats that supposed to mean?
n.
1.Used formerly as a courtesy title for a woman in authority or a mistress of a household.
(dictionary.com)
Anyway how are you going to flame Vortex.?
are you calling yourself a nerd then?
That was a long time ago before I was even a Guardian.. I know I did wrong. I haven't done anything like that since and have been acting like a role model. But I do have a question how is that spam? Not to sound mean or anything.Quote:
I thought e*PvP Staff were supposed to be role models and assist, not to be Grammar Nazis and spam.
If you are going to deface your Guard position, then you should resign.
Wouldn't you consider making irrelevant posts on someone's thread, and not saying anything that has to do with the latter thread's original post, to be spam?Quote:
That was a long time ago before I was even a Guardian.. I know I did wrong. I haven't done anything like that since and have been acting like a role model. But I do have a question how is that spam? Not to sound mean or anything.
Also please do not double post :) If you wish to add something edit your last post.
public static void AddItem(int itemid, int bless, int dura, int enchant, int plus, int position, int soc1, int soc2, int color, ClientSocket CSocket)
{
Struct.ItemInfo Item = new Struct.ItemInfo();
if (dura == 255)
{
Item.Dura = Item.MaxDura;
}
else
{
Item.Dura = dura;
}
Item.Bless = bless;
Item.Enchant = enchant;
Item.ItemID = itemid;
Item.Plus = plus;
Item.Position = position;
Item.Soc1 = soc1;
Item.Soc2 = soc2;
Item.Color = color;
Item.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(Item, CSocket);
while (!created)
{
Item.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(Item, CSocket);
}
CSocket.Client.Inventory.Add(Item.UID, Item);
CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
}