mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-04-27 23:15:03 +00:00
Initial commit.
This commit is contained in:
commit
9a05e8d86c
652 changed files with 154587 additions and 0 deletions
28
scripts/autoexec/cleanDSO.cs
Normal file
28
scripts/autoexec/cleanDSO.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
// #autoload
|
||||
// #name = cleanDSO
|
||||
// #version = 1.0
|
||||
// #date = December 21, 2001
|
||||
// #author = Paul Tousignant
|
||||
// #warrior = UberGuy (FT)
|
||||
// #email = uberguy@skyreach.cas.nwu.edu
|
||||
// #web = http://scripts.tribalwar.com/uberguy
|
||||
// #description = Remove all your *.dso files every time you exit T2.
|
||||
// #status = beta
|
||||
|
||||
package noDso {
|
||||
function quit() {
|
||||
%cnt = 0;
|
||||
%tmpObj = new ScriptObject() {};
|
||||
for(%file = findFirstFile("*.dso"); %file !$= ""; %file = findNextFile("*.dso")) {
|
||||
%tmpObj.file[%cnt++] = %file;
|
||||
}
|
||||
for (%i=0; %i<%cnt; %i++) {
|
||||
deleteFile(%tmpObj.file[%i]);
|
||||
}
|
||||
%tmpObj.delete();
|
||||
|
||||
return parent::quit();
|
||||
}
|
||||
};
|
||||
activatePackage(noDso);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue