When new characters start with items.

06/27/2009 22:34 Arcotemple:)#1
where do i go to change what items they start with?

lotf source
06/28/2009 01:07 hunterman01#2
Its in database.cs im not sure atm exactly what line it is cause im not looking at it

BUT it is close to the same spot where you change the map id to where u first spawn when you make a new char
06/28/2009 01:50 Arcotemple:)#3
Quote:
Originally Posted by hunterman01 View Post
Its in database.cs im not sure atm exactly what line it is cause im not looking at it

BUT it is close to the same spot where you change the map id to where u first spawn when you make a new char
okay what would i search for then?
06/28/2009 01:53 Zanzibar#4
In database.cs look for 'CreateChar' without the 's.
06/28/2009 03:27 hunterman01#5
Or you can search for NEWCharacter
06/28/2009 03:44 n0mansland#6
or you could find the item ID for coat and just search that find the start of the code and edit what ever you want
06/28/2009 03:46 hunterman01#7
Yeah w.e just use whatever you want
06/28/2009 04:07 Arcotemple:)#8
Quote:
Originally Posted by n0mansland View Post
or you could find the item ID for coat and just search that find the start of the code and edit what ever you want
alright thanks!
06/29/2009 22:39 arab4life#9
well since he is talking about lotf or loft or w/e...
i didnt want to make a new thread, but i got a question...
am using CoEmu v2 duh...

Code:
public static void InitialItems(int CharID, int Class)
		{
			try
			{
				switch(Class)
				{
					case 10:
						{
							MySqlCommand Cmd = new MySqlCommand("INSERT INTO items(CharID, Position, ItemID, Plus, Minus, Enchant, Soc1, Soc2, Dura, MaxDura) VALUES([COLOR="Red"]" + CharID + "," + 4 + "," + 410302 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 10 + "," + 10 + ")"[/COLOR], DatabaseConnection.NewConnection());
							Cmd.ExecuteNonQuery();
							Cmd.Connection.Close();
							Cmd.Dispose();
							MySqlCommand Cmd2 = new MySqlCommand("INSERT INTO items(CharID, Position, ItemID, Plus, Minus, Enchant, Soc1, Soc2, Dura, MaxDura) VALUES(" + CharID + "," + [COLOR="Red"]3 + "," + 132003 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 10 + "," [/COLOR]+ 10 + ")", DatabaseConnection.NewConnection());
							Cmd2.ExecuteNonQuery();
							Cmd2.Connection.Close();
							Cmd2.Dispose();
							break;
						}
is the highlighted shit is when a character is created and the item appears when 1st login?(its not fully highlighted, just lazy to edit it , you get what i mean_)... Or no you crack head what in the world are you thinking?
07/14/2009 05:47 raidenx123#10
It is by the end of database.cs
Code:
Create.WriteString("Character", "CharName", Name);
                Create.WriteString("Character", "Account", UClient.Account);
                Create.WriteString("Character", "UID", Convert.ToString(uid));
                [U]Create.WriteString("Character", "Level", "1");[/U]
                Create.WriteString("Character", "Exp", "0");
                Create.WriteString("Character", "Strength", str);
                Create.WriteString("Character", "Agility", agi);
                Create.WriteString("Character", "Vitality", vit);
                Create.WriteString("Character", "Spirit", spi);
                Create.WriteString("Character", "Job", Convert.ToString(Class));
                Create.WriteString("Character", "Model", Convert.ToString(Model));
                [I]Create.WriteString("Character", "Money", "10000");
                Create.WriteString("Character", "CPs", "1000");[/I]
                Create.WriteString("Character", "CurrentHP", hp);
                Create.WriteString("Character", "CurrentMP", mp);
                Create.WriteString("Character", "StatPoints", "0");
[B]                Create.WriteString("Character", "LocationMap", "1002");
                Create.WriteString("Character", "LocationX", "438");
                Create.WriteString("Character", "LocationY", "377");[/B]
                Create.WriteString("Character", "Hair", "410");
                Create.WriteString("Character", "Inv1", "");
                Create.WriteString("Character", "Inv2", "");
                Create.WriteString("Character", "Inv3", "");
                Create.WriteString("Character", "Inv4", "");
                Create.WriteString("Character", "Inv5", "");
                Create.WriteString("Character", "Inv6", "");
                Create.WriteString("Character", "Inv7", "");
                Create.WriteString("Character", "Inv8", "");
                Create.WriteString("Character", "PKPoints", "0");
                Create.WriteString("Character", "Skills", "");
                Create.WriteString("Character", "Profs", "");
                Create.WriteString("Character", "RBCount", "0");
                Create.WriteString("Character", "Avatar", "1");
                Create.WriteString("Character", "WHMoney", "0");
                Create.WriteString("Character", "Warehouses", ":::::");
                Create.WriteString("Character", "VP", "0");
                Create.WriteString("Character", "Friends", "");
                Create.WriteString("Character", "Enemies", "");
                Create.WriteString("Character", "GuildDonation", "0");
                Create.WriteString("Character", "MyGuild", "0");
                Create.WriteString("Character", "GuildPos", "0");
                Create.WriteString("Character", "PrevMap", "0"); ;
07/14/2009 05:50 Arcotemple:)#11
#request close
my source is different and has a different way of the starting gears
07/14/2009 11:12 tanelipe#12
#Closed