Jump to content
  • 0

Question

13 answers to this question

Recommended Posts

  • 0
Posted

καλησπερα παιδια πως δινω σε ολους τους online ppls reward?

otan patas to command //itemcreate kai su anoigei to parathiro na kaneis create item exei id amount kai "create" "give to target" kai "give to all" an thimame kala etsi exw k kairo na asxolithw..

  • 0
Posted

μ εχει μονο το create item οχι να το δωσω Mass η κατι σχετικο!

an patiseis //itemcreate su anoigei to parathiro na kaneis crate item patas Id kai Ammount kai patas Mass Create to checkara ksana simera gia na sigureftw!

  • 0
Posted

kai na min iparxei to code einai :

 

for (L2PcInstance p : L2World.getInstance().getAllPlayers.values)

{

        p.getInventory(blablabla);

}

  • 0
Posted

kai na min iparxei to code einai :

 

for (L2PcInstance p : L2World.getInstance().getAllPlayers.values)

{

        p.getInventory(blablabla);

}

 

This is not going to work for 2 reasons (it contains a bug as well). Also it's bad coded. Mr Pro Java Coder..

 

Tomorrow when you see that message reply to me to see what is the real code that would work to his "help topic".

  • 0
Posted

This is not going to work for 2 reasons (it contains a bug as well). Also it's bad coded. Mr Pro Java Coder..

 

Tomorrow when you see that message reply to me to see what is the real code that would work to his "help topic".

 

xDDDDDDDDDDDDDDDDDDDDD

 

What is bad coded theres no other way thatn L2World XDDDDD

 

also its handwritten, let the typos for eclipse

 

edit:

 

Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
for (L2PcInstance onlinePlayer : pls)
{
if (activeChar != onlinePlayer && onlinePlayer.isOnline() && (onlinePlayer.getClient() != null && !onlinePlayer.getClient().isDetached()))
{
	onlinePlayer.getInventory().addItem("Admin", idval, numval, onlinePlayer, activeChar);
	onlinePlayer.sendMessage("A GM spawned " + numval + " " + template.getName() + " in your inventory.");
	counter++;
}
}

 

this is the full code, My code was an example of the loop case which is the main part of the code, the inside was to obvious to be written here

  • 0
Posted

xDDDDDDDDDDDDDDDDDDDDD

 

What is bad coded theres no other way thatn L2World XDDDDD

 

also its handwritten, let the typos for eclipse

 

edit:

 

Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
for (L2PcInstance onlinePlayer : pls)
{
if (activeChar != onlinePlayer && onlinePlayer.isOnline() && (onlinePlayer.getClient() != null && !onlinePlayer.getClient().isDetached()))
{
	onlinePlayer.getInventory().addItem("Admin", idval, numval, onlinePlayer, activeChar);
	onlinePlayer.sendMessage("A GM spawned " + numval + " " + template.getName() + " in your inventory.");
	counter++;
}
}

 

this is the full code, My code was an example of the loop case which is the main part of the code, the inside was to obvious to be written here

http://trac.l2jdp.com/changeset/8406/trunk/L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers/AdminCreateItem.java fail.
Guest
This topic is now closed to further replies.


×
×
  • Create New...