Skip to content

[Help] How to spawn multi NPCs by auto script?

Featured Replies

[Help] How to spawn multi NPCs by auto script?

Im tired to manually spawn each NPCs. And when I re-install server Database, I will need to manually spawn each NPCs again...

 

  • Author

Sorry, my question is dumb, because Im newbie.

So, where is the topic that newbie should start from?

Given the fact adding manually a spawn write it in the bottom of the database, you could simply export your database under SQL format, extract your edits and save them in a separate SQL file you could keep safe somewhere.

 

A method involving script would lead to a lower performance than adding it directly on database (cause either you can spawn in hard, but it means you must check that spawn doesn't already exist, or you will spawn temporarly and the script will do that every server launch).

 

About script, what can I say more except : "addSpawn". Check exemples to get more infos about method parameters/use.

One other easy way is to check SQL folder of your L2j server and add your SQL's inside it...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.