I have been working on this for the past couple of days; a way to solve the infamous dupe problems plaguing RF servers. Now, I think I have found a… “way” more than a solution.
I am not going to go into any detail but here are the basics on what you should know, should you decide to use this!
- This has not been widely tested, so if things go wrong they can also go very wrong
- The fix has the “capacity” to cause a significant increase in server load
- I haven’t actually tested it for all dupes except the most common ones (reward, ah) as I do not know how to perform all the dupes. But, the assumption I am making is; all dupes require the usage of tbl_inven. Therefore, this fixes all the dupes
- Please take note. Data in the “ItemLogs” table does not contain “people duping”. No, it is simply data of all the players items! This script does not “catch” or “log” dupers, it PREVENTS dupes! The ItemLogs table is required to PREVENT (not log!) dupes
This script is untested. Use at your own risk!
So the biggest message of them all is:
Use at your own risk! But I will help and would gladly accept any feedback from servers that do use this!
How to start?
First create the required tables:
01 | CREATE TABLE [dbo].[ItemLogs]( |
02 | [id] [ int ] IDENTITY(1,1) NOT NULL , |
03 | [serial] [ int ] NOT NULL , |
04 | [k_value] [ int ] NOT NULL , |
05 | [s_value] [ bigint ] NOT NULL , |
06 | [s_column] [ varchar ](10) NOT NULL , |
07 | CONSTRAINT [PK_ItemLogs] PRIMARY KEY CLUSTERED |
10 | ) WITH (PAD_INDEX = OFF , STATISTICS_NORECOMPUTE = OFF , IGNORE_DUP_KEY = OFF , ALLOW_ROW_LOCKS = ON , ALLOW_PAGE_LOCKS = ON ) ON [ PRIMARY ] |
15 | CREATE NONCLUSTERED INDEX [IX_ItemLogs_k] ON [dbo].[ItemLogs] |
18 | ) WITH (PAD_INDEX = OFF , STATISTICS_NORECOMPUTE = OFF , SORT_IN_TEMPDB = OFF , IGNORE_DUP_KEY = OFF , DROP_EXISTING = OFF , ONLINE = OFF , ALLOW_ROW_LOCKS = ON , ALLOW_PAGE_LOCKS = ON ) ON [ PRIMARY ] |
21 | CREATE NONCLUSTERED INDEX [IX_ItemLogs_s] ON [dbo].[ItemLogs] |
24 | ) WITH (PAD_INDEX = OFF , STATISTICS_NORECOMPUTE = OFF , SORT_IN_TEMPDB = OFF , IGNORE_DUP_KEY = OFF , DROP_EXISTING = OFF , ONLINE = OFF , ALLOW_ROW_LOCKS = ON , ALLOW_PAGE_LOCKS = ON ) ON [ PRIMARY ] |
27 | CREATE NONCLUSTERED INDEX [IX_ItemLogs_serial] ON [dbo].[ItemLogs] |
30 | ) WITH (PAD_INDEX = OFF , STATISTICS_NORECOMPUTE = OFF , SORT_IN_TEMPDB = OFF , IGNORE_DUP_KEY = OFF , DROP_EXISTING = OFF , ONLINE = OFF , ALLOW_ROW_LOCKS = ON , ALLOW_PAGE_LOCKS = ON ) ON [ PRIMARY ] |
Ini Hanya membeli lengkap full script .. anti dupe semuanya .. kalo mau beli silahkan hubungi saya di facebook
Posting Komentar