Aantioch_Infernum/_module/nss/cho_god_punish.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

21 lines
351 B
Plaintext

//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
object oItem;
oItem = GetItemPossessedBy(oPC, "CHOGUILDKEY");
if (GetIsObjectValid(oItem)) DestroyObject(oItem);
int nInt;
nInt=GetGold(oPC);
AssignCommand(oPC, TakeGoldFromCreature(nInt, oPC, TRUE));
AdjustAlignment(oPC, ALIGNMENT_EVIL, 100);
}