• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[HELP] DB Error Guild Income

Junior Spellweaver
Joined
Sep 18, 2007
Messages
115
Reaction score
1
DB:ERROR Update GuildInfo Set GuIncomeMoney=1656536821416188 WHERE GuNum=12
DB:01000, NativeError:3621, [Microsoft][SQL Native Client][SQL Server]The statement has been terminated.
DB:ERROR Update GuildInfo Set GuIncomeMoney=1495589021035869 WHERE GuNum=2
DB:01000, NativeError:3621, [Microsoft][SQL Native Client][SQL Server]The statement has been terminated.



I saw this error returned by the agent server. Can you help me locate the problem?
 
Custom Title Activated
Loyal Member
Joined
Aug 16, 2007
Messages
1,378
Reaction score
581
too high income, higher number than the database can save
reduce gold rates in your server and reduce guild income at default.charclass
 
Upvote 0
Junior Spellweaver
Joined
Sep 18, 2007
Messages
115
Reaction score
1
thanks for the fast reply, i'll try to edit the default.charclass. btw, what particular line do i have to edit?
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
Aug 16, 2007
Messages
1,378
Reaction score
581
fMONEY_DROP_SCALE 0.9f // gold drop rate

fMAX_COMMISSION 50 // max Tax
fDEFAULT_COMMISSION 5 // min tax
fEARNING_RATE 0.5f // how much % of the tax enters the safe at E room
 
Upvote 0
Junior Spellweaver
Joined
Sep 18, 2007
Messages
115
Reaction score
1
so it means that i have lower down the fEARNING_RATE to decrease the tax? what about sql database column entries?
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
Aug 16, 2007
Messages
1,378
Reaction score
581
the error comes because there is already too much gold and SQL cannot save that huge number, you should maybe reset it or lower it manually by editing it at the database
and by reducing EARNING_RATE you will reduce the speed of the gold increase inside the safe
 
Upvote 0
Junior Spellweaver
Joined
Sep 18, 2007
Messages
115
Reaction score
1
ok i got it and going to try to touch the sql db after shutting down my server for a moment. thanks again for the info ^^
 
Upvote 0
Junior Spellweaver
Joined
Feb 3, 2008
Messages
127
Reaction score
48
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[Wars] ON [dbo].[GuildInfo]
after update
as
BEGIN

Update [GuildInfo] set [GuildInfo].GuIncomeMoney = 2500000000.00000
From GuildInfo
Where GuIncomeMoney >= 2500000000.00000

End

***********************************************
try above trigger that what Im using to avoid bank bug. . ^_^
my maximum gold income in bank is 2.5B. . i hope it will works to you. .

goto RanGame1>dbo.GuildInfo>Triggers right click and make new trigger

That's It. . ^_^
 
Upvote 0
Banned
Banned
Joined
Feb 6, 2011
Messages
545
Reaction score
291
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[Wars] ON [dbo].[GuildInfo]
after update
as
BEGIN

Update [GuildInfo] set [GuildInfo].GuIncomeMoney = 2500000000.00000
From GuildInfo
Where GuIncomeMoney >= 2500000000.00000

End

***********************************************
try above trigger that what Im using to avoid bank bug. . ^_^
my maximum gold income in bank is 2.5B. . i hope it will works to you. .

goto RanGame1>dbo.GuildInfo>Triggers right click and make new trigger

That's It. . ^_^


how to execute this trigger.. because if i click execute have a eror..
 
Upvote 0
Back
Top