import SaveLoadoutDispatch from 'yolkbot/dispatches/SaveLoadoutDispatch';
import { Items } from 'yolkbot/constants/items';
bot.dispatch(new SaveLoadoutDispatch({
gunId: 0, // 0 to 6, eggk to tri-hard, in order of the gun list ingame
// these are all skins, you must pass a valid skin id for each skin that IS the skin
hatId: Items.find(item => item.name === 'Derby Hat').id, // finds the derby hat and selects it
stampId: 2004, // a hardcoded stamp ID (the peace stamp in this case)
grenadeId: null, // pass "null" for the default grenade
meleeId: Items.find(item => item.name === 'The Whisk Melee').id, // the default melee
eggColor: 0, // the color list as in the game inventory, from left to right 0-13
primaryId: ['eggk ID', 'scrambler ID', 'free ranger ID', '...'] // an array of primary gun skin IDs
secondaryId: ['the secondary used with eggk', 'the secondary used with scrambler', '...'] // an array of secondary gun skin IDs
}));
hatId)When dispatching this, if a specific argument is not specified, it will be set to what it was previously. This allows you to do something like:
bot.dispatch(new SaveLoadoutDispatch({
hatId: Items.find(item => item.name === 'Derby Hat').id
}));
This will only change the hat, leaving everything else the same.
Similarly, to change the gun and nothing else:
bot.dispatch(new SaveLoadoutDispatch({
gunId: 1
}));
This will change the gun to the scrambler, leaving all skins the same.
import SaveLoadoutDispatch from 'yolkbot/dispatches/SaveLoadoutDispatch';
import { Items } from 'yolkbot/constants/items';
bot.dispatch(new SaveLoadoutDispatch({
gunId: 0, // 0 to 6, eggk to tri-hard, in order of the gun list ingame
// these are all skins, you must pass a valid skin id for each skin that IS the skin
hatId: Items.find(item => item.name === 'Derby Hat').id, // finds the derby hat and selects it
stampId: 2004, // a hardcoded stamp ID (the peace stamp in this case)
grenadeId: null, // pass "null" for the default grenade
meleeId: Items.find(item => item.name === 'The Whisk Melee').id, // the default melee
eggColor: 0, // the color list as in the game inventory, from left to right 0-13
primaryId: ['eggk ID', 'scrambler ID', 'free ranger ID', '...'] // an array of primary gun skin IDs
secondaryId: ['the secondary used with eggk', 'the secondary used with scrambler', '...'] // an array of secondary gun skin IDs
}));
hatId)When dispatching this, if a specific argument is not specified, it will be set to what it was previously. This allows you to do something like:
bot.dispatch(new SaveLoadoutDispatch({
hatId: Items.find(item => item.name === 'Derby Hat').id
}));
This will only change the hat, leaving everything else the same.
Similarly, to change the gun and nothing else:
bot.dispatch(new SaveLoadoutDispatch({
gunId: 1
}));
This will change the gun to the scrambler, leaving all skins the same.