Skip to content

Instantly share code, notes, and snippets.

@2J
Created August 6, 2015 02:29
Show Gist options
  • Save 2J/e6243e5941e9ae7f5e0f to your computer and use it in GitHub Desktop.
Save 2J/e6243e5941e9ae7f5e0f to your computer and use it in GitHub Desktop.
cowsep chest opening script
$('#tab_c > div.inventory > .inventory-slot').each(function(index,item){
if($(item).children('.inventory-item').data('item-type') == 'chest'){
$.get( "crates.php", {crate: $(item).children('.inventory-item').data('item-id')});
};
});
alert('opening chests...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment