Initial Upload
Initial Upload
This commit is contained in:
23
_module/nss/asg_rarcopen.nss
Normal file
23
_module/nss/asg_rarcopen.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name OnOpen Create Random Arcane Book Once/Day
|
||||
//:: FileName asg_rdivopen
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
to be placed on a Contaiers - On Open scropt.
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Donny Wilbanks
|
||||
//:: Created On: 4/28/03
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
int iNow = (10000*GetCalendarYear())+(1000*GetCalendarMonth())+(100*GetCalendarDay())+GetTimeHour();
|
||||
int iLast = GetLocalInt(OBJECT_SELF,"ASG_LASTOPENED");
|
||||
if (iNow>=iLast)
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF,"ASG_LASTOPENED",iNow+24);
|
||||
ExecuteScript("asg_racanebk",OBJECT_SELF);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user