Snippets Collections
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => "https://apis.websitetoapk.com/pushadmin/api/v1/list_apps",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => array(
	"content-type: application/x-www-form-urlencoded",
	"X-Api-Key: api-key-here",
	"X-Auth-Token: token-here"
  ),
));
$response = curl_exec($curl);
echo $response;
keytool -genkey -keyalg RSA -alias myalias -keystore newkeystore.keystore -storepass yourpassword -validity 36000 -keysize 2048
@media (max-width: 767px) {
  .simple-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .simple-table table {
    width: 100%;
    min-width: 640px;
  }

  .simple-table table th,
  .simple-table table td {
    overflow-wrap: normal;
    word-break: normal;
  }
}
// ==========================================
// 0. Defining & Configurations
// ==========================================

const DEV_NAMES = ["ItzStubZ"];

function isDev(playerId) {
    return DEV_NAMES.includes(api.getEntityName(playerId));
}

// Combined Join Handler for Sidebar Info and Shop Setup
onPlayerJoin = (playerId) => {
    // Code 1: Sidebar Setup
    api.setClientOption(playerId, "RightInfoText", [
        { str: "Stubbed Survival ", style: { color: "gold", fontWeight: "bold", fontSize: "20px" } },
        { str: "————————————————————————\n", style: { color: "lightgrey", fontWeight: "bold" } },
        { str: "————————————————————————\n", style: { color: "lightgrey", fontWeight: "bold", fontSize: "15px" } },
        { icon: "star", style: { fontSize: "14px", color: "#FFFFA6" } },
        { str: " !help for a list of commands\n Type !rtp to get started!\n", style: { color: "#FFFFA6", fontWeight: "bold" } },
        { str: "————————————————————————", style: { color: "lightgrey", fontWeight: "bold", fontSize: "15px" } }
    ]);

    // Code 2: Shop Setup
    api.createShopItem("classicGame:utilities", "rtp", {
        image: "Compass",
        customTitle: "Random Teleport",
        description: "TP to random place",
        buyButtonText: "Teleport"
    });
    
    api.configureShopCategory("classicGame:utilities", {
        customTitle: "Utilities"
    });
};

// ==========================================
// 1. Shop & Commands Handlers (Code 2)
// ==========================================

tick = (ms) => {};

onPlayerBoughtShopItem = (playerId, categoryKey, itemKey, item, userInput) => {
    if (itemKey === "rtp") {
        const randomX = Math.floor(Math.random() * 200000) - 100000;
        const randomY = 100;
        const randomZ = Math.floor(Math.random() * 200000) - 100000;
        
        api.setPosition(playerId, [randomX, randomY, randomZ]);
        
        // Fixed template literals to correctly display the coordinates
        api.sendMessage(playerId, "Téléporté à [" + randomX + ", " + randomY + ", " + randomZ + "]", { color: "cyan" });
        api.broadcastMessage(api.getEntityName(playerId) + " used rtp!", { color: "yellow" });
    }
};

playerCommand = (playerId, command) => {
    if (command === "shop") {
        api.openShop(playerId);
        return true;
    }
    return false;
};

// ==========================================
// 2. Chat Command Handler (Code 1)
// ==========================================

function onPlayerChat(id, msg) {
    const trimmedMsg = msg.trim();
    const lowerMsg = trimmedMsg.toLowerCase();

    // !rtp Chat Command
    if (lowerMsg === "!rtp") {
        const x = Math.floor(200000 * Math.random() - 100000);
        const z = Math.floor(200000 * Math.random() - 100000);
        const y = 125;

        api.setPosition(id, [x, y, z]);
        api.sendMessage(id, "Succesfully Teleported", {color: "lime"});
        return false;
    }
    
    // !help Menu
    if (lowerMsg === "!help") {
        const helpMessage = [
            { str: "Stubbed Survival Commands\n", style: { color: "#5CFF5C", fontWeight: "bold" } },
            { str: "!rtp", style: { color: "#FFFFA6", fontWeight: "bold" } },
            { str: " - Random teleport\n", style: { color: "white" } },
            { str: "!bal", style: { color: "#FFFFA6", fontWeight: "bold" } },
            { str: " - Check your MelonBucks\n", style: { color: "white" } },
            { str: "!msg <player> <msg>", style: { color: "#FFFFA6", fontWeight: "bold" } },
            { str: " - Privately message a player\n", style: { color: "white" } },
            { str: "!r.p <character> <text>", style: { color: "#FFFFA6", fontWeight: "bold" } },
            { str: " - Broadcast a roleplay message\n", style: { color: "white" } },
            { str: "!help", style: { color: "#FFFFA6", fontWeight: "bold" } },
            { str: " - Shows this menu", style: { color: "white" } }
        ];

        if (isDev(id)) {
            helpMessage.push(
                { str: "\n!dev help", style: { color: "#FF5555", fontWeight: "bold" } },
                { str: " - Developer commands", style: { color: "white" } }
            );
        }

        api.sendMessage(id, helpMessage);
        return false;
    }

    // !r.p <character> <text>
    if (lowerMsg.startsWith("!r.p ")) {
        const args = trimmedMsg.split(" ");

        if (args.length < 3) {
            api.sendMessage(id, "Usage: !r.p <character> <text>", { color: "red" });
            return false;
        }

        const characterName = args[1];
        const roleplayText = args.slice(2).join(" ");

        api.broadcastMessage([
            { str: "[Roleplay] ", style: { color: "#00FFCC", fontWeight: "bold" } },
            { str: characterName + ": ", style: { color: "#FFD700", fontWeight: "bold" } },
            { str: roleplayText, style: { color: "#FFFFFF" } }
        ]);

        return false;
    }

    // !msg <player> <msg>
    if (lowerMsg.startsWith("!msg ")) {
        const args = trimmedMsg.split(" ");

        if (args.length < 3) {
            api.sendMessage(id, "Usage: !msg <player> <msg>", { color: "red" });
            return false;
        }

        const targetName = args[1];
        const dmMessage = args.slice(2).join(" ");
        const targetId = api.getPlayerId(targetName);

        if (targetId === null) {
            api.sendMessage(id, "Player not found: " + targetName, { color: "red" });
            return false;
        }

        const senderName = api.getEntityName(id);

        api.sendMessage(targetId, [
            { str: "[Msg] ", style: { color: "#FF77FF", fontWeight: "bold" } },
            { str: senderName + ": ", style: { color: "#FFFFA6", fontWeight: "bold" } },
            { str: dmMessage, style: { color: "white" } }
        ]);

        api.sendMessage(id, [
            { str: "[Msg → " + targetName + "] ", style: { color: "#FF77FF", fontWeight: "bold" } },
            { str: dmMessage, style: { color: "white" } }
        ]);

        return false;
    }

    // !dev help
    if (lowerMsg === "!dev help") {
        if (!isDev(id)) {
            api.sendMessage(id, "Unknown command. Type !help.", { color: "red" });
            return false;
        }

        api.sendMessage(id, [
            { str: "Developer Commands\n", style: { color: "#FF5555", fontWeight: "bold" } },
            { str: "!message <normal|bold> <colour> <msg>", style: { color: "#FFFFA6", fontWeight: "bold" } },
            { str: " - Broadcast a server message\n", style: { color: "white" } },
            { str: "!kill <player>", style: { color: "#FFFFA6", fontWeight: "bold" } },
            { str: " - Kill a player", style: { color: "white" } }
        ]);

        return false;
    }

    // !message <normal|bold> <colour> <msg>
    if (lowerMsg.startsWith("!message ")) {
        if (!isDev(id)) {
            api.sendMessage(id, "Unknown command. Type !help.", { color: "red" });
            return false;
        }

        const args = trimmedMsg.split(" ");

        if (args.length < 4) {
            api.sendMessage(id, "Usage: !message <normal|bold> <colour> <msg>", { color: "red" });
            return false;
        }

        const weight = args[1].toLowerCase();
        const colour = args[2];
        const message = args.slice(3).join(" ");

        if (weight !== "normal" && weight !== "bold") {
            api.sendMessage(id, "First option must be normal or bold.", { color: "red" });
            return false;
        }

        api.broadcastMessage(message, {
            color: colour,
            fontWeight: weight
        });

        return false;
    }

    // !kill <player>
    if (lowerMsg.startsWith("!kill ")) {
        if (!isDev(id)) {
            api.sendMessage(id, "Unknown command. Type !help.", { color: "red" });
            return false;
        }

        const targetName = trimmedMsg.slice(6).trim();
        const targetId = api.getPlayerId(targetName);

        if (!targetName) {
            api.sendMessage(id, "Usage: !kill <player>", { color: "red" });
            return false;
        }

        if (targetId === null) {
            api.sendMessage(id, "Player not found: " + targetName, { color: "red" });
            return false;
        }

        api.setHealth(targetId, 0);

        api.sendMessage(id, [
            { str: "Killed ", style: { color: "#FF5555" } },
            { str: targetName, style: { color: "white", fontWeight: "bold" } },
            { str: ".", style: { color: "#FF5555" } }
        ]);

        return false;
    }
}

// ==========================================
// 3. Totem Logic & Game Actions
// ==========================================

onAttemptKillPlayer = (v) => {
    if (api.getEffects(v).includes("Totem")) {
        let pos = api.getPosition(v);
        api.applyEffect(v, "Health Regen", 3e4, {inbuiltLevel: 2});
        api.applyEffect(v, "Heat Resistance", 1e4, {inbuiltLevel: 1});
        api.applyEffect(v, "Damage Reduction", 3e4, {inbuiltLevel: 2});
        api.applyEffect(v, "Damage", 1e4, {inbuiltLevel: 2});
        api.applyEffect(v, "Speed", 1e4, {inbuiltLevel: 2});
        api.setHealth(v, 30);
        api.setShieldAmount(v, 50);
        
        if (api.getHeldItem(v)?.attributes.customDisplayName === "Totem Of Undying") {
            let s = api.getSelectedInventorySlot(v);
            api.setItemSlot(v, s, "Air");
            api.removeEffect(v, "Totem");
            return "preventDeath";
        } else {
            api.removeEffect(v, "Totem");
            return "preventDeath";
        }
    }
};

// Cleaned up the unfinished handler from Code 1 to prevent syntax errors
onPlayerAttemptAltAction = (id) => {
    if (api.getHeldItem(id)?.name == "Gold Spade" && api.getHeldItem(id)?.attributes.customDisplayName == "Totem") {
        // Your alternative action logic here
    }
};
let    
    Source = SharePoint.Files("https://bbbind0-my.sharepoint.com/personal/bdusenberry_bbbind_com/", [ApiVersion = 15]),
    #"Filtered Rows1" = Table.SelectRows(Source, each Text.Contains([Folder Path], "Desktop")),
    #"Filtered Rows" = Table.SelectRows(#"Filtered Rows1", each Text.Contains([Name], "Finished Goods"))
in
    #"Filtered Rows"
// !dm <player> <msg>

if (lowerMsg.startsWith("!dm ")) {
    const args = trimmedMsg.split(" ")

    if (args.length < 3) {
        api.sendMessage(id, "Usage: !dm <player> <msg>", { color: "red" })
        return false
    }

    const targetName = args[1]
    const dmMessage = args.slice(2).join(" ")
    const targetId = api.getPlayerId(targetName)

    if (targetId === null) {
        api.sendMessage(id, "Player not found: " + targetName, { color: "red" })
        return false
    }

    const senderName = api.getEntityName(id)

    api.sendMessage(targetId, [
        { str: "[DM] ", style: { color: "#FF77FF", fontWeight: "bold" } },
        { str: senderName + ": ", style: { color: "#FFFFA6", fontWeight: "bold" } },
        { str: dmMessage, style: { color: "white" } }
    ])

    api.sendMessage(id, [
        { str: "[DM → " + targetName + "] ", style: { color: "#FF77FF", fontWeight: "bold" } },
        { str: dmMessage, style: { color: "white" } }
    ])

    return false
}
let playerKillsByDbId = {};

/* Configuration: Change this number to give more or less Gold per kill */ //
const GOLD_PER_KILL = 5; 

/* Helper function to determine rank and text color based on kills */
function getPlayerRankInfo(kills) {
    if (kills >=250) return {name: "REAPER", color: "Black" };  
    if (kills >= 100) return { name: "MASTER", color: "White" };
    if (kills >= 50)  return { name: "LEGEND", color: "Blue" };
    if (kills >= 25)  return { name: "KILLER", color: "Red" };
    if (kills >= 10)  return { name: "WARRIOR", color: "Orange" };
    return { name: "ROOKIE", color: "LightGray" };
}

/* Updates the visual subtitle under the player's name tag */
function updateNameTag(pId) {
    const dbId = api.getPlayerDbId(pId);
    if (!dbId) return;
    
    const kills = playerKillsByDbId[dbId] || 0;
    const rankInfo = getPlayerRankInfo(kills);
    
    api.setTargetedPlayerSettingForEveryone(pId, 'nameTagInfo', {
        subtitle: [
            { str: `[${rankInfo.name}] `, style: { color: rankInfo.color } },
            { str: `Kills: ${kills}`, style: { color: 'White' } }
        ],
        subtitleBackgroundColor: 'Black'
    }, true);
}

/* Event: Runs when a player joins and fetches permanent saved data */
onPlayerJoin = (playerId) => {
    const dbId = api.getPlayerDbId(playerId);
    if (!dbId) return;

    // Use the temporary playerId to request data from the game's storage server
    let savedData = api.getMoonstoneChestItemSlot(playerId, 99);
    
    if (savedData && savedData.count) {
        // Map the permanent dbId directly to the loaded count so it survives a tab clear
        playerKillsByDbId[dbId] = savedData.count;
    } else {
        // Only reset to 0 if they have absolutely no save history recorded
        if (playerKillsByDbId[dbId] === undefined) {
            playerKillsByDbId[dbId] = 0;
        }
    }
    
    updateNameTag(playerId);
};

/* Event: Runs when a player secures a kill, updates database saves, and awards Gold */
onPlayerKilledOtherPlayer = (killerId, deadId, damage, item) => {
    if (killerId != null && killerId !== deadId) {
        const killerDbId = api.getPlayerDbId(killerId);
        if (!killerDbId) return;
        
        // 1. Permanently update the score counter assigned to their real account profile
        playerKillsByDbId[killerDbId] = (playerKillsByDbId[killerDbId] || 0) + 1;
        
        // 2. Instruct the game core to lock that data into an invisible container
        api.setMoonstoneChestItemSlot(killerId, 99, "Diamond", playerKillsByDbId[killerDbId]);
        updateNameTag(killerId);
        
        // 3. Award Gold Bars directly to inventory
        api.giveItem(killerId, "Gold Bar", GOLD_PER_KILL);
        
        // 4. FIXED: Replaced non-existent notification function with official messaging function
        api.sendMessage(killerId, `+${GOLD_PER_KILL} Gold Bars for the kill! Total Kills: ${playerKillsByDbId[killerDbId]}`, { color: "gold" });
    }
};


/* Global variables to manage the weapon systems */
if (typeof magmaWandCooldowns === "undefined") {
    var magmaWandCooldowns = {};
}
if (typeof magmaWandTimers === "undefined") {
    var magmaWandTimers = {};
}
 
/* Global dictionary to manage weapon timestamps */
if (typeof magmaWandCooldowns === "undefined") {
    var magmaWandCooldowns = {};
}
 
/* Custom Weapon Abilities & Right-Click Magma Wand Functionality */
 
/* Triggered whenever a player right-clicks or interacts while holding an item */
onPlayerAltAction = (playerId) => {
    try {
        const heldItem = api.getHeldItem(playerId);
        if (!heldItem) return;
 
        /* Checks for a Molten Magma Rod specifically named Magma Wand */
        if (
            heldItem.name === "Molten Magma Rod" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Magma Wand"
        ) {
            const currentTime = Date.now();
            const lastUsed = magmaWandCooldowns[playerId] || 0;
            const cooldownDuration = 2500; /* 2.5 seconds */
 
            /* Blocks firing if 2.5 seconds have not passed */
            if (currentTime - lastUsed < cooldownDuration) {
                return;
            }
 
            const playerPos = api.getPosition(playerId);
            if (playerPos && Array.isArray(playerPos)) {
                const px = playerPos[0];
                const py = playerPos[1];
                const pz = playerPos[2];
 
                /* Get looking direction to fire the fireballs forward */
                let facing = [0, 0, -1]; 
                const facingInfo = api.getPlayerFacingInfo ? api.getPlayerFacingInfo(playerId) : null;
                if (facingInfo && facingInfo.dir) {
                    facing = facingInfo.dir;
                }
 
                const fx = facing[0];
                const fy = facing[1];
                const fz = facing[2];
 
                /* Set the cooldown timestamp immediately before firing */
                magmaWandCooldowns[playerId] = currentTime;
 
                /* LAUNCH 9 FIREBALLS IN A COMPACT, SMALLER 3x3 SQUARE GRID PATTERN */
                
                /* MIDDLE ROW (Eye Level - Small 0.08 spacing) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.08, fy, fz + 0.08], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.08, fy, fz - 0.08], 2, 2, 0); 
 
                /* TOP ROW (Tighter vertical offset) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy + 0.08, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.08, fy + 0.08, fz + 0.08], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.08, fy + 0.08, fz - 0.08], 2, 2, 0); 
 
                /* BOTTOM ROW (Tighter vertical offset) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy - 0.08, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.08, fy - 0.08, fz + 0.08], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.08, fy - 0.08, fz - 0.08], 2, 2, 0); 
            }
        }
    } catch (err) {
        api.log("Error in Magma Wand Right-Click: " + err);
    }
};
 
/* Global dictionary to manage weapon timestamps */
if (typeof magmaWandCooldowns === "undefined") {
    var magmaWandCooldowns = {};
}
 
/* Custom Weapon Abilities & Right-Click Magma Wand Functionality */
 
/* Triggered whenever a player right-clicks or interacts while holding an item */
onPlayerAltAction = (playerId) => {
    try {
        const heldItem = api.getHeldItem(playerId);
        if (!heldItem) return;
 
        /* Checks for a Molten Magma Rod specifically named Magma Wand */
        if (
            heldItem.name === "Molten Magma Rod" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Magma Wand"
        ) {
            const currentTime = Date.now();
            const lastUsed = magmaWandCooldowns[playerId] || 0;
            const cooldownDuration = 2500; /* 2.5 seconds in milliseconds */
 
            /* FIXED: Blocks firing instantly if 2.5 seconds have not passed */
            if (currentTime - lastUsed < cooldownDuration) {
                return;
            }
 
            const playerPos = api.getPosition(playerId);
            if (playerPos && Array.isArray(playerPos)) {
                const px = playerPos[0];
                const py = playerPos[1];
                const pz = playerPos[2];
 
                /* Get looking direction to fire the fireballs forward */
                let facing = [0, 0, -1]; 
                const facingInfo = api.getPlayerFacingInfo ? api.getPlayerFacingInfo(playerId) : null;
                if (facingInfo && facingInfo.dir) {
                    facing = facingInfo.dir;
                }
 
                const fx = facing[0];
                const fy = facing[1];
                const fz = facing[2];
 
                /* Set the cooldown timestamp immediately before firing */
                magmaWandCooldowns[playerId] = currentTime;
 
                /* LAUNCH 9 FIREBALLS IN A 3x3 SQUARE GRID PATTERN */
                
                /* MIDDLE ROW (Eye Level) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.2, fy, fz + 0.2], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.2, fy, fz - 0.2], 2, 2, 0); 
 
                /* TOP ROW (Angled Upward) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy + 0.2, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.2, fy + 0.2, fz + 0.2], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.2, fy + 0.2, fz - 0.2], 2, 2, 0); 
 
                /* BOTTOM ROW (Angled Downward) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy - 0.2, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.2, fy - 0.2, fz + 0.2], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.2, fy - 0.2, fz - 0.2], 2, 2, 0); 
            }
        }
    } catch (err) {
        api.log("Error in Magma Wand Right-Click: " + err);
    }
};
 
/* Triggered when damaging players with standard weapons */
onPlayerDamagingOtherPlayer = (attackerId, targetId, damageAmount, itemName, bodyPartHit, damagerDbId) => {
    try {
        const heldItem = api.getHeldItem(attackerId);
        if (!heldItem) return;
 
        /* Poison knife */
        if (
            heldItem.name === "Iron Dagger" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Poison Knife"
        ) {
            api.applyEffect(targetId, "Weakness", 5000, { displayName: "Weakness", icon: "Weakness" });
            api.applyEffect(targetId, "Poisoned", 2500, { displayName: "Poisoned", icon: "Poisoned" });
        }
 
        /* Wind Mace */
        if (
            heldItem.name === "Moonstone Mace" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Wind Mace"
        ) {
            const attackerPos = api.getPosition(attackerId);
            if (!attackerPos || !Array.isArray(attackerPos)) return;
 
            const x = attackerPos[0];
            const y = attackerPos[1];
            const z = attackerPos[2];
 
            if (y - Math.floor(y) > 0.1) {
                api.applyHealthChange(targetId, -20, attackerId);
                api.applyEffect(targetId, "Slowness", 5000, {
                    icon: "Slowness",
                    displayName: "Slammed",
                    inbuiltLevel: 2
                });
                api.setVelocity(attackerId, 0, 20, 0);
                
                /* FIXED: Fully restored all array values to prevent unexpected comma crashes */
                api.playParticleEffect({
                    dir1: [-3, -3, -3],
                    dir2: [3, 3, 3], 
                    pos1: [x - 3, y, z - 3],
                    pos2: [x + 3, y + 3, z + 3],
                    texture: "glint",
                    minLifeTime: 0.3,
                    maxLifeTime: 1,
                    minEmitPower: 3,
                    maxEmitPower: 5,
                    minSize: 0.3,
                    maxSize: 0.7,
                    manualEmitCount: 100,
                    gravity: [0, -5, 0],
                    colorGradients: [
                        { 
                            timeFraction: 0, 
                            minColor: [200, 200, 255], 
                            maxColor: [255, 255, 255] 
                        }
                    ],
                    velocityGradients: [
                        { 
                            timeFraction: 0, 
                            factor: 1, 
                            factor2: 1 
                        }
                    ],
                    blendMode: 1
                });
 
                return "preventDamage";
            }
        }
    } catch (err) {
        api.log("Error in Weapon Script: " + err);
    }
};
Ready-made binary options trading platforms offer faster deployment, but they often limit customization, branding, and future scalability. As businesses grow, these limitations can affect user experience and platform flexibility.
Custom binary options trading platform development gives businesses full control over features, security, and integrations. For companies looking to build a scalable and competitive trading platform, Softean is a trusted binary options trading platform development company delivering tailored solutions for long-term growth.
 
.wcgs_xzoom,
.wcgs_xzoom-source,
.wcgs_xzoom-source *,
.wcgs_xzoom-lens,
.wcgs_xzoom-container,
.wcgs_xzoom-hidden {
    background: transparent !important;
    background-color: transparent !important;
}
.wcgs_xzoom-preview {
    background: transparent !important;
}
//|--------------|//
//| DO NOT TOUCH |//
//|______________|//
let i = 0;let light = 1; let ropes = 0;onPlayerChat = (pid, msg, chat) => {const allowed = ["ItzStubZ"];if (msg.startsWith('!clear ') && allowed.includes(api.getEntityName(pid))) { const u = msg.split(" ");api.broadcastMessage(`Cleared ${u[1]}'s inventory!`, { color: "gold" });api.clearInventory(api.getPlayerId(u[1]));}if (msg.startsWith('!bringall') && allowed.includes(api.getEntityName(pid))) { const here = api.getPosition(pid);let moved = 0;for (const id of api.getPlayerIds()) {if (id !== pid) {api.setPosition(id, here);moved++;}}
  api.broadcastMessage(`Brought ${moved} players to ${api.getEntityName(pid)}!`, { color: "gold" });}if (msg.startsWith('!tp ') && allowed.includes(api.getEntityName(pid))) {const u = msg.split(" ");api.broadcastMessage(`Teleported to ${u[1]}!`, { color: "gold" });api.setPosition(pid, api.getPosition(api.getPlayerId(u[1])));}if (msg.startsWith('!bring ') && allowed.includes(api.getEntityName(pid))) {const u = msg.split(" ");api.broadcastMessage(`Brought ${u[1]}!`, { color: "gold" });api.setPosition(api.getPlayerId(u[1]), api.getPosition(pid));}if (chat !== "Tribe") {
	const name = api.getEntityName(pid);
	if (name === "HerobrineRobloxTV") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "black" } },
	             { icon: "crown fa-bounce", style: { color: "gold" } },
	             { str: " 👑OWNER👑", style: { color: "cyan" } },
	             { str: "] ", style: { color: "black" } },
	             { str: name, style: { color: "blue" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
	     	} else if (name === "ItzStubZ") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "black" } },
	             { icon: "crown fa-bounce", style: { color: "#F4320B" } },
	             { str: " Admin ", style: { color: "red" } },
	             { str: "] ", style: { color: "black" } },
	             { str: name, style: { color: "#F4320B" } },
	             { str: ": ", style: { color: "#F4320B" } },
	             { str: msg, style: { color: "white" } },
	         ]);
	     	} else if (name === "Gamermixer_Adam_0w0") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "black" } },
	             { icon: "fa-shield fa-bounce", style: { color: "white" } },
	             { str: " Mod", style: { color: "black" } },
	             { str: "] ", style: { color: "black" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
} else if (api.getItemSlot(pid, 46)?.name === "HerobrineRobloxTV") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "#db9a32" } },
	             { icon: "star", style: { color: "white" } },
	             { str: " Hero", style: { color: "#94c2ce" } },
	             { str: "] ", style: { color: "#db9a32" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
 } else if (api.getItemSlot(pid, 46)?.name === "Cyan Wood Helmet") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "#4479ff" } },
	             { icon: "star", style: { color: "white" } },
	             { str: " Support Student", style: { color: "#35a4ff" } },
	             { str: "] ", style: { color: "#4479ff" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
 } else if (api.getItemSlot(pid, 46)?.name === "Diamond Helmet") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "black" } },
	             { icon: "star", style: { color: "gray" } },
	             { str: " Businuss Student", style: { color: "cyan" } },
	             { str: "] ", style: { color: "cyan" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
 } else if (api.getItemSlot(pid, 46)?.name === "Purple Wood Helmet") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "blue" } },
	             { icon: "star", style: { color: "white" } },
	             { str: " Nurse", style: { color: "#7763e8" } },
	             { str: "] ", style: { color: "blue" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
 } else if (api.getItemSlot(pid, 46)?.name === "Lime Wood Helmet") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "white" } },
	             { icon: "star", style: { color: "red" } },
	             { str: " Aid", style: { color: "#red" } },
	             { str: "] ", style: { color: "white" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
	     } else {
	         api.broadcastMessage([
	             { str: "[", style: { color: "Gray" } },
	             { icon: "user", style: { color: "Gray" } },
	             { str: " No role yet", style: { color: "Gray" } },
	             { str: "] ", style: { color: "Gray" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
	     }
	     return false;
	 }
};
onPlayerJoin = (pid) => {
	if (api.getItemSlot(pid, 47)?.name === undefined || api.getItemSlot(pid, 47)?.name === 'LWhite Wood Chestplate') {
	 api.setItemSlot(pid, 47, "Light Gray Wood Chestplate", 1, {
	     customDisplayName: `Uniform shirt`, 
	     customDescription: `Yo school uniform shirt.`,
	 });
	 api.setItemSlot(pid, 49, "Black Wood Leggings", 1, {
	     customDisplayName: "Uniform Pants",
	     customDescription: "Your school uniform pants.",
	 });
	 api.setItemSlot(pid, 50, "Black Wood Boots", 1, {
	     customDisplayName: "Uniform Shoes",
	     customDescription: "Your school uniform shoes.",
	 });
	}
	const nameTagInfo = {
	 subtitle: [{ str: `student` }],
	};
api.setTargetedPlayerSettingForEveryone(pid, "nameTagInfo", nameTagInfo);
	const name = api.getEntityName(pid);
	if (name === "Gapviz") {
	 api.broadcastMessage([
	     { str: "The Owner ", style: { color: "#679ec1" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "#679ec1" } },
	 ]);
	} else if (name === "bloxdio_nation") {
	 api.broadcastMessage([
	     { str: "The Admin ", style: { color: "#ffc83d" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "#ffc83d" } },
	 ]);
	} else if (name === "Nightmare_MC") {
	 api.broadcastMessage([
	     { str: "The Mod ", style: { color: "orange" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "orange" } },
	 ]);
	} else if (name === "DEKU_HERO12") {
	 api.broadcastMessage([
	     { str: "The co-owner ", style: { color: "green" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "green" } },
	 ]);
    } else if (name === "Omz_fun_gurl_power294") {
	 api.broadcastMessage([
	     { str: "The co-owner ", style: { color: "pink" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "pink" } },
	 ]);
	} else {
	 api.broadcastMessage([
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game! Say hi!", style: { color: "#3273ff" } },
	 ]);
	}
	api.setWalkThroughRect(pid, [-10000, -10000, -10000], [-10000, 10000, 10000], 0);
};
onPlayerLeave = (pid) => {
	const name = api.getEntityName(pid);
	api.broadcastMessage([
	 { str: name, style: { color: "white" } },
	 { str: " has left the game", style: { color: "red" } },
	]);
};
function sidebarUI(playerId){
const space = "----------------------------\n"
api.setClientOption(playerId, "RightInfoText", [
{ str: "Hero Survival Server\n", style: { color: "red", fontSize: "25px", fontWeight: "800" } },
{ str: space, style: { color: "#555" } },
{ icon: "crown", style: { color: "gold" } },
{ str: " OWNER:\n", style: { color: "gold", fontWeight: "700" } },
{ str: "HerobrineRobloxTV\n", style: { color: "red" } },
{ str: space, style: { color: "#555" } },
{ icon: "crown", style: { color: "magenta" } },
{ str: " Co-owner:\n", style: { color: "red", fontWeight: "700" } },
{ str: "ItzStubZ\n", style: { color: "magenta", fontWeight: "700" } },
{ str: space, style: { color: "#555" } },
{ icon: "wrench", style: { color: "blue" } },
{ str: " CUSTOM SMP\n", style: { color: "red", fontWeight: "700" } },
    { str: "  - Welcome to Hero Smp!\n", style: { color: "cyan" } },
    { str: "  - Earn money! Get rich! And cause mass destruction on other players!\n", style: { color: "cyan" } },
    { str: space, style: { color: "#555" } },
 { str: "BEST SMP fr\n", style: { color: "RED" } },

])
   }
onPlayerJoin=(playerId) => {
    sidebarUI(playerId)
}
A white label tokenization platform typically offers a better ROI for businesses that want to launch quickly and keep development costs under control. Instead of spending months building blockchain infrastructure, smart contracts, and compliance features from scratch, businesses can deploy a ready-made solution and focus on growth.
Custom development suits highly specialized projects, but for most use cases, a white label solution is the smarter investment. Coinexra's white label tokenization platform provides enterprise-grade features, security, customization, and scalability, making it an excellent choice for launching a tokenization business faster.
function debounce(callback, delay = 300) {
  let timeout;

  return (...args) => {
    clearTimeout(timeout);

    timeout = setTimeout(() => {
      callback(...args);
    }, delay);
  };
}

// Example: avoid running a search request on every keystroke
const search = debounce((query) => {
  console.log("Searching for:", query);
}, 500);

search("javascript");
search("javascript debounce");
search("javascript debounce function");
Fildena Super Active is a medicine marketed for the treatment of erectile dysfunction (ED), a condition that can make it difficult to achieve or maintain an erection suitable for sexual activity. It contains sildenafil, a PDE5 inhibitor that may improve blood flow to the penis when sexual stimulation is present. Treatment should be used only after discussing symptoms, medical history, and other medicines with a qualified healthcare professional. Sildenafil may not be suitable for everyone, particularly people taking nitrate medicines or certain cardiovascular treatments. Possible side effects can include headache, flushing, indigestion, nasal congestion, or dizziness. Seek medical advice if side effects are severe or persistent.
.marquee {
    display: inline-flex;
    animation: scroll 500s ease infinite;
    flex-direction: row;
    flex: 0 1 auto;

    white-space: nowrap;
    gap: 40px;
	font-family: var(--e-global-typography-ec9ea48-font-family), Sans-serif;
    font-size: var(--e-global-typography-ec9ea48-font-size);
    font-weight: var(--e-global-typography-ec9ea48-font-weight);
	line-height: calc(var(--e-global-typography-ec9ea48-line-height) + 20px);
	letter-spacing: var(--e-global-typography-ec9ea48-letter-spacing);
	color: var(--e-global-color-primary);
}

.maskbg{
		mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
	    overflow: hidden;
}

.marquee:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0%); }
	25% { transform: translateX(-25%); }
	50% { transform: translateX(-50%); }
	75% { transform: translateX(-75%); }
    100% { transform: translateX(-100%); }
}

.faqsa {
	
}
api.giveItem(myId, "Gold Coin", 10, { customDisplayName: "Yen", customAttributes: { enchantments: {}, enchantmentTier: "Tier 5" } });
/* Bloxd.io Shop Script - Fixed removeItemName Argument Error */

let price = 1; /* Cost in Yen */
let amountToBuy = 1; /* Amount of Dirt given */

/* Look at what the player is currently holding in their hand */
let heldItem = api.getHeldItem(myId);

/* Validate: Holding a Gold Coin AND its name is exactly 'Yen' */
if (heldItem && heldItem.name === "Gold Coin" && heldItem.attributes && heldItem.attributes.customDisplayName === "Yen") {
    
    /* Check if they are holding enough of it */
    if (heldItem.amount >= price) {
        
        /* Fixed: Exactly 3 arguments passed to removeItemName */
        api.removeItemName(myId, "Gold Coin", price);
        
        /* Attempt to give the player their Dirt */
        api.giveItem(myId, "Dirt", amountToBuy);

        /* Inventory full safety check */
        if (api.inventoryIsFull(myId)) {
            /* Refund the exact item layout if their inventory had no space */
            api.giveItem(myId, "Gold Coin", price, { customDisplayName: "Yen" });
            api.sendMessage(myId, "Your inventory is full! Yen refunded.", { color: "red" });
        } else {
            api.sendMessage(myId, "Successfully bought " + amountToBuy + " Dirt!", { color: "green" });
        }
        
    } else {
        api.sendMessage(myId, "You need to hold at least " + price + " Yen in your hand!", { color: "red" });
    }
    
} else {
    /* Triggers if they hold normal Gold Coins or an unrelated block */
    api.sendMessage(myId, "Please hold your 'Yen' coins in your hand to buy!", { color: "yellow" });
}
/* 1. Grab the looking direction vector array: [X, Y, Z] */
let facing = api.getPlayerFacingInfo(playerId).dir;

/* 2. Multiply the angles by your desired launch speed (Multiplier) */
let speedMultiplier = 40; 

let launchX = facing[0] * speedMultiplier;
let launchY = facing[1] * speedMultiplier;
let launchZ = facing[2] * speedMultiplier;

/* 3. Apply the 4-argument impulse payload natively to the clicking player */
api.applyImpulse(playerId, launchX, launchY, launchZ);
// start music
const MUSIC_LOOP_TIME = 112000;
const musicStartTimes = {};

function startEpicMusic(playerId) {
    api.setClientOption(playerId, "music", null);
    api.setClientOption(playerId, "music", "Emotional Epic");
    api.setClientOption(playerId, "musicVolumeLevel", 0.6);
    musicStartTimes[playerId] = Date.now();
}
/* 1. Global callback that triggers whenever a player joins */
function onPlayerJoin(playerId) {

    // MUSIC
function onPlayerJoin(playerId) {
    startEpicMusic(playerId);

    api.setClientOption(playerId, "RightInfoText", [
        { str: "🍉 Watermelon ", style: { color: "#F01E0F", fontWeight: "bold", fontSize: "20px" } },
        { str: "SMP 💦\n", style: { color: "#5CFF5C", fontWeight: "bold", fontSize: "20px" } },

        /* rest of sidebar */
    ]);

    /* join messages etc */
}
    
    /* 2. Set up the Right Sidebar Info Text */
    api.setClientOption(playerId, "RightInfoText", [
        { str: "🍉 Watermelon ", style: { color: "#F01E0F", fontWeight: "bold", fontSize: "20px" } },
        { str: "SMP 💦\n", style: { color: "#5CFF5C", fontWeight: "bold", fontSize: "20px" } },
        { str: "————————————————————————\n", style: { color: "lightgrey", fontWeight: "bold" } },
        
        /* Discord Row */
        { icon: "discord", style: { fontSize: "14px", color: "#5865F2" } },
        { str: " discord.gg/b3sHbhwum7\n", style: { color: "#5865F2", fontWeight: "bold" } },
        
        /* YouTube Row */
        { icon: "youtube", style: { fontSize: "14px", color: "#FF0000" } },
        { str: " @z0x_-bloxd\n", style: { color: "#FF0000", fontWeight: "bold" } },
        
        /* Extras Row*/
        { str: "————————————————————————\n", style: { color: "lightgrey", fontWeight: "bold", fontSize: "15px" } },
        { icon: "star", style: { fontSize: "14px", color: "#FFFFA6" } },
        { str: " Make sure to check the Info warp!\n Type !rtp to get started!\n", style: { color: "#FFFFA6", fontWeight: "bold" } },
        { str: "————————————————————————", style: { color: "lightgrey", fontWeight: "bold", fontSize: "15px" } },
        
    ]);

    /* 3. Send the chat messages instantly */
    api.sendMessage(playerId, "—— Welcome to 🍉 Watermelon-SMP 💦! ——", { color: "red", fontWeight: "bold" });
    api.sendMessage(playerId, "📝 Latest Updates 📝:", { color: "gold" });
    api.sendMessage(playerId, "— New GUI for sidebar and Suggestion Box at spawn.\n— Forge has been RELEASED! (extras at ItzStubZ's Plot)\n— MOON IS OUT SORTA, still not finished tho.\n", { color:   "white" });
    api.sendMessage(playerId, "—————————————————", { color: "red" });
}

function setMusic(playerId) {
    api.setClientOption(
        playerId,
        "music",
        "Epic1"
    );

    api.setClientOption(
        playerId,
        "musicVolumeLevel",
        0.6
    );
}


/* ================
    RANKS SYSTEM & RTP COMMAND
   ================ */

function onPlayerChat(id, msg) {
    // 1. RTP COMMAND CHECK (Checks if any player typed !rtp)
    if (msg.trim() === "!rtp") {
        // Generates random coordinates between -100,000 and 100,000
        const x = Math.floor(200000 * Math.random() - 100000);
        const z = Math.floor(200000 * Math.random() - 100000);
        const y = 125; // Safe standard height above ground level
        
        // Teleports the player
        api.setPosition(id, [x, y, z]);
        
        // Sends a private confirmation message to that specific player
 

        // Stops the function here so '!rtp' doesn't show up in global chat
        return false;
    }

    // 2. EXISTING RANK SYSTEM
    let name = api.getEntityName(id);
    
// Windows7601
    if (name === "Windows7601") {
        api.broadcastMessage([
            { str: "[", style: { color: "white" } }, { icon: "question-mark", style: { color: "lightgrey" } }, { str: "IDK", style: { color: "lightgrey" } }, { str: "] ", style: { color: "white" } },
 
            { str: "Windows7601: ", style: { color: "white" } },
            { str: " " + msg, style: { color: "white" } }
        ]);
        return false;
    } 
// ItzStubZ brother
    if (name === "Tiny_asian_Squirtle") {
        api.broadcastMessage([
            /*discord*/
            { icon: "discord", style: { color: "#5865F2" } }, { str: " ", style: { color: "white" } },
            
            { str: "[", style: { color: "white" } }, { icon: "cog", style: { color: "lightgrey" } }, { str: "Clan", style: { color: "lightgrey" } }, { str: "ker Jr.", style: { color: "lightgrey" } }, { str: "] ", style: { color: "white" } },
 
            { str: "Tiny_asian_Squirtle: ", style: { color: "white" } },
            { str: " " + msg, style: { color: "white" } }
        ]);
        return false;
    } 
    // ItzStubZ
    if (name === "ItzStubZ") {
        api.broadcastMessage([
            /*discord*/
            { icon: "discord", style: { color: "#5865F2" } }, { str: " ", style: { color: "white" } },
            
            { str: "[", style: { color: "white" } }, { icon: "cog", style: { color: "lightgrey" } }, { str: "Clan", style: { color: "lightgrey" } }, { str: "ker", style: { color: "lightgrey" } }, { str: "] ", style: { color: "white" } },
            
 { str: "[", style: { color: "red" } }, { icon: "Watermelon Slice", style: { color: "lightgrey" } }, { str: "Watermelon", style: { color: "lime" } }, { str: "]", style: { color: "red" } },
            
            { str: "[", style: { color: "cyan" } }, { icon: "cog", style: { color: "cyan" } }, { str: " Programmer] ", style: { color: "cyan" } },
            
            { str: "ItzStubZ: ", style: { color: "gold" } },
            { str: " " + msg, style: { color: "white" } }
        ]);
        return false;
    }
    // z0x_
    if (name === "z0x_") {
        api.broadcastMessage([
            /*discord*/
            { icon: "discord", style: { color: "red" } }, { str: " ", style: { color: "white" } },
            
            { str: " [", style: { color: "red" } }, { icon: "Damage", style: { color: "red" } }, { str: "PvPer", style: { color: "red" } }, { str: "] ", style: { color: "red" } },
            { str: "𖤓 z0x_: ", style: { color: "red" } },
            { str: " " + msg, style: { color: "white" } }
        ]);
        return false;
    }
    // Cyber_NebulaX
    if (name === "Cyber_NebulaX") {
        api.broadcastMessage([
                    { str: "[", style: { color: "brown" } }, { icon: "Mob Slayer", style: { color: "red" } }, { str: "Survivor", style: { color: "red" } }, { str: "] ", style: { color: "brown" } },
            { str: "[", style: { color: "purple" } }, { icon: "star", style: { color: "purple" } }, { str: "Nebula", style: { color: "purple" } }, { str: "] ", style: { color: "purple" } },
            { str: "[", style: { color: "#3D2D3C" } }, { icon: "shield", style: { color: "#5C3E5A" } }, { str: "M", style: { color: "#73416F" } }, { str: "A", style: { color: "#94478E" } }, { str: "X", style: { colour: "#A845A0" } }, { str: "] ", style: {colour: "#C93CBE" } },
            { str: "Cyber_NebulaX: ", style: { color: "#A746B8" } },
            { str: " " + msg, style: { color: "white" } }
        ]);
        return false;
    }
    // Drellie1
    if (name === "Drellie1") {
        api.broadcastMessage([
            { str: "[", style: { color: "purple" } }, { icon: "star", style: { color: "purple" } }, { str: "Nebula", style: { color: "purple" } }, { str: "] ", style: { color: "purple" } },
            { str: "[", style: { color: "red" } }, { icon: "swords", style: { color: "red" } }, { str: "Killer", style: { color: "red" } }, { str: "] ", style: { color: "red" } },
            { str: "Drellie1: ", style: { color: "orange" } },
            { str: " " + msg, style: { color: "white" } }
        ]);
        return false;
    }

    // ZaLegend
    if (name === "ZaLegend") {
        api.broadcastMessage([
            /*discord*/
            { icon: "discord", style: { color: "#5865F2" } }, { str: " ", style: { color: "white" } },
            { str: "ZaLegend: ", style: { color: "white" } },
            { str: " " + msg, style: { color: "white" } }
        ]);
        return false;
    }
}
/* Global variables to manage the weapon systems */
if (typeof magmaWandCooldowns === "undefined") {
    var magmaWandCooldowns = {};
}
if (typeof magmaWandTimers === "undefined") {
    var magmaWandTimers = {};
}

/* Global dictionary to manage weapon timestamps */
if (typeof magmaWandCooldowns === "undefined") {
    var magmaWandCooldowns = {};
}

/* Custom Weapon Abilities & Right-Click Magma Wand Functionality */

/* Triggered whenever a player right-clicks or interacts while holding an item */
onPlayerAltAction = (playerId) => {
    try {
        const heldItem = api.getHeldItem(playerId);
        if (!heldItem) return;

        /* Checks for a Molten Magma Rod specifically named Magma Wand */
        if (
            heldItem.name === "Molten Magma Rod" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Magma Wand"
        ) {
            const currentTime = Date.now();
            const lastUsed = magmaWandCooldowns[playerId] || 0;
            const cooldownDuration = 2500; /* 2.5 seconds */

            /* Blocks firing if 2.5 seconds have not passed */
            if (currentTime - lastUsed < cooldownDuration) {
                return;
            }

            const playerPos = api.getPosition(playerId);
            if (playerPos && Array.isArray(playerPos)) {
                const px = playerPos[0];
                const py = playerPos[1];
                const pz = playerPos[2];

                /* Get looking direction to fire the fireballs forward */
                let facing = [0, 0, -1]; 
                const facingInfo = api.getPlayerFacingInfo ? api.getPlayerFacingInfo(playerId) : null;
                if (facingInfo && facingInfo.dir) {
                    facing = facingInfo.dir;
                }

                const fx = facing[0];
                const fy = facing[1];
                const fz = facing[2];

                /* Set the cooldown timestamp immediately before firing */
                magmaWandCooldowns[playerId] = currentTime;

                /* LAUNCH 9 FIREBALLS IN A COMPACT, SMALLER 3x3 SQUARE GRID PATTERN */
                
                /* MIDDLE ROW (Eye Level - Small 0.08 spacing) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.08, fy, fz + 0.08], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.08, fy, fz - 0.08], 2, 2, 0); 

                /* TOP ROW (Tighter vertical offset) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy + 0.08, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.08, fy + 0.08, fz + 0.08], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.08, fy + 0.08, fz - 0.08], 2, 2, 0); 

                /* BOTTOM ROW (Tighter vertical offset) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy - 0.08, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.08, fy - 0.08, fz + 0.08], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.08, fy - 0.08, fz - 0.08], 2, 2, 0); 
            }
        }
    } catch (err) {
        api.log("Error in Magma Wand Right-Click: " + err);
    }
};

/* Global dictionary to manage weapon timestamps */
if (typeof magmaWandCooldowns === "undefined") {
    var magmaWandCooldowns = {};
}

/* Custom Weapon Abilities & Right-Click Magma Wand Functionality */

/* Triggered whenever a player right-clicks or interacts while holding an item */
onPlayerAltAction = (playerId) => {
    try {
        const heldItem = api.getHeldItem(playerId);
        if (!heldItem) return;

        /* Checks for a Molten Magma Rod specifically named Magma Wand */
        if (
            heldItem.name === "Molten Magma Rod" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Magma Wand"
        ) {
            const currentTime = Date.now();
            const lastUsed = magmaWandCooldowns[playerId] || 0;
            const cooldownDuration = 2500; /* 2.5 seconds in milliseconds */

            /* FIXED: Blocks firing instantly if 2.5 seconds have not passed */
            if (currentTime - lastUsed < cooldownDuration) {
                return;
            }

            const playerPos = api.getPosition(playerId);
            if (playerPos && Array.isArray(playerPos)) {
                const px = playerPos[0];
                const py = playerPos[1];
                const pz = playerPos[2];

                /* Get looking direction to fire the fireballs forward */
                let facing = [0, 0, -1]; 
                const facingInfo = api.getPlayerFacingInfo ? api.getPlayerFacingInfo(playerId) : null;
                if (facingInfo && facingInfo.dir) {
                    facing = facingInfo.dir;
                }

                const fx = facing[0];
                const fy = facing[1];
                const fz = facing[2];

                /* Set the cooldown timestamp immediately before firing */
                magmaWandCooldowns[playerId] = currentTime;

                /* LAUNCH 9 FIREBALLS IN A 3x3 SQUARE GRID PATTERN */
                
                /* MIDDLE ROW (Eye Level) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.2, fy, fz + 0.2], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.2, fy, fz - 0.2], 2, 2, 0); 

                /* TOP ROW (Angled Upward) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy + 0.2, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.2, fy + 0.2, fz + 0.2], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.2, fy + 0.2, fz - 0.2], 2, 2, 0); 

                /* BOTTOM ROW (Angled Downward) */
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx, fy - 0.2, fz], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx - 0.2, fy - 0.2, fz + 0.2], 2, 2, 0); 
                api.attemptCreateThrowable(playerId, "Fireball", [px, py + 1.5, pz], [fx + 0.2, fy - 0.2, fz - 0.2], 2, 2, 0); 
            }
        }
    } catch (err) {
        api.log("Error in Magma Wand Right-Click: " + err);
    }
};

/* Triggered when damaging players with standard weapons */
onPlayerDamagingOtherPlayer = (attackerId, targetId, damageAmount, itemName, bodyPartHit, damagerDbId) => {
    try {
        const heldItem = api.getHeldItem(attackerId);
        if (!heldItem) return;

        /* Abyssal Sword */
        if (
            heldItem.name === "Knight Sword" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Abyssal Sword"
        ) {
            api.applyEffect(targetId, "Weakness", 5000, { displayName: "Weakness", icon: "Weakness" });
            api.applyEffect(targetId, "Blindness", 5000, { displayName: "Blind", icon: "Blindness" });
        }

        /* Sun Blade */
        if (
            heldItem.name === "Gold Sword" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Sun Blade"
        ) {
            api.applyEffect(targetId, "Blindness", 5000, { displayName: "Flashbanged", icon: "Blindness" });
            api.applyEffect(targetId, "Poisoned", 5000, { displayName: "Flamed", icon: "Fire Resistance" });
        }

        /* Poison knife */
        if (
            heldItem.name === "Iron Dagger" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Poison Knife"
        ) {
            api.applyEffect(targetId, "Weakness", 5000, { displayName: "Weakness", icon: "Weakness" });
            api.applyEffect(targetId, "Poisoned", 2500, { displayName: "Poisoned", icon: "Poisoned" });
        }

        /* frost whip */
        if (
            heldItem.name === "Diamond Whip" &&
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Frost Whip"
        ) {
            api.applyEffect(targetId, "Frozen", 1000, { displayName: "Frozen", icon: "Frozen" });
            api.applyEffect(targetId, "Slowness", 2500, { displayName: "Icey", icon: "Slowness" });
        }

        /* Wind Mace */
        if (
            heldItem.name === "Moonstone Mace" && 
            heldItem.attributes && 
            heldItem.attributes.customDisplayName === "Wind Mace"
        ) {
            const attackerPos = api.getPosition(attackerId);
            if (!attackerPos || !Array.isArray(attackerPos)) return;

            const x = attackerPos[0];
            const y = attackerPos[1];
            const z = attackerPos[2];

            if (y - Math.floor(y) > 0.1) {
                api.applyHealthChange(targetId, -20, attackerId);
                api.applyEffect(targetId, "Slowness", 5000, {
                    icon: "Slowness",
                    displayName: "Slammed",
                    inbuiltLevel: 2
                });
                api.setVelocity(attackerId, 0, 20, 0);
                
                /* FIXED: Fully restored all array values to prevent unexpected comma crashes */
                api.playParticleEffect({
                    dir1: [-3, -3, -3],
                    dir2: [3, 3, 3], 
                    pos1: [x - 3, y, z - 3],
                    pos2: [x + 3, y + 3, z + 3],
                    texture: "glint",
                    minLifeTime: 0.3,
                    maxLifeTime: 1,
                    minEmitPower: 3,
                    maxEmitPower: 5,
                    minSize: 0.3,
                    maxSize: 0.7,
                    manualEmitCount: 100,
                    gravity: [0, -5, 0],
                    colorGradients: [
                        { 
                            timeFraction: 0, 
                            minColor: [200, 200, 255], 
                            maxColor: [255, 255, 255] 
                        }
                    ],
                    velocityGradients: [
                        { 
                            timeFraction: 0, 
                            factor: 1, 
                            factor2: 1 
                        }
                    ],
                    blendMode: 1
                });

                return "preventDamage";
            }
        }
    } catch (err) {
        api.log("Error in Weapon Script: " + err);
    }
};

function tick() {
    const now = Date.now();

    for (const playerId of api.getPlayerIds()) {
        if (!musicStartTimes[playerId]) {
            startEpicMusic(playerId);
            continue;
        }

        if (now - musicStartTimes[playerId] >= MUSIC_LOOP_TIME) {
            startEpicMusic(playerId);
        }
    }
}
An optimized and corrected version of the complete Python data processing pipeline is provided below.

from collections import deque, defaultdictimport datetimefrom typing import List, Dict, Tuple, Any
# =====================================================================# 1. PURCHASE WINDOW FILTERING# =====================================================================def get_frequent_users(events: List[Tuple[str, str]], n: int) -> List[str]:
    """
    Returns users who made more than N purchases in any 30-day window.
    events: List of tuples (user_id, timestamp_str) where timestamp_str is 'YYYY-MM-DD'
    """
    user_history = defaultdict(list)
    for user_id, t_str in events:
        dt = datetime.datetime.strptime(t_str, "%Y-%m-%d")
        user_history[user_id].append(dt)
        
    frequent_users = []
    
    for user_id, timestamps in user_history.items():
        timestamps.sort()  # Linearithmic sort per user for chronological order
        
        left = 0
        max_in_window = 0
        
        for right in range(len(timestamps)):
            # Maintain sliding window boundaries for exactly 30 days
            while (timestamps[right] - timestamps[left]).days > 30:
                left += 1
            
            current_window_count = right - left + 1
            if current_window_count > max_in_window:
                max_in_window = current_window_count
                
        if max_in_window > n:
            frequent_users.append(user_id)
            
    return frequent_users

# =====================================================================# 2. QUEUEING SYSTEM SIMULATION# =====================================================================def simulate_queue(arrivals: List[float], service_times: List[float]) -> float:
    """
    Simulates a single-server First-In, First-Out (FIFO) queueing loop.
    Returns the average wait time for all arriving processes.
    """
    if not arrivals:
        return 0.0
        
    total_wait_time = 0.0
    current_time = 0.0
    
    for arrival, service in zip(arrivals, service_times):
        # Server starts processing when the job arrives or when the server finishes previous task
        start_time = max(arrival, current_time)
        wait_time = start_time - arrival
        total_wait_time += wait_time
        
        # Advance clock by the duration of active service execution
        current_time = start_time + service
        
    return total_wait_time / len(arrivals)

# =====================================================================# 3. ROLLING MEDIAN ANOMALY DETECTION# =====================================================================def detect_anomalies(values: List[float], k: int, threshold: float) -> List[bool]:
    """
    Detects anomalies by comparing each value to the median of the previous k values.
    threshold: Maximum allowable absolute difference deviation boundary from the rolling median.
    """
    anomalies = []
    window = deque(maxlen=k)
    
    for val in values:
        if len(window) < k:
            # Not enough historical lookback context to flags anomalies
            anomalies.append(False)
        else:
            # Compute the rolling median over historical context window
            sorted_window = sorted(list(window))
            mid = k // 2
            if k % 2 == 1:
                median = sorted_window[mid]
            else:
                median = (sorted_window[mid - 1] + sorted_window[mid]) / 2.0
                
            # Flag item if it steps past absolute threshold boundaries
            is_anomaly = abs(val - median) > threshold
            anomalies.append(is_anomaly)
            
        window.append(val)
        
    return anomalies

# =====================================================================# 4. CATEGORY REVIEW GROUPING# =====================================================================def top_rated_by_category(reviews: List[Dict[str, Any]]) -> Dict[str, List[str]]:
    """
    Groups product reviews by category and returns the highest-rated product(s).
    reviews: List of dicts, e.g., [{"product": "A", "category": "Tech", "rating": 4.8}]
    """
    product_ratings = defaultdict(list)
    product_category = {}
    
    # Map raw records to grouped state
    for r in reviews:
        prod = r["product"]
        cat = r["category"]
        rating = r["rating"]
        
        product_ratings[prod].append(rating)
        product_category[prod] = cat
        
    # Aggregate to calculate mean rating evaluations
    avg_ratings = {prod: sum(rat)/len(rat) for prod, rat in product_ratings.items()}
    
    category_groups = defaultdict(list)
    for prod, avg_rating in avg_ratings.items():
        cat = product_category[prod]
        category_groups[cat].append((prod, avg_rating))
        
    result = {}
    for cat, prods in category_groups.items():
        # Find highest rating score within this specific category subset
        max_rating = max(prods, key=lambda x: x[1])[1]
        
        # Select product keys matching maximum bounds to catch duplicates or ties
        top_prods = [p[0] for p in prods if p[1] == max_rating]
        result[cat] = top_prods
        
    return result

# =====================================================================# DEMO EXECUTION# =====================================================================if __name__ == "__main__":
    print("--- 1. Purchase Filter ---")
    purchases = [
        ("user1", "2026-01-01"), 
        ("user1", "2026-01-15"), 
        ("user1", "2026-01-25"), 
        ("user2", "2026-01-01")
    ]
    print("Frequent Users (N=2):", get_frequent_users(purchases, n=2))
    
    print("\n--- 2. Queue Simulation ---")
    # Job 1 arrives at 0.0 -> processes immediately (wait=0.0) -> finishes at 5.0
    # Job 2 arrives at 2.0 -> waits until 5.0 (wait=3.0) -> finishes at 9.0
    print("Avg Wait Time:", simulate_queue(arrivals=[0.0, 2.0], service_times=[5.0, 4.0]))
    
    print("\n--- 3. Anomaly Detection ---")
    stream = [10.0, 12.0, 11.0, 13.0, 100.0, 12.0, 11.0]
    print("Anomalies (k=4, thresh=15):", detect_anomalies(stream, k=4, threshold=15.0))
    
    print("\n--- 4. Review Grouping ---")
    sample_reviews = [
        {"product": "Phone X", "category": "Tech", "rating": 5},
        {"product": "Phone X", "category": "Tech", "rating": 4},   # Mean = 4.5
        {"product": "Laptop Y", "category": "Tech", "rating": 5},  # Mean = 5.0
        {"product": "Shirt Z", "category": "Apparel", "rating": 4}  # Mean = 4.0
    ]
    print("Top Products by Category:", top_rated_by_category(sample_reviews))

If you are dealing with performance constraints, tell me if you want to optimize the rolling median using dual min/max heaps to scale down execution complexity from $O(k \log k)$ to $O(\log k)$.
MEV bot development is increasingly becoming a key part of DeFi infrastructure as blockchain networks grow more competitive and transaction volumes continue to rise. These bots help identify and execute opportunities such as arbitrage, liquidity optimization, and transaction prioritization, enabling market participants to operate more efficiently in fast-moving decentralized environments. As a result, MEV technology is no longer viewed solely as a trading tool but as an important component of the broader DeFi ecosystem.
As demand for sophisticated on-chain automation grows, businesses are looking for reliable MEV bot development solutions that combine speed, scalability, and security. For organizations seeking to build high-performance MEV systems, Softean is a leading MEV bot development service provider with expertise in creating customized solutions tailored to evolving DeFi and blockchain market requirements.
Read More >> https://www.softean.com/mev-bot-development 
from typing import List
from collections import deque

class Solution:
    def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:
        # Build adjacency list: b -> list of courses that depend on b
        adj = [[] for _ in range(numCourses)]
        # indegree[x] = number of prerequisites for course x
        indegree = [0] * numCourses

        for a, b in prerequisites:
            adj[b].append(a)
            indegree[a] += 1

        # Queue courses that currently have no prerequisites
        q = deque()
        for c in range(numCourses):
            if indegree[c] == 0:
                q.append(c)

        taken = 0  # count processed courses

        # Remove prerequisites layer by layer
        while q:
            course = q.popleft()
            taken += 1

            # Taking 'course' reduces indegree of its dependent courses
            for nxt in adj[course]:
                indegree[nxt] -= 1
                if indegree[nxt] == 0:
                    q.append(nxt)

        # If we processed all courses, no cycle exists
        return taken == numCourses
The rapid growth of cryptocurrency adoption has encouraged more entrepreneurs to launch their own trading platforms without the time and expense of building an exchange from scratch. A Coinbase Clone Script provides a faster route to market with essential features such as secure wallet integration, advanced trading functionality, KYC/AML support, scalable architecture, and a user-friendly interface, making it an attractive choice for businesses entering the crypto space.
For businesses looking to capitalize on this growing opportunity, Coinexra's Coinbase Clone Script offers a fully customizable, enterprise-grade solution designed for performance, security, and scalability. With advanced features, seamless deployment, and end-to-end support, Coinexra helps entrepreneurs launch a competitive crypto exchange with confidence.
Read More >> https://www.coinexra.com/coinbase-clone-script 
Build your sports betting business with a custom 1xBet clone script designed around your operational needs. Connect reliable sports data sources and create a platform that supports efficient management, streamlined operations, and business growth. 
For most founders, this comes down to one thing, speed versus control. Building from scratch gives you full control, but it takes months of development, a skilled blockchain team, and a higher budget. You are responsible for everything, from security and multi-chain support to testing and maintenance.
A Trust Wallet clone script, on the other hand, gives you a ready foundation. Core features like wallet management, token swaps, and integrations are already built. You can customize it for your brand and go live much faster.
From a business perspective, the advantage is clear. A clone script reduces development time and cost, and lets you focus on user growth and revenue instead of backend complexity. Building from scratch only makes sense if you have a large budget and a very specific product vision.
If your goal is to launch quickly and scale efficiently, buying a Trust Wallet clone script is the more practical choice. Coinexra stands out as the best Trust Wallet clone script provider, offering reliable and customizable solutions built for real business use.
>> https://www.coinexra.com/trust-wallet-clone 
Looking to enter the growing space of event-based trading platforms? A Kalshi clone script gives you everything you need to launch a platform where users can trade on real-world outcomes like economic data, elections, or global events, similar to Kalshi.

Instead of spending months on development, a ready-made solution helps you go live quickly with built-in features like event creation, real-time trading, automated settlement, and a secure user interface. This makes it easier to attract both crypto-native users and traditional traders who are looking for new ways to engage with markets.

What makes this opportunity even more valuable is the business potential. Event trading platforms open up multiple revenue streams through trading fees, event listings, and premium features. With the right setup, you can build a scalable and sustainable fintech business.

This is where Coinexra stands out. As a leading provider of Kalshi clone scripts, Coinexra offers a reliable, secure, and fully customizable solution tailored for entrepreneurs. Their script is designed with scalability, compliance readiness, and user experience in mind, making it easier to launch and grow your platform without technical hurdles.

If you are serious about building a future-ready event trading platform, Coinexra’s Kalshi clone script is one of the best choices to get started quickly and confidently. Read more >> https://www.coinexra.com/kalshi-clone-script 

Looking to build your own prediction market platform without the time and cost of developing from scratch? A Polymarket clone script gives you a ready-made foundation to launch a platform where users can trade on real-world outcomes, similar to Polymarket.
These scripts typically come with essential features like market creation, real-time trading, wallet integration, and automated result settlement, so you can get started quickly. You also have the flexibility to customise the platform to match your brand and scale it as your user base grows. Many modern solutions even support multi-chain environments, helping you reach a wider audience and reduce dependency on a single network.
From a business angle, prediction markets offer strong revenue potential through trading fees and premium features, while tapping into the growing demand for transparent Web3 platforms.
If you’re aiming for a smooth launch and long-term scalability, choosing the right solution matters. Coinexra’s Polymarket clone script offers a secure, customizable, and scalable option, making it a solid choice for entrepreneurs ready to enter the prediction market space. >> https://www.coinexra.com/polymarket-clone-script 
Investors are increasingly interested in crypto businesses built on a Kraken Clone Script because they can enter the market faster, reduce development costs, and launch with proven trading features. A reliable script provides the foundation for a secure, scalable exchange while allowing businesses to customize branding, add revenue-generating services, and expand as user demand grows. This combination of lower risk and faster market entry makes such ventures more attractive to potential investors.
For businesses looking to launch with confidence, Coinexra's Kraken Clone Script offers a feature-rich, secure, and fully customizable solution designed for long-term growth. With enterprise-grade security, advanced trading capabilities, liquidity integration, and ongoing technical support, Coinexra helps entrepreneurs build a competitive crypto exchange that is ready to scale in today's evolving digital asset market.
Get More insights >> https://www.coinexra.com/kraken-clone-script 
<iframe src="https://www.thiscodeworks.com/embed/6a5f24b44f430f0014b5d7bf" style="width: 100%; height: 86px;" frameborder="0" bis_size="{&quot;x&quot;:0,&quot;y&quot;:0,&quot;w&quot;:0,&quot;h&quot;:0,&quot;abs_x&quot;:0,&quot;abs_y&quot;:0}"></iframe>
In today’s fast-moving crypto market, traders need more than manual strategies to stay competitive. Advanced crypto trading bots help automate trades, analyze market movements in real time, and execute strategies with speed and accuracy. From algorithmic trading and arbitrage to portfolio management and risk controls, a powerful trading bot can help traders make smarter decisions while reducing manual effort.
Modern crypto trading bot solutions also support multi-exchange integration, customizable trading strategies, real-time analytics, and secure APIs, making them ideal for both individual traders and growing businesses looking to scale automated trading operations.
For businesses or traders looking to build a secure and feature-rich platform, crypto trading bot solutions by Softean are an excellent choice, offering scalable, reliable, and customized development tailored to modern trading needs.
Learn More >> https://www.softean.com/crypto-trading-bot-development 
Sub Main()

    Dim App As femap.model
    Set App = feFemap()

    '==================================================
    ' USER INPUT
    '==================================================

    Dim ConstraintSetID As Long
    ConstraintSetID = 4

    Dim OutputSetID As Long
    OutputSetID = 221

    '==================================================
    ' RESULTS OBJECT
    '==================================================

    Dim RBO As femap.Results
    Set RBO = App.feResults

    Dim ndSet As femap.Set
    Set ndSet = App.feSet

    '==================================================
    ' CONSTRAINT OBJECTS
    '==================================================

    Dim feBCSet As femap.BCSet
    Set feBCSet = App.feBCSet

    Dim feBCGeom As femap.BCGeom
    Set feBCGeom = App.feBCGeom

    Dim feBCNode As femap.BCNode
    Set feBCNode = App.feBCNode

    Dim p As femap.Point
    Set p = App.fePoint

    Dim s As femap.Surface
    Set s = App.feSurface

    Dim c As femap.Curve
    Set c = App.feCurve

    '==================================================
    ' FORCE VECTOR IDs
    '==================================================

    Dim fxVecID As Long
    Dim fyVecID As Long
    Dim fzVecID As Long

    fxVecID = 52
    fyVecID = 53
    fzVecID = 54

    '==================================================
    ' NODE ARRAYS
    '==================================================

    Dim txNodes() As Long
    Dim tyNodes() As Long
    Dim tzNodes() As Long

    Dim txCount As Long
    Dim tyCount As Long
    Dim tzCount As Long

    txCount = 0
    tyCount = 0
    tzCount = 0

    ReDim txNodes(0)
    ReDim tyNodes(0)
    ReDim tzNodes(0)

    Dim Nodes As Variant
    Dim numNodes As Long

    Dim i As Long
    Dim rc As Long

    '==================================================
    ' GET CONSTRAINT SET
    '==================================================

    If feBCSet.Get(ConstraintSetID) <> FE_OK Then
        App.feAppMessage FCM_ERROR, "Constraint Set not found!"
        Exit Sub
    End If

    feBCSet.Active = ConstraintSetID

    '==================================================
    ' GEOMETRY CONSTRAINTS
    '==================================================

    feBCGeom.Reset

    While feBCGeom.Next

        ' POINT
        If feBCGeom.geomTYPE = 3 Then

            rc = p.Get(feBCGeom.geomID)

            If rc = FE_OK Then

                rc = p.Nodes(numNodes, Nodes)

                If rc = FE_OK Then

                    For i = 0 To numNodes - 1

                        If feBCGeom.dof(0) Then
                            txNodes(txCount) = Nodes(i)
                            txCount = txCount + 1
                            ReDim Preserve txNodes(txCount)
                        End If

                        If feBCGeom.dof(1) Then
                            tyNodes(tyCount) = Nodes(i)
                            tyCount = tyCount + 1
                            ReDim Preserve tyNodes(tyCount)
                        End If

                        If feBCGeom.dof(2) Then
                            tzNodes(tzCount) = Nodes(i)
                            tzCount = tzCount + 1
                            ReDim Preserve tzNodes(tzCount)
                        End If

                    Next i

                End If

            End If

        End If

        ' CURVE
        If feBCGeom.geomTYPE = 4 Then

            rc = c.Get(feBCGeom.geomID)

            If rc = FE_OK Then

                rc = c.Nodes(True, True, numNodes, Nodes)

                If rc = FE_OK Then

                    For i = 0 To numNodes - 1

                        If feBCGeom.dof(0) Then
                            txNodes(txCount) = Nodes(i)
                            txCount = txCount + 1
                            ReDim Preserve txNodes(txCount)
                        End If

                        If feBCGeom.dof(1) Then
                            tyNodes(tyCount) = Nodes(i)
                            tyCount = tyCount + 1
                            ReDim Preserve tyNodes(tyCount)
                        End If

                        If feBCGeom.dof(2) Then
                            tzNodes(tzCount) = Nodes(i)
                            tzCount = tzCount + 1
                            ReDim Preserve tzNodes(tzCount)
                        End If

                    Next i

                End If

            End If

        End If

        ' SURFACE
        If feBCGeom.geomTYPE = 5 Then

            rc = s.Get(feBCGeom.geomID)

            If rc = FE_OK Then

                rc = s.Nodes(True, True, numNodes, Nodes)

                If rc = FE_OK Then

                    For i = 0 To numNodes - 1

                        If feBCGeom.dof(0) Then
                            txNodes(txCount) = Nodes(i)
                            txCount = txCount + 1
                            ReDim Preserve txNodes(txCount)
                        End If

                        If feBCGeom.dof(1) Then
                            tyNodes(tyCount) = Nodes(i)
                            tyCount = tyCount + 1
                            ReDim Preserve tyNodes(tyCount)
                        End If

                        If feBCGeom.dof(2) Then
                            tzNodes(tzCount) = Nodes(i)
                            tzCount = tzCount + 1
                            ReDim Preserve tzNodes(tzCount)
                        End If

                    Next i

                End If

            End If

        End If

    Wend

    '==================================================
    ' NODAL CONSTRAINTS
    '==================================================

    feBCNode.Reset

    While feBCNode.Next

        If feBCNode.dof(0) Then
            txNodes(txCount) = feBCNode.ID
            txCount = txCount + 1
            ReDim Preserve txNodes(txCount)
        End If

        If feBCNode.dof(1) Then
            tyNodes(tyCount) = feBCNode.ID
            tyCount = tyCount + 1
            ReDim Preserve tyNodes(tyCount)
        End If

        If feBCNode.dof(2) Then
            tzNodes(tzCount) = feBCNode.ID
            tzCount = tzCount + 1
            ReDim Preserve tzNodes(tzCount)
        End If

    Wend

    '==================================================
    ' FORCE RESULTS
    '==================================================

    Dim totalTX As Double
    Dim totalTY As Double
    Dim totalTZ As Double

    Dim vals As Variant
    Dim ids As Variant
    Dim idx As Variant
    Dim nCol As Long
    Dim colID As Long

    totalTX = 0
    totalTY = 0
    totalTZ = 0

    '==================================================
    ' TX NODES -> VECTOR 52
    '==================================================

    App.feAppMessage FCM_NORMAL, "===== TX NODES ====="

    ndSet.Clear

    For i = 0 To txCount - 1

        App.feAppMessage FCM_NORMAL, Str(txNodes(i))
        ndSet.Add txNodes(i)

    Next i

    RBO.Clear
    RBO.AddColumnV2 OutputSetID, 52, False, nCol, idx

    RBO.DataNeeded FT_NODE, ndSet.ID
    RBO.Populate
    RBO.SendToDataTable

    If IsArray(idx) Then
        colID = idx(0)
    Else
        colID = idx
    End If

    RBO.GetColumn colID, ids, vals

    If IsArray(vals) Then
        For i = 0 To UBound(vals)
            totalTX = totalTX + vals(i)
        Next i
    Else
        totalTX = vals
    End If
    If Abs(totalTX) < 0.000001 Then totalTX = 0
    App.feAppMessage FCM_NORMAL, "Total FX = " & Format(totalTX, "0.###")
    '==================================================
    ' TY NODES -> VECTOR 53
    '==================================================

    App.feAppMessage FCM_NORMAL, "===== TY NODES ====="

    ndSet.Clear

    For i = 0 To tyCount - 1

        App.feAppMessage FCM_NORMAL, Str(tyNodes(i))
        ndSet.Add tyNodes(i)

    Next i

    RBO.Clear
    RBO.AddColumnV2 OutputSetID, 53, False, nCol, idx

    RBO.DataNeeded FT_NODE, ndSet.ID
    RBO.Populate
    RBO.SendToDataTable

    If IsArray(idx) Then
        colID = idx(0)
    Else
        colID = idx
    End If

    RBO.GetColumn colID, ids, vals

    If IsArray(vals) Then
        For i = 0 To UBound(vals)
            totalTY = totalTY + vals(i)
        Next i
    Else
        totalTY = vals
    End If
    If Abs(totalTY) < 0.000001 Then totalTY = 0
    App.feAppMessage FCM_NORMAL, "Total FY = " & Format(totalTY, "0.###")

    '==================================================
    ' TZ NODES -> VECTOR 54
    '==================================================

    App.feAppMessage FCM_NORMAL, "===== TZ NODES ====="

    ndSet.Clear

    For i = 0 To tzCount - 1

        App.feAppMessage FCM_NORMAL, Str(tzNodes(i))
        ndSet.Add tzNodes(i)

    Next i

    RBO.Clear
    RBO.AddColumnV2 OutputSetID, 54, False, nCol, idx

    RBO.DataNeeded FT_NODE, ndSet.ID
    RBO.Populate
    RBO.SendToDataTable

    If IsArray(idx) Then
        colID = idx(0)
    Else
        colID = idx
    End If

    RBO.GetColumn colID, ids, vals

    If IsArray(vals) Then
        For i = 0 To UBound(vals)
            totalTZ = totalTZ + vals(i)
        Next i
    Else
        totalTZ = vals
    End If

    If Abs(totalTZ) < 0.000001 Then totalTZ = 0
    App.feAppMessage FCM_NORMAL, "Total FZ = " & Format(totalTZ, "0.###")

End Sub
.et_pb_module.dipi_lottie_icon.dp-custom-lottie-icon .dipi-lottie-title,
.et_pb_module.dipi_lottie_icon.dp-custom-lottie-icon .dipi-lottie-desc {
transition: color .35s ease;
}
.et_pb_module.dipi_lottie_icon.dp-custom-lottie-icon .dipi-lottie-icon {
transition: filter .35s ease;
}
.et_pb_module.dipi_lottie_icon.dp-custom-lottie-icon:hover .dipi-lottie-title,
.et_pb_module.dipi_lottie_icon.dp-custom-lottie-icon:hover .dipi-lottie-desc {
color: #000 !important;
}
.et_pb_module.dipi_lottie_icon.dp-custom-lottie-icon:hover .dipi-lottie-icon {
filter: invert(1);
}
A modern Bybit clone script should go beyond basic branding, allowing businesses to customize trading features, supported assets, fee structures, security settings, payment integrations, and the user experience. This flexibility helps create a unique exchange that can adapt as business needs evolve.
For businesses seeking a scalable and feature-rich solution, Coinexra's Bybit Clone Script is an excellent choice. It offers enterprise-grade security, advanced trading capabilities, and extensive customization options to help launch a competitive crypto exchange.
 
add_filter( 'sp_wpcp_out_of_stock_product', '__return_true' );
Turn fantasy sports engagement into a scalable business opportunity. With expert Fantasy Sports App Development, businesses can launch platforms designed for user growth, retention, and long-term market presence. Bidbits helps entrepreneurs build reliable fantasy sports applications aligned with their business objectives.
#!/bin/bash
# reporte_sistema.sh
# Genera un informe detallado de recursos del sistema y lo guarda/appende en un .txt
# Compatible con Linux (Debian, Ubuntu, RHEL, CentOS, Fedora, Arch, etc.)

set -euo pipefail

# Directorio donde está el script y archivo de salida
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
OUTPUT_FILE="$SCRIPT_DIR/system_report.txt"

HOSTNAME=$(hostname)
TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S")

# Separador y encabezado del equipo
{
  echo "================================================================================"
  echo "🖥️  REPORTE DEL EQUIPO: $HOSTNAME"
  echo "📅 FECHA DE EJECUCIÓN: $TIMESTAMP"
  echo "================================================================================"
  
  # 1. SISTEMA OPERATIVO
  echo -e "\n📦 [ SISTEMA OPERATIVO ]"
  if [ -f /etc/os-release ]; then
    grep -E "^(PRETTY_NAME|VERSION_ID)=" /etc/os-release | sed 's/PRETTY_NAME=/Nombre: /; s/VERSION_ID=/Versión: /'
  else
    uname -s -r -v
  fi
  echo "Kernel: $(uname -r)"
  echo "Arquitectura: $(uname -m)"

  # 2. CPU (Procesador)
  echo -e "\n🧠 [ PROCESADOR (CPU) ]"
  if command -v lscpu &>/dev/null; then
    lscpu | grep -E "^(Model name|Architecture|CPU\(s\)|Thread\(s\) per core|Core\(s\) per socket|Socket\(s\))"
  else
    echo "(lscpu no disponible. Mostrando info básica de /proc/cpuinfo)"
    grep -m 1 "model name" /proc/cpuinfo
    echo "Núcleos lógicos: $(nproc)"
  fi

  # Cálculo de uso de CPU (toma 1 segundo de muestra)
  read -r _ user nice system idle iowait irq softirq steal _ _ < /proc/stat
  total1=$((user + nice + system + idle + iowait + irq + softirq + steal))
  idle1=$idle
  sleep 1
  read -r _ user nice system idle iowait irq softirq steal _ _ < /proc/stat
  total2=$((user + nice + system + idle + iowait + irq + softirq + steal))
  idle2=$idle
  total_diff=$((total2 - total1))
  idle_diff=$((idle2 - idle1))
  [ "$total_diff" -eq 0 ] && total_diff=1
  cpu_usage=$(( (total_diff - idle_diff) * 100 / total_diff ))
  cpu_free=$((100 - cpu_usage))
  echo "📊 Uso CPU (muestra 1s): ~${cpu_usage}% usado | ~${cpu_free}% libre"

  # 3. MEMORIA RAM
  echo -e "\n💾 [ MEMORIA RAM ]"
  if command -v free &>/dev/null; then
    mem_total=$(free -m | awk '/^Mem:/ {print $2}')
    mem_used=$(free -m | awk '/^Mem:/ {print $3}')
    mem_free=$(free -m | awk '/^Mem:/ {print $4}')
    mem_avail=$(free -m | awk '/^Mem:/ {print $7}')
    echo "📈 RAM Total: ${mem_total} MB"
    echo "📉 RAM Usada: ${mem_used} MB"
    echo "📊 RAM Libre: ${mem_free} MB"
    echo "🔄 RAM Disponible: ${mem_avail} MB"
    swap_total=$(free -m | awk '/^Swap:/ {print $2}')
    echo "💿 Swap: ${swap_total} MB"
  else
    echo "(comando 'free' no disponible)"
  fi

  # 4. ALMACENAMIENTO (DISCOS REALES)
  echo -e "\n💿 [ ALMACENAMIENTO (DISCO DURO) ]"
  echo "Particiones físicas (/dev/*):"
  df -h | grep -E '^/dev/' | while read -r fs size used avail use mount; do
    echo "  📁 $mount | Total: $size | Usado: $used | Libre: $avail | Uso: $use"
  done
  # Resumen de la raíz /
  root_info=$(df -h / | awk 'NR==2 {printf "Total: %s | Usado: %s | Libre: %s", $2, $3, $4}')
  echo "  🌐 Resumen raíz (/): $root_info"

  # 5. RED Y HARDWARE ADICIONAL
  echo -e "\n🔌 [ RED Y HARDWARE ]"
  echo "Interfaces de red:"
  if command -v ip &>/dev/null; then
    ip -br addr show | grep -v "lo "
  elif command -v ifconfig &>/dev/null; then
    ifconfig -a | grep -E "^[a-z]" | awk '{print "  - "$1}'
  fi
  echo "Dispositivos PCI principales (máx. 8):"
  lspci 2>/dev/null | head -8 || echo "  (lspci no disponible)"
  echo "Dispositivos USB conectados:"
  lsusb 2>/dev/null | head -5 || echo "  (lsusb no disponible)"

  echo -e "\n================================================================================\n"
} >> "$OUTPUT_FILE"

echo "✅ Informe guardado correctamente en: $OUTPUT_FILE"
echo "📂 Para verlo: cat \"$OUTPUT_FILE\""
echo "⚠️  Nota: El cálculo de CPU tarda ~1 segundo para mayor precisión."
The crypto margin trading market is booming in 2026, with the global market cap crossing $4–6 trillion. If you're planning to launch a margin trading exchange, the key differentiators are leverage flexibility (2x–10x), real-time liquidation engines, and robust risk management tools like stop-loss and margin calls. Hivelance builds enterprise-grade crypto margin trading platforms with multi-currency support, liquidity integration, and KYC/AML compliance baked in. Build Your Margin trading platform with full cycle support from Hivelance team

Know More:

Visit – https://www.hivelance.com/crypto-margin-trading-exchange-development
WhatsApp - +918438595928
Telegram - Hivelance
Mail - sales@hivelance.com
Kickstart your own P2P Crypto Exchange Software with a fast, secure, and feature-rich platform. We offer end-to-end development solutions including customizable trading engines, escrow-based transactions, multi-currency wallets, KYC/AML verification, dispute resolution systems, and advanced admin dashboards. Designed for seamless user experience and high-performance trading, our solutions help crypto startups and fintech ventures enter the market quickly and confidently. Build a reliable P2P Crypto Exchange Software that users can trust and scale as your business grows.  
star

Mon Aug 24 2026 21:57:43 GMT+0000 (Coordinated Universal Time) https://websitetoapk.com/docs/pushadmin-api-access.html

@v1ral_ITS

star

Mon Aug 24 2026 21:37:12 GMT+0000 (Coordinated Universal Time) https://websitetoapk.com/docs/creating-keystore-for-signing.html

@v1ral_ITS

star

Sun Aug 23 2026 06:42:13 GMT+0000 (Coordinated Universal Time)

@omnixima #css

star

Fri Aug 21 2026 13:10:16 GMT+0000 (Coordinated Universal Time)

@ItzStubZ

star

Fri Aug 21 2026 12:58:19 GMT+0000 (Coordinated Universal Time)

@bdusenberry

star

Fri Aug 21 2026 02:06:19 GMT+0000 (Coordinated Universal Time)

@ItzStubZ

star

Wed Aug 19 2026 18:44:22 GMT+0000 (Coordinated Universal Time)

@ItzStubZ

star

Tue Aug 18 2026 06:07:44 GMT+0000 (Coordinated Universal Time) https://www.softean.com/binary-options-trading-software-development

@Amybonbo

star

Tue Aug 18 2026 05:37:16 GMT+0000 (Coordinated Universal Time)

@Pulak

star

Fri Aug 14 2026 01:36:10 GMT+0000 (Coordinated Universal Time)

@ItzStubZ

star

Thu Aug 13 2026 09:45:57 GMT+0000 (Coordinated Universal Time) https://www.coinexra.com/white-label-tokenization-platform

@janeaurel #c#

star

Wed Aug 12 2026 17:33:41 GMT+0000 (Coordinated Universal Time) https://hamza-sehouli.com/blog

@consulantseo #javascript

star

Wed Aug 12 2026 07:48:46 GMT+0000 (Coordinated Universal Time) https://www.rginfotech.com/blog/top-casino-game-development-companies-usa/

@kishanrg #casino #game #development #companies #usa

star

Wed Aug 12 2026 04:50:36 GMT+0000 (Coordinated Universal Time) https://www.sunbedbooster.com/menshealth/viagra-super-active-100mg-order-online

@jamesmartin ##healthcare ##menshealth #erectiledysfunction

star

Tue Aug 11 2026 20:23:10 GMT+0000 (Coordinated Universal Time)

@Bh@e_LoG

star

Tue Aug 11 2026 14:09:37 GMT+0000 (Coordinated Universal Time)

@ItzStubZ

star

Tue Aug 11 2026 13:02:05 GMT+0000 (Coordinated Universal Time)

@ItzStubZ

star

Sun Aug 09 2026 23:02:17 GMT+0000 (Coordinated Universal Time)

@ItzStubZ

star

Fri Aug 07 2026 17:41:06 GMT+0000 (Coordinated Universal Time)

@ItzStubZ

star

Fri Aug 07 2026 07:27:56 GMT+0000 (Coordinated Universal Time) https://www.yumeustechnologies.com/nowpayments-clone-script

@diyalee ##nowpaymentsclone ##nowpaymentsclonescript

star

Mon Aug 03 2026 18:55:34 GMT+0000 (Coordinated Universal Time)

@yasvanthM

star

Mon Aug 03 2026 10:00:05 GMT+0000 (Coordinated Universal Time) https://www.softean.com/mev-bot-development

@Amybonbo #stablecoin #development

star

Mon Aug 03 2026 07:58:31 GMT+0000 (Coordinated Universal Time) https://cloneappz.com/amazon-clone-development

@taylormorgan #amazon #app

star

Fri Jul 31 2026 17:04:34 GMT+0000 (Coordinated Universal Time)

@yasvanthM

star

Fri Jul 31 2026 10:19:19 GMT+0000 (Coordinated Universal Time) https://www.coinexra.com/coinbase-clone-script

@janeaurel #c#

star

Wed Jul 29 2026 13:03:36 GMT+0000 (Coordinated Universal Time) https://www.firebeetechnoservices.com/blog/1xbet-clone

@joelryan01

star

Wed Jul 29 2026 10:35:37 GMT+0000 (Coordinated Universal Time) https://takemycomptiaexam.us/

@takecomptiaexam

star

Wed Jul 29 2026 06:33:23 GMT+0000 (Coordinated Universal Time) https://www.coinexra.com/trust-wallet-clone

@janeaurel #c#

star

Wed Jul 29 2026 06:30:32 GMT+0000 (Coordinated Universal Time) https://www.coinexra.com/kalshi-clone-script

@janeaurel #c#

star

Wed Jul 29 2026 06:24:08 GMT+0000 (Coordinated Universal Time) https://www.coinexra.com/polymarket-clone-script

@janeaurel #c#

star

Wed Jul 29 2026 06:22:37 GMT+0000 (Coordinated Universal Time) https://www.coinexra.com/kraken-clone-script

@janeaurel #c#

star

Tue Jul 21 2026 07:54:50 GMT+0000 (Coordinated Universal Time) https://shamlatech.com/cryptocurrency-exchange-development/

@jhonxavier #blockchain #cryptocurrency #exchange

star

Tue Jul 21 2026 07:50:12 GMT+0000 (Coordinated Universal Time) https://shamlatech.com/cryptocurrency-exchange-development/

@jhonxavier #blockchain #cryptocurrency #exchange

star

Tue Jul 21 2026 07:50:12 GMT+0000 (Coordinated Universal Time) https://shamlatech.com/cryptocurrency-exchange-development/

@jhonxavier #blockchain #cryptocurrency #exchange

star

Tue Jul 21 2026 06:15:21 GMT+0000 (Coordinated Universal Time) https://vedicarehealth.com/product/vidalista-professional-tadalafil-tablets/

@vedicarehealth #healthcare #menshealth #ed

star

Mon Jul 20 2026 09:42:13 GMT+0000 (Coordinated Universal Time) https://www.softean.com/crypto-trading-bot-development

@Amybonbo #stablecoin #development

star

Tue Jul 14 2026 05:02:08 GMT+0000 (Coordinated Universal Time)

@Kinkaju #php

star

Tue Jun 30 2026 10:34:23 GMT+0000 (Coordinated Universal Time) https://leathertaboo.com/collections/bondage

@leather_bondage #python

star

Tue Jun 30 2026 10:00:18 GMT+0000 (Coordinated Universal Time) https://www.coinexra.com/bybit-clone-script

@janeaurel #c#

star

Tue Jun 30 2026 09:29:01 GMT+0000 (Coordinated Universal Time)

@Pulak

star

Mon Jun 29 2026 07:46:06 GMT+0000 (Coordinated Universal Time) https://zypharix.us/product/dapoxetine/

@zypharixus

star

Mon Jun 29 2026 07:35:07 GMT+0000 (Coordinated Universal Time) https://zypharixlabs.us/dapoxetine/

@zypharixlabs

star

Mon Jun 29 2026 07:32:46 GMT+0000 (Coordinated Universal Time) https://zypharix.to/

@Zypharixto

star

Wed Jun 24 2026 13:49:19 GMT+0000 (Coordinated Universal Time) https://bidbits.org/blog/fantasy-sports-app-development

@josephprince

star

Tue Jun 23 2026 13:46:50 GMT+0000 (Coordinated Universal Time) https://bidbits.org/coinbase-clone-script

@josephprince

star

Tue Jun 23 2026 13:10:34 GMT+0000 (Coordinated Universal Time)

@jrg_300i

star

Tue Jun 23 2026 12:24:46 GMT+0000 (Coordinated Universal Time)

@stevejohnson

star

Mon Jun 22 2026 12:28:13 GMT+0000 (Coordinated Universal Time) https://www.softean.com/p2p-crypto-exchange-development

@Amybonbo #stablecoin #development

star

Mon Jun 22 2026 11:10:47 GMT+0000 (Coordinated Universal Time) https://www.firebeetechnoservices.com/metaverse-real-estate-development-company

@claraalice #metaverserealestate platform

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension