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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...