54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
|
|
|
|
void main () {}
|
|
/*
|
|
|
|
void HolyScore(object oSelf)
|
|
{
|
|
int iCount = 0;
|
|
object oMod = GetModule();
|
|
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, TRUE, OBJECT_SELF);
|
|
object oCreature;
|
|
int oHeaven = GetLocalInt(oMod, "heav_score");
|
|
int oHell = GetLocalInt(oMod, "hell_score");
|
|
object oHost = GetObjectByTag("starfall");
|
|
object oTeam = GetFirstFactionMember(oSelf, FALSE);
|
|
while (GetIsObjectValid(oTeam))
|
|
{
|
|
if (!GetIsDead(oTeam))
|
|
{
|
|
++iCount;
|
|
}
|
|
oTeam = GetNextFactionMember(oSelf, FALSE);
|
|
}
|
|
if (iCount==0)
|
|
{
|
|
oCreature = GetNearestCreature(CREATURE_TYPE_IS_ALIVE, TRUE, oSelf,
|
|
1, CREATURE_TYPE_PLAYER_CHAR, FALSE);
|
|
if ((GetResRef(oCreature)=="dragon1")||(GetResRef(oCreature)=="zep_halfdrafn001")||
|
|
(GetResRef(oCreature)=="zep_marilithb001")||(GetResRef(oCreature)=="palewarrior")||
|
|
(GetResRef(oCreature)=="zep_pitfiend001")||(GetResRef(oCreature)=="zep_balrog001")||
|
|
(GetResRef(oCreature)=="dopple")||(GetResRef(oCreature)=="mistress2")||
|
|
(GetResRef(oCreature)=="notime3")||(GetResRef(oCreature)=="notime4")||
|
|
(GetResRef(oCreature)=="darcher")||(GetResRef(oCreature)=="death"))
|
|
{
|
|
++oHell;
|
|
SetLocalInt(oMod, "hell_score", oHell);
|
|
SpeakString("The Dark Lord and his minions have been victorious!", TALKVOLUME_SHOUT);
|
|
Message(3.0, "*** Hell have won ***", oPC);
|
|
SetLocalInt(oMod, "hwar_on", 0);
|
|
}
|
|
else
|
|
{
|
|
++oHeaven;
|
|
SetLocalInt(oMod, "heav_score", oHeaven);
|
|
SpeakString("The divine Tyriel and his holy warriors have been victorious!", TALKVOLUME_SHOUT);
|
|
Message(3.0, "*** Heaven have won ***", oPC);
|
|
SetLocalInt(oMod, "hwar_on", 0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
void main () {}
|