Aantioch_Infernum/_module/nss/cho_god_punish.nss

21 lines
351 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
//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);
}