[Share] Pk Count

Results 1 to 24 of 24
  1. #1
    Proficient Member jescolta19 is offline
    MemberRank
    Dec 2008 Join Date
    CDO xPLocation
    163Posts

    [Share] Pk Count

    Add column in RanGame1 >Chainfo

    Column name "ChaKill" bigint not null

    then execute this on ranlog

    Code:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    
    
    
    ALTER PROCEDURE [dbo].[sp_LogAction_Insert]
        @nChaNum int,
        @nType int,
        @nTargetNum int,
        @nTargetType int,
        @nExpPoint money,
        @nBrightPoint int,
        @nLifePoint int,
        @nMoney money
    AS    
        SET NOCOUNT ON
    IF (@nType=2)
        BEGIN
        Update RanGame1.dbo.ChaInfo
        Set ChaKill=ChaKill+1
        Where ChaNum=@nChaNum
        END
    
        INSERT INTO LogAction (ChaNum,   Type,   TargetNum,   TargetType,   ExpPoint,   BrightPoint,   LifePoint,   ActionMoney) 
        VALUES    (@nChaNum, @nType, @nTargetNum, @nTargetType, @nExpPoint, @nBrightPoint, @nLifePoint, @nMoney)
    
        SET NOCOUNT OFF

    then create your custom ranking php script which will count values in chakill column




    Sorry for sharing this someone is making money out of this
    "wag nyo sakin ibenta dahil di nyo man lang alam ako ang gumawa"


    Credits Iwarez and me
    Last edited by jescolta19; 11-11-10 at 05:35 AM.


  2. #2
    Valued Member dondonk is offline
    MemberRank
    Nov 2009 Join Date
    Ndodok'NgenesLocation
    120Posts

    Re: [Share] Pk Count

    I think this script still have some bugs, with ZIP another character.. Can count on pk point.

    Cz only type 2, pk and zip have same type.

    No offence.. More power RZ!

  3. #3
    Proficient Member jescolta19 is offline
    MemberRank
    Dec 2008 Join Date
    CDO xPLocation
    163Posts

    Re: [Share] Pk Count

    its not a bug it works that way pk using z is also pk also counted

  4. #4
    Valued Member dondonk is offline
    MemberRank
    Nov 2009 Join Date
    Ndodok'NgenesLocation
    120Posts

    Re: [Share] Pk Count

    Quote Originally Posted by jescolta19 View Post
    its not a bug it works that way pk using z is also pk also counted
    So, Player can make another character to raise up his pk point.. By pk using z..

    Hihi... :p

  5. #5
    Proficient Member jescolta19 is offline
    MemberRank
    Dec 2008 Join Date
    CDO xPLocation
    163Posts

    Re: [Share] Pk Count

    allow only a certain level or reborn of characters to show in rankings

  6. #6
    Proficient Member iMeebo is offline
    MemberRank
    Nov 2010 Join Date
    In you HeartLocation
    181Posts

    Re: [Share] Pk Count

    I will try this :D V

  7. #7

    Re: [Share] Pk Count

    I can't add chakill with no null..how can i add

  8. #8
    Account Upgraded | Title Enabled! denvee is offline
    MemberRank
    Feb 2009 Join Date
    /var/users/Location
    579Posts

    Re: [Share] Pk Count

    Quote Originally Posted by Warrior15 View Post
    I can't add chakill with no null..how can i add
    just put 0 on default value or binding

  9. #9

    Re: [Share] Pk Count

    Quote Originally Posted by denvee View Post
    just put 0 on default value or binding
    wow tnx

  10. #10
    Hokage ju_one06 is offline
    MemberRank
    Dec 2007 Join Date
    KonohaLocation
    243Posts

    Re: [Share] Pk Count

    great share..i will add in my game..^^

  11. #11
    Apprentice prodigy4 is offline
    MemberRank
    Feb 2011 Join Date
    16Posts

    Re: [Share] Pk Count

    Do I need to restart my server?

    Cuz it didnt do anything, :P Im using GC panel

  12. #12
    Member AldrianPH is offline
    MemberRank
    Sep 2013 Join Date
    71Posts

    Re: [Share] Pk Count

    Can you teach me how to execute this on ran log?

  13. #13
    Account Upgraded | Title Enabled! markalejo77 is offline
    MemberRank
    Mar 2013 Join Date
    350Posts

    Re: [Share] Pk Count

    Quote Originally Posted by AldrianPH View Post
    Can you teach me how to execute this on ran log?

    add me in FB : Cabilangdawako

  14. #14
    Member AldrianPH is offline
    MemberRank
    Sep 2013 Join Date
    71Posts

    Re: [Share] Pk Count

    is that you? the girl?

  15. #15
    Account Upgraded | Title Enabled! markalejo77 is offline
    MemberRank
    Mar 2013 Join Date
    350Posts

    Re: [Share] Pk Count

    Quote Originally Posted by AldrianPH View Post
    is that you? the girl?
    thats my GF lol

  16. #16
    number14 ryruz is offline
    MemberRank
    Mar 2011 Join Date
    Www.ryruz.phLocation
    571Posts

    Re: [Share] Pk Count

    how about GUI?

  17. #17
    -=GameOver=- Ace17 is offline
    MemberRank
    Jun 2013 Join Date
    598Posts

    Re: [Share] Pk Count

    Quote Originally Posted by ryruz View Post
    how about GUI?
    this is for pk kill count only not pk steak

  18. #18
    number14 ryruz is offline
    MemberRank
    Mar 2011 Join Date
    Www.ryruz.phLocation
    571Posts

    Re: [Share] Pk Count

    Quote Originally Posted by Ace17 View Post
    this is for pk kill count only not pk steak
    i mean GUI like this
    http://prntscr.com/6zu2kg

  19. #19
    Account Bä́̽̔̌̈́̈̄̕̕nned HolyShift is offline
    MemberRank
    Sep 2014 Join Date
    Davao City, PhiLocation
    251Posts

    Re: [Share] Pk Count

    Quote Originally Posted by ryruz View Post
    i mean GUI like this
    http://prntscr.com/6zu2kg
    not needed on that and this script has no pk loss/death only kill

  20. #20
    -=GameOver=- Ace17 is offline
    MemberRank
    Jun 2013 Join Date
    598Posts

    Re: [Share] Pk Count

    Quote Originally Posted by HolyShift View Post
    not needed on that and this script has no pk loss/death only kill
    Code:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    
    
    
    
    
    
    ALTER PROCEDURE [dbo].[sp_LogAction_Insert]
        @nChaNum int,
        @nType int,
        @nTargetNum int,
        @nTargetType int,
        @nExpPoint money,
        @NbrightPoint int,
        @nLifePoint int,
        @nMoney money
    AS    
        SET NOCOUNT ON
    IF (@nType=2)
        BEGIN
        Update RanGame1.dbo.ChaInfo
        Set ChaPKWIN=ChaPKWIN+1
        Where ChaNum=@nChaNum
        END
    IF (@nType=3)
        BEGIN
        Update RanGame1.dbo.ChaInfo
        Set ChaPKLOSS=ChaPKLOSS+1
        Where ChaNum=@nChaNum
        END
    
    
        INSERT INTO LogAction (ChaNum,   Type,   TargetNum,   TargetType,   ExpPoint,   BrightPoint,   LifePoint,   ActionMoney) 
        VALUES    (@nChaNum, @nType, @nTargetNum, @nTargetType, @nExpPoint, @NbrightPoint, @nLifePoint, @nMoney)
    
    
        SET NOCOUNT OFF
    KILL and Death
    i use this on my EP7 server before
    credit for me ofcourse for experimenting lol

  21. #21
    Proficient Member DontBugMe is offline
    MemberRank
    Dec 2008 Join Date
    #includeLocation
    153Posts

    Re: [Share] Pk Count

    Quote Originally Posted by Ace17 View Post
    Code:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    
    
    
    
    
    
    ALTER PROCEDURE [dbo].[sp_LogAction_Insert]
        @nChaNum int,
        @nType int,
        @nTargetNum int,
        @nTargetType int,
        @nExpPoint money,
        @NbrightPoint int,
        @nLifePoint int,
        @nMoney money
    AS    
        SET NOCOUNT ON
    IF (@nType=2)
        BEGIN
        Update RanGame1.dbo.ChaInfo
        Set ChaPKWIN=ChaPKWIN+1
        Where ChaNum=@nChaNum
        END
    IF (@nType=3)
        BEGIN
        Update RanGame1.dbo.ChaInfo
        Set ChaPKLOSS=ChaPKLOSS+1
        Where ChaNum=@nChaNum
        END
    
    
        INSERT INTO LogAction (ChaNum,   Type,   TargetNum,   TargetType,   ExpPoint,   BrightPoint,   LifePoint,   ActionMoney) 
        VALUES    (@nChaNum, @nType, @nTargetNum, @nTargetType, @nExpPoint, @NbrightPoint, @nLifePoint, @nMoney)
    
    
        SET NOCOUNT OFF
    KILL and Death
    i use this on my EP7 server before
    credit for me ofcourse for experimenting lol
    were can i replace that code?

  22. #22
    -=GameOver=- Ace17 is offline
    MemberRank
    Jun 2013 Join Date
    598Posts

    Re: [Share] Pk Count

    Quote Originally Posted by DontBugMe View Post
    were can i replace that code?
    add trigger

  23. #23
    Novice Athan Gomez is offline
    MemberRank
    Mar 2015 Join Date
    1Posts

    Re: [Share] Pk Count

    Quote Originally Posted by jescolta19 View Post
    Add column in RanGame1 >Chainfo

    Column name "ChaKill" bigint not null

    then execute this on ranlog

    Code:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    
    
    
    ALTER PROCEDURE [dbo].[sp_LogAction_Insert]
        @nChaNum int,
        @nType int,
        @nTargetNum int,
        @nTargetType int,
        @nExpPoint money,
        @nBrightPoint int,
        @nLifePoint int,
        @nMoney money
    AS    
        SET NOCOUNT ON
    IF (@nType=2)
        BEGIN
        Update RanGame1.dbo.ChaInfo
        Set ChaKill=ChaKill+1
        Where ChaNum=@nChaNum
        END
    
        INSERT INTO LogAction (ChaNum,   Type,   TargetNum,   TargetType,   ExpPoint,   BrightPoint,   LifePoint,   ActionMoney) 
        VALUES    (@nChaNum, @nType, @nTargetNum, @nTargetType, @nExpPoint, @nBrightPoint, @nLifePoint, @nMoney)
    
        SET NOCOUNT OFF

    then create your custom ranking php script which will count values in chakill column




    Sorry for sharing this someone is making money out of this
    "wag nyo sakin ibenta dahil di nyo man lang alam ako ang gumawa"


    Credits Iwarez and me
    compatible for what ep sir?

  24. #24
    -=GameOver=- Ace17 is offline
    MemberRank
    Jun 2013 Join Date
    598Posts

    Re: [Share] Pk Count

    Quote Originally Posted by Athan Gomez View Post
    compatible for what ep sir?
    not recommended to use this triggeron ep9 coz ep9 already have pk win and pk loss..
    use it on EP3, EP4, EP5, EP6, EP7



Advertisement