Server statistics, how many mages, HKs, warrs in each town

Results 1 to 9 of 9
  1. #1
    Goodbye chrissdegrece is offline
    MemberRank
    Oct 2009 Join Date
    GreeceLocation
    1,015Posts

    Server statistics, how many mages, HKs, warrs in each town

    In the DB backup files released with the 219 files there is a table missing, that table is named "CharInfo"

    The table is automatically updated by Accountserver so you don't have to do anything else, only create the table in your ASD database:

    Code:
    CREATE TABLE [dbo].[CharInfo](
    	[AccountID] [char](21) NULL,
    	[ServerIdx] [char](2) NULL,
    	[CharName] [char](21) NULL,
    	[CharType] [char](2) NULL,
    	[Nation] [char](2) NULL,
    	[default] [char](10) NULL
    ) ON [PRIMARY]
    As you see, you will then be able to show in your server website how many ppl are in Temoz and how many in Quanato, how many of them are Mages,Archers,HKs,Warriors.

    Enjoy!

    P.S. The first time you create it, it's not going to update the existing users you already have in your server. You are going to have to do this by hand.
    For every new user created, the table will be automatically updated.
    Last edited by chrissdegrece; 09-02-10 at 10:38 AM.


  2. #2
    @work onyourrisk is offline
    MemberRank
    Jan 2008 Join Date
    IndiaLocation
    706Posts

    Re: Server statistics, how many mages, HKs, warrs in each town

    Very well , liked this one :)

    Thanks for share

  3. #3
    Goodbye chrissdegrece is offline
    MemberRank
    Oct 2009 Join Date
    GreeceLocation
    1,015Posts

    Re: Server statistics, how many mages, HKs, warrs in each town

    Good, at least there is 1 who liked it :p

  4. #4
    @work onyourrisk is offline
    MemberRank
    Jan 2008 Join Date
    IndiaLocation
    706Posts

    Re: Server statistics, how many mages, HKs, warrs in each town

    Yeah as always i like innovative things by the way you tested this ? As i tried that with ep 3 AS and some older db back up it wasnt updating the info .

  5. #5
    Goodbye chrissdegrece is offline
    MemberRank
    Oct 2009 Join Date
    GreeceLocation
    1,015Posts

    Re: Server statistics, how many mages, HKs, warrs in each town

    as I said will NOT work for OLD players. OLD players you have to add by hand

  6. #6
    Ŋ cvrdheeraj is offline
    MemberRank
    Jul 2006 Join Date
    IndiaLocation
    1,210Posts

    Re: Server statistics, how many mages, HKs, warrs in each town

    Quote Originally Posted by chrissdegrece View Post
    as I said will NOT work for OLD players. OLD players you have to add by hand

    Why not? Copy the first 2 rows of the Charac0 table and update them to the CharInfo. Each time they login, the CharInfo will get updated accordingly.

  7. #7
    Goodbye chrissdegrece is offline
    MemberRank
    Oct 2009 Join Date
    GreeceLocation
    1,015Posts

    Re: Server statistics, how many mages, HKs, warrs in each town

    hehe, copy/paste is adding by hand, isn't it?

    An "insert .... where not in ..." command would be equally efficient though ;)

  8. #8
    Proficient Member getdeepz is offline
    MemberRank
    Aug 2008 Join Date
    A place in karnLocation
    175Posts

    Re: Server statistics, how many mages, HKs, warrs in each town

    Use this

    INSERT INTO CharInfo(AccountId, CharName) SELECT c_sheadera, c_id FROM Charac0

  9. #9
    Account Upgraded | Title Enabled! Mrgentle is offline
    MemberRank
    Oct 2007 Join Date
    IndiaLocation
    593Posts

    Re: Server statistics, how many mages, HKs, warrs in each town

    hmmm.........nice one
    Last edited by Mrgentle; 17-02-10 at 08:39 AM.



Advertisement