Auto PkClear Using Sql

Results 1 to 7 of 7
  1. #1
    Member untold is offline
    MemberRank
    Sep 2004 Join Date
    79Posts

    Auto PkClear Using Sql

    1.Open Your Sql Enterprise Manager and select Management from the left tree menu , Then

    select Sql Server Agent

    2.Right Click on Jobs and Press New Job and select these propeties

    General Tab;


    Steps > New;
    Replace 2 and 3 with the pklevels you wish


    Schedules > New Schedule > Recurring >Change;
    For the Date Select Yesterdays Date


    Now Press Ok Twice , Right Click On the Sql Server Agent Tabe And Select Start
    Once this is Done Right Click on your Pkclear Job and select Start Job.

    Finished


  2. #2
    Apprentice GriFF is offline
    MemberRank
    Nov 2004 Join Date
    6Posts
    is there any way to charge zen for each pk? I can't figure out how to do it... I did once, but it got too buggy! lolz, ppl complained a lot! ^^

  3. #3
    Apprentice vietz is offline
    MemberRank
    Dec 2004 Join Date
    18Posts

    set the cost

    add this :

    UPDATE character
    SET PkLevel= ('0'),Money=Money-('20000000')
    WHERE PkLevel>3 and Money>('20000000')

  4. #4
    Account Upgraded | Title Enabled! elche27 is offline
    MemberRank
    Dec 2004 Join Date
    TucumanLocation
    302Posts
    Nice Jobs!!!!!....now i have some problems with the autoreset, it give an error 207: 'Reset ' undefined!

    i beliuve i need create a column with the name 'reset', but i dont know how to do exactly, so can some1 explain me that with details????...thx in advance!!!!!!!!!!

    coz i was lookind around but with the search dont working is really difficulty!!!!

    sry 4 my bad english!!! :P

  5. #5
    Apprentice brucesinner is offline
    MemberRank
    Dec 2003 Join Date
    Rio de JaneiroLocation
    14Posts
    Here it goes :D

    Code:
    alter table character
            add reset int null default 0
    Last edited by brucesinner; 21-01-05 at 01:32 PM. Reason: added a default = 0

  6. #6
    Apprentice GriFF is offline
    MemberRank
    Nov 2004 Join Date
    6Posts
    Quote Originally Posted by elche27
    Nice Jobs!!!!!....now i have some problems with the autoreset, it give an error 207: 'Reset ' undefined!

    i beliuve i need create a column with the name 'reset', but i dont know how to do exactly, so can some1 explain me that with details????...thx in advance!!!!!!!!!!

    coz i was lookind around but with the search dont working is really difficulty!!!!

    sry 4 my bad english!!! :P
    - Open your Enterprises manager
    - Open your muonline database
    - Click on tables
    - Right click on the "Character" table
    - Click on "Design Table"
    - Scroll down to the last column (yes, scroll DOWN to the collumn, pay attention! You will understand as you see it ^^ trust me!)
    - Add a "Reset" column after the last one
    - In "Data type", make it "smallint"
    - uncheck allow nulls (if you don't do it you will have some probs later on!)
    - In the Default Value (in the box below) make it 0 or 1... it depends on which reset script you are gonna use, okay?

    its done! =]

  7. #7
    Novice Don J Uan is offline
    MemberRank
    Jun 2012 Join Date
    RomaniaLocation
    3Posts

    Re: set the cost

    Quote Originally Posted by vietz View Post
    add this :
    Sorry for bothering this OOOOLD topic but how to make PK clear command cost less? Can some1 answer me with detailed answer please? I'm a newbie xD



Advertisement