/inv command
Old 05-30-2018, 11:29 AM   #1
Boss Hunter
 
Anubis is offline
Join Date: Jul 2016
Posts: 378
Default /inv command

function get_equipment() {
let temp = [];
let current_inventory = {
"Relic 6": getitem(top.Relic6),
"Relic 5": getitem(top.Relic5),
"Relic 4": getitem(top.Relic4),
"Relic 3": getitem(top.Relic3),
"Relic 2": getitem(top.Relic2),
"Relic 1": getitem(top.Relic1),
"Right Spell": getitem(top.Heal),
"Feet": getitem(top.Boots),
"Legs": getitem(top.Leggings),
"Left Spell": getitem(top.Cast),
"Arms": getitem(top.Sleeves),
"Chest": getitem(top.Mantle),
"Hands": getitem(top.Gauntlets),
"Right Hand": getitem(top.Shield),
"Head": getitem(top.Helmet),
"Left Hand": getitem(top.Weapon)
}

Object.entries(current_inventory).forEach((data) => {
domes(`${data[0]}: ${data[1]}`);
});
domes("Currently Equipped Items");
}

This is in the hotkeys, but I'd like for you to implement it so people can use it without the hotkeys.
  Reply With Quote

Old 05-30-2018, 12:33 PM   #2
Boss Hunter
 
Anubis is offline
Join Date: Jul 2016
Posts: 378
Default

i meant /equip, not /inv. Im a bit stupid.
  Reply With Quote

Old 05-30-2018, 12:55 PM   #3
Administrator
 
Glitchless's Avatar
 
Glitchless is offline
Join Date: May 2008
Posts: 321
Default

Added /equip function with code that won't break old IE browsers
__________________
Computing the probability that at least one of the following events will occur:
P(a or b ... or z) = 1 - P(!a and !b ... and !z)
Probability
  Reply With Quote

Old 05-30-2018, 12:58 PM   #4
Boss Hunter
 
Anubis is offline
Join Date: Jul 2016
Posts: 378
Default

Quote:
Originally Posted by Glitchless
Added /equip function with code that won't break old IE browsers
ty sir.
  Reply With Quote
Reply



All times are GMT -5. The time now is 08:03 PM
Boards live since 05-21-2008