Quick Couple system fix

Results 1 to 12 of 12
  1. #1
    Retired (Goddamn idiots) DragonLord is offline
    MemberRank
    Dec 2003 Join Date
    /dev/urandomLocation
    554Posts

    note Quick Couple system fix

    The couple system in the repack has one simple flaw;
    If you break up, it doesn't remove the couple, so in turn you can't make a new couple due to having duplicate entries.
    So for the sake of the good old spirit of ragezone, I'm sharing this basic fix for the couple deletion stored procedure.
    Code:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    
    /****** Object:  Stored Procedure dbo.uspDeleteCouple Script Date: 03/12/2009 19:27:05 ******/
    ALTER PROCEDURE [dbo].[uspDeleteCouple]
    	@serverindex	char(2),
    	@idHusbandOrWife	char(7)
    AS
    SET NOCOUNT ON
    
    declare @cid int
    declare @idFirst int
    declare @idSecond int
    
    select @cid = cid from tblCouplePlayer where idPlayer = @idHusbandOrWife
    select @idFirst = max(idPlayer) from tblCouplePlayer where cid = @cid and nServer = @serverindex
    select @idSecond = min(idPlayer) from tblCouplePlayer where cid = @cid and nServer = @serverindex
    
    delete from tblCouplePlayer where
    nServer = @serverindex
    AND
    (idPlayer = @idFirst
    OR
    idPlayer = @idSecond)
    
    delete from tblCouple where
    nServer = @serverindex
    AND
    cid = @cid
    
    
    SET NOCOUNT OFF
    GO
    
    SET ANSI_NULLS OFF
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    Enjoy.
    Don't like it? shove it.


  2. #2
    Dragona wishly is offline
    MemberRank
    Aug 2008 Join Date
    PhilippinesLocation
    296Posts

    Re: Quick Couple system fix

    is this for official files??

  3. #3
    Member kloklojul is offline
    MemberRank
    Sep 2008 Join Date
    82Posts

    Re: Quick Couple system fix

    Quote Originally Posted by wishly View Post
    is this for official files??
    no for calli >_>

  4. #4
    0xC0FFEE spikensbror is offline
    MemberRank
    Dec 2006 Join Date
    SwedenLocation
    1,855Posts

    Re: Quick Couple system fix

    Quote Originally Posted by kloklojul View Post
    no for calli >_>
    0mgwut c44li 1s b4nned!!!!!!!!!!!!1111111!!!1 oone!

    Nah, but nice share. ;)

  5. #5
    Retired (Goddamn idiots) DragonLord is offline
    MemberRank
    Dec 2003 Join Date
    /dev/urandomLocation
    554Posts

    Re: Quick Couple system fix

    Quote Originally Posted by wishly View Post
    is this for official files??
    Pointless question.
    There's a simple saying: "If you can't understand it, don't do it!"

  6. #6
    Pilipinas FLYFF Editor ctby23 is offline
    MemberRank
    Jun 2009 Join Date
    In your orgasm.Location
    244Posts

    Re: Quick Couple system fix

    Quote Originally Posted by wishly View Post
    is this for official files??
    what a nooby question... damn ur a pinoy?? (pinoy ka pa man din) -,-

    I ask u.. is there a couple system in other files other than official??


  7. #7
    Dragona wishly is offline
    MemberRank
    Aug 2008 Join Date
    PhilippinesLocation
    296Posts

    Re: Quick Couple system fix

    Quote Originally Posted by ctby23 View Post
    what a nooby question... damn ur a pinoy?? (pinoy ka pa man din) -,-

    I ask u.. is there a couple system in other files other than official??

    kanya kanya trip yan bata

  8. #8
    Apprentice Alexz23 is offline
    MemberRank
    Jun 2005 Join Date
    NorwayLocation
    23Posts

    Re: Quick Couple system fix

    Thanks for the share! :>

  9. #9
    Valued Member fantobros is offline
    MemberRank
    Nov 2008 Join Date
    117Posts

    Re: Quick Couple system fix

    Thnx aloot!

  10. #10
    Infraction Magnet KING5 is offline
    MemberRank
    Oct 2008 Join Date
    Behind You !Location
    484Posts

    Re: Quick Couple system fix

    what went wrong? I try to propose to someone and it says Database error lol and also i am couple to my self wtf what happened and how can i fix this?

  11. #11
    Retired (Goddamn idiots) DragonLord is offline
    MemberRank
    Dec 2003 Join Date
    /dev/urandomLocation
    554Posts

    note Re: Quick Couple system fix

    Quote Originally Posted by KING5 View Post
    what went wrong? I try to propose to someone and it says Database error lol and also i am couple to my self wtf what happened and how can i fix this?
    Prune all the data from tblCouple and tblCouplePlayer.

  12. #12
    Infraction Magnet KING5 is offline
    MemberRank
    Oct 2008 Join Date
    Behind You !Location
    484Posts

    Re: Quick Couple system fix

    it worked, thank you



Advertisement