Метод | Описание | |
---|---|---|
ACR_AsyncSQLQuery ( string Query ) : void |
Perform an asynchronous database query. The query is added to the module object's query queue.
|
|
ACR_AsyncSQLQueryEx ( string Query, |
Perform an asynchronous database query. The query is added to a specific object's query queue (must be a PC or the module).
|
|
ACR_ConvertDatabaseStringToBoolean ( string Str ) : bool |
Convert a database string to a Boolean value.
|
|
ACR_DeletePersistentVariable ( |
Delete a persistent record.
|
|
ACR_FlushAllQueryQueues ( ) : void |
Flush all query queues in the system out to the database.
|
|
ACR_FlushQueryQueue ( uint ObjectToFlush ) : void |
This routine flushes the query queue for an object. It is useful, for example, in server portal scenarios. Normally, the query queue is flushed automatically.
|
|
ACR_GetBuildDate ( ) : string |
Get the build date of the module OnLoad script (i.e. the time at which the module had its scripts nominally compiled).
|
|
ACR_GetCharacterID ( |
This routine returns the database character ID for a player given their PC object id.
|
|
ACR_GetHAKBuildDate ( ) : string |
Get the build date of the HAK version check script (i.e. the time at which the ACR HAK had its scripts nominally compiled).
|
|
ACR_GetHAKVersion ( ) : string |
Get the version string of the ACR release that the HAK corresponds to. For example, "1.84".
|
|
ACR_GetIsMember ( |
Returns whether a PC is a fully approved ALFA member (vs. a new account that might be a throw-away, etc.).
|
|
ACR_GetIsPCQuarantined ( |
Return whether a PC is quarantined.
|
|
ACR_GetPCLocalFlags ( |
Return the current PC local flags value for a PC.
|
|
ACR_GetPersistentFloat ( |
Retrieve a float from the persistent store.
|
|
ACR_GetPersistentInt ( |
Retrieve an int from the persistent store.
|
|
ACR_GetPersistentLocation ( |
Retrieve a location from the persistent store.
|
|
ACR_GetPersistentString ( |
Retrieve a string from the persistent store.
|
|
ACR_GetPersistentVector ( |
Retrieve a vector from the persistent store.
|
|
ACR_GetPlayerID ( |
This routine returns the database player ID for a player given their PC object id.
|
|
ACR_GetServerAddressFromDatabase ( ) : string |
This routine queries the database in order to return the public IP address of the game server host.
|
|
ACR_GetServerID ( ) : int |
This routine returns the database server ID of the current server.
|
|
ACR_GetVersion ( ) : string |
Get the version string of the ACR release that the module was compiled against. For example, "1.84".
|
|
ACR_IncrementStatistic ( string Statistic ) : void |
Increment a global tracking statistic counter stored in the database (if statistic tracking was enabled).
|
|
ACR_IsServerAdmin ( |
This routine determines whether a player is a server admin for the current server.
|
|
ACR_LocationToString ( NWScript.NWScriptEngineStructure2 Location ) : string |
This routine packages a location object into a string.
|
|
ACR_LogEvent ( uint Character, string EventName, string EventDescription, uint DM ) : void |
Log an event to the database log.
|
|
ACR_PCSave ( uint PCToSave, bool Export, bool SaveLocation ) : void |
This routine performs a character save.
|
|
ACR_PCUpdateStatus ( uint PCToUpdate, bool UpdateLocation ) : void |
This method updates regularly-saved persistent information.
|
|
ACR_PPSValidatePC ( uint PCToValidate ) : void |
This routine validates a character from quarantine.
|
|
ACR_RestOnClientEnter ( uint PCToRest ) : void |
This method calculates offline resting for a PC after logging in.
|
|
ACR_RunScriptOnServer ( int DestinationServerID, string ScriptName, string ScriptArgument ) : bool |
Run a script on a remote server. The script must exist on the server. If acknowledgement is desired, it must be implemented in the form of a reply IPC request initiated by the script invoked. A script executed by this function must follow this prototype: void main(int SourceServerID, string Argument);
|
|
ACR_SQLEncodeSpecialChars ( string s ) : string |
This routine escapes characters for a SQL query.
|
|
ACR_SQLExecute ( string SQL ) : void |
This routine performs a synchronous SQL query. If there were pending asynchronous queries in the queue, the pending queries are drained first. The query must not return any results.
|
|
ACR_SQLFetch ( ) : bool |
This routine fetches the next rowset from the database.
|
|
ACR_SQLGetAffectedRows ( ) : int |
This routine returns the number of rows affected by a query.
|
|
ACR_SQLGetData ( ) : string |
This routine returns the first column of data from the current SQL rowset.
|
|
ACR_SQLGetData ( int ColumnIndex ) : string |
This routine returns the specified column of data from the current SQL rowset.
|
|
ACR_SQLQuery ( string SQL ) : void |
This routine performs a synchronous SQL query. If there were pending asynchronous queries in the queue, the pending queries are drained first.
|
|
ACR_SetPCLocalFlags ( |
Assigns the current PC local flags value for a PC.
|
|
ACR_SetPersistentFloat ( |
Set a floating point value in the persistent store.
|
|
ACR_SetPersistentInt ( |
Set an integer value in the persistent store.
|
|
ACR_SetPersistentLocation ( |
Set a vector value in the persistent store.
|
|
ACR_SetPersistentString ( |
Set a string value in the persistent store.
|
|
ACR_SetPersistentVector ( |
Set a vector value in the persistent store.
|
|
ACR_StringToLocation ( string sLocation ) : NWScript.NWScriptEngineStructure2 |
This routine converts a string to a location.
|
|
ACR_StringToLocationData ( string sLocation ) : LOCATION_DATA |
This routine converts a string to its component location data fields.
|
|
ACR_StringToVector ( string sVector ) : System.Vector3 |
Convert a string to a vector.
|
|
ACR_VectorToString ( System.Vector3 v ) : string |
This routine packages a vector into a string.
|
|
ACR_XPOnClientLoaded ( uint PCToXP ) : void |
This method calculates RPXP for the last playing session.
|
|
Database ( |
Create a new database object (which can be shared by multiple script objects).
|
Метод | Описание | |
---|---|---|
DemandInitialize ( ) : void |
This method performs demand initialization of the database system on the first database call.
|
|
RegisterScriptSituationDelegate ( IGeneratedScriptProgram DelegateScript ) : void |
This method sets the user's script object to delegate unrecognized script situations to the NWScript library script, allowing a delay continuation started by called NWScript code to function properly.
|
public ACR_AsyncSQLQuery ( string Query ) : void | ||
Query | string | Supplies the query string. |
Результат | void |
public ACR_AsyncSQLQueryEx ( string Query, |
||
Query | string | Supplies the query string. |
QueueTo | Supplies the object to queue the query to, /// which should be a PC or the module object. | |
Flags | ACR_QUERY_FLAGS | Supplies query flags. |
Результат | void |
public static ACR_ConvertDatabaseStringToBoolean ( string Str ) : bool | ||
Str | string | Supplies the database string. |
Результат | bool |
public ACR_DeletePersistentVariable ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to remove. /// |
Результат | void |
public ACR_FlushQueryQueue ( uint ObjectToFlush ) : void | ||
ObjectToFlush | uint | Supplies the object whose query queue /// should be flushed. |
Результат | void |
public ACR_GetCharacterID ( |
||
PCObject | Supplies the object ID of the player to /// query. | |
Результат | int |
public ACR_GetIsMember ( |
||
PCObject | Supplies the PC object. | |
Результат | bool |
public ACR_GetIsPCQuarantined ( |
||
PCObject | Supplies the PC object. | |
Результат | bool |
public ACR_GetPCLocalFlags ( |
||
PCObject | Supplies the PC object. | |
Результат | int |
public ACR_GetPersistentFloat ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to query. |
Результат | float |
public ACR_GetPersistentInt ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to query. |
Результат | int |
public ACR_GetPersistentLocation ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to query. |
Результат | NWScript.NWScriptEngineStructure2 |
public ACR_GetPersistentString ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to query. |
Результат | string |
public ACR_GetPersistentVector ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to query. |
Результат | System.Vector3 |
public ACR_GetPlayerID ( |
||
PCObject | Supplies the object ID of the player to /// query. | |
Результат | int |
public ACR_GetServerAddressFromDatabase ( ) : string | ||
Результат | string |
public ACR_IncrementStatistic ( string Statistic ) : void | ||
Statistic | string | Supplies the counter name. |
Результат | void |
public ACR_IsServerAdmin ( |
||
PCObject | Supplies the object ID of the player to /// query. | |
Результат | bool |
public ACR_LocationToString ( NWScript.NWScriptEngineStructure2 Location ) : string | ||
Location | NWScript.NWScriptEngineStructure2 | Supplies the location to convert. |
Результат | string |
public ACR_LogEvent ( uint Character, string EventName, string EventDescription, uint DM ) : void | ||
Character | uint | Supplies an optional character that is /// associated with the log event, else OBJECT_INVALID if none. |
EventName | string | Supplies the log event name. |
EventDescription | string | Supplies the log event description. /// |
DM | uint | Supplies an optional DM character that is /// associated with the log event, else OBJECT_INVALID if none. |
Результат | void |
public ACR_PCSave ( uint PCToSave, bool Export, bool SaveLocation ) : void | ||
PCToSave | uint | Supplies the object id of the player to /// save. |
Export | bool | If true, save the character file to disk too. /// |
SaveLocation | bool | If true, update the location of the /// player in the database. |
Результат | void |
public ACR_PCUpdateStatus ( uint PCToUpdate, bool UpdateLocation ) : void | ||
PCToUpdate | uint | the PC to be updated |
UpdateLocation | bool | whether or not to also update location |
Результат | void |
public ACR_PPSValidatePC ( uint PCToValidate ) : void | ||
PCToValidate | uint | |
Результат | void |
public ACR_RestOnClientEnter ( uint PCToRest ) : void | ||
PCToRest | uint | the PC to be rested |
Результат | void |
public ACR_RunScriptOnServer ( int DestinationServerID, string ScriptName, string ScriptArgument ) : bool | ||
DestinationServerID | int | Supplies the destination server /// ID. |
ScriptName | string | Supplies the name of the script. |
ScriptArgument | string | Supplies an optional argument to pass /// to the script. |
Результат | bool |
public ACR_SQLEncodeSpecialChars ( string s ) : string | ||
s | string | Supplies the string to escape. |
Результат | string |
public ACR_SQLExecute ( string SQL ) : void | ||
SQL | string | Supplies the SQL query text to execute. |
Результат | void |
public ACR_SQLGetData ( int ColumnIndex ) : string | ||
ColumnIndex | int | Supplies the zero-based column index to /// retrieve. |
Результат | string |
public ACR_SQLQuery ( string SQL ) : void | ||
SQL | string | Supplies the SQL query text to execute. |
Результат | void |
public ACR_SetPCLocalFlags ( |
||
PCObject | Supplies the PC object. | |
Flags | int | Supplies the new Local Flags value. |
Результат | void |
public ACR_SetPersistentFloat ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to set. |
Value | float | Supplies the variable data. |
Результат | void |
public ACR_SetPersistentInt ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to set. |
Value | int | Supplies the variable data. |
Результат | void |
public ACR_SetPersistentLocation ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to set. |
Value | NWScript.NWScriptEngineStructure2 | Supplies the variable data. |
Результат | void |
public ACR_SetPersistentString ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to set. |
Value | string | Supplies the variable data. |
Результат | void |
public ACR_SetPersistentVector ( |
||
Object | Supplies the object whose persistent store is /// to be accessed. | |
VarName | string | Supplies the variable keyword to set. |
Value | System.Vector3 | Supplies the variable data. |
Результат | void |
public ACR_StringToLocation ( string sLocation ) : NWScript.NWScriptEngineStructure2 | ||
sLocation | string | Supplies the string to convert. |
Результат | NWScript.NWScriptEngineStructure2 |
public ACR_StringToLocationData ( string sLocation ) : LOCATION_DATA | ||
sLocation | string | Supplies the string to convert. |
Результат | LOCATION_DATA |
public ACR_StringToVector ( string sVector ) : System.Vector3 | ||
sVector | string | Supplies the string to convert. |
Результат | System.Vector3 |
public ACR_VectorToString ( System.Vector3 v ) : string | ||
v | System.Vector3 | Supplies the vector to convert. |
Результат | string |
public ACR_XPOnClientLoaded ( uint PCToXP ) : void | ||
PCToXP | uint | the PC to XP |
Результат | void |
public Database ( |
||
ScriptBase | Supplies the associated script base class /// object, used to access script APIs. | |
Результат | System |