cash limit

knighthood

Fledgling Freddie
Joined
Feb 3, 2004
Messages
1,812
if the max plats u can have is 127 i think, why the hell is the mithril coin icon still there, kind of defeats the purpose of it when u can only cap out at a minimum plats on 1 char, oh and while were on the subject, why shuld there even be a cap ? , if u earn more u can mule it onto another char or friends ?

I need to grow up!
 

TNT

One of Freddy's beloved
Joined
Feb 11, 2004
Messages
55
yes but you still have an cash limit :p
think its 200p afaik
 

Honza

Fledgling Freddie
Joined
Jan 22, 2004
Messages
363
If the ammount of money is 4 byte Cardinal type number, limit is 214p 748g 36s 47c. There is not such integer-type variable with size described by Herbal ;p

Using of real-type variables such Currency is quite unlikely. And after all when mythic capped CMs to 200p, using of Cardinal(Long Integer) is very probably.
 

Archeon

Fledgling Freddie
Joined
Dec 29, 2003
Messages
2,047
Honza said:
If the ammount of money is 4 byte Cardinal type number, limit is 214p 748g 36s 47c. There is not such integer-type variable with size described by Herbal ;p

Using of real-type variables such Currency is quite unlikely. And after all when mythic capped CMs to 200p, using of Cardinal(Long Integer) is very probably.

... wouldn't it have been easier for everyone if you'd just said that the limit was 214p 748g 36s 47c? I mean you wouldn't have had to type all that highly technical text, and I wouldn't feel obliged to beat you to death with a blueberry muffin :p
 

Honza

Fledgling Freddie
Joined
Jan 22, 2004
Messages
363
Archeon said:
... wouldn't it have been easier for everyone if you'd just said that the limit was 214p 748g 36s 47c? I mean you wouldn't have had to type all that highly technical text, and I wouldn't feel obliged to beat you to death with a blueberry muffin :p
/surrender

okay, limit is 214p 748g 36s 47c. Howgh ;p
 

Sarnat

Fledgling Freddie
Joined
Feb 3, 2004
Messages
439
Archeon said:
... wouldn't it have been easier for everyone if you'd just said that the limit was 214p 748g 36s 47c? I mean you wouldn't have had to type all that highly technical text, and I wouldn't feel obliged to beat you to death with a blueberry muffin :p

No! Us coders must show our Greater Knowledge over you regular newbs!

Btw, the reason mithrill is still there is that they changed 1p to be 1000g instead of 100g in the US beta. Same goes for mithrill. This change made mithrill obsolete but I guess Mythic thought it's a waste of time to remove it...
 

Path

Fledgling Freddie
Joined
Jan 21, 2004
Messages
271
Try raising the price on a CM item as far as you can; you'll end up hitting the cap ;) The most money you can "safely" have on a character is 200 p though - anything above that will vanish when you perform a trade/purchase or any other action involving money. You can't accept money either at this point, so actually getting ~214 p on a character would be quite a feat :)
 

Draylor

Part of the furniture
Joined
Dec 23, 2003
Messages
2,591
Having more than 100p on 1 char leads to all sorts of comments from people if they happen to see it in screenshots etc.

Best to spread the wealth between a few chars :p
 

Archeon

Fledgling Freddie
Joined
Dec 29, 2003
Messages
2,047
Sarnat said:
No! Us coders must show our Greater Knowledge over you regular newbs!

In that case, we regular newbs must muffin you coders to death. I think i'll use a Toffee Muffin on you, you speak back to me and quote me without getting my consent. You are unworthy of blueberry!
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
Honza said:
If the ammount of money is 4 byte Cardinal type number, limit is 214p 748g 36s 47c. There is not such integer-type variable with size described by Herbal ;p

Using of real-type variables such Currency is quite unlikely. And after all when mythic capped CMs to 200p, using of Cardinal(Long Integer) is very probably.
You could use an unsigned integer which would give the range 0 to 4.2 billion. Last I checked DAoC didn't allow you to go into debt.
 

Honza

Fledgling Freddie
Joined
Jan 22, 2004
Messages
363
Danya said:
You could use an unsigned integer which would give the range 0 to 4.2 billion. Last I checked DAoC didn't allow you to go into debt.
Unsigned int is not so often used. I really forgot why, but on my uni lessons we are being told not to used unsigned variables (includes 0..255 byte type :( ) and we've got points ripped if we have unsigns in our codes :twak:
And, if there was used unsigned, more likely cap on CMs would be 400p and not 200p. I'd ask goa/mythic but they'd :kissit: me thinking I want hack me some money (not that I could not use some :p).
 

Archeon

Fledgling Freddie
Joined
Dec 29, 2003
Messages
2,047
This proves I have too much free-time today... but what the hell. GoGo Muffin Troopers!! :D

Muffin%5FTrooper.JPG


Coming to a Cinema near you. August 21st. Rated PG-13
 

Thorarin

Fledgling Freddie
Joined
Dec 22, 2003
Messages
323
The cap per character is also set at 200p, or possibly 1 copper under it.
Technically a character could hold more like Honza said, but a lower limit that's easier to remember is being enforced.

It's possible there are some ways to acquire cash to allow you to go over this softcap, but it isn't advisable :)
 

[AB]Shirtan

Fledgling Freddie
Joined
Jan 26, 2004
Messages
37
would be priceless if cash rolled, i would laugh at one who tried it and became forever in debt, im sure GOA would roll it back for him though
 

Oidche

Fledgling Freddie
Joined
Jun 22, 2004
Messages
41
Honza said:
Unsigned int is not so often used. I really forgot why, but on my uni lessons we are being told not to used unsigned variables (includes 0..255 byte type :( ) and we've got points ripped if we have unsigns in our codes :twak:

Rather crappy uni then, if you can't even remember why and when to use signed and unsigned integers. You use whatever is needed for your solution. If you need a value to only hold positive numbers, you use an insigned int. If you need VERY large numbers (larger than 2^32-1) you use a 64-bits integer (there is no such thing as a 'currency' type in programming language, looks like Honza is a MS Access 'programmer'). Unsigned ints aren't 'wrong'.

I don't think the cap on money is a programming issue, it would have been very easy to use a 64-bit int instead. I think it's just by design, to prevent people from amassing too much money.
 

Honza

Fledgling Freddie
Joined
Jan 22, 2004
Messages
363
Oidche said:
there is no such thing as a 'currency' type in programming language, looks like Honza is a MS Access 'programmer'). Unsigned ints aren't 'wrong'.

I don't think the cap on money is a programming issue, it would have been very easy to use a 64-bit int instead. I think it's just by design, to prevent people from amassing too much money.

noob, run Delphi, there is Currency type real-number variable with extended precision!

64-bit integer is slower than 32-bit version (at least on 32bit cpus)
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
Honza said:
noob, run Delphi, there is Currency type real-number variable with extended precision!

64-bit integer is slower than 32-bit version (at least on 32bit cpus)
No, you're the noob - reals should never be used for currency, if you don't understand why, go learn about floating point precision issues.

However there is a very good currency format for computers - BCD. It's not as fast as integers or floating point, but it is accurate and is heavily used in financial software. Most computer courses these days barely cover BCD unfortunately.

On the whole unsigned thing - they are used a lot in the real world probably more than signed integers (don't assume your lame delphi class is representative, very little commercial software is written in delphi, it's main popularity is in-house tools).
 

Oidche

Fledgling Freddie
Joined
Jun 22, 2004
Messages
41
Honza said:
noob, run Delphi, there is Currency type real-number variable with extended precision!

64-bit integer is slower than 32-bit version (at least on 32bit cpus)

I was talking about 'real' programming languages ;) The Delphi "currency" format is just a n00b-friendly name for a 64bit fixed point number. There is no low-level 'currency' type. We're not talking about Delphi here, we're talking about programming.

64-bit integers slower? Sure. Relatively. Are you going to notice it? Not at all.

Oh, besides, I work as a developer, just so you know ;)
 

Oidche

Fledgling Freddie
Joined
Jun 22, 2004
Messages
41
Danya said:
Most computer courses these days barely cover BCD unfortunately.

You're probably talking about bigints, BCD is just a way of 'writing' them down. BigIntegers are only used when you need unlimited precision, so there's no real 'use' for them in courses that are not heavily specialised.
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
I am indeed. BCD is a very handy way of writing them though because some processors (x86 in particular) have specific support of BCD operations.
 

Honza

Fledgling Freddie
Joined
Jan 22, 2004
Messages
363
Danya said:
No, you're the noob - reals should never be used for currency, if you don't understand why, go learn about floating point precision issues.
aye, computer is not able of representing real number, cause you can't have infinite development of decimals (or wtf u call it in english)

However there is a very good currency format for computers - BCD. It's not as fast as integers or floating point, but it is accurate and is heavily used in financial software. Most computer courses these days barely cover BCD unfortunately.
In fact for financial software you don't need to reach lightspeed (even though it would not be unwelcomed), just reach 100% precision, so BCD's lower speed won't hurt you.

On the whole unsigned thing - they are used a lot in the real world probably more than signed integers (don't assume your lame delphi class is representative, very little commercial software is written in delphi, it's main popularity is in-house tools).
Unsigned stuff - I guess we are being taken away from using it since unsigned integer types are being educated in next year under advanced programming techniques.
Truly with Delphi you can write whatever you wish, even though different languages are better suited for different purposes ((V)C(++) for games, Java for "run on all" etc. etc.) but please stop calling Delphi lame, it could badly suprise you in certain challenges. (I personally prefer C++ even though I am not able of creating much with it yet).

64-bit integers slower? Sure. Relatively. Are you going to notice it? Not at all.
Definitely not when you use it only where it's needed. I am just scared of when someone cames with idea building up 3D engine or some other floating-point loading stuff built on 64bit real type (or yet worse not 32 times X multiplied size like real48). There I guess would be noticeable difference.

All the stuff is about proper using of proper variables (like if you were saving some data in text format instead of using binary; well, erm, commited the crime too two years ago /shy )

BTW what is best size of variable for 32 bit computer? 32 bits?
 

Users who are viewing this thread

Top Bottom