This is the main post by Valleymon explaining how to use the injector, the various commands, etc:
From another post, ImHope added code for creating a cheat function using the injector:
//Gem Pack Cheats
registerCheats(
{
name: 'buy',
message: 'buy gem shop packs',
canToggleSubcheats: true,
subcheats: [
{
name: "Starter Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_c"]=1;
actorEvents189._customBlock_DropSomething("TimeCandy1", 4, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy2", 4, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("TimeCandy3", 2, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy4", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("CardPack1", 4, 0, 0, 2, y, 0, x, y);
return `The Starter Pack has been bought!`;
}
},
{
name: "Auto Loot Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_i"]=1;
actorEvents189._customBlock_DropSomething("PremiumGem", 900, 0, 0, 2, y, 0, x, y);
return `The Auto Loot Pack has been bought!`;
}
},
{
name: "Gem Motherlode Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_m"]=1;
actorEvents189._customBlock_DropSomething("Quest71", 100, 0, 0, 2, y, 0, x, y);
return `The Gem Motherlode Pack has been bought!`;
}
},
{
name: "Lava Supporter Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_a"]=1;
actorEvents189._customBlock_DropSomething("Trophy8", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy3", 7, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 4200, 0, 0, 2, y, 0, x, y);
return `The Lava Supporter Pack has been bought!`;
}
},
{
name: "New Year Supporter Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_b"]=1;
actorEvents189._customBlock_DropSomething("EquipmentHats45", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("CardPack1", 4, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy4", 4, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 2021, 0, 0, 2, y, 0, x, y);
return `The New Year Pack has been bought!`;
}
},
{
name: "Totally Chill Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_e"]=1;
actorEvents189._customBlock_DropSomething("EquipmentHats62", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("CardPack3", 3, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy5", 4, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 4500, 0, 0, 2, y, 0, x, y);
return `The Totally Chill Pack has been bought!`;
}
},
{
name: "Dungeon Bundle",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_g"]=1;
actorEvents189._customBlock_DropSomething("CardPack4", 3, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 4000, 0, 0, 2, y, 0, x, y);
return `The Dungeon Bundle has been bought!`;
}
},
{
name: "Outta This World Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_j"]=1;
actorEvents189._customBlock_DropSomething("EquipmentCape0", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("CardPack5", 3, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 4300, 0, 0, 2, y, 0, x, y);
return `The Outta This World Pack has been bought!`;
}
},
{
name: "Super Hot Fire Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_l"]=1;
actorEvents189._customBlock_DropSomething("EquipmentCape7", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("CardPack6", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Quest72", 3, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Quest73", 3, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 4300, 0, 0, 2, y, 0, x, y);
return `Super Hot Fire Pack has been bought!`;
}
},
{
name: "Riftwalker Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_n"]=1;
actorEvents189._customBlock_DropSomething("EquipmentNametag1", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("EquipmentCape11", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("CardPack5", 2, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("CardPack6", 2, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 6400, 0, 0, 2, y, 0, x, y);
return `Riftwalker Pack has been bought!`;
}
},
{
name: "Bloomin Pet Pack !NO PET CRYSTALS!",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_o"]=1;
actorEvents189._customBlock_DropSomething("EquipmentCape12", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 4500, 0, 0, 2, y, 0, x, y);
return `Bloomin Pet Pack (No Pet Crystals) has been bought!`;
}
},
{
name: "Island Explorer Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_p"]=1;
actorEvents189._customBlock_DropSomething("EquipmentNametag7", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 4400, 0, 0, 2, y, 0, x, y);
return `Island Explorer Pack has been bought!`;
}
},
{
name: "Equinox Dreamer Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_q"]=1;
actorEvents189._customBlock_DropSomething("EquipmentRingsChat11", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 4500, 0, 0, 2, y, 0, x, y);
return `Equinox Dreamer Pack has been bought!`;
}
},
{
name: "Eggscellent Pack",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_k"]=1;
actorEvents189._customBlock_DropSomething("EquipmentCape2", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Quest42", 250, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Quest44", 60, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 2500, 0, 0, 2, y, 0, x, y);
return `Eggscellent Pack has been bought!`;
}
},
{
name: "Easter Bundle",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_d"]=1;
actorEvents189._customBlock_DropSomething("EquipmentHats57", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy2", 5, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy3", 2, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy4", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 2500, 0, 0, 2, y, 0, x, y);
return `Easter Bundle has been bought!`;
}
},
{
name: "Summer Bundle",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_f"]=1;
actorEvents189._customBlock_DropSomething("Trophy14", 1, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Timecandy2", 20, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("GemP9", 3, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 2000, 0, 0, 2, y, 0, x, y);
return `Summer Bundle has been bought!`;
}
},
{
name: "Giftmas Bundle",
fn: function (params) {
const actorEvents189 = events(189);
const character = bEngine.getGameAttribute("OtherPlayers").h[bEngine.getGameAttribute("UserInfo")[0]];
let x = character.getXCenter();
let y = character.getValue("ActorEvents_20", "_PlayerNode");
bEngine.getGameAttribute("BundlesReceived").h["bun_h"]=1;
actorEvents189._customBlock_DropSomething("EquipmentHats69", 3, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("Quest64", 250, 0, 0, 2, y, 0, x, y);
actorEvents189._customBlock_DropSomething("PremiumGem", 2021, 0, 0, 2, y, 0, x, y);
return `The Giftmas Bundle has been bought!`;
}
}
]
}
);
In order to add the above code in the spoiler tag, I'd recommend getting Microsoft Visual Studio Code, it is free from Microsoft (or use a preferred code editing program if you have one). Next, you'll want to open "cheats.js" from the injector files. If you go down to line 130 (the numbers on the left hand side of the screen), it should be an empty line between two cheats, you can past the code in there. There may also be a blue bar up top on the program, you'll want to click manage and then click the "trust" button for Workspace Trust (otherwise it will prevent saving). Now you can save the file.
When you open the injector, you would type "buy" with a space, and then the name of the Pack in the list, such as "Giftmas Bundle". The injector will then replicate the steps the game would take as if you bought the pack itself.