Initial commit. Updated release archive.
This commit is contained in:
36
_module/nss/daoc_recall_chec.nss
Normal file
36
_module/nss/daoc_recall_chec.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "gzinc_daoctools"
|
||||
//#include "strat_prc_inc"
|
||||
#include "prc_class_const"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
object oRecaller = GetLastUsedBy();
|
||||
int z;
|
||||
|
||||
if(oRecaller == OBJECT_INVALID)
|
||||
oRecaller = GetLastSpeaker();
|
||||
|
||||
object oDead = GetLocalObject(OBJECT_SELF,"T1_OBJECT_PLAYER");
|
||||
object token = GetFirstFactionMember(oDead);
|
||||
|
||||
while(token != OBJECT_INVALID)
|
||||
{
|
||||
if(GetPCPlayerName(oRecaller) == GetPCPlayerName(token))
|
||||
{
|
||||
for(z = 1; z<=3; z++)
|
||||
{
|
||||
if((GetClassByPosition(z,token) == CLASS_TYPE_BARD) ||
|
||||
(GetClassByPosition(z,token) == CLASS_TYPE_CLERIC) ||
|
||||
(GetClassByPosition(z,token) == CLASS_TYPE_PALADIN) ||
|
||||
(GetClassByPosition(z,token) == CLASS_TYPE_HOSPITALER) ||
|
||||
(GetClassByPosition(z,token) == CLASS_TYPE_DRUID))
|
||||
return TRUE;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
token = GetNextFactionMember(oDead, TRUE);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user