Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <sstream>
- using namespace std;
- int orbid[7];
- int nOrbs[7];
- int bOrbs[7];
- bool sell[7];
- void loadOrbUpg();
- int checkalts();
- int config()
- {
- loadOrbUpg();
- //upgrade currency
- if(bOrbs[0] != -1) //Trans
- {
- //code to move currency to inventory
- //code to go to vendor
- //code to search vendor inventory for upgraded currency type
- //code to move mouse to the upgraded currency type
- for(int i = 0; i < bOrbs[0]; i++)
- {
- //code to control click
- }
- }
- else if(bOrbs[1] != -1) //Aug
- {
- //code to move currency to inventory
- //code to go to vendor
- //code to search vendor inventory for upgraded currency type
- //code to move mouse to the upgraded currency type
- for(int i = 0; i < bOrbs[1]; i++)
- {
- //code to control click
- }
- }
- else if(bOrbs[2] != -1) //Alt
- {
- //code to move currency to inventory
- //code to go to vendor
- //code to search vendor inventory for upgraded currency type
- //code to move mouse to the upgraded currency type
- for(int i = 0; i < bOrbs[2]; i++)
- {
- //code to control click
- }
- }
- else if(bOrbs[3] != -1) //Jeweler
- {
- //code to move currency to inventory
- //code to go to vendor
- //code to search vendor inventory for upgraded currency type
- //code to move mouse to the upgraded currency type
- for(int i = 0; i < bOrbs[3]; i++)
- {
- //code to control click
- }
- }
- else if(bOrbs[4] != -1) //Fusing
- {
- //code to move currency to inventory
- //code to go to vendor
- //code to search vendor inventory for upgraded currency type
- //code to move mouse to the upgraded currency type
- for(int i = 0; i < bOrbs[4]; i++)
- {
- //code to control click
- }
- }
- else if(bOrbs[5] != -1) //Scouring
- {
- //code to move currency to inventory
- //code to go to vendor
- //code to search vendor inventory for upgraded currency type
- //code to move mouse to the upgraded currency type
- for(int i = 0; i < bOrbs[5]; i++)
- {
- //code to control click
- }
- }
- else if(bOrbs[6] != -1) //Regret
- {
- //code to move currency to inventory
- //code to go to vendor
- //code to search vendor inventory for upgraded currency type
- //code to move mouse to the upgraded currency type
- for(int i = 0; i < bOrbs[6]; i++)
- {
- //code to control click
- }
- }
- }
- void loadOrbUpg()
- {
- ifstream orbupgs("upgorb.odb");
- int i = 0;
- while(i < 7)
- {
- string temp;
- getline(orbupgs, temp);
- if(temp.find(";") == string::npos)
- {
- orbid[i] = stoi(temp);
- }
- else
- {
- i++;
- }
- }
- nOrbs[0] = checkport();
- nOrbs[1] = checktrans();
- nOrbs[2] = checkaugs();
- nOrbs[3] = checkalts();
- nOrbs[4] = checkjews();
- nOrbs[5] = checkchance();
- nOrbs[6] = checkscour();
- for(int i = 0; i < 7; i++)
- {
- bOrbs[i] = -1;
- }
- if(orbid[0] >= checkport())
- {
- bOrbs[0] = nOrbs[0]/7;
- }
- if(orbid[1] >= checktrans())
- {
- bOrbs[1] = nOrbs[1]/4;
- }
- if(orbid[2] >= checkaugs())
- {
- bOrbs[2] = nOrbs[2]/4;
- }
- if(orbid[3] >= checkalts())
- {
- bOrbs[3] = nOrbs[3]/4;
- }
- if(orbid[4] >= checkjews())
- {
- bOrbs[4] = nOrbs[4]/2;
- }
- if(orbid[5] >= checkchance())
- {
- bOrbs[5] = nOrbs[5]/4;
- }
- if(orbid[6] >= checkscour())
- {
- bOrbs[6] = nOrbs[6]/2;
- }
- }
- int checkalts()
- {
- int stashcount = 0;
- //code to get number of fusings in stash, and assign the total amount to stashcount
- return stashcount;
- }
- //do the same for each orb type in the following functions
- int checkport()
- {
- int stashcount = 0;
- return stashcount;
- }
- int checktrans()
- {
- int stashcount = 0;
- return stashcount;
- }
- int checkaugs()
- {
- int stashcount = 0;
- return stashcount;
- }
- int checkjews()
- {
- int stashcount = 0;
- return stashcount;
- }
- int checkchance()
- {
- int stashcount = 0;
- return stashcount;
- }
- int checkscour()
- {
- int stashcount = 0;
- return stashcount;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement