AutoReset Script+Full Details!

Help please, my script constantly adds on 350 points, has entered ' Reset ' In ' Character ' Table With Default Value = ' 0 '

Code:

UPDATE Character
SET clevel = 1, Experience = 0, LevelUpPoint = LevelUpPoint + (350 * (Reset + 1)), Money = Money - (50000000 * (Reset + 1)), Strength = 26, Dexterity = 26, Vitality = 26, Energy = 26, Inventory = NULL, MagicList = NULL, MapNumber = 0, MapPosX = 130, MapPosY = 130, PkTime = 0, PkCount = 0, PkLevel = 3, Reset = Reset + 1
FROM Character JOIN MEMB_STAT ON Character.AccountID = MEMB_STAT.memb___id
COLLATE Latin1_general_CI_AI
WHERE ((class = 48) OR (class = 64)) AND (clevel >= 350) AND (Money >= (50000000 * (Reset + 1))) AND (ConnectStat = 0);
 
DarkSoul_Gr said:
This Guide will show you how to make an AutoReset Script using SQL Server Agent.To create a new job go to: Start>All Programmes>Microsoft SQL Server>Enterprise Manager...Then Find "Management" Double Click there and then double click to SQL Server Agent.Then Right Click on "Jobs" and select "New Job..." , Name It "AutoReset" , Category: [Uncategorized (Local)] and Owner "sa" and Description: "AutoResetSciprt".Then Click in "Steps" and press "New..." ,Then put as Step Name: "AutoReset" and Type: "Transact-SQL Script (TSQL) and Database: "MuOnline".Then as Command you have to put the Codes given below.After that you have inserted the Code press "Apply" and "Ok".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)" and then select "Occurs every" and change "1 Hour(s) to 1 Minute(s)" 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.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 = 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 = 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 = LevelUpPoint + (350 * (Reset + 1)), Money = Money - (50000000), Strength = 22, Dexterity = 25, Vitality = 20, Energy = 15, Inventory = NULL, MagicList = NULL, MapNumber = 3, 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 = 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) OR (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.
All Credits Goes To Me Dark-Soul/DarkSoul_Gr [Created On Jonh_D's Official Forum].
Great work but i have dl too and i want res lvl 380 with 1k bonus/each reset , can you help me ? plz i need this
 
hey um how do I make it so that their stats dont go back to normal, they stay the same and they keep everything they have?
 
Re: [Guide] AutoReset Script+Full Details!

Just So All Noobs In This Thread Know That The Last Mg Auto Reset Script Is Also For Dark Lord Therefore Dont Ask Stupid Questions Like Can You Create Script For Dark Lord...
 
Re: [Guide] AutoReset Script+Full Details!

pliz help me

I want this script but where there is a script for reset in site?(MG ICE web 0.8) I want off script in site and add scrip in SQL JOB

Reset lvl: 1 res '301'
Reset lvl: 2 res '321'
Reset lvl: 3 res '351'
Reset lvl: 4 res '381'
Reset lvl: 5 res '400'

DK/BK, DW/SM, FE/ME Reset point: '500'
MG, DL. Reset point: '650'

Reset money: 90'000'000 zen

Vault: 'NOT NULL'
Inventoty: 'NOT NULL'
MagicList: 'NOT NULL'
Quest: 'NOT NULL' (Обнуление)
Class: 'NOT NULL' (Обнуление)

Stat RESET + bonus point and add DK/BK, DW/SM, FE/ME Reset point: '500'
MG, DL. Reset point: '650'

(Thanks) Sorry my bad english ( Russian )
 
Re: [Guide] AutoReset Script+Full Details!

please,

how i make
IF Inventory not Null then no reset
If Inventory nul, reset pleaseeee
 
Back