Browse Source

simulate booty command work

master
FatBoy-DOTC 2 years ago
parent
commit
b18994a7c0
  1. 63
      src/engine/devcmd/cmds/simulateBootyCmd.java

63
src/engine/devcmd/cmds/simulateBootyCmd.java

@ -73,43 +73,50 @@ public class simulateBootyCmd extends AbstractDevCmd {
ArrayList<Item> Contracts = new ArrayList<Item>(); ArrayList<Item> Contracts = new ArrayList<Item>();
ArrayList<Item> Offerings = new ArrayList<Item>(); ArrayList<Item> Offerings = new ArrayList<Item>();
ArrayList<Item> OtherDrops = new ArrayList<Item>(); ArrayList<Item> OtherDrops = new ArrayList<Item>();
ArrayList<Item>ReturnedBootyList = new ArrayList<Item>(); int failures = 0;
for(int i = 0; i < 100; ++i) { for(int i = 0; i < 100; ++i) {
mob.loadInventory();
for(Item lootItem : mob.getCharItemManager().getInventory()){ try {
ReturnedBootyList.add(lootItem); mob.loadInventory();
} for (Item lootItem : mob.getCharItemManager().getInventory()) {
} ItemBase ib = lootItem.getItemBase();
for(Item ml : ReturnedBootyList){ int ordinal = ib.getType().ordinal();
if(ml.getItemBase().isGlass() == true){ switch (lootItem.getItemBase().getType()) {
GlassItems.add(ml); case CONTRACT: //CONTRACT
break; Contracts.add(lootItem);
} break;
switch(ml.getItemBase().getType().ordinal()){ case OFFERING: //OFFERING
case 20: //CONTRACT Offerings.add(lootItem);
Contracts.add(ml); break;
break; case RESOURCE: //RESOURCE
case 33: //OFFERING Resources.add(lootItem);
Offerings.add(ml); break;
break; case RUNE: //RUNE
case 34: //RESOURCE Runes.add(lootItem);
Resources.add(ml); break;
break; case WEAPON: //WEAPON
case 5: //RUNE if (lootItem.getItemBase().isGlass()) {
Runes.add(ml); GlassItems.add(lootItem);
break; } else {
default: OtherDrops.add(lootItem);
OtherDrops.add(ml); }
break; break;
default:
OtherDrops.add(lootItem);
break;
}
}
} catch (Exception ex) {
failures++;
} }
} }
output += "TOTAL ITEMS DROPPED: " + ReturnedBootyList.size() + newline;
output += "GLASS ITEMS DROPPED: " + GlassItems.size() + newline; output += "GLASS ITEMS DROPPED: " + GlassItems.size() + newline;
output += "RESOURCE STACKS DROPPED: " + Resources.size() + newline; output += "RESOURCE STACKS DROPPED: " + Resources.size() + newline;
output += "RUNES DROPPED: " + Runes.size() + newline; output += "RUNES DROPPED: " + Runes.size() + newline;
output += "CONTRACTS DROPPED: " + Contracts.size() + newline; output += "CONTRACTS DROPPED: " + Contracts.size() + newline;
output += "OFFERINGS DROPPED: " + Offerings.size() + newline; output += "OFFERINGS DROPPED: " + Offerings.size() + newline;
output += "OTHERS DROPPED: " + OtherDrops.size() + newline; output += "OTHERS DROPPED: " + OtherDrops.size() + newline;
output += "FAILED ROLLS: " + failures + newline;
break; break;
} }

Loading…
Cancel
Save