22 lines
672 B
Plaintext
22 lines
672 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name
|
|
//:: FileName
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Decrement the count of the pack the owner will next
|
|
access (the "nearest" pack).
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Rogers Pessin (Tigsen)
|
|
//:: Created On: August 4, 2002
|
|
//:://////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
int iNearestPack = GetLocalInt(OBJECT_SELF,"RP_PACK_NEAREST");
|
|
iNearestPack--;
|
|
if (iNearestPack<1) iNearestPack = GetLocalInt(OBJECT_SELF,"RP_PACK_COUNT");
|
|
SetLocalInt(OBJECT_SELF,"RP_PACK_NEAREST",iNearestPack);
|
|
}
|