Gift_all for gracia final

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Darkfeiter
Posts: 329
Joined: Tue Dec 16, 2008 6:48 pm

Gift_all for gracia final

Post by Darkfeiter »

hey all i found some scripts over give item target and so on but not found for give all

here a old code

Code: Select all

	private void giftItem(int id, int num)	{		for (L2PcInstance player : L2World.getInstance().getAllPlayers())		{		player.getInventory().addItem("Admin", id, num, player, null);		ItemList il = new ItemList(player, true);		player.sendPacket(il);		player.sendMessage("You earned " + num + " item(s) number " + id + " in your inventory.");	}
he get error at (L2PcInstance player : L2World.getInstance().getAllPlayers())

so what i have to do now ?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Gift_all for gracia final

Post by janiii »

import the missing class. using eclipse, just make organize imports (ctrl+shift+o).
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Gift_all for gracia final

Post by Gnacik »

Try this patch:

http://www.pastebin.cz/31742

its for latest trunk, but you can apply code manualy. untested but should work without problems.
Post Reply