Psh, put Victus online ;)
Printable View
Ofc you can change the type in DB, but only 2 bytes are reserved for Fame, so its not wise to use bigger values.
Think about it, what happens when it overflows? In Client you have value 1, but in DB 65537, you want to buy item which costs 2 fame, but Client tells you don't have enough fame, but actually you do.
In early SHNs many things types were proper, I mean that when you use values between 0..255 then you don't need to use int - byte is enough, but at some point most of the types changed to int, dunno why, but they changed.
Which means SHN type doesn't say anything. Matters the type in Client/Server Memory.
Hence why I said if that assumption you made on the max-value was due to the database (which stores fame as an integer) then it's probably wrong, but if you've found the fame variable-type elsewhere (which you're saying is 2 bytes) then that's probably correct.
The ItemInfo.shn shows Fame as a 4 byte integer (UInt32) is all, that's about as deep as I got with a quick browse.
It wasn't assumption, it was based on clear fact.
Ingame :
http://img594.imageshack.us/img594/7...450ab04c90.png
In Database :
http://i.imgur.com/Q1nOAWT.png
It gets and sets it fine; just with a little swap of an int -> bigint. It was also a Int32, not UInt32 so the maximum was only 2,147,483,647.
Not sure if ours has the limit or not, it ain't there in the picture and I'm thinking we don't have it as our files also have the Daily Quest stuff.
Tested it, yeah your right.
Seems I have really bad memory as I remember when I tested it then Client wouldn't show higher than 65535.
So as a conclusion:
You can have maximum Fame to be 2147483647, but it is advised a bit lower, to prevent overflow, which would turn it to negative value.
In the older files, in the packet structures, fame was a ushort(2 bytes, 65535 max). But in the newer files, it's an int.
Dunno why they changed it in the packets but not the db. But you can not go over 2,147,483,647 or you will destroy the packet structure and overflow.
i have to ask why would anyone need to use fame on a private server?
i mean i just took all the fame out, its pointless and unwanted,
well that's my opinion ill keep it to myself :grr:
edit : .
......