Jump to content

Question

Posted

How i can delete all spawned monsters? I tyr many commands. But unusefull. L2jSunrise no have defined in database type of npc.  location spawns and npc template. But npc template including npcs (monsters too). I can delete 1 by 1 with //delete only?

7 answers to this question

Recommended Posts

  • 0
Posted

I ask something forbidden? Why i don;t do that? What it si wrong with that? I want to spawn my cusom mobs because i make a custom server. Thank you

  • 0
Posted
42 minutes ago, 0flee said:

I ask something forbidden? Why i don;t do that? What it si wrong with that? I want to spawn my cusom mobs because i make a custom server. Thank you

 

image.png.08987bf61e06c7250424e0e38f891528.png

 

3 hours ago, Trance said:

 

What are you talking about? He asked how can he mass delete the spawnlist. He can do that by suing the npc ids or coordinates range from the database.

 

  • 0
Posted

I find a command 

DELETE FROM `spawnlist` WHERE (`npc_templateid`='npctemplate') it is more simple, not fast, but i have to work :(

3 minutes ago, Trance said:

 

image.png.08987bf61e06c7250424e0e38f891528.png

 

 

There i must defined coords. And i want to delete all possible monsters on map. Raid G Raid including. Just basic npcs. That npcs with what player can talk.

  • 0
Posted
2 minutes ago, 0flee said:

I find a command 

DELETE FROM `spawnlist` WHERE (`npc_templateid`='npctemplate') it is more simple, not fast, but i have to work :(

There i must defined coords. And i want to delete all possible monsters on map. Raid G Raid including. Just basic npcs. That npcs with what player can talk.

 

You can use conditions if you want to delete a certain group of mobs based on npcid range or coords. I suggest you then delete mobs on npc ids, see what are the ranges between A and B, C and D, etc and delete them.

  • 0
Posted
7 hours ago, 0flee said:

Yes, it is a good ideea, thank you!

 

but 1 question, Monsters and Npc are both spawned on spawnlist?

 

Yes.

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.



  • Posts

    • Hey guys, I came up with this idea while needing to write down multiple locations. When you use the /loc command, a text file is created (only the first time) and stores all the locations you debug.   Output:   --- a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/usercommandhandlers/Loc.java +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/usercommandhandlers/Loc.java @@ -1,5 +1,10 @@ package net.sf.l2j.gameserver.handler.usercommandhandlers; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; + import net.sf.l2j.gameserver.data.xml.MapRegionData; import net.sf.l2j.gameserver.handler.IUserCommandHandler; import net.sf.l2j.gameserver.model.actor.Player; @@ -13,6 +18,7 @@ 0 }; + @SuppressWarnings("resource") @Override public void useUserCommand(int id, Player player) { @@ -100,6 +106,26 @@ } player.sendPacket(SystemMessage.getSystemMessage(msg).addNumber(player.getX()).addNumber(player.getY()).addNumber(player.getZ())); + + if (player.isGM()) + { + try + { + String fileLoc = "./data/locations.txt"; + final File file = new File(fileLoc); + file.createNewFile(); + + FileWriter fw = new FileWriter(fileLoc, true); + BufferedWriter bw = new BufferedWriter(fw); + bw.write(player.getX() + ", " + player.getY() + ", " + player.getZ()); + bw.newLine(); + bw.close(); + } + catch (IOException e) + { + e.printStackTrace(); + } + } } @Override  
    • Not any training model, i should fix that, just a very well done bot engine. As we use it on a local Internet Cafe spot and people join to test server, they don't seem to understand they are bots. Their behaviour is really well done. Many actions that other bots can't do are possible and the are complicated patterns that can be done due to structure of the engine such as Pick items of dead party pk member and later on trade them back to owner. So i'll fix later the title to Bot Engine rather than A.I. 
    • its old ver ))   this is new https://gamerip.ru/index.php?/topic/3308-lineage2-chronicle3-rise-of-darkness-new-version-172-030225/
  • Topics

×
×
  • Create New...