#permission=255

// PSEUWOW DEF_SCRIPT STARTUP FILE

OUT * DefScript StartUp [${@version_short}]...

// preload the script here, however its not important to load it now. it will get
// loaded automatically if needed
loaddef _enterworld
loaddef _onwhisper
loaddef _nopermission
loaddef _setconf
loaddef yell
loaddef say
loaddef whisper
loaddef outv
loaddef sayv
loaddef reply
loaddef quit
// ...

// remove dangerous variables
OUT * Cleaning up variables...
UNSET #ACCPASS
UNSET #ACCNAME
OUT * Dangerous variables removed.


OUT * Assigning permissions for internal functions...

// this is important because players could reset permissions for dangerous functions
SETSCRIPTPERMISSION,setscriptpermission 255

SETSCRIPTPERMISSION,out 0
SETSCRIPTPERMISSION,set 255
SETSCRIPTPERMISSION,default 255
SETSCRIPTPERMISSION,unset 255
SETSCRIPTPERMISSION,shdn 255
SETSCRIPTPERMISSION,loaddef 255
SETSCRIPTPERMISSION,reloaddef 255
SETSCRIPTPERMISSION,pause 255
SETSCRIPTPERMISSION,emote 0
SETSCRIPTPERMISSION,savecache 10
SETSCRIPTPERMISSION,sendchatmessage 255

OUT * Permissions set.




// do more stuff here in future...

OUT * StartUp complete!

