Wouldn't that restart the timer each reboot?
Could I just add the script to a bell ringer?
I have one of those.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (nHour==0 && GetLocalInt(OBJECT_SELF,"Called_Time")!=nHour)
{
SetLocalInt(OBJECT_SELF,"Called_Time",0);
// ** Execute script here?? **//
DelayCommand(0.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(2.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(4.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(6.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(8.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(10.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(12.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(14.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(16.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(18.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(20.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
DelayCommand(22.0,AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2")));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Thanks for opening my eyes to that.
It seems so simple now.
How would I format an if statement to check for the date?
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//If item is a bond
if (sBondCheckString == "bond")
{
//check for date here
if (iDSixPosTagSum >= 50)
{
//Generate new item tag from list at stocks_inc_const
string sItem = "sStock50";
//get "player" and "tag" from "temp_vault"
string sSQLx = "SELECT player, tag FROM temp_vault Where columnid = " + sRowCount;
SQLExecDirect(sSQLx);
SQLFetch();
string sPlayerLoginID = SQLGetData(1);
string sPlayerCharacterName = (SQLGetData(2));
//Put the new item in "vault_items"
string sSQLw = "insert into vault_items (player, tag, container, item, count, identified)VALUES('"+ sPlayerLoginID +"','"+ sPlayerCharacterName +"','" + sVaultTag +"','" + sItem +"', 1, 1)";
SQLExecDirect(sSQLw);
}
else
{
//Generate new item tag from list at stocks_inc_const
string sItem = "sStock" + sDSixPosTagSum;
//get "player" and "tag" from "temp_vault"
string sSQLx = "SELECT player, tag FROM temp_vault Where columnid = " + sRowCount;
SQLExecDirect(sSQLx);
SQLFetch();
string sPlayerLoginID = SQLGetData(1);
string sPlayerCharacterName = (SQLGetData(2));
//Put the new item in "vault_items"
string sSQLw = "insert into vault_items (player, tag, container, item, count, identified)VALUES('"+ sPlayerLoginID +"','"+ sPlayerCharacterName +"','" + sVaultTag +"','" + sItem +"', 1, 1)";
SQLExecDirect(sSQLw);
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Thanks again!