- Go to: Start -> All Programs -> Microsoft SQL Server -> Enterprise Manager.
--- Open tree like this: Microsoft SQL Servers -> SQL Server Group -> (local) (Windows NT) -> Management.
--
- Right Click in SQL Server Agent -> Start.
- Open open tree: SQL Server Agent -> Jobs.
--- Right click in the blank space at the right and choose New Job...
--
- Name: AutoPkClear
- Owner: Select sa
--- Select Steps at the Top.
- Click New... at the bottom.
- Step Name: AutoPkClear.
- Database: MuOnline
- Command:
Code:UPDATE Character SET PkLevel = ('0') , PkTime = ('0') , PkCount = ('0') WHERE PkLevel>2- Click: Parse, Apply, Ok.
--- Select Schedules at the top.
- Click New Schedule... at the bottom.
- Name: AutoPkClear.
- Click Change..., right bottom.
- Occurs: Select Daily.
- Daily Frequency: Select Occurs every.
- Where: Hours select Minutes.
- Click: Ok 2 times.
- Click: Apply then Ok.
--- You have already done AutoPkClear every 1 minutes when some1 is Phono , you can use this script in any muserver version. Have Fun!!



Reply With Quote

