Skip to content

Commit 616b5d2

Browse files
committed
Update
1 parent 9aaf954 commit 616b5d2

10 files changed

Lines changed: 223 additions & 66 deletions

Text File Multiple Search and Replace/Form1.Designer.cs

Lines changed: 71 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Text File Multiple Search and Replace/Form1.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ private void buttonSelectPathOfFile(object sender, EventArgs e)
171171
{
172172
pathOfFile = openFileDialog1.InitialDirectory + openFileDialog1.FileName;
173173
textBox1.Text = pathOfFile;
174+
label1.Text = "Changed file path";
174175
}
175176
}
176177

@@ -183,6 +184,8 @@ private void buttonDoReplaceJob_Click(object sender, EventArgs e)
183184
DialogResult result = MessageBox.Show("This action will replace all lines with the values specified.", "Confirmation", MessageBoxButtons.YesNo);
184185
if (result == DialogResult.Yes)
185186
{
187+
label1.Text = "Attempting new jobs..";
188+
186189
foreach (DataGridViewRow row in dataGridView1.Rows)
187190
{
188191
// find and replace line from datagridview
@@ -206,7 +209,7 @@ private void buttonDoReplaceJob_Click(object sender, EventArgs e)
206209
}
207210
File.WriteAllText(pathOfFile, text);
208211
}
209-
MessageBox.Show("All job done with " + replacesCount + " replaces!");
212+
label1.Text = "Jobs finished: "+ replacesCount + " replaces.";
210213
}
211214
}
212215
else
Binary file not shown.
Binary file not shown.
Lines changed: 140 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,152 @@
11
<Data>
22
<LineJobs>
33
<Check>False</Check>
4-
<Line_to_Search>Custom.VipBonus[1].Honor = 5</Line_to_Search>
5-
<Replace_with>Custom.VipBonus[1].Honor = 444</Replace_with>
6-
<Comment />
4+
<Line_to_Search>AllFlightPaths = 0</Line_to_Search>
5+
<Replace_with>AllFlightPaths = 1</Replace_with>
6+
<Comment>All flight paths available</Comment>
77
</LineJobs>
88
<LineJobs>
99
<Check>False</Check>
10-
<Line_to_Search>Custom.VipBonus[9].Arena = 45</Line_to_Search>
11-
<Replace_with>Custom.VipBonus[9].Arena = 999</Replace_with>
12-
<Comment />
10+
<Line_to_Search>GameType = 0</Line_to_Search>
11+
<Replace_with>GameType = 1</Replace_with>
12+
<Comment>PVP</Comment>
1313
</LineJobs>
1414
<LineJobs>
1515
<Check>False</Check>
16-
<Line_to_Search>AllFlightPaths = 0</Line_to_Search>
17-
<Replace_with>AllFlightPaths = 1</Replace_with>
16+
<Line_to_Search>StrictPlayerNames = 0</Line_to_Search>
17+
<Replace_with>StrictPlayerNames = 1</Replace_with>
18+
<Comment>Only latin characters</Comment>
19+
</LineJobs>
20+
<LineJobs>
21+
<Check>False</Check>
22+
<Line_to_Search>StrictCharterNames = 0</Line_to_Search>
23+
<Replace_with>StrictCharterNames = 1</Replace_with>
24+
<Comment>Only latin characters</Comment>
25+
</LineJobs>
26+
<LineJobs>
27+
<Check>False</Check>
28+
<Line_to_Search>StrictPetNames = 0</Line_to_Search>
29+
<Replace_with>StrictPetNames = 1</Replace_with>
30+
<Comment>Only latin characters</Comment>
31+
</LineJobs>
32+
<LineJobs>
33+
<Check>False</Check>
34+
<Line_to_Search>StartPlayerLevel = 1</Line_to_Search>
35+
<Replace_with>StartPlayerLevel = 80</Replace_with>
36+
<Comment>Instant 80</Comment>
37+
</LineJobs>
38+
<LineJobs>
39+
<Check>False</Check>
40+
<Line_to_Search>StartDeathKnightPlayerLevel = 55</Line_to_Search>
41+
<Replace_with>StartDeathKnightPlayerLevel = 80</Replace_with>
42+
<Comment>DK Instant 80</Comment>
43+
</LineJobs>
44+
<LineJobs>
45+
<Check>False</Check>
46+
<Line_to_Search>StartPlayerMoney = 0</Line_to_Search>
47+
<Replace_with>StartPlayerMoney = 50000</Replace_with>
48+
<Comment>Start with 5 gold</Comment>
49+
</LineJobs>
50+
<LineJobs>
51+
<Check>False</Check>
52+
<Line_to_Search>MaxHonorPoints = 75000</Line_to_Search>
53+
<Replace_with>MaxHonorPoints = 1000000</Replace_with>
54+
<Comment>Max 1 million honor points</Comment>
55+
</LineJobs>
56+
<LineJobs>
57+
<Check>False</Check>
58+
<Line_to_Search>StartHonorPoints = 0</Line_to_Search>
59+
<Replace_with>StartHonorPoints = 100</Replace_with>
60+
<Comment>Start with 100 honor points</Comment>
61+
</LineJobs>
62+
<LineJobs>
63+
<Check>False</Check>
64+
<Line_to_Search>MaxArenaPoints = 10000</Line_to_Search>
65+
<Replace_with>MaxArenaPoints = 1000000</Replace_with>
66+
<Comment>Max 1 million arena points</Comment>
67+
</LineJobs>
68+
<LineJobs>
69+
<Check>False</Check>
70+
<Line_to_Search>StartArenaPoints = 0</Line_to_Search>
71+
<Replace_with>StartArenaPoints = 10</Replace_with>
72+
<Comment>Start with 10 arena points</Comment>
73+
</LineJobs>
74+
<LineJobs>
75+
<Check>False</Check>
76+
<Line_to_Search>InstantFlightPaths = 0</Line_to_Search>
77+
<Replace_with>InstantFlightPaths = 1</Replace_with>
78+
<Comment>Instant taxi</Comment>
79+
</LineJobs>
80+
<LineJobs>
81+
<Check>False</Check>
82+
<Line_to_Search>Instance.IgnoreRaid = 0</Line_to_Search>
83+
<Replace_with>Instance.IgnoreRaid = 1</Replace_with>
84+
<Comment>Instances ignore raid group</Comment>
85+
</LineJobs>
86+
<LineJobs>
87+
<Check>False</Check>
88+
<Line_to_Search>MaxPrimaryTradeSkill = 2</Line_to_Search>
89+
<Replace_with>MaxPrimaryTradeSkill = 3</Replace_with>
90+
<Comment>Max 3 primary professions</Comment>
91+
</LineJobs>
92+
<LineJobs>
93+
<Check>False</Check>
94+
<Line_to_Search>MinPetitionSigns = 9</Line_to_Search>
95+
<Replace_with>MinPetitionSigns = 0</Replace_with>
96+
<Comment>Min signatures for guild creation</Comment>
97+
</LineJobs>
98+
<LineJobs>
99+
<Check>False</Check>
100+
<Line_to_Search>MailDeliveryDelay = 3600</Line_to_Search>
101+
<Replace_with>MailDeliveryDelay = 30</Replace_with>
102+
<Comment>Mail items 30 seconds delay</Comment>
103+
</LineJobs>
104+
<LineJobs>
105+
<Check>False</Check>
106+
<Line_to_Search>SkillChance.Prospecting = 0</Line_to_Search>
107+
<Replace_with>SkillChance.Prospecting = 1</Replace_with>
108+
<Comment>Allow skill from prospecting</Comment>
109+
</LineJobs>
110+
<LineJobs>
111+
<Check>False</Check>
112+
<Line_to_Search>SkillChance.Milling = 0</Line_to_Search>
113+
<Replace_with>SkillChance.Milling = 1</Replace_with>
114+
<Comment>Allow skill from milling</Comment>
115+
</LineJobs>
116+
<LineJobs>
117+
<Check>False</Check>
118+
<Line_to_Search>Event.Announce = 0</Line_to_Search>
119+
<Replace_with>Event.Announce = 1</Replace_with>
120+
<Comment>Announce world events</Comment>
121+
</LineJobs>
122+
<LineJobs>
123+
<Check>False</Check>
124+
<Line_to_Search>Motd = "Welcome to a Trinity Core server."</Line_to_Search>
125+
<Replace_with>Motd = ""</Replace_with>
126+
<Comment>no motd</Comment>
127+
</LineJobs>
128+
<LineJobs>
129+
<Check>False</Check>
130+
<Line_to_Search>Command.LookupMaxResults = 0</Line_to_Search>
131+
<Replace_with>Command.LookupMaxResults = 50</Replace_with>
132+
<Comment>......</Comment>
133+
</LineJobs>
134+
<LineJobs>
135+
<Check>False</Check>
136+
<Line_to_Search>AllowTwoSide.Interaction.Channel = 0</Line_to_Search>
137+
<Replace_with>AllowTwoSide.Interaction.Channel = 1</Replace_with>
138+
<Comment>......</Comment>
139+
</LineJobs>
140+
<LineJobs>
141+
<Check>False</Check>
142+
<Line_to_Search>AllowTwoSide.Interaction.Auction = 0</Line_to_Search>
143+
<Replace_with>AllowTwoSide.Interaction.Auction = 1</Replace_with>
144+
<Comment>......</Comment>
145+
</LineJobs>
146+
<LineJobs>
147+
<Check>False</Check>
148+
<Line_to_Search>TalentsInspecting = 1</Line_to_Search>
149+
<Replace_with>TalentsInspecting = 2</Replace_with>
18150
<Comment>......</Comment>
19151
</LineJobs>
20152
</Data>

0 commit comments

Comments
 (0)