def sendToEndpoint(endpoint, body): remoteCall("EventNotifications.Script.dll", "SendToEndpoint", endpoint, body)
def OnSessionChanged(self, isRemote, session, change): if self.loggedInCharacter != session.charid: self.loggedInCharacter = session.charid characterName = getCharacterName(session.charid) remoteCall("common.script.dll", "LoggedInCharacterChanged", characterName)
def send(endpoint, text): remoteCall("JabberGateway.Script.dll", "Send", str(endpoint), str(text))
def DefineEvent(eventName): remoteCall("EventNotifications.Script.dll", "DefineEvent", eventName)
def createTable(name, tableDef): return remoteCall("Common.Script.dll", "CreateDBTable", name, tableDef, async=True)
def query(sql, *args): return remoteCall("Common.Script.dll", "ExecuteSQL", sql, *args, async=True)
def attachDatabase(filename, attachAs): return remoteCall("Common.Script.dll", "AttachDB", filename, attachAs, async=True)