Anti Dupe Ban

Page 1 of 3 123 LastLast
Results 1 to 25 of 55
  1. #1
    Valued Member -=Craker=- is offline
    MemberRank
    Jan 2007 Join Date
    LandOfDeadLocation
    136Posts

    Anti Dupe Ban

    use muonline
    if exists(select * from dbo.sysobjects where type='p' and name='WZ_GetItemSerial')
    drop procedure WZ_GetItemSerial
    go
    CREATE procedure WZ_GetItemSerial
    as
    BEGIN
    DECLARE @ItemSerial int
    set nocount on
    begin transaction
    update GameServerInfo set @ItemSerial = ItemCount = (case when ItemCount < 0x7effffff then ItemCount+1
    else 1
    end )
    if(@@error <> 0)
    begin
    rollback transaction
    select-1
    end
    else
    begin
    commit transaction
    select @ItemSerial
    end
    END
    GO
    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[trg_CheckSameID]') and OBJECTPROPERTY(id, N'IsTrigger') = 1)
    drop trigger [dbo].[trg_CheckSameID]
    GO
    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[AllItemsLog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[AllItemsLog]
    GO
    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CopyLog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[CopyLog]
    GO
    CREATE TABLE [dbo].[AllItemsLog] (
    [items_id] [int] IDENTITY (1, 1) NOT NULL ,
    [items_type] [binary] (1) NOT NULL ,
    [items_serial] [binary] (4) NOT NULL ,
    [items_acid] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL
    ) ON [PRIMARY]
    GO
    CREATE TABLE [dbo].[CopyLog] (
    [copy_id] [int] IDENTITY (1, 1) NOT NULL ,
    [copy_acid] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [copy_whdata] [binary] (1200) NOT NULL ,
    [copy_date] [datetime] NOT NULL
    ) ON [PRIMARY]
    GO
    ALTER TABLE [dbo].[AllItemsLog] ADD
    CONSTRAINT [DF_CT_ITEM_item] DEFAULT (0) FOR [items_type],
    CONSTRAINT [DF_CT_ITEM_itemid] DEFAULT (0) FOR [items_serial],
    CONSTRAINT [DF_CT_ITEM_itemrole] DEFAULT ('\') FOR [items_acid]
    GO
    CREATE INDEX [IX_CT_ITEM] ON [dbo].[AllItemsLog]([items_type], [items_serial]) ON [PRIMARY]
    GO
    ALTER TABLE [dbo].[CopyLog] ADD
    CONSTRAINT [DF_CopyLog_copy_date] DEFAULT (getdate()) FOR [copy_date]
    GO

    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_NULLS ON
    GO
    CREATE TRIGGER [dbo].[trg_CheckSameID] ON [dbo].[character]
    FOR UPDATE
    AS
    BEGIN
    IF UPDATE(inventory)
    BEGIN
    SET NOCOUNT ON
    DECLARE
    @wh_acid varchar(10),
    @wh_data binary(1200),
    @wh_type binary(1),
    @wh_serial binary(4),
    @cr_user varchar(10),
    @cr_acid varchar(10),
    @cr_data binary(760),
    @cr_type binary(1),
    @cr_serial binary(4),
    @al_acid varchar(10),
    @j int,
    @k int,
    @find bit
    SELECT @cr_acid=i.accountid,
    @cr_data=i.inventory
    FROM inserted i
    SET @j=0
    SET @find=0
    WHILE @j<76 AND @cr_data IS NOT NULL
    BEGIN
    SET @cr_type=SUBSTRING(@cr_data,@j*10+1,1)
    SET @cr_serial=SUBSTRING(@cr_data,@j*10+4,4)
    IF @cr_type<>0xFF AND @cr_serial<>0x00000000
    BEGIN
    SELECT @al_acid=items_acid FROM allitemslog WHERE items_type=@cr_type AND items_serial=@cr_serial

    IF @al_acid IS NULL
    INSERT INTO allitemslog (items_type,items_serial,items_acid) VALUES (@cr_type,@cr_serial,@cr_acid)
    ELSE
    BEGIN
    UPDATE allitemslog SET items_acid=@cr_acid WHERE items_type=@cr_type AND items_serial=@cr_serial

    SELECT @wh_data=items FROM warehouse WHERE accountid=@al_acid
    SET @k=0
    WHILE @k<120 AND @wh_data IS NOT NULL
    BEGIN
    SET @wh_type=SUBSTRING(@wh_data,@k*10+1,1)
    SET @wh_serial=SUBSTRING(@wh_data,@k*10+4,4)
    IF @wh_type=@cr_type AND @wh_serial=@cr_serial
    SET @find=1
    SET @k=@k+1
    END
    END
    END
    SET @j=@j+1
    END
    IF @find=1
    BEGIN
    INSERT INTO copylog (copy_whdata,copy_acid,copy_date) VALUES (@wh_data,@al_acid,getdate())
    -- this is wer u can add more punishment like ban or lock characters
    UPDATE Character SET CtlCode=1 WHERE accountid=@al_acid
    END
    SET NOCOUNT OFF
    END
    END
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO
    DECLARE @al_acid char(50)
    set @al_acid = 'ASUS'
    UPDATE Character SET CtlCode=1 WHERE accountid=@al_acid
    go
    select * from AllItemsLog
    select * from CopyLog
    Last edited by -=Craker=-; 31-01-07 at 04:33 AM.


  2. #2
    Account Upgraded | Title Enabled! alijabari is offline
    MemberRank
    Sep 2006 Join Date
    IranLocation
    345Posts
    work and for 1.02N MU Version ?

  3. #3
    Valued Member -=Craker=- is offline
    MemberRank
    Jan 2007 Join Date
    LandOfDeadLocation
    136Posts
    yes:eat:

  4. #4
    Account Upgraded | Title Enabled! flyba is offline
    MemberRank
    Apr 2006 Join Date
    PhilippinesLocation
    391Posts
    What does it mean?? it will atoumatically ban characters that are duplicating items??

  5. #5
    Learning. lordvladek is offline
    MemberRank
    Mar 2006 Join Date
    872Posts
    yeah i think its also riped without giving credit to...

  6. #6
    Enthusiast virty is offline
    MemberRank
    May 2006 Join Date
    BrazilLocation
    37Posts
    This procedure makes lag??
    Its more easy, if u tell us how do u make, and we add in our procedure wz_getitenserial...

    Because i saw you drop de procedure, and create other...
    Last edited by virty; 31-01-07 at 05:47 AM.

  7. #7
    Upgraded ADM_KRIOK is offline
    MemberRank
    Jan 2005 Join Date
    MuLoKo - BrazilLocation
    235Posts
    this procedure is good, I use it in my 97r+1.0 server and 1.0m(99.6xT) server too. And I will use it in 1.02n, I got I dont remember where and when I got, works perfectly, virty, dont cause lag... I got 1 time 315 players online and no lag

  8. #8
    HZBR.NET ***** junior747 is offline
    MemberRank
    Jul 2006 Join Date
    Blumenau - SC (BRAZIL)Location
    244Posts
    I of swit to character and my blocked ChaRs esto, I raising of the blockade they, more when this still happens, not has a codig to undo this ae?

  9. #9
    Novice v4p0r3tt0 is offline
    MemberRank
    Dec 2006 Join Date
    4Posts
    Great work, i use in my server.

    ty

    Credits: ThAuA

    ?

  10. #10
    Account Upgraded | Title Enabled! bagadzelna is offline
    MemberRank
    Apr 2005 Join Date
    265Posts
    It was released some time ago

  11. #11
    Twilight Mu Owner Shagoon is offline
    MemberRank
    Aug 2005 Join Date
    Bucharest, ROLocation
    1,001Posts
    And the Award For The Most Retarded Leecher goes to... -=Craker=-

    Congrats! rofl

  12. #12
    Account Upgraded | Title Enabled! alijabari is offline
    MemberRank
    Sep 2006 Join Date
    IranLocation
    345Posts
    i put this script in Query Analyzer how to delet him ?
    becouse i have BOK of Kundun in shop and when people drop the BOK and exemple drop 2 Dark Soul Gloved when exit the game and want to connect after 5-10 min or other day have the all characters banned :D

    i can delet the script from the Query Analyzer ?

  13. #13
    Enthusiast danielsilva is offline
    MemberRank
    Oct 2006 Join Date
    BrazilLocation
    29Posts
    work and for 99.6XT version ?
    it will atoumatically ban characters that are duplicating items?

  14. #14
    Apprentice phrommel is offline
    MemberRank
    Sep 2006 Join Date
    Quezon City, PhilippinesLocation
    18Posts
    Wow! great job man!

    Anyway, where did you get this? :rudolph:

  15. #15
    Account Upgraded | Title Enabled! Fraps. is offline
    MemberRank
    Jun 2006 Join Date
    North KryptonLocation
    731Posts
    Quote Originally Posted by Shagoon View Post
    And the Award For The Most Retarded Leecher goes to... -=Craker=-

    Congrats! rofl
    I dont give a crap of credits. It's good he "released" it because till now I did not know there is such a thing. Then I guess thanks Craker.

  16. #16
    Enthusiast mendarkas is offline
    MemberRank
    Feb 2006 Join Date
    lithuaniaLocation
    33Posts
    its sql job?

  17. #17
    Novice ossamenta is offline
    MemberRank
    Jul 2005 Join Date
    ChileLocation
    2Posts
    this triger is incomplete...
    only comparate inventory V/S warehouse


    sorry for my english XD

  18. #18
    iNewLegend , Leo123 zolamu is offline
    MemberRank
    Apr 2006 Join Date
    Холон, IsrLocation
    737Posts
    Big Thanks Dude , Great Released.

  19. #19
    Account Upgraded | Title Enabled! soooom is offline
    MemberRank
    Mar 2006 Join Date
    LatviaLocation
    231Posts
    Can i delete this script ?!I use this in Query Analyzer

  20. #20
    Apprentice T04ka is offline
    MemberRank
    Jun 2005 Join Date
    RussiaLocation
    7Posts
    How i can add to script function whis disconnect player if it have dupe items?
    I don't speak english -)

  21. #21
    Account Upgraded | Title Enabled! whwwhw is offline
    MemberRank
    Mar 2006 Join Date
    MapNumber = 2Location
    246Posts
    We need more material at Dupe and Ban stuff!!!

  22. #22
    Apprentice stanio is offline
    MemberRank
    Jan 2006 Join Date
    BulgariaLocation
    13Posts
    i have problem ... if i have item same serrial (heard,jewel,or another).game msg me mu item dupe and i have DC ... pls help me.

  23. #23
    Account Upgraded | Title Enabled! AlexandriaTeam is offline
    MemberRank
    Jun 2006 Join Date
    City of MacedoniaLocation
    274Posts
    test in 1.02 q :)
    tanks dud!

  24. #24
    is lovin' it hymen is offline
    MemberRank
    Nov 2005 Join Date
    Santa Barbara,Location
    1,928Posts
    So is this good or not? I would like to know that if a player drops for example 2 hearts of love and they drop the same items will he get banned? I really need to know this.. Thanks in advance :)

  25. #25
    Valued Member trapizonga is offline
    MemberRank
    Nov 2006 Join Date
    104Posts

    Re: [Release] Anti Dupe Ban

    Tested = Aproved !



Page 1 of 3 123 LastLast

Advertisement