9. File Operations
The commands manipulate files through the use of NPCs.
play filename; plays a sound file or whatever can be played - This will start any file that windows media player can read.
if (playerenters){
  play djshadow.mp3;
}
Plays the mp3, djshadow.mp3 when the player enters the level.
playlooped filename; plays a sound file (*.wav) looped - This will play the specified wav file endlessly.
if (created){ 
  playlooped sword.wav
}
Plays the wav file "sword.wav" in a loop when the NPC is created.
stopsound filename;  stops playing a sound file (*.wav) - This ends the endless loop of a wav.
if (washit){ 
  stopsound sword.wav
}
Ends the loop of the file "sword.wav".
stopmidi; stops playing the currently running midi file - If a midi is currently looping, this will stop it.
if (playerenters){
  stopmidi;
}
When the player enters the level, the currently playing midi will be stopped.
openurl URL; opens the given URL in the default web browser (without the leading http://!) - Displays a web page.
if (playertouchsme){
  openurl www.graalonline.com;
}
Will displayer GraalOnline's home page when the NPC is touched.
openurl2 URL,width,height; opens an url in a window - This opens the URL faster than "openurl" and you can specify the window size.  Don't put an "http://" at the beginning of the URL.
if (playertouchsme){
  openurl2 www.yahoo.com,480,640;
}
Will open Yahoo!'s homepage in a window that is 480x640 pixels large.
showfile filename; opens the file with the program associated with the file extension - Opens the specified file using the program that is associated with the file extension.
if (playertouchsme){
  showfile me2.jpg;
}
Will show the file me2.jpg, using the program associated with .jpg.