28 lines
852 B
Plaintext
28 lines
852 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: FileName resref
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Script Wizard
|
|
//:: Created On: 2/18/03 2:54:15 AM
|
|
//:://////////////////////////////////////////////
|
|
int StartingConditional()
|
|
{
|
|
int iResult = TRUE;
|
|
object oLecturn = GetNearestObjectByTag("ASG_LECTURN",OBJECT_SELF);
|
|
if (GetIsObjectValid(oLecturn))
|
|
{
|
|
// Look for alchemy book
|
|
object oItem = GetFirstItemInInventory(oLecturn);
|
|
if (GetIsObjectValid(oItem))
|
|
{
|
|
string sTagLeft6 = GetStringLeft(GetTag(oItem),6);
|
|
if (sTagLeft6=="ASG_MT")
|
|
{
|
|
iResult = FALSE;
|
|
SetCustomToken(1970000,GetName(oItem));
|
|
}
|
|
}
|
|
}
|
|
return iResult;
|
|
}
|