Auto Add coins for ijji site rip

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Alpha Member gregon13 is offline
    MemberRank
    Nov 2007 Join Date
    CanadaLocation
    1,945Posts

    Auto Add coins for ijji site rip

    Well I was messing around with the DB modified a proc so every time you kill some one you get a coin :

    Code:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    
    /* ??? ??(XP, BP, KillCount, DeathCount) ???? */
    ALTER PROC [dbo].[spUpdateCharInfoData]
      @XPInc        int,
      @BPInc        int,
      @KillInc      int,
      @DeathInc     int,
      @CID          int
    AS
    SET NOCOUNT ON
    
    DECLARE @Coins int
    DECLARE @AID int
    SELECT @AID=AID FROM Character(nolock) WHERE CID = @CID
    
    SELECT @Coins = @KillInc * 1
    
    UPDATE Character 
    SET XP=XP+(@XPInc), BP=BP+(@BPInc), KillCount=KillCount+(@KillInc), DeathCount=DeathCount+(@DeathInc)
    WHERE CID=@CID
    
    UPDATE Account 
    SET Coins=Coins+(@Coins) 
    WHERE AID=@AID
    I know I know this has been released here before but for the mpog site, I like this proc better and it seems to run smoothly with the gme
    Last edited by gregon13; 03-05-10 at 03:57 AM.


  2. #2
    Account Upgraded | Title Enabled! hotgame is offline
    MemberRank
    Mar 2009 Join Date
    CanadaLocation
    305Posts

    Re: Auto Add coins for ijji site rip

    thanks dude :)

  3. #3
    Enthusiast Rodi[WWG] is offline
    MemberRank
    Mar 2010 Join Date
    26Posts

    Re: Auto Add coins for ijji site rip

    this has been released already.

    and btw, change "coins" to your own coin table...

  4. #4
    Account Upgraded | Title Enabled! SHEEN[GB] is offline
    MemberRank
    Aug 2009 Join Date
    London, UKLocation
    263Posts

    Re: Auto Add coins for ijji site rip

    Thanks man, this is great!

  5. #5
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Auto Add coins for ijji site rip

    i have a great idea for this, i have never thought of it haha, nice one man

  6. #6
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: Auto Add coins for ijji site rip

    Thanks a lot! I was looking for this. This system is there in HeroGamers GunZ.

  7. #7
    Valued Member robertinh07 is offline
    MemberRank
    Dec 2008 Join Date
    106Posts

    Re: Auto Add coins for ijji site rip

    work in server files 2008?

  8. #8
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Auto Add coins for ijji site rip

    Quote Originally Posted by robertinh07 View Post
    work in server files 2008?
    I havnt seen the 2008 db, but i guess it could work if modified a bit, but i cant say for sure as i dont know what 2008 db is like

  9. #9
    Valued Member robertinh07 is offline
    MemberRank
    Dec 2008 Join Date
    106Posts

    Re: Auto Add coins for ijji site rip

    ok, don't work, when I put it, the kill count and death, did not work anymore.

    @Gregon, know how to do this for files that runs on server 2008?
    Last edited by robertinh07; 01-05-10 at 06:40 PM.

  10. #10
    Valued Member PrØ is offline
    MemberRank
    Apr 2010 Join Date
    In ur assLocation
    128Posts

    Re: Auto Add coins for ijji site rip

    Nice Idea. But Why we Need SomeThing Like It :P!!

  11. #11
    Account Upgraded | Title Enabled! SHEEN[GB] is offline
    MemberRank
    Aug 2009 Join Date
    London, UKLocation
    263Posts

    Re: Auto Add coins for ijji site rip

    Tested in 2008 files don't work :(

  12. #12
    Valued Member robertinh07 is offline
    MemberRank
    Dec 2008 Join Date
    106Posts

    Re: Auto Add coins for ijji site rip

    Work in files 2008 with some modifications ;D

  13. #13
    Enthusiast Anniversary is offline
    MemberRank
    Apr 2010 Join Date
    44Posts

    Re: Auto Add coins for ijji site rip

    great men thanks <3

  14. #14
    Alpha Member gregon13 is offline
    MemberRank
    Nov 2007 Join Date
    CanadaLocation
    1,945Posts

    Re: Auto Add coins for ijji site rip

    I use it with 2008 just fine

  15. #15

    Re: Auto Add coins for ijji site rip

    Quote Originally Posted by gregon13 View Post
    Well I was messing around with the DB modified a proc so every time you kill some one you get a coin :

    Code:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    
    /* ??? ??(XP, BP, KillCount, DeathCount) ???? */
    ALTER PROC [dbo].[spUpdateCharInfoData]
      @XPInc        int,
      @BPInc        int,
      @KillInc      int,
      @DeathInc     int,
      @CID          int,
      @Coins        int,
      @AID          int
    AS
    SET NOCOUNT ON
    
    SELECT @Coins = @KillInc * 1
    SELECT @AID=AID FROM Character(nolock) WHERE CID = @CID
    
    UPDATE Character 
    SET XP=XP+(@XPInc), BP=BP+(@BPInc), KillCount=KillCount+(@KillInc), DeathCount=DeathCount+(@DeathInc)
    WHERE CID=@CID
    
    UPDATE Account 
    SET Coins=Coins+(@Coins) 
    WHERE AID=@AID
    I know I know this has been released here before but for the mpog site, I like this proc better and it seems to run smoothly with the gme
    HI gregon,
    please, add msn?
    peter_net@msn.com
    Thanks ! help me '-'



Page 1 of 2 12 LastLast

Advertisement