All pastes #47560 Raw Edit

Stuff

public text v1 · immutable
#47560 ·published 2006-03-30 03:34 UTC
rendered paste body
String params = command.substring(14);
StringTokenizer st = new StringTokenizer(params);
if (st.countTokens() == 3)
{
	L2PcInstance target = L2World.getInstance().getPlayer(st.nextToken());
	L2Object target = activeChar.getTarget();
	if(target instanceof L2PcInstance) {
		target = (L2PcInstance)activeChar.getTarget();
	}
	int itemId = Integer.parseInt(st.nextToken());
	int itemAmount = Integer.parseInt(st.nextToken());
	System.out.println(target.getName());
	System.out.println(itemId);
	System.out.println(itemAmount);
	giveItem(target,itemId,itemAmount);
}