void main()
{
    object oPC = GetPCSpeaker();
    object oItem = GetLocalObject(oPC, "MODIFY_ITEM");
    int iCost = GetLocalInt(oPC, "iModifyCost");

    TakeGoldFromCreature(iCost, oPC, TRUE);
    SetItemCharges(oItem, 99);
}
