Jump to content
  • 0

Some Errors With Eclipse And Few Question


Question

Posted

Hello, maybe anyone knows why my eclipse show that errors, but when i try to compile so build succesfully.

I'm using l2j acis.

 

And how i can delete all spawned mobs in the world.. How i saw all npc are in .xml files not in database.

 

Thanks everyone for answers, sorry for my bad english :D

post-198811-0-35186800-1480357875_thumb.jpg

7 answers to this question

Recommended Posts

  • 0
Posted (edited)

Hello, maybe anyone knows why my eclipse show that errors, but when i try to compile so build succesfully.

I'm using l2j acis.

 

And how i can delete all spawned mobs in the world.. How i saw all npc are in .xml files not in database.

 

Thanks everyone for answers, sorry for my bad english :D

1st.show us your error

2nd. Open console in ur database and paste -> truncate table spawnlist; (or whatever you are using for spawns)

Edited by ⏇Melron⏇℠Abs
  • 0
Posted

Ye, but why it compiling without errors?

And ? You want to compile only errors?error=wrong Red=Error You dont need errors on compile my friend

  • 0
Posted (edited)

http://imgur.com/a/KqHDv . There's photo with error.

 

u say:

2nd. Open console in ur database and paste -> truncate table spawnlist; (or whatever you are using for spawns)

 

But im need delete only mobs with type "L2Monster"

 

Thank u.

You want to delete mobs or just their spawn?

 

Also, what version of eclipse you are using?

 

try this

-for (NpcTemplate raid : NpcTable.getInstance().getTemplates(t -> t.isType("L2RaidBoss")))
-		{
-			for (L2Spawn spawn : SpawnTable.getInstance().getSpawnTable())
-			{
-				if (spawn.getNpcId() == raid.getNpcId())
-				{
-					RADARS.put(raid.getNpcId(), new Location(spawn.getLocx(), spawn.getLocy(), spawn.getLocz()));
-					break;
-				}
-			}
-		}

+		for (L2Spawn spawn : SpawnTable.getInstance().getSpawnTable())
+		{
+			if (spawn.getTemplate().isType("L2RaidBoss"))
+				RADARS.put(spawn.getNpcId(), new Location(spawn.getLocx(), spawn.getLocy(), spawn.getLocz()));
+		}
Edited by ⏇Melron⏇℠Abs

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock