yojimbos_law

autosells a ton of shit in inventories, don't use.

Jan 20th, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. string misc_inventory;
  2. misc_inventory = visit_url("inventory.php?which=3");
  3. misc_inventory = misc_inventory.to_lower_case().substring(misc_inventory.to_lower_case().index_of("name=avatar-changing"));
  4. string[int][int] ids_of_manuel_potions = group_string(misc_inventory, "inv_use\\.php\\?pwd=[a-zA-Z0-9]\+&which=3&whichitem=(\\d+)\"");
  5. foreach i,j,k in ids_of_manuel_potions{
  6. if(j==1){
  7. print(k);
  8. autosell(item_amount(k.to_int().to_item()),k.to_int().to_item());
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment