void main() {
    // Get the player character involved in the conversation
    object oPC = GetPCSpeaker();

    // Check if the returned object is valid
    if (GetIsObjectValid(oPC)) 
    {
        // Find the item with the tag "I_CAS_CASINOHANDLE"
        object oHandle = GetItemPossessedBy(oPC, "I_CAS_CASINOHANDLE");
        if (GetIsObjectValid(oHandle)) 
        {
            // Instead of setting a variable, delete the tokenpouch
            DestroyObject(oHandle);
            SendMessageToPC(oPC, "Your tokenpouch has been removed.");
        } 
        else 
        {
            // Item not found, return an error message
            SendMessageToPC(oPC, "Error: I_CAS_CASINOHANDLE item not found.");
        }
    } 
    else 
    {
        // Optionally handle the error case if needed
        SendMessageToPC(oPC, "Error: Invalid object in conversation.");
    }
}
