AutoReset Script[SQL] + Full Details

Page 1 of 3 123 LastLast
Results 1 to 25 of 55
  1. #1
    Account Upgraded | Title Enabled! LifeStealer is offline
    MemberRank
    May 2006 Join Date
    int main()Location
    411Posts

    AutoReset Script[SQL] + Full Details

    This Guide will show you how to make an AutoReset Script using SQL Server Agent.
    Let's Start! Go And Create a new Job:
    1)Start>All Programmes>Microsoft SQL Server>Enterprise Manager.
    2)Then Find "Management" Double Click There.
    3)And then double click to SQL Server Agent.
    4)Then Right Click on "Jobs" and select "New Job...".
    5)Name It "AutoReset" , Category: [Uncategorized (Local)] and Owner "sa" and Description: "AutoResetSciprt".
    6)Then Click in "Steps" and press "New..." ,Then put as Step Name: "AutoReset" and Type: "Transact-SQL Script (TSQL) and Database: "MuOnline".
    7)Then as Command you have to put the Codes given below.
    8)After that you have inserted the Code press "Apply" and "Ok".
    9)Then go to Schedules and Click "New Schedule..." ,as name put "AutoReset" and press "Change" then change it to occurs: "Daily" every "1 Day(s)",
    10)And then select "Occurs every" and change "1 Hour(s) to 1 Minute(s)" 11)Then click on "Start Date" and select the Day Before the one that is there.For example if it 12/02/2006 you selest 11/02/2006.
    12)And final leave the "No End Date" and Click "Ok" 2 times and then "Apply" and "Ok" again.And you are DONE!
    *Do this for both 4 Codes that are given below*


    Notes:

    AutoReset Lvl=350
    Additional Points(Per Reset)=350
    Reset Cost=50Millions (Each Reset)
    Reset Limit=50Resets
    Stats=Goes Back To Normal
    Character:AutoWarp to Lorencia/Noria
    Character MagicSpellList=Will Be Cleared
    Character Inventory=Will Be Cleared
    +Additional Pk Clear (Each Character)


    WARNING!>AutoReset Will Be Correct With Column Name= 'Reset' In 'Character' Table With Default Value= '0'


    1)DarkWizard/SoulMaster Code:

    UPDATE Character
    SET clevel = 1, Experience = 0, LevelUpPoint = 350 * (Reset + 1), Money = Money - (50000000), Strength = 18, Dexterity = 18, Vitality = 15, Energy = 30, Inventory = NULL, MagicList = NULL, MapNumber = 0, MapPosX = 130, MapPosY = 130, PkTime = 0, PkCount = 0, PkLevel = 0, Reset = Reset + 1
    FROM Character JOIN MEMB_STAT ON Character.AccountID=MEMB_STAT.memb___id
    COLLATE Latin1_general_CI_AI
    WHERE ((class = 0) OR (class = 1)) AND (clevel >= 350) AND (Money >= (50000000)) AND (ConnectStat = 0) AND (Reset < 50);


    2)DarkKnight/BladeKnight Code:

    UPDATE Character
    SET clevel = 1, Experience = 0, LevelUpPoint = 350 * (Reset + 1), Money = Money - (50000000), Strength = 28, Dexterity = 20, Vitality = 25, Energy = 10, Inventory = NULL, MagicList = NULL, MapNumber = 0, MapPosX = 130, MapPosY = 130, PkTime = 0, PkCount = 0, PkLevel = 0, Reset = Reset + 1
    FROM Character JOIN MEMB_STAT ON Character.AccountID = MEMB_STAT.memb___id
    COLLATE Latin1_general_CI_AI
    WHERE ((class = 16) OR (class = 17)) AND (clevel >= 350) AND (Money >= (50000000)) AND (ConnectStat = 0) AND (Reset < 50);


    3)Elf/MuseElf Code:

    UPDATE Character
    SET clevel = 1, Experience = 0, LevelUpPoint = 350 * (Reset + 1), Money = Money - (50000000), Strength = 22, Dexterity = 25, Vitality = 20, Energy = 15, Inventory = NULL, MagicList = NULL, MapNumber = 0, MapPosX = 130, MapPosY = 130, PkTime = 0, PkCount = 0, PkLevel = 0, Reset = Reset + 1
    FROM Character JOIN MEMB_STAT ON Character.AccountID = MEMB_STAT.memb___id
    COLLATE Latin1_general_CI_AI
    WHERE ((class = 32) OR (class = 33)) AND (clevel >= 350) AND (Money >= (50000000)) AND (ConnectStat = 0) AND (Reset < 50);


    4)MG Code:

    UPDATE Character
    SET clevel = 1, Experience = 0, LevelUpPoint = 350 * (Reset + 1), Money = Money - (50000000), Strength = 26, Dexterity = 26, Vitality = 26, Energy = 26, Inventory = NULL, MagicList = NULL, MapNumber = 0, MapPosX = 130, MapPosY = 130, PkTime = 0, PkCount = 0, PkLevel = 0, Reset = Reset + 1
    FROM Character JOIN MEMB_STAT ON Character.AccountID = MEMB_STAT.memb___id
    COLLATE Latin1_general_CI_AI
    WHERE (class = 48) AND (clevel >= 350) AND (Money >= (50000000)) AND (ConnectStat = 0) AND (Reset < 50);


    DarkLord (99+ Versions)

    UPDATE Character
    SET clevel = 1, Experience = 0, LevelUpPoint = 350 * (Reset + 1), Money = Money - (50000000), Strength = 26, Dexterity = 26, Vitality = 26, Energy = 26, Inventory = NULL, MagicList = NULL, MapNumber = 0, MapPosX = 130, MapPosY = 130, PkTime = 0, PkCount = 0, PkLevel = 0, Reset = Reset + 1
    FROM Character JOIN MEMB_STAT ON Character.AccountID = MEMB_STAT.memb___id
    COLLATE Latin1_general_CI_AI
    WHERE (class = 64) AND (clevel >= 350) AND (Money >= (50000000)) AND (ConnectStat = 0) AND (Reset < 50);


    Any Questions/Problems you may have please feel free to ask me.

    This Guide Is Made By Me.
    (C) Credits LifeStealer
    Last edited by LifeStealer; 26-05-06 at 09:53 AM.


  2. #2
    Apprentice Armag3don is offline
    MemberRank
    Mar 2006 Join Date
    17Posts
    nice tnx man

  3. #3
    Member Zagzagel is offline
    MemberRank
    May 2005 Join Date
    Where you can't find meLocation
    69Posts

    :(

    When i create a char the reset column is set to <NULL>.... and then the reset puts <NULL> points on LevelUpPoint :( how do i solve this?

  4. #4
    Account Upgraded | Title Enabled! LifeStealer is offline
    MemberRank
    May 2006 Join Date
    int main()Location
    411Posts
    Quote Originally Posted by Zagzagel
    When i create a char the reset column is set to <NULL>.... and then the reset puts <NULL> points on LevelUpPoint :( how do i solve this?
    Check This Line:

    *** WARNING!>AutoReset Will Be Correct With Column Name= 'Reset' In 'Character' Table With Default Value= '0' ***

  5. #5
    Enthusiast richicuero is offline
    MemberRank
    Oct 2005 Join Date
    Lima -PeruLocation
    27Posts

    Help with this

    I wanna know if someone can make this autoreset Script.

    Reset MagicList
    Null Inventory
    No keep Points
    200 Per Reset

    1 > 100 resets = 1 jewel of creation
    101 > 150 resets = 2 jewel of creation
    151 > 200 resets = 3 jewel of creation
    201 > 250 resets = 4 jewel of creation
    251 > 300 resets = 5 jewel of creation
    301 > 350 resets = 6 jewel of creation
    351 > 400 resets = 7 jewel of creation

    would be better if u can make this script for Mutoolz 2.2 i really aprecciate and pay for.
    Just add me Richard_handsome@hotmail.com

    someone can help me with this?

  6. #6
    CyberUnnoB
    Guest

    Little offtopic regarding NULL SQL values

    Zagzagel:

    You can add a new step (prior to the Autoreset itself) in the Autoreset Job in order to convert NULL values to zeroes. This is the TSQL:
    Code:
    UPDATE Character
    SET Reset=(0)
    WHERE Reset IS NULL
    (Remember to point it to the MuOnline database)

    ---- Story of my post, A.K.A. the non-important part that doesn't need to be read ----
    I needed something like this:
    Code:
    UPDATE Character
    SET CtlCode=(0)
    WHERE CtlCode IS NULL
    in my autoreset scripts in order to work properly.

    When a column value is 'NULL', it seems to be excluded from >, <, <> and = operator conditions. For example, in my AutoReset:
    Code:
    UPDATE Character
    SET clevel=('1'), Experience=('0'), Money=Money-('50000000'), MapNumber=('0'), MapPosX=('125'), MapPosY=('123'), PkLevel=('0'), Resets=Resets+('1')
    FROM Character JOIN MEMB_STAT ON Character.AccountID=MEMB_STAT.memb___id
    COLLATE Latin1_general_CI_AI
    WHERE CtlCode <> ('8') and clevel>('369') and Money>('50000000') AND (ConnectStat = 0);
    note that my CtlCode condition is NOT EQUAL to 8, so it should exclude all GMs from reset. Well, it happened that when CtlCode was NULL, that char was also excluded from reset, so there had to be a way to 'Kill the NULLs'.

    Through this simple step (the first TSQL CODE), you can convert your NULLs to any value. Just check where to seek them. Enjoy!

  7. #7
    Apprentice StealthMu is offline
    MemberRank
    Jun 2006 Join Date
    13Posts
    Nice..

  8. #8
    Enthusiast kikosala is offline
    MemberRank
    May 2005 Join Date
    44Posts
    Em.....how I make the script for Autorreset without any item in the inventoy? I explain it..... caracters must be reset without any item, but, I want that.....if any players forgive put out any item from his inventory...I want that autorreset will be don't work.

    And...one more thing..... ^^ for the script...how can I make that when one carcater will be reset....apears in his inventory, for example a Kumdum+5..or another item excelent. This will be a prize for the player.


    :3dflagsdo

  9. #9
    Apprentice gunbound1012 is offline
    MemberRank
    Feb 2006 Join Date
    10Posts
    help me autoreset ver 0.99.62t

  10. #10
    Member serhio_forever is offline
    MemberRank
    Mar 2006 Join Date
    VirtualInternetLocation
    89Posts
    soo for what is this for :
    FROM Character JOIN MEMB_STAT ON Character.AccountID = MEMB_STAT.memb___id
    COLLATE Latin1_general_CI_AI

  11. #11
    Member serhio_forever is offline
    MemberRank
    Mar 2006 Join Date
    VirtualInternetLocation
    89Posts
    soo, what i this for ? :
    FROM Character JOIN MEMB_STAT ON Character.AccountID = MEMB_STAT.memb___id
    COLLATE Latin1_general_CI_AI

  12. #12
    Enthusiast Krov is offline
    MemberRank
    Jun 2006 Join Date
    Up In SpaceLocation
    34Posts
    hey, i have a problem...i have done with u said...but, when i did it again...the autoreset name can't be the same..am i able to use another name and still works?

  13. #13
    Apprentice yancyroy is offline
    MemberRank
    Apr 2005 Join Date
    philippinesLocation
    10Posts

    MEMB_STAT error

    there is an error MEMB_STAT IS INVALID. How can i ix this? thx :buzz_saw:

  14. #14
    Apprentice yancyroy is offline
    MemberRank
    Apr 2005 Join Date
    philippinesLocation
    10Posts
    Memb_stat Error Help Pls

  15. #15
    Account Upgraded | Title Enabled! KoZMu is offline
    MemberRank
    Feb 2006 Join Date
    240Posts
    Can some one give me link for SQL SERVER with AutoReset like this please because i try to make AutoReset but not work please very much. :(

  16. #16
    Enthusiast kokec is offline
    MemberRank
    Apr 2005 Join Date
    25Posts
    Um yeah i did all that. There are 4 different jobs:
    -AutoResetBK
    -AutoResetSM
    -AutoResetME
    -AutoResetMG
    I used the reset generator to configure what i want for each res and i copyed 1 code in each job. And i Scheduled it and did everything u said LifeStealer and then what? It still doesnt work... what shall i do pls help me? :) 10x in advance :peace:

  17. #17
    Enthusiast kokec is offline
    MemberRank
    Apr 2005 Join Date
    25Posts
    Can u explain what we must do after we do all that stuff? Please... Bcuz i did it all and i still can't get it to work... and i have the feeling that my mistake is after that...

  18. #18
    Novice fbstages is offline
    MemberRank
    Feb 2006 Join Date
    4Posts
    [QUOTE=7)Then as Command you have to put the Codes given below.[/QUOTE]

    what is code?

  19. #19
    Member savell2 is offline
    MemberRank
    Mar 2006 Join Date
    UKLocation
    63Posts
    yer great guide but how do i change it so it doesnt reset your stats or any reset :S

  20. #20
    Member savell2 is offline
    MemberRank
    Mar 2006 Join Date
    UKLocation
    63Posts
    This is a Great guide but how doi change it soit dont reset stats just your level

  21. #21
    Member savell2 is offline
    MemberRank
    Mar 2006 Join Date
    UKLocation
    63Posts
    Ok Very Very nice guide only just looked but how do i set it to non reset stats just level

  22. #22
    Novice raivisra is offline
    MemberRank
    Jul 2006 Join Date
    1Posts

    Help Auto Reset

    How must make JOB in SQL , to make reset pay 1reset- 25KK, 2reset- 50kk, 3.reset- 75kk

    HELPO ME PLZZ write me AUTO RESET Script plz!

  23. #23
    Member Son1c is offline
    MemberRank
    Aug 2006 Join Date
    Near the moon :)Location
    95Posts
    ???
    Very nice guide :) but I don't understand this:
    Quote Originally Posted by Originally posted by LifeStealer
    *Do this for both 4 Codes that are given below*
    So do I need to create more than 1 job?
    And if yes, how? (because I only can use every name once(AutoReset))

  24. #24
    Member Son1c is offline
    MemberRank
    Aug 2006 Join Date
    Near the moon :)Location
    95Posts
    Nice guide!
    But i don't understand 1 line:
    *Do this for both 4 Codes that are given below*
    Does it mean I have to make more than 1 job? If yes, how? I only can use every name(AutoReset) once. :(

  25. #25
    Member Son1c is offline
    MemberRank
    Aug 2006 Join Date
    Near the moon :)Location
    95Posts
    :(
    It dosn't work for me :(



Page 1 of 3 123 LastLast

Advertisement