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!
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.
|
|
Zen -> non-elite resets calculator. |
|
29-03-2010
|
#1
|
Legend
InGame Character:
ozio is offline
Level up: 89%, 39 Points needed |
Join Date: Jan 2007
Location: Poland.Warsaw
Age: 40
Rep Power: 229
Casino Cash: 2332
|
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;
}
Last edited by ozio; 03-10-2010 at 05:55 PM..
Reason: broken links
|
|
|
The Following User Likes ozio's Post:
|
|
29-03-2010
|
#2
|
Legend
InGame Character:
My Mood:
Shock3X is offline
Points: 28,497, Level: 73 |
Level up: 93%, 53 Points needed |
Join Date: May 2008
Location: Hämeenlinna/Finland
Age: 28
Rep Power: 267
Casino Cash: 15513
|
little ss, really great program!
(notice: tells what rr is max u can get [106=>110, not 4]) lol this blonde had to think about it pretty long
|
|
|
29-03-2010
|
#3
|
Legend
InGame Character:
ozio is offline
Level up: 89%, 39 Points needed |
Join Date: Jan 2007
Location: Poland.Warsaw
Age: 40
Rep Power: 229
Casino Cash: 2332
|
Maybe I should make ver. 2 for the "blondes". :P
|
|
|
The Following User Likes ozio's Post:
|
|
29-03-2010
|
#4
|
Legend
InGame Character:
My Mood:
Shock3X is offline
Points: 28,497, Level: 73 |
Level up: 93%, 53 Points needed |
Join Date: May 2008
Location: Hämeenlinna/Finland
Age: 28
Rep Power: 267
Casino Cash: 15513
|
yeah, that would be great, also ya could make option how much zen u need to make x amount of rrs?
|
|
|
30-03-2010
|
#5
|
Legend
InGame Character:
ozio is offline
Level up: 89%, 39 Points needed |
Join Date: Jan 2007
Location: Poland.Warsaw
Age: 40
Rep Power: 229
Casino Cash: 2332
|
I'm not sure if I should start another thread for resets to zen converter :P
Anyway ver. 2 is now done.
|
|
|
30-03-2010
|
#6
|
GFX Master
InGame Character:
My Mood:
Judobreaker is offline
Points: 23,555, Level: 67 |
Level up: 8%, 645 Points needed |
Join Date: Sep 2006
Location: Holland
Age: 35
Rep Power: 341
Casino Cash: 10394
|
Hmm...
Isn't dos completely unsupported in Vista and Win7?
I'm 100% sure Win7 dropped all dos support. :P
If you want a real 'blondes' version you should make a normal exe file cause the chances a 'blonde' buys a random pc which happens to have Win7 on it are rather large... :P
__________________
[CENTER]
Thank you Jessie!
|
|
|
30-03-2010
|
#7
|
Legend
InGame Character:
ozio is offline
Level up: 89%, 39 Points needed |
Join Date: Jan 2007
Location: Poland.Warsaw
Age: 40
Rep Power: 229
Casino Cash: 2332
|
Did you test it on win7? It might work, or it might work in compatibility mode.
Shock3X obviously managed to run on on vista.
Anyway, the source code is there. Get a c++ compiler for Win7, compile it and run it.
|
|
|
30-03-2010
|
#8
|
Senior Member
InGame Character:
Smile is offline
Level up: 79%, 76 Points needed |
Join Date: Sep 2007
Age: 30
Rep Power: 210
Casino Cash: 724
|
can u explain about the ver2?
and thanks for the program good one!
|
|
|
30-03-2010
|
#9
|
Legend
InGame Character:
My Mood:
Shock3X is offline
Points: 28,497, Level: 73 |
Level up: 93%, 53 Points needed |
Join Date: May 2008
Location: Hämeenlinna/Finland
Age: 28
Rep Power: 267
Casino Cash: 15513
|
Quote:
Originally Posted by ozio
Did you test it on win7? It might work, or it might work in compatibility mode.
Shock3X obviously managed to run on on vista.
Anyway, the source code is there. Get a c++ compiler for Win7, compile it and run it.
|
I used win7 without noprobs, just ran it. Didnt even ask anything
|
|
|
The Following 2 Users Like Shock3X's Post:
|
|
30-03-2010
|
#10
|
Legend
InGame Character:
ozio is offline
Level up: 89%, 39 Points needed |
Join Date: Jan 2007
Location: Poland.Warsaw
Age: 40
Rep Power: 229
Casino Cash: 2332
|
Quote:
Originally Posted by Smile
can u explain about the ver2?
and thanks for the program good one!
|
Ver. 2 simply makes it clearer. It works the same but (unlike ver. 1) it gives you how many more resets can you get.
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:24 AM. |
|
|
|
|