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

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

Old 29-03-2010   #2
Shock3X
Legend

 
Shock3X's Avatar
 
InGame Character:
My Mood:
Shock3X is offline
Points: 28,497, Level: 73
Points: 28,497, Level: 73 Points: 28,497, Level: 73 Points: 28,497, Level: 73
Level up: 93%, 53 Points needed
Level up: 93% Level up: 93% Level up: 93%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2008
Location: Hämeenlinna/Finland
Age: 28
Rep: Shock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond repute
Rep Power: 267
Casino Cash: 15513
Default

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

__________________
Me, Myself and I
|ShockX|Shocky|REQUlEM|

What you think, I'm doing this for me, so fuck the world
[7 Minutes Ago 11:02 PM] Zukih28s: ur the man Shocky
 

Old 29-03-2010   #3
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: 229
Casino Cash: 2332
Default

Maybe I should make ver. 2 for the "blondes". :P
__________________
"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).
 
The Following User Likes ozio's Post:
Shock3X (29-03-2010)

Old 29-03-2010   #4
Shock3X
Legend

 
Shock3X's Avatar
 
InGame Character:
My Mood:
Shock3X is offline
Points: 28,497, Level: 73
Points: 28,497, Level: 73 Points: 28,497, Level: 73 Points: 28,497, Level: 73
Level up: 93%, 53 Points needed
Level up: 93% Level up: 93% Level up: 93%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2008
Location: Hämeenlinna/Finland
Age: 28
Rep: Shock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond repute
Rep Power: 267
Casino Cash: 15513
Default

yeah, that would be great, also ya could make option how much zen u need to make x amount of rrs?
__________________
Me, Myself and I
|ShockX|Shocky|REQUlEM|

What you think, I'm doing this for me, so fuck the world
[7 Minutes Ago 11:02 PM] Zukih28s: ur the man Shocky
 

Old 30-03-2010   #5
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: 229
Casino Cash: 2332
Default

I'm not sure if I should start another thread for resets to zen converter :P

Anyway ver. 2 is now done.
__________________
"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).
 

Old 30-03-2010   #6
Judobreaker
GFX Master

 
Judobreaker's Avatar
 
InGame Character:
My Mood:
Judobreaker is offline
Points: 23,555, Level: 67
Points: 23,555, Level: 67 Points: 23,555, Level: 67 Points: 23,555, Level: 67
Level up: 8%, 645 Points needed
Level up: 8% Level up: 8% Level up: 8%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Sep 2006
Location: Holland
Age: 35
Rep: Judobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond reputeJudobreaker has a reputation beyond repute
Rep Power: 341
Casino Cash: 10394
Default

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!

Visit my portfolio at http://www.rvantwerpen.com

FireStorm: tht i could be your bitch
FireStorm: you are and have done so much for us
Judobreaker: I dont feel very useful a lot though lol
 

Old 30-03-2010   #7
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: 229
Casino Cash: 2332
Default

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.
__________________
"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).
 

Old 30-03-2010   #8
Smile
Senior Member

 
InGame Character:
Smile is offline
Points: 5,574, Level: 31
Points: 5,574, Level: 31 Points: 5,574, Level: 31 Points: 5,574, Level: 31
Level up: 79%, 76 Points needed
Level up: 79% Level up: 79% Level up: 79%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Sep 2007
Age: 30
Rep: Smile is a name known to allSmile is a name known to allSmile is a name known to allSmile is a name known to allSmile is a name known to allSmile is a name known to all
Rep Power: 210
Casino Cash: 724
Default

can u explain about the ver2?
and thanks for the program good one!
__________________

in game nick: Zuma
 

Old 30-03-2010   #9
Shock3X
Legend

 
Shock3X's Avatar
 
InGame Character:
My Mood:
Shock3X is offline
Points: 28,497, Level: 73
Points: 28,497, Level: 73 Points: 28,497, Level: 73 Points: 28,497, Level: 73
Level up: 93%, 53 Points needed
Level up: 93% Level up: 93% Level up: 93%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2008
Location: Hämeenlinna/Finland
Age: 28
Rep: Shock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond reputeShock3X has a reputation beyond repute
Rep Power: 267
Casino Cash: 15513
Default

Quote:
Originally Posted by ozio View Post
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
__________________
Me, Myself and I
|ShockX|Shocky|REQUlEM|

What you think, I'm doing this for me, so fuck the world
[7 Minutes Ago 11:02 PM] Zukih28s: ur the man Shocky
 
The Following 2 Users Like Shock3X's Post:
ozio (30-03-2010), Sam007 (30-03-2010)

Old 30-03-2010   #10
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: 229
Casino Cash: 2332
Default

Quote:
Originally Posted by Smile View Post
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.
__________________
"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).
 
 

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 05:11 PM.



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