Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 27.07.2005, 14:24   #1
vieruemil
Архивный участник
 
Join Date: Jun 2005
Posts: 31
Default Adena, Exp limit ??

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 ?
vieruemil is offline  
Old 27.07.2005, 17:04   #2
paul
Архивный участник
 
Join Date: Feb 2005
Posts: 390
Default

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?)
paul is offline  
Old 27.07.2005, 20:36   #3
vieruemil
Архивный участник
 
Join Date: Jun 2005
Posts: 31
Default

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)
vieruemil is offline  
Old 28.07.2005, 10:57   #4
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

try changing the data types in the mssql table for XP and item amount
Riane is offline  
Old 28.07.2005, 11:42   #5
vieruemil
Архивный участник
 
Join Date: Jun 2005
Posts: 31
Default

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?
vieruemil is offline  
Old 28.07.2005, 15:08   #6
djflse
Архивный участник
 
Join Date: Jul 2005
Posts: 5
Default

2147483647 adena limit
djflse is offline  
Old 28.07.2005, 15:55   #7
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

server is 32bits -_- so its not a sql problem
Sauron is offline  
Old 28.07.2005, 17:03   #8
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

Quote:
Originally Posted by djflse
2147483647 adena limit
he is right ... you can never make adena limit higher ....
djvogans is offline  
Old 28.07.2005, 20:28   #9
vieruemil
Архивный участник
 
Join Date: Jun 2005
Posts: 31
Default

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...
vieruemil is offline  
Old 28.07.2005, 22:37   #10
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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
Riane is offline  
Old 29.07.2005, 21:12   #11
Fulminus
Архивный участник
 
Join Date: Jul 2005
Posts: 23
Default

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.
Fulminus is offline  
Old 30.07.2005, 09:31   #12
vieruemil
Архивный участник
 
Join Date: Jun 2005
Posts: 31
Default

Thanks for the ideas!
I'll try it.
vieruemil is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:42.