/////////////////////////////////////////////////////////////////////////// // Copyright (C) Wizardry and Steamworks 2011 - License: GNU GPLv3 // // Please see: http://www.gnu.org/licenses/gpl.html for legal details, // // rights of fair usage, the disclaimer and warranty conditions. // /////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////// // CONFIGURATION // ////////////////////////////////////////////////////////// // // // A string that represents the message that will get // to the receiver of the payment. The tokens in the // strings are special: %n% will get replaced with the // receiver's name, %m% will get replaced with the // owner of this script and %d% will be replaced with // the date when this script will run. string CUSTOM_PAYMENT_MESSAGE = "Hello, %n%! I am was scheduled on %d% to send you money on behalf of %m%. Please standby for payment..."; // Set this to 1 to make this script every month on the // day specified in the "Timed Payments" notecard. For // example if you have 2011-12-26 as date in the notecard // then if you set REOCURRING_PAYMENTS to 1, the script // will make a payment every month on the 26th. integer REOCURRING_PAYMENTS = 1; // // // END CONFIGURATION // ////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// // INTERNALS // /////////////////////////////////////////////////////////////////////////// key pQuery = NULL_KEY; integer pLine = 0; list payLog = []; list payList = []; integer nRun = 0; string tokenSubstitute(string input, key id) { list kSubst = llParseString2List(input, ["%"], [""]); integer itra; for(itra=0; itra