Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-08-08 16:22:17 -04:00
parent 51a2a1286e
commit 22947ad4b6
6511 changed files with 6765205 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
//::///////////////////////////////////////////////
//:: Store Open Script
//:: asg_radvopen
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Recommend keeping this Merchant his own store, books only.
*/
//:://////////////////////////////////////////////
//:: Created By: Donny Wilbanks
//:: Created On: 4/27/03
//:://////////////////////////////////////////////
void main()
{
object oStore = OBJECT_SELF;
int iNow = (10000*GetCalendarYear())+(1000*GetCalendarMonth())+(100*GetCalendarDay())+GetTimeHour();
int iLast = GetLocalInt(oStore,"ASG_LASTOPENED");
if (iNow>=iLast)
{
SetLocalInt(oStore,"ASG_LASTOPENED",iNow+24);
int iK;
// Clean out Book Store
object oItem = GetFirstItemInInventory(oStore);
while (GetIsObjectValid(oItem))
{
DestroyObject(oItem);
oItem = GetNextItemInInventory(oStore);
}
// Add 5 Books from Arcane, Add 5 Books from the Divine.
// Add Arcane Books
for (iK=0;iK<=4;iK++)
{
ExecuteScript("asg_racanebk",oStore);
}
// Add Divine Books
for (iK=0;iK<=4;iK++)
{
ExecuteScript("asg_rdivinebk",oStore);
}
}
}