generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
29
_module/nss/pl_stake_chk.nss
Normal file
29
_module/nss/pl_stake_chk.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Check if Speaker has a stake
|
||||
//:: pl_stake_chk
|
||||
//:: Copyright (c) 2003 Joseph L. Berkley, Jr.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
return TRUE if Speaker has a stake
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Joseph L. Berkley, Jr.
|
||||
//:: Created On: 6 March 2003
|
||||
//:://////////////////////////////////////////////
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oItem = GetFirstItemInInventory( oPC );
|
||||
string sTag;
|
||||
int bFound = FALSE;
|
||||
|
||||
while( GetIsObjectValid( oItem ) && !bFound )
|
||||
{
|
||||
sTag = GetTag( oItem );
|
||||
if( FindSubString( sTag, "STAKE" ) >= 0 )
|
||||
bFound = TRUE;
|
||||
oItem = GetNextItemInInventory( oPC );
|
||||
} // while valid item
|
||||
|
||||
return bFound;
|
||||
}
|
||||
Reference in New Issue
Block a user