Initial Upload
Initial Upload
This commit is contained in:
20
_module/nss/cho_god_punish.nss
Normal file
20
_module/nss/cho_god_punish.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
//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);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user