void main() { object oPC = GetItemActivator(); if (!GetIsPC(GetItemActivatedTarget()) ){ SendMessageToPC(GetItemActivator(), "Improper use of item!"); return;} if (GetGold(oPC) >= 500000) { oPC = GetItemActivatedTarget(); CreateItemOnObject("certificatele2", oPC); oPC = GetItemActivator(); AssignCommand(oPC, TakeGoldFromCreature(500000, oPC, TRUE)); } }