void main() { object oPC = GetClickingObject(); if (!GetIsPC(oPC)) return; AssignCommand(oPC, TakeGoldFromCreature(100, oPC, TRUE)); object oTarget; oTarget = GetObjectByTag("GridClanHold"); AssignCommand(oTarget, ActionOpenDoor(oTarget)); }