View Single Post

Zen -> non-elite resets calculator.
Old 29-03-2010   #1
ozio
Legend

 
ozio's Avatar
 
InGame Character:
ozio is offline
Points: 6,661, Level: 34
Points: 6,661, Level: 34 Points: 6,661, Level: 34 Points: 6,661, Level: 34
Level up: 89%, 39 Points needed
Level up: 89% Level up: 89% Level up: 89%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2007
Location: Poland.Warsaw
Age: 40
Rep: ozio has a brilliant futureozio has a brilliant futureozio has a brilliant futureozio has a brilliant futureozio has a brilliant futureozio has a brilliant futureozio has a brilliant futureozio has a brilliant futureozio has a brilliant futureozio has a brilliant futureozio has a brilliant future
Rep Power: 230
Casino Cash: 2332
Default Zen -> non-elite resets calculator.

Zen -> Resets DOWNLOAD! v2.1
Resets -> Zen DOWNLOAD! v1.1
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

This small DOS program will calculate the reset you end up with if you use up all of your Zen. It's only for non-elite resets.

Remember to input your Zen in millions. For example: if you have "59.104.411.540 Zen in your ZenBank" you type in "59104" when it asks you for millions of Zen.

Zen to Resers: DOWNLOAD!

Code:
#include <stdio.h>
#include <iostream> 

using namespace std;

int main()
{
    int zen = 0, resets = 0, start_resets = 0;
    cout<<"(1 milion = 1 000 000)\nmilions of zen: ";
    cin>>zen;
    cout<<"current resets: ";
    cin>>resets;
    if(resets > 350) resets = 350;
    start_resets = resets;
    
    cout<<"Starting with "<<resets<<" reset(s) and having "<<zen<<" milion zen you can afford ";
    
    if(zen <=0) resets++;
    while(zen > 0)
    {
              zen -= 100;                    // 100
              if (resets >  14) zen -=  150; // 250
              if (resets >  49) zen -=  100; // 350
              if (resets >  74) zen -=  150; // 500
              if (resets >  99) zen -=  250; // 750
              if (resets > 149) zen -=  250; //1000
              if (resets > 199) zen -=  500; //1500
              if (resets > 249) zen -= 1000; //2500

              resets ++;
    }
    resets --;
    
    if(resets > 350)
    {
              resets = 350;
              cout<<"(max for non-elite) ";
    }
    
    cout<<(resets - start_resets)<<" more reset(s). You will have "<<resets<<" reset(s) total.\n\n\tPress <Enter> to quit.\n";
    
    cin.ignore ( numeric_limits<streamsize>::max(), '\n' ); //clearing the input
    cin.get(); //waiting for any key
    //cin>>zen;
    //system("pause");
    return 1;
}
_______________________________________

as requested the
Resers to Zen: DOWNLOAD!

Code:
#include <stdio.h>
#include <iostream> 

using namespace std;

int main()
{
    int zen = 0, start_zen=0, resets = 0, end_resets = 0;
    cout<<"Resets you have: ";
    cin>>resets;
    if(resets > 350) {resets = 350; cout<<"The maximum of non-elite resets you can have is 350!\nIf you have elite resets this program is not for you.\n\n";}
    cout<<"Resets you want: ";
    cin>>end_resets;
    if(end_resets > 350) {end_resets = 350; cout<<"The maximum of non-elite resets you can have is 350!\n\n";}
    cout<<"(1 milion = 1 000 000)\nMilions of zen you have: ";
    cin>>start_zen;
     
    cout<<"Starting with "<<resets<<" reset(s) you need ";

    while(end_resets > resets)
    {
              zen += 100;                    // 100
              if (resets >  14) zen +=  150; // 250
              if (resets >  49) zen +=  100; // 350
              if (resets >  74) zen +=  150; // 500
              if (resets >  99) zen +=  250; // 750
              if (resets > 149) zen +=  250; //1000
              if (resets > 199) zen +=  500; //1500
              if (resets > 249) zen += 1000; //2500

              resets ++;
    }

    if(zen<start_zen)start_zen=zen;
    
    cout<<(zen-start_zen)<<" milion zen to get to "<<end_resets<<" reset(s).\nTotal milions of zen required: "<<zen<<"\n\n\tPress <Enter> to quit.\n";
    
    cin.ignore ( numeric_limits<streamsize>::max(), '\n' ); //clearing the input
    cin.get(); //waiting for any key
    return 1;
}
_______________________________________

old zen 2 resets (v1.0)

Code:
#include <stdio.h>
#include <iostream> 

using namespace std;

int main()
{
    int zen = 0, resets =0;
    cout<<"milions of zen: ";
    cin>>zen;
    cout<<"current resets: ";
    cin>>resets;
    
    cout<<"Starting with "<<resets<<" reset(s) and having "<<zen<<" milion zen you can afford to go to ";
    
    if(zen <=0) resets++;
    while(zen > 0)
    {

              zen -= 100;                    // 100
              if (resets >  14) zen -=  150; // 250
              if (resets >  49) zen -=  100; // 350
              if (resets >  74) zen -=  150; // 500
              if (resets >  99) zen -=  250; // 750
              if (resets > 149) zen -=  250; //1000
              if (resets > 199) zen -=  500; //1500
              if (resets > 249) zen -= 1000; //2500


              resets ++;
    }
    resets --;
    
    if(resets > 350)
    {
              resets = 350;
              cout<<" (max for non-elite) ";
    }
    
    cout<<resets<<" reset(s).\n";
    
    cin.ignore ( numeric_limits<streamsize>::max(), '\n' ); //clearing the input
    cin.get(); //waiting for any key
    //cin>>zen;
    //system("pause");
    return 1;
}
__________________
"The sky calls to us; if we do not destroy ourselves, we will one day venture to the stars"
--Carl Sagan

B>Pendant +EDR +2%wiz +3%hp rec
B>Wings of Soul + 13 + 28 + 3%ign
S>Exc Arioch Hammer+S+0+12+2%dmg (4 free sockets)

Ingame: 0zio
(+) Alchemy MU player since ... dark phenix in davias event (around 2004-06)
(+) Twilight Mu player since 2007-01-28
(+) My mule chars: / DL | DK | MG

PS. text only signatures > all other signatures. (My old siggy).

Last edited by ozio; 03-10-2010 at 05:55 PM.. Reason: broken links
 
The Following User Likes ozio's Post:
Sam007 (30-03-2010)