Forum is shutting down, join us on Discord.

- No new threads can be created
- Shoutbox has been disabled
- All chat/support/market will be on Discord
- if you have a special status on forum (ie: staff, legendary user, etc), then PM Phoenix on forum with your Discord name to reclaim your status on Discord
See you all on Discord!


  
Go Back   Twilight MU Online Forum > Community > Programming Section

Programming Section All programming related stuff goes here.


Welcome to the Twilight MU Online Forum forums.

You are currently viewing our boards as a guest which gives you limited access. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

After registering you will receive an email with a confirmation link that you will need to click in order to activate your forum account.

NOTE: It's recommanded that you use on forum a different username and password than the game username and password.

If you have any problems with the registration process or your account login, please contact contact us.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

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: 231
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)
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -5. The time now is 11:48 AM.



vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright ©2006 - 2019 Twilight MU. All Rights Reserved