|
|

You just update inventory after any changes every cycle. Not hard.

its probably something like this
declare ->
itemwear ->Code:public int[] toWear = new int[28]; public boolean needsToDo = false;
process ->Code:toWear[invslot] = true; needsToDo = true;
Code:if (needsToDo) { for (int i : toWear) { if (toWear[i]) equipItem(i); toWear[i] = false; } needsToDo = false; }

So far from true it's funny
Let me point out the flaws in your code;
1. toWear[invslot] = true is wrong since you declared "toWear" as an int array, not a boolean array.
2. You're never storing the item id that needs to be equipped
3. You're enhanced iterating though an integer array and using "toWear[i]" which will give you an index out of bounds error if the item id (that you never stored) is greater than 27.
4. You're checking if "toWear[i]" is true when it's an integer array.
5. equipItem(i) would not work since you also need to specify the item slot in a PI
6.![]()

Vouch for dis guy, been working with him for a month now and I've never trusted anyone more.![]()

Or...
in resetItems(int)
In wearItem(int, int) under if(slot >= 0 && ...)Code:if(c.getAwaitingUpdate()) c.setAwaitingUpdate(false);
In client.java, in process:Code:c.setAwaitingUpdate(true);
In Player.java declare:Code:if(getAwaitingUpdate()) getItems().resetItems(3214);
Edit: got derepped for posting "shit code making the thread look bad." If you think the above code is shit, you're a moron. It really can't get ANY simpler.Code:public void setAwaitingUpdate(boolean update) { awaitingUpdate = update; } public boolean getAwaitingUpdate() { return awaitingUpdate; } private boolean awaitingUpdate = false;
| « [Ready To Host✓][Packed With Content✓][Stable✓][Fullscreen Client✓] [Insenthium✓] | 718 rsps + dupe » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |