Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 7fcb705

Browse files
committed
add editing for items mentioned earlier
1 parent dbd0708 commit 7fcb705

File tree

1 file changed

+46
-14
lines changed

1 file changed

+46
-14
lines changed

MonstieHuntieHax.WinForms/Main.cs

+46-14
Original file line numberDiff line numberDiff line change
@@ -171,48 +171,57 @@ private void CountSysBotCharmRecovery_ValueChanged(object sender, EventArgs e)
171171
// Battle Items
172172
private void CountSysBotAncientPotion_ValueChanged(object sender, EventArgs e)
173173
{
174-
174+
SysBotLog.Text += Environment.NewLine + $"Writing Ancient Potions: {CountSysBotAncientPotion.Value}";
175+
WriteHeap(CountSysBotAncientPotion.Value, DataOffsets.PointerAncientPotion);
175176
}
176177

177178
private void CountSysBotDustOfLife_ValueChanged(object sender, EventArgs e)
178179
{
179-
180+
SysBotLog.Text += Environment.NewLine + $"Writing Dust Of Lifes: {CountSysBotDustOfLife.Value}";
181+
WriteHeap(CountSysBotDustOfLife.Value, DataOffsets.PointerDustOfLife);
180182
}
181183

182184
private void CountSysBotHeartChurro_ValueChanged(object sender, EventArgs e)
183185
{
184-
186+
SysBotLog.Text += Environment.NewLine + $"Writing Heart Churros: {CountSysBotHeartChurro.Value}";
187+
WriteHeap(CountSysBotHeartChurro.Value, DataOffsets.PointerHeartChurro);
185188
}
186189

187190
private void CountSysBotSurrogateGem_ValueChanged(object sender, EventArgs e)
188191
{
189-
192+
SysBotLog.Text += Environment.NewLine + $"Writing Surrogate Gems: {CountSysBotSurrogateGem.Value}";
193+
WriteHeap(CountSysBotSurrogateGem.Value, DataOffsets.PointerSurrogateGem);
190194
}
191195

192196
private void CountSysBotPowerPaintball_ValueChanged(object sender, EventArgs e)
193197
{
194-
198+
SysBotLog.Text += Environment.NewLine + $"Writing Power Paintballs: {CountSysBotPowerPaintball.Value}";
199+
WriteHeap(CountSysBotPowerPaintball.Value, DataOffsets.PointerPowerPaintball);
195200
}
196201

197202
private void CountSysBotSuperWhetstone_ValueChanged(object sender, EventArgs e)
198203
{
199-
204+
SysBotLog.Text += Environment.NewLine + $"Writing Super Whetstones: {CountSysBotSuperWhetstone.Value}";
205+
WriteHeap(CountSysBotSuperWhetstone.Value, DataOffsets.PointerSuperWhetstone);
200206
}
201207

202208
private void CountSysBotMegaBarrelBomb_ValueChanged(object sender, EventArgs e)
203209
{
204-
210+
SysBotLog.Text += Environment.NewLine + $"Writing Mega Barrel Bombs: {CountSysBotMegaBarrelBomb.Value}";
211+
WriteHeap(CountSysBotMegaBarrelBomb.Value, DataOffsets.PointerMegaBarrelBomb);
205212
}
206213

207214
// Crafting
208215
private void CountSysBotWeaponSphereL_ValueChanged(object sender, EventArgs e)
209216
{
210-
217+
SysBotLog.Text += Environment.NewLine + $"Writing Weapon Sphere Ls: {CountSysBotWeaponSphereL.Value}";
218+
WriteHeap(CountSysBotWeaponSphereL.Value, DataOffsets.PointerWeaponSphereL);
211219
}
212220

213221
private void CountSysBotArmorSphereL_ValueChanged(object sender, EventArgs e)
214222
{
215-
223+
SysBotLog.Text += Environment.NewLine + $"Writing Armor Sphere Ls: {CountSysBotArmorSphereL.Value}";
224+
WriteHeap(CountSysBotArmorSphereL.Value, DataOffsets.PointerArmorSphereL);
216225
}
217226

218227
private void ReloadValues()
@@ -267,8 +276,9 @@ private void ReloadValues()
267276
CountSysBotCharmRecovery.Value = RecoveryCharms;
268277
CountSysBotCharmRecovery.Enabled = true;
269278

270-
SysBotLog.Text += Environment.NewLine + $"{DataOffsets.PointerCharmRecovery}";
271-
} catch (Exception ex)
279+
SysBotLog.Text += Environment.NewLine + $"{DataOffsets.PointerCharmRecovery}";
280+
}
281+
catch (Exception ex)
272282
{
273283
CountSysBotCharmTraining.Enabled = false;
274284
CountSysBotCharmGathering.Enabled = false;
@@ -285,8 +295,29 @@ private void ReloadValues()
285295
// Battle Items
286296
try
287297
{
288-
289-
} catch (Exception ex)
298+
uint AncientPotions = (uint)PointerHandler.GetPointerAddress(sb, DataOffsets.PointerAncientPotion);
299+
CountSysBotAncientPotion.Value = AncientPotions;
300+
CountSysBotAncientPotion.Enabled = true;
301+
uint DustOfLifes = (uint)PointerHandler.GetPointerAddress(sb, DataOffsets.PointerDustOfLife);
302+
CountSysBotDustOfLife.Value = DustOfLifes;
303+
CountSysBotDustOfLife.Enabled = true;
304+
uint HeartChurros = (uint)PointerHandler.GetPointerAddress(sb, DataOffsets.PointerHeartChurro);
305+
CountSysBotHeartChurro.Value = HeartChurros;
306+
CountSysBotHeartChurro.Enabled = true;
307+
uint SurrogateGems = (uint)PointerHandler.GetPointerAddress(sb, DataOffsets.PointerSurrogateGem);
308+
CountSysBotSurrogateGem.Value = SurrogateGems;
309+
CountSysBotSurrogateGem.Enabled = true;
310+
uint PowerPaintballs = (uint)PointerHandler.GetPointerAddress(sb, DataOffsets.PointerPowerPaintball);
311+
CountSysBotPowerPaintball.Value = PowerPaintballs;
312+
CountSysBotPowerPaintball.Enabled = true;
313+
uint SuperWhetstones = (uint)PointerHandler.GetPointerAddress(sb, DataOffsets.PointerSuperWhetstone);
314+
CountSysBotSuperWhetstone.Value = SuperWhetstones;
315+
CountSysBotSuperWhetstone.Enabled = true;
316+
uint MegaBarrelBombs = (uint)PointerHandler.GetPointerAddress(sb, DataOffsets.PointerMegaBarrelBomb);
317+
CountSysBotMegaBarrelBomb.Value = MegaBarrelBombs;
318+
CountSysBotMegaBarrelBomb.Enabled = true;
319+
}
320+
catch (Exception ex)
290321
{
291322
LogError(ex);
292323
}
@@ -299,7 +330,8 @@ private void ReloadValues()
299330
uint ArmorSphereLs = (uint)PointerHandler.GetPointerAddress(sb, DataOffsets.PointerArmorSphereL);
300331
CountSysBotArmorSphereL.Value = ArmorSphereLs;
301332
CountSysBotArmorSphereL.Enabled = true;
302-
} catch (Exception ex)
333+
}
334+
catch (Exception ex)
303335
{
304336
CountSysBotWeaponSphereL.Enabled = false;
305337
CountSysBotArmorSphereL.Enabled = false;

0 commit comments

Comments
 (0)