void main() { object oPC = GetLastUsedBy(); if (!GetIsPC(oPC)) return; CreateItemOnObject("pulfood002", oPC); AssignCommand(oPC, TakeGoldFromCreature(1, oPC, TRUE)); }