HoS_PRC8/_mod/_module/nss/slave_free.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

15 lines
383 B
Plaintext

// Slave set free
#include "hos_alignment"
void main()
{
object oPC=GetPCSpeaker();
object oMod=GetModule();
int nEP=GetLocalInt(oMod,"nEvilPower");
nEP=nEP-2;
if (nEP<1) nEP=0;
SetLocalInt(oMod,"nEvilPower",nEP);
AdjustAlignmentPartyProtected(oPC,ALIGNMENT_LAWFUL,5);
AdjustAlignmentPartyProtected(oPC,ALIGNMENT_GOOD,1);
DestroyObject(OBJECT_SELF,5.0);
}