Codes for Auto Drop Ores.

05/02/2011 17:02 ConquerBotter#1
any one can help me for codes?
:handsdown:
05/02/2011 22:35 Yahyaahmed#2
and ineed the program
05/03/2011 19:16 IAmHawtness#3
Hahahaha, you two are awesome
05/05/2011 21:26 KraHen#4
Red Hawk One, Red Hawk One, are you there? I need air support on delta A 0.

You asked for the codes.
05/05/2011 22:36 IAmHawtness#5
For Iron Ores:
Code:
/delitembytype 1072010
/delitembytype 1072011
/delitembytype 1072012
/delitembytype 1072013
/delitembytype 1072014
/delitembytype 1072015
/delitembytype 1072016
/delitembytype 1072017
/delitembytype 1072018
/delitembytype 1072019
05/06/2011 01:01 OELABOELA#6
Code:
public foid drop(Client client)
{
foreach(Item in item items)
{
Packets.Dropitem((Item*)YOURITEMID,client);
}}
Im sure this will work, no errors for sure.
05/06/2011 03:26 shitboi#7
my implementation would be
Code:
public void dropOre (MyChar character){
    foreach(Object item: character.itemList.value().toArray()){
        Packet drop = new Packet( DropItem.buildDropPacket(myTimer.getTimeStamp(), ((Item)item).ID, character.xcord, character.ycord)  ); 
        character.itemList.remove( ((Item)item).ID );
        ClientPacketQueue.add(drop);
        ClientQueueSize++;
    }
}
05/06/2011 03:38 IAmHawtness#8
Quote:
Originally Posted by shitboi View Post
my implementation would be
Code:
public void dropOre (MyChar character){
    foreach(Object item: character.itemList.value().toArray()){
        Packet drop = new Packet( DropItem.buildDropPacket(myTimer.getTimeStamp(), ((Item)item).ID, character.xcord, character.ycord)  ); 
        character.itemList.remove( ((Item)item).ID );
        ClientPacketQueue.add(drop);
        ClientQueueSize++;
    }
}
You just made me dislike Java more than I thought was possible
05/06/2011 04:19 123tati123#9
grasias
05/06/2011 04:50 shitboi#10
Quote:
Originally Posted by IAmHawtness View Post
You just made me dislike Java more than I thought was possible
Are you talking about that for each loop, or the packet building? lol. I used a ConcurrentHashMap that can only map object to objects, have to do a series of casts to get what i want. Maybe my lack of proficiency has highlighted the downside of java, lol.
05/06/2011 04:52 IAmHawtness#11
Quote:
Originally Posted by shitboi View Post
Are you talking about that for each loop, or the packet building? lol. I used a ConcurrentHashMap that can only map object to objects, have to do a series of casts to get what i want. Maybe my lack of proficiency has highlighted the downside of java, lol.
I'm not talking about your coding style or anything, just Java in general. Eww
05/06/2011 05:21 shitboi#12
my first guess was that foreach loop is dam bulky. lol.
Learning C# lately though. lol