Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
34
_module/nss/en4_evilpath5.nss
Normal file
34
_module/nss/en4_evilpath5.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "utl_i_sqluuid"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
SQLocalsUUID_SetInt(oPC,"EvilPath",5);
|
||||
SQLocalsUUID_SetInt(oPC,"EvilLevel",0);
|
||||
SQLocalsUUID_SetInt(oPC,"Enemy",4);
|
||||
|
||||
object oGood;
|
||||
oGood = GetObjectByTag("en3_good");
|
||||
AdjustReputation(oPC,oGood,-100);
|
||||
|
||||
object oDefender;
|
||||
oDefender = GetObjectByTag("en4_cityguard0_1");
|
||||
AdjustReputation(oPC,oDefender,-100);
|
||||
|
||||
object oEvil;
|
||||
oEvil = GetObjectByTag("en4_evil");
|
||||
AdjustReputation(oPC,oEvil,50);
|
||||
|
||||
AdjustAlignment(oPC,ALIGNMENT_EVIL,20);
|
||||
|
||||
object oPartyMember = GetFirstFactionMember(oPC, TRUE);
|
||||
|
||||
while (GetIsObjectValid(oPartyMember) == TRUE)
|
||||
{
|
||||
if (SQLocalsUUID_GetInt(oPartyMember,"EvilPath") == 0)
|
||||
SendMessageToPC(oPartyMember,GetName(oPC) + " has aligned himself with evil. Should you choose to follow him down this path you must align yourself with evil too.");
|
||||
|
||||
oPartyMember = GetNextFactionMember(oPC, TRUE);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user