19 lines
481 B
Plaintext
19 lines
481 B
Plaintext
// rts_it_mag42d
|
|
#include "hos_alignment"
|
|
void main()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
object oItem=GetItemPossessedBy(oPC,"rts_it_mag42");
|
|
object oMod=GetModule();
|
|
int nEvil=GetLocalInt(oMod,"nEvilPower");
|
|
if (oItem!=OBJECT_INVALID)
|
|
{
|
|
DestroyObject(oItem);
|
|
nEvil=nEvil-100;
|
|
if (nEvil<1) nEvil=0;
|
|
SetLocalInt(oMod,"nEvilPower",nEvil);
|
|
AdjustAlignmentPartyProtected(oPC,ALIGNMENT_GOOD,10);
|
|
GiveXPToCreature(oPC,1000);
|
|
}
|
|
}
|