hi,can someone tell me how I can change max fame of 50000 to 100000?
thx
hi,can someone tell me how I can change max fame of 50000 to 100000?
thx
Can someone tell me how you failed to miss the help section?
It's still under the Fiesta section...Good enough, so please lol.
I haven't trolled once.. yet.
nobody got the answer ?
try this link Google
Chris, stop talking as if you're big shit. You're nowhere near that level to be talking. I'd doubt you even know how to set up a server. ( Just for future reference, saying you can is one thing but actually doing it is another. ) Tata ~
you may wana try lowering the fame needed for items instead of the fame u need. less headache
only if u feel up to it.
just a future note slap help topics in the help section :p
hey sup jeff
If you've gotten that variable-type via the database I'd assume it's just being casted as that; however, it can be altered to use a much greater value.
The zone (and shn) from what I can see use an unsigned integer - meaning the maximum is 4,294,967,295, all you'd really have to do is find a way to adjust that 50k limit manually then alter the variable-type within the database to bypass it. Almost like how the older databases were using int's for the money when they could handle big-int values.
On a side note; I'm bored and going to see if this fame-limit is adjustable at all.
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 :
In Database :
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.