Author Topic: ULXv2 Cleaner  (Read 9640 times)

0 Members and 1 Guest are viewing this topic.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
ULXv2 Cleaner
« on: September 02, 2006, 12:34:37 PM »
This is the same as my other cleaning script, but converted to work with ULX v2.

--Original Thread--

Since no others worked for me, I made this. It cleans the server really.
Say 'ulx clean' or !clean to delete everything in the server
Say a keyword after 'ulx clean' to clean just that thing.

'ulx clean' ragdolls will remove all ragdolls

If you forget a type, just say !clean help and it will show you ingame.

Keywords:

NPCs
Ragdolls
Effects
Props
Balloons
Thrusters
Ropes
Emitters
Flares
Flames
Dynamite
Vehicles
Sparks
Wheels
Decals
Welds
Ballsockets
Sliders
Lamps
Magnets
Help - Shows the help + types

Version 2:
Now removes:
Wheels
Decals
Welds
Ballsockets
Sliders
Lamps
Magnets

Version 3:
Converted to ULX v2
Removes cannisters

http://ulyssesmod.net/gd/cleaner2.html
« Last Edit: December 18, 2006, 07:01:33 PM by Golden-Death »


Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULXv2 Cleaner
« Reply #1 on: September 02, 2006, 06:30:48 PM »
Hey GD. Great!
The concommand help in the script, and the text you posted on how to use, both say the underscore/line "_" is needed.
Would it not be "ulx clean blah" now?
I'll test if I get a chance.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: ULXv2 Cleaner
« Reply #2 on: September 02, 2006, 06:38:55 PM »
Whoops, sorry yeah theres a space.


Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULXv2 Cleaner
« Reply #3 on: September 02, 2006, 06:54:07 PM »
I make the suggestion that in a future version it default to showing the help instead of defaulting to 'all' when nothing else is typed after "ulx clean". :)
 I only made the mistake once, but had other admins new to the command do the same, remove all items when expecting the help to show.
 
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given