Jump to content
McKay Development

Recommended Posts

Posted (edited)

How to relaunch the tf2 after a while so that it can load.

if (message == "scrap") {{
			if (refCount > 1) {
			let refinedToSmelt = refCount;
            console.log("Smelting Refined Metals".green);
            if (refinedToSmelt > usableRefineds.length) {
                console.log(("We should have %d refineds to balance the reclaimeds, but we " +
                    ((usableRefineds.length > 0) ? ("only have " + usableRefineds.length + ".") : "have none. Skipping.") +
                    (config.get("avoidMetalInActiveTradeOffers") ? " Maybe some metal are in trade offers?" : "")).magenta, refinedToSmelt);
                refinedToSmelt = usableRefineds.length;
            }
            for (let i = 0; i < refinedToSmelt; i++) {
                metalCrafter.smeltRefined(usableRefineds[i].id);
            }}
			
			if (recCount > 1) {
            let reclaimedToSmelt = recCount;
            console.log("Smelting Reclaimed Metals".green);
            if (reclaimedToSmelt > usableReclaimeds.length) {
                console.log(("We should have %d reclaimeds to balance the scraps, but we " + (usableReclaimeds.length > 0) ? ("only have " + usableReclaimeds.length) : "have none. Skipping.").magenta, reclaimedToSmelt);
                reclaimedToSmelt = usableReclaimeds.length;
            }
            for (let i = 0; i < reclaimedToSmelt; i++) {
                metalCrafter.smeltReclaimed(usableReclaimeds[i].id);
            }}
            // If we haven't smelt anything, yet we should have, let it continue as we probably will smelt refined.
        client.setPersona(0);
		client.gamesPlayed(440); // it instantly reopened tf2 and not showing the metals
		}}
Edited by TextDynasty

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...