Bump?
|
I know it goes in client.java..... Where would I put this at though?? and I'm using a dodian source so If you could give me a search to where I should put it that would be greatly appreciated!
And this?Code:public int apickupid = -1; public int apickupx = -1; public int apickupy = -1; public void resetPickup() { apickupid = -1; apickupx = -1; apickupy = -1; } public void scanPickup() { if (absX == apickupx && absY == apickupy) { if (AFP.canDoAction(this, 2)) { if (ItemHandler.itemExists(apickupid, absX, absY)) { int itemAmount = ItemHandler.itemAmount(apickupid, apickupx, apickupy); if (addItem(apickupid, itemAmount)) { ItemHandler.removeItem(apickupid, apickupx, apickupy, itemAmount); removeGroundItem(apickupx, apickupy, apickupid); AFP.addPlayer(this); return; } } else if (hasntLoggedin) { //sendMessage("To late its gone!"); resetPickup(); } } else { //sendMessage("You can't pickup that item yet!"); resetPickup(); return; } } }
scanPickup();
Bump?
client.java?
In the same class that has the methods 'addItem(int, int)' and removeGroundItem(int, int, int).
Bump?
search pulic int and just put it under one of those o.o
It's like they don't even notice the answer...
looks like its in drops. either PvP drops or ItemDrops. Could be Players.java? if its to do with players dropping items.
Well, you would declare these as they are ints
You would add that under any public voids...Code:public int apickupid = -1; public int apickupx = -1; public int apickupy = -1;
Code:public void resetPickup() { apickupid = -1; apickupx = -1; apickupy = -1; } public void scanPickup() { if (absX == apickupx && absY == apickupy) { if (AFP.canDoAction(this, 2)) { if (ItemHandler.itemExists(apickupid, absX, absY)) { int itemAmount = ItemHandler.itemAmount(apickupid, apickupx, apickupy); if (addItem(apickupid, itemAmount)) { ItemHandler.removeItem(apickupid, apickupx, apickupy, itemAmount); removeGroundItem(apickupx, apickupy, apickupid); AFP.addPlayer(this); return; } } else if (hasntLoggedin) { //sendMessage("To late its gone!"); resetPickup(); } } else { //sendMessage("You can't pickup that item yet!"); resetPickup(); return; } } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |