38 lines
898 B
Plaintext
38 lines
898 B
Plaintext
void RemoveGlow(object oAlter)
|
|
{
|
|
effect eGlow = EffectVisualEffect(VFX_DUR_GLOW_RED);
|
|
RemoveEffect(oAlter, eGlow);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
object oThief = GetLastClosedBy();
|
|
object oAlter = GetObjectByTag("DROWALTER");
|
|
object oBook = GetFirstItemInInventory(OBJECT_SELF);
|
|
object oO = GetObjectByTag("BOOK_O TAG",0);
|
|
object oP = GetObjectByTag("BOOK_P TAG",0);
|
|
object oE = GetObjectByTag("BOOK_E TAG",0);
|
|
object oN = GetObjectByTag("BOOK_N TAG",0);
|
|
location oLoc = GetLocation(GetWaypointByTag("WAYPOINT TAG"));
|
|
|
|
if ((oBook == oN) && (GetIsObjectValid(oBook)))
|
|
{
|
|
oBook = GetNextItemInInventory(OBJECT_SELF);
|
|
if ((oBook == oE) && (GetIsObjectValid(oBook)))
|
|
{
|
|
oBook = GetNextItemInInventory(OBJECT_SELF);
|
|
if ((oBook == oP) && (GetIsObjectValid(oBook)))
|
|
{
|
|
oBook = GetNextItemInInventory(OBJECT_SELF);
|
|
if ((oBook == oO) && (GetIsObjectValid(oBook)))
|
|
{
|
|
SetLocked(oAlter, FALSE);
|
|
RemoveGlow(oAlter);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|