Da 0wner
2009-02-03 19:18:52
DaInclude is a include I am working on.
It will be very good and cool with useful functions.
No files are currently released. Keep an eye here for when they are!
This project is currently on hold until furher notice!
Sorry for an inconvenience caused.
Function List
Note: Subject to Change
RC Routines DaInclude/RC.scar
SetRCMaster(Username, Password : string); Complete
Sets the RC username and password. This is the only account that can send messages to the bot and execute the command.
Note: The password in this function is NOT the password of the account. It is used for verification so a person that has access to your account can not control the bot.
CheckRC(AllowSetVar, AllowSay, AllowLogoff, AllowGetVar : boolean); Complete
Checks if an RC command has been sent by the RC master player and if it has been sent and the command is allowed it will execute it and send a message back.
RC Commands
SetVar(Varname, SetTo) Complete
Say(SayWhat) Complete
Logoff() Complete
GetVar(Varname) Complete
Verify(Password) Complete
Reset() Complete
Sleep(HowManyMins) Complete (Idea by Baked0420)
Repository Routines DaInclude/Repository.scar
DownloadFullRepository(RepositoryURL, InstallPath : string) : boolean; Complete
Downloads the whole repository and all subfolders to the install path.
DownloadRepositoryFile(FileURL, InstallPath : string) : boolean; Complete
Downloads a single file from the repository.
DownloadRepositoryFolder(FolderURL, InstallPath : string) : boolean; Complete
Downloads a single folder and subfolders in that folder to the install path.
CheckRepositoryRevision(RepositoryURL, CurrentRevision : string) : boolean; Incomplete
Checks the revision of the repository specified and compares to the current revision. If the head revision is bigger then the current revision returns false. If the head revision is lower than the CurrentRevision or the head revision is the same than CurrentRevision it returns true.
Misc Routines DaInclude/Misc.scar
Count(s1 : s2 : string) : integer; Complete
Counts how many times s1 is in s2 and returns the amount.
GetLastPM(Sender : boolean) : string; Complete
If sender is true it will return only the sender of the last PM, if it is false it will return only the text of the last PM.
Browse : string; Complete
Opens a browse window and returns the filename of the selected file.
DTMLib Routines DaInclude/DTMLib.scar
The libraries talked about in this routine will be created with a DTM Library Manager created by me. It will have the ability to import and export libraries as well as editing them. Scripts can share libraries.
GetDTM(LibraryPath, DTMCategory, DTMName : string) : integer; Incomplete
Returns the DTM specified in the library specified.
SetDTM(LibraryPath, DTMCategory, DTMName, DTM : string); Incomplete
Sets the specifed DTM in the library specified to the DTM specified. Will create it if not already made, otherwise will replace it. If libary dosen't exist it will create a new one.
RemoveDTM(LibraryPath, DTMCategory, DTMName : string); Incomplete
Removes the specified DTM in the library specified.
Reflection Routines DaInclude/Reflection.scar
WalkPath(Path : TPointArray); Complete
Walks the specified path.
SetPath; Incomplete
This procedure should not be used in scripts! For script makers only. It is a function that will create a path and write all the points in the debug when user presses F1 and will stop when F2 is pressed.
It will be very good and cool with useful functions.
No files are currently released. Keep an eye here for when they are!
This project is currently on hold until furher notice!
Sorry for an inconvenience caused.
Function List
Note: Subject to Change
RC Routines DaInclude/RC.scar
SetRCMaster(Username, Password : string); Complete
Sets the RC username and password. This is the only account that can send messages to the bot and execute the command.
Note: The password in this function is NOT the password of the account. It is used for verification so a person that has access to your account can not control the bot.
CheckRC(AllowSetVar, AllowSay, AllowLogoff, AllowGetVar : boolean); Complete
Checks if an RC command has been sent by the RC master player and if it has been sent and the command is allowed it will execute it and send a message back.
RC Commands
SetVar(Varname, SetTo) Complete
Say(SayWhat) Complete
Logoff() Complete
GetVar(Varname) Complete
Verify(Password) Complete
Reset() Complete
Sleep(HowManyMins) Complete (Idea by Baked0420)
Repository Routines DaInclude/Repository.scar
DownloadFullRepository(RepositoryURL, InstallPath : string) : boolean; Complete
Downloads the whole repository and all subfolders to the install path.
DownloadRepositoryFile(FileURL, InstallPath : string) : boolean; Complete
Downloads a single file from the repository.
DownloadRepositoryFolder(FolderURL, InstallPath : string) : boolean; Complete
Downloads a single folder and subfolders in that folder to the install path.
CheckRepositoryRevision(RepositoryURL, CurrentRevision : string) : boolean; Incomplete
Checks the revision of the repository specified and compares to the current revision. If the head revision is bigger then the current revision returns false. If the head revision is lower than the CurrentRevision or the head revision is the same than CurrentRevision it returns true.
Misc Routines DaInclude/Misc.scar
Count(s1 : s2 : string) : integer; Complete
Counts how many times s1 is in s2 and returns the amount.
GetLastPM(Sender : boolean) : string; Complete
If sender is true it will return only the sender of the last PM, if it is false it will return only the text of the last PM.
Browse : string; Complete
Opens a browse window and returns the filename of the selected file.
DTMLib Routines DaInclude/DTMLib.scar
The libraries talked about in this routine will be created with a DTM Library Manager created by me. It will have the ability to import and export libraries as well as editing them. Scripts can share libraries.
GetDTM(LibraryPath, DTMCategory, DTMName : string) : integer; Incomplete
Returns the DTM specified in the library specified.
SetDTM(LibraryPath, DTMCategory, DTMName, DTM : string); Incomplete
Sets the specifed DTM in the library specified to the DTM specified. Will create it if not already made, otherwise will replace it. If libary dosen't exist it will create a new one.
RemoveDTM(LibraryPath, DTMCategory, DTMName : string); Incomplete
Removes the specified DTM in the library specified.
Reflection Routines DaInclude/Reflection.scar
WalkPath(Path : TPointArray); Complete
Walks the specified path.
SetPath; Incomplete
This procedure should not be used in scripts! For script makers only. It is a function that will create a path and write all the points in the debug when user presses F1 and will stop when F2 is pressed.