Gold to ingots calculator

Everything about Illarion that fits nowhere else. / Alles über Illarion was inhaltlich in kein anderes Board passt.

Moderator: Gamemasters

Post Reply
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Gold to ingots calculator

Post by Gro'bul »

bored so I made a program where you type in the gold, and it translates it into ingots and gold.

http://www.angelfire.com/alt2/majham/go ... ulator.zip

right click save as

simple, easy to use, handles errors, helpful when alt-tabbing out, just mainly for when your like "okay that will be 1235 gold" and the other person is like"how many ingots and gold is that?" and you like uhhh "wait a sec".
User avatar
Albernon
Posts: 216
Joined: Sat Mar 09, 2002 5:57 am

Post by Albernon »

lol, I did not think most players in Illarion can't even do some simple math with a calculator. No offense tho :D Good job.
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

yeah but if you take gold 1234, divided by 250 you get like 4.230987 or something, this is exact and to the point. :wink: maybe they could hook it into the game? :idea:
User avatar
paul laffing
Posts: 2189
Joined: Thu Jan 09, 2003 12:01 am
Location: the place where only completely serious people are allowed

Post by paul laffing »

How realistic would that be?
Armil Darken
Posts: 346
Joined: Sat Nov 23, 2002 1:20 am

Post by Armil Darken »

Thats sorta dumb, make it where it divides by 250, than displaies the remainder. yeah and i thought people her werent "Stupid" and could do simple math.
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

ok I didn't ask for an evaluation on my code, and accually it doesn't display the remainder. exact code:

lblgold2.Caption = Val(txtgold.Text) - Val(lblingots.Caption) * 250

Modulus is used for displaying the remainder, and its for lazy people like me. Modulus also rounds to the tenths automatically and I didn't want to fidget with it and make it work right.

@paul: how realistic is being able to see how good you are at something?
maybe type in functions in the chat box and only you can see the answer?
Turnupto
Posts: 596
Joined: Fri Apr 05, 2002 8:45 am

Post by Turnupto »

Nice program but why can't everybody use his brain? It isn't that hard, come on.
Glosin Ironstar
Posts: 188
Joined: Sun Sep 14, 2003 2:46 am
Location: Where ever my axe tells me

Post by Glosin Ironstar »

nice job. I think it is a handy little programm.
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

http://www.angelfire.com/alt2/majham/calculator.zip

I also added another part so you can do ingots and coins to just coins.
Any other calculator or small program suggestions welcome.
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

woowoowoo added another part, you enter the cost of an item, the amount of the item, and voila calculates how many ingots AND gold the batch will cost.

http://www.angelfire.com/alt2/majham/calculator2.zip
Glosin Ironstar
Posts: 188
Joined: Sun Sep 14, 2003 2:46 am
Location: Where ever my axe tells me

Post by Glosin Ironstar »

Good job this was a great idea for the merchant on the go :lol:
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

Ok now I'm starting on my SMACC calculator,when it starts you will click on a catagory, you click the items and it automatically adds up the total. I'm brainstorming some ideas of price adjustment, adding gold to and from the total would not be hard, but chaging the price per item could be. Any suggestions or ideas on what you might want is appreciated.

Also, I'm still wondering if I should put it in with the current calculator.

I'm pretty sure I have a way to do the cost per item change that the user can type. Hmm might take a day or two to complete depending.
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

SMACC calculator will be ready Today (thursday). Need to finish final catagory and tell how to use it, I think it's pretty darn good. prob around 260k, around 30k packed. Odd ain't it?
Damien
Posts: 7845
Joined: Thu Feb 22, 2001 5:59 pm
Location: Vanima and grey Refuge, of course.
Contact:

Post by Damien »

Woooot... give it a name... SMACULATOR !
:D
Setherioth
Posts: 694
Joined: Mon Dec 17, 2001 2:08 am
Location: Canada

Post by Setherioth »

haha yeah, that would be good if they added it into the client. And i dont want to hear about any crap about how it's unrealistic. The whole thing is unrealistic because it's a game! And they sure dind't have computers back then!! Grr sometiems people take this realistic thing too far.

Anyways, yes it would be neat if they added it, you know you could have a third tab for the skills, equipment window.
Armil Darken
Posts: 346
Joined: Sat Nov 23, 2002 1:20 am

Post by Armil Darken »

Ha. Well I have to cogradulate you. But now you got me sorta in a mood to program so I'm gonna try to make a similar thing, but great job.
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

THe Smacculator is finished, I didn't put errorhandlers on it to reduce size, you shouldn't have a problem as long as you don't enter outrageous values like 34820719367093416734809257134825067090152679, ok?
28kbpacked in zip file, 290 unzipped.

www.angelfire.com/alt2/majham/Smacculator.zip

start the program, choose your catagory, armor/leather armor/cloths are the only subcatagory. then click the buttons and it will add up the values, to clear everything press the clear values button. To add gold to the current values displayed on the button, type in how much you want to add in the textbox, then click a button and it will be totalled up. To subtract gold from the value of an item, type how much gold you want subtracted from it, put a minus infront of the number.

Enjoy! :D :D
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

I kind of had to spend a while learning a type of variable that will add up the totals from all the different catagories, or a grand total on the main part of the program. I'm probobly going to make an item counter too, this way you put in amounts for things such as ore/coal and take it times say 1000 instead of one at a time. Any suggestions welcome.
User avatar
Fingolfin Telrunya
Posts: 19
Joined: Sat Sep 20, 2003 1:00 pm
Location: Somewhere in a river of calm silence (i wish)

Post by Fingolfin Telrunya »

I'm sorry for this post man, but i'm a vb user to, and i haves some things that could make your program a bit nicer:

1.make it unable to maximize the programme frame, or change its size.
2. make the clear values button a bit bigger, when it's auto-selected, the text is unreadable.
3. in the food section, make a label to explain what the text-frame is for.

4. these were all just details, i know, the rest of the program is verry well.
User avatar
Adano Eles
Posts: 2436
Joined: Sat Aug 17, 2002 2:48 pm
Location: Eiris sazun idisi, sazun hera duoder...

Post by Adano Eles »

There's a bug somewhere in it. I tried to calculate 1000 bottles and got 4 ingots and 4 gold. That's not quite correct.
User avatar
Fingolfin Telrunya
Posts: 19
Joined: Sat Sep 20, 2003 1:00 pm
Location: Somewhere in a river of calm silence (i wish)

Post by Fingolfin Telrunya »

u are right, probably the button to click empty bottle has a double function, cause if you click on it once, it counts one, if you type an amount and click then, it takes eg: 1000 times the bottle plus the 4 gc for clickin on the button, a common problem on that kind of double function.
Setherioth
Posts: 694
Joined: Mon Dec 17, 2001 2:08 am
Location: Canada

Post by Setherioth »

No, the way it works (i think) is when you enter a number into that box it's not how many of that item you want to calculate it's how much gold you want to add on to the item you want to calculate. To calculate two bottles, you'd push the button twice. So when you type in 1000 and push the bottle button it will calculate 2000 gold (4 ingots) plus the 4 gold for teh bottle. Hence the 4 ingots and 4 gold. There's no bug.

I think it would be better though Gro'bul if you made it so that the number you enter into the box is the amount of the item you want to calculate.
User avatar
Gro'bul
Posts: 3901
Joined: Sun Jan 26, 2003 9:22 am
Location: Farmer's Union
Contact:

Post by Gro'bul »

the text boxes you type in the amount of gold added/subtracted from the current price of the item. About another text box to type in how many items, easily done, but a little time consuming.

Adano, what you told it to do was to add 1000 gold to the current price of 4 gold, hence 4 ingots, 4 gold.

I made it this way so you could change the price per item.
Post Reply