@@ -0,0 +1,1654 @@
+package nl.jketelaar.store;%0A%0Aimport nl.jketelaar.store.domains.StoreItem;%0Aimport nl.jketelaar.store.methods.Store;%0Aimport org.parabot.core.Context;%0Aimport org.parabot.environment.api.utils.Time;%0Aimport org.parabot.environment.scripts.Category;%0Aimport org.parabot.environment.scripts.Script;%0Aimport org.parabot.environment.scripts.ScriptManifest;%0Aimport org.parabot.environment.scripts.framework.LoopTask;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * @author JKetelaar%0A */%0A@ScriptManifest(author = %22JKetelaar%22,%0A        category = Category.OTHER,%0A        description = %22Indexes the player stores%22,%0A        name = %22PBStore%22,%0A        servers = %7B %22Ikov%22 %7D,%0A        version = 1.3)%0Apublic class Core extends Script implements LoopTask%7B%0A%0A    private final List%3CStoreItem%3E itemList = new ArrayList%3C%3E();%0A%0A    @Override%0A    public boolean onExecute() %7B%0A        itemList.add(new StoreItem(%22Air rune%22, 556));%0A        itemList.add(new StoreItem(%22Rocktail%22, 15272));%0A        itemList.add(new StoreItem(%22Shark%22, 385));%0A        return true;%0A    %7D%0A%0A    @Override%0A    public int loop() %7B%0A        List%3CStoreItem%3E storeItems = new Store().getPrices(itemList);%0A        for (StoreItem storeItem : storeItems)%7B%0A            int total = 0;%0A            for (String price : storeItem.getPrices())%7B%0A                total += Integer.parseInt(price);%0A            %7D%0A            if (total %3E 0)%7B%0A                System.out.println(storeItem.getName() + %22 has an average price of %22 + (total / storeItem.getPrices().size()));%0A            %7D%0A        %7D%0A        Context.getInstance().getRunningScript().setState(STATE_STOPPED);%0A        Time.sleep(500);%0A        return 1;%0A    %7D%0A%7D%0A

Create Core.java