![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jun 2005
Posts: 31
|
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 ? |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2005
Posts: 390
|
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?) |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jun 2005
Posts: 31
|
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) |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Apr 2005
Posts: 196
|
try changing the data types in the mssql table for XP and item amount
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jun 2005
Posts: 31
|
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? |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jul 2005
Posts: 5
|
2147483647 adena limit
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
server is 32bits -_- so its not a sql problem
|
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 306
|
Quote:
|
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jun 2005
Posts: 31
|
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... |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2005
Posts: 196
|
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 |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jul 2005
Posts: 23
|
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. |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Jun 2005
Posts: 31
|
Thanks for the ideas!
I'll try it. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|