|
You last visited: Today at 14:34
Advertisement
Codes for Auto Drop Ores.
Discussion on Codes for Auto Drop Ores. within the CO2 Programming forum part of the Conquer Online 2 category.
05/02/2011, 17:02
|
#1
|
elite*gold: 0
Join Date: May 2011
Posts: 9
Received Thanks: 0
|
Codes for Auto Drop Ores.
any one can help me for codes?
|
|
|
05/02/2011, 22:35
|
#2
|
elite*gold: 0
Join Date: Apr 2011
Posts: 3
Received Thanks: 0
|
and ineed the program
|
|
|
05/03/2011, 19:16
|
#3
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
|
Hahahaha, you two are awesome
|
|
|
05/05/2011, 21:26
|
#4
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
|
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
|
#5
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
|
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
|
#6
|
elite*gold: 223
Join Date: Dec 2007
Posts: 1,076
Received Thanks: 257
|
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
|
#7
|
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
|
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
|
#8
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
|
Quote:
Originally Posted by shitboi
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
|
#9
|
elite*gold: 0
Join Date: Nov 2009
Posts: 2
Received Thanks: 0
|
grasias
|
|
|
05/06/2011, 04:50
|
#10
|
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
|
Quote:
Originally Posted by IAmHawtness
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
|
#11
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
|
Quote:
Originally Posted by shitboi
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
|
#12
|
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
|
my first guess was that foreach loop is dam bulky. lol.
Learning C# lately though. lol
|
|
|
All times are GMT +1. The time now is 14:36.
|
|