I hate to see people struggling so I'll give my 2 cents.
I don't see why this wouldn't work.
public void onPaint(Graphics2D g)
{
currentExp = skills.getExperience(org.osbot.rs07.api.ui.Skill.MINING);
expGained = (currentExp - startExp);
claycount = ((currentExp - expOnReset) / 4);
int x = getMousegetPositionx;
int y = getMousegetPositiony;
g.drawLine(0, y, 765, y);
g.drawLine(x, 0, x, 503);
DrawUpdate(g);
}
//New integer called expOnReset, in your onStart.
int expOnReset = *cbf getting it but your current mining xp.*;
if (trade.isSecondInterfaceOpen()) {
RandomSleep();
trade.acceptTrade();sleep(150, 300);
while ((isTrading()) && (!trade.didOtherAcceptTrade())) {}
expOnReset = *cbf getting it but your current mining xp.*;
}