HoS_PRC8/_mod/_module/nss/slave_free.nss

15 lines
383 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
// 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);
}