void main()
{
    object oPC = GetPCSpeaker(); // Gets the player character involved in the conversation
    object oHandle = GetItemPossessedBy(oPC, "I_CAS_CASINOHANDLE");

    if (!GetIsObjectValid(oHandle))
    {
        SendMessageToPC(oPC, "You do not have the required item.");
        return;
    }

    // Assuming LOOT_ID ranges from 1 to 100, for example
    int nLootID;
    for (nLootID = 1; nLootID <= 100; nLootID++)
    {
        string sLootedVar = "I_CHEST_CHRISTENHOLMLOOT" + IntToString(nLootID);
        DeleteLocalInt(oHandle, sLootedVar);
    }

   // SendMessageToPC(oPC, "All loot variables have been reset.");
}
