Skip to content

Commit

Permalink
"On sale" price parsing fix
Browse files Browse the repository at this point in the history
That's all folks!
  • Loading branch information
Maxx53 committed Jul 29, 2014
1 parent 1e20863 commit 5d52ebd
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 247 deletions.
39 changes: 15 additions & 24 deletions scr/SCMBot/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ private void LoadSettings(bool loadtabs)
settingsForm.stopFundsBox.Text = MainScanItem.LogItem.DoFracture(settings.StopFunds.ToString());
stopfundsVal = settings.StopFunds;

settingsForm.FeeCheckBox.Checked = settings.withFee;

settingsForm.playSndCheckBox.Checked = settings.playSnd;

settingsForm.resDelayBox.Text = settings.resellDelay.ToString();
Expand Down Expand Up @@ -330,8 +328,6 @@ private void SaveSettings(bool savetabs)
settings.StopFunds = Convert.ToInt32(SteamSite.GetSweetPrice(settingsForm.stopFundsBox.Text));
stopfundsVal = settings.StopFunds;

settings.withFee = settingsForm.FeeCheckBox.Checked;

settings.Language = settingsForm.intLangComboBox.SelectedItem.ToString();

settings.formParams = new MainFormParams(lastFrmSize, lastFrmPos, this.WindowState,
Expand Down Expand Up @@ -1211,12 +1207,26 @@ private void button1_Click(object sender, EventArgs e)
if (comboBox3.SelectedIndex == 8)
{
steam_srch.LoadOnSale = true;
SellButton.Text = Strings.RemSell;
steam_srch.isRemove = true;
textBox1.Clear();
textBox3.Clear();
textBox1.ReadOnly = true;
textBox3.ReadOnly = true;
button2.Enabled = false;
}
else
{
steam_srch.LoadOnSale = false;
steam_srch.invApp = comboBox3.SelectedIndex;
SellButton.Text = Strings.Sell;
steam_srch.isRemove = false;
textBox1.ReadOnly = false;
textBox3.ReadOnly = false;
}

SellButton.Enabled = false;
InventoryList.Items.Clear();
steam_srch.loadInventory();

} else
Expand Down Expand Up @@ -1247,11 +1257,7 @@ private void SellButton_Click(object sender, EventArgs e)
var ouritem = filteredInvList[InventoryList.CheckedItems[i].Index];
if ((ouritem.Marketable) && (ouritem.Price != "0"))
{
string truePrice = ouritem.Price;

if (settings.withFee)
truePrice = CalcWithFee(truePrice);
steam_srch.toSellList.Add(new SteamSite.ItemToSell(ouritem.AssetId, truePrice));
steam_srch.toSellList.Add(new SteamSite.ItemToSell(ouritem.AssetId, CalcWithFee(ouritem.Price)));
}
}

Expand Down Expand Up @@ -1445,22 +1451,7 @@ private void searchBox_KeyUp(object sender, KeyEventArgs e)

private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox3.SelectedIndex == 8)
{
SellButton.Text = Strings.RemSell;
steam_srch.isRemove = true;
textBox1.Clear();
textBox1.ReadOnly = true;
button2.Enabled = false;
}
else
{
SellButton.Text = Strings.Sell;
steam_srch.isRemove = false;
textBox1.ReadOnly = false;
}

SellButton.Enabled = false;

}

Expand Down
15 changes: 0 additions & 15 deletions scr/SCMBot/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions scr/SCMBot/SettingsFrm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions scr/SCMBot/SettingsFrm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,7 @@ private void SettingsFrm_Load(object sender, EventArgs e)
}




}
}
Loading

6 comments on commit 5d52ebd

@JayDzz
Copy link

@JayDzz JayDzz commented on 5d52ebd Aug 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question, why is this tool free? u could earn alot of money with selling it? And can we donate to u?

@Maxx53
Copy link
Owner Author

@Maxx53 Maxx53 commented on 5d52ebd Aug 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JayDzz
Copy link

@JayDzz JayDzz commented on 5d52ebd Aug 27, 2014 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JayDzz
Copy link

@JayDzz JayDzz commented on 5d52ebd Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not trying to be rude but why does scmbot.exe make connection with this ip address?
88.221.216.17
That url shows this:
Invalid URL

The requested URL "/", is invalid.

Reference #9.dd8dd58.1409361535.36e3adf1

So that means someone is actually hosting that ip for something?

@Maxx53
Copy link
Owner Author

@Maxx53 Maxx53 commented on 5d52ebd Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Denissio
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Слушай, а доступна ли функция покупки предмета с нужным описанием? Например, в новых поступлениях?

Please sign in to comment.