PDA

View Full Version : Adena, Exp limit ??


vieruemil
27.07.2005, 14:24
I have a server with very high rates and when the players reach the 80 lvl they go back to 1 lvl (the exp is above 2.0xx.xx0.000).
Same problem with adena - when above 2.0xx.xx0.000 it goes in -minus

Anyone know how to fix that?

Do I have to change the AdenaLimit in Cached.ini ?

paul
27.07.2005, 17:04
Didn't know there was an AdenaLimit in Cached.ini

However tell them to make mule's and put them in warehouses and such. (And jesus h christ what fucking rates do you have? 600x?)

vieruemil
27.07.2005, 20:36
I think the AdenaLimit in Cached.ini is the limit that a Character can trade/drop 1 time.

No idea about the full limit of Adena and Exp...

And YES, I have very high rates (it's PVP server)

Riane
28.07.2005, 10:57
try changing the data types in the mssql table for XP and item amount

vieruemil
28.07.2005, 11:42
I tried to change from int to char but there seemed to be no changes,
also the int type has no limit defined, so I don't think this is a sollution.
Riane, did you try changing the data types, and what type did you put there?

djflse
28.07.2005, 15:08
2147483647 adena limit

Sauron
28.07.2005, 15:55
server is 32bits -_- so its not a sql problem

djvogans
28.07.2005, 17:03
2147483647 adena limit

he is right ... you can never make adena limit higher ....

vieruemil
28.07.2005, 20:28
Then how to solve the problem when the adena is above the limit ?

Do I have to make a sql script that will decrease the adena amount when the user has an amount close to the limit ? Will it make changes in real time (without restart the server) ?
Same about Exp...

Riane
28.07.2005, 22:37
ah, i thought it was a problem with the SQL datatypes....
well, then how did they fix it on officials?

mmmhhh they didnt.
they just fixed the sell bug with the adena, with a simple check... well then, no possibility i guess...
i could only think of making a SQL script that gets every negative value outta XP and itemamount and change it to like 2000000000

Fulminus
29.07.2005, 21:12
MSSQL supports triggers. You can write a bit of TSQL code that triggers every time the adena ammount is added and limit it. It's not as easy as it may sound...The event will be triggered every time an item is picked up and you'll have to check if it's adena and change the ammount to something no larger than your limit.
Of course, this is a very dirty fix, as money will be lost this way...For example, during trades, etc, the transaction will be completed but some of the money will go to thin air.
A better solution would be to split the amount such that part of the money gets transfered and what can't go to the user falls on the ground...but that's day dreaming :P The SQL's trigger can take care of splitting the ammount and inserting a zero-user (owner) item to the table, but getting that entry to be shown in the game and at the right place (near the player) is beyond the scope of SQL.
In any case...as far as limitting the amount to avoid negatives goes, a trigger will work.

vieruemil
30.07.2005, 09:31
Thanks for the ideas!
I'll try it.