L2JMobius

Free Users => Work in Progress => Topic started by: oRiGiNaL on February 21, 2021, 11:15:29 AM

Title: Calling drops
Post by: oRiGiNaL on February 21, 2021, 11:15:29 AM
What's wrong here? Can help someone?  :-\ ???
Code: [Select]
final NpcTemplate template = NpcData.getInstance().getTemplate(bossId);
if (template == null)
{
return;
}

List<Integer> drops = new ArrayList<>();
for (DropData drop : template.getAllDropData())
{
drops.add(drop.getItemId());
}
How i can call that list of drops?
greetings
I get error on for (DropData drop : template.getAllDropData())