Jump to content
  • 0

SQL problem, "npc" table


Question

Posted

Hey guys,

 

I'm trying to add a custom NPC, when I execute the sql file it says that everything it's correct.

 

But when I open the NPC table, the ID of the new NPC is not there, and if I try to execute it again it gives me the error that the ID its already in use:

 

[Err] 1062 - Duplicate entry '20701' for key 'PRIMARY'
[Err] INSERT INTO npc VALUES ('20701', '25286', 'Venus', '1', 'Buffer', '1', 'Monster.zaken', '15.00', '20.00', '60', 'female', 'L2Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', '', '0', '0', '0', 'LAST_HIT');
[Msg] Finished - Unsuccessfully

 

And if I try to spawn it, it says that the ID is incorrect.

 

I tried to add it manually, but when I close table and open it again, it dissapear.

 

Someone know why this happens?

 

Thanks,

 

Regards

 

EDIT: I executed a 'teleport' table and it works correctly, so what's wrong with 'npc' table?

5 answers to this question

Recommended Posts

  • 0
Posted

[Err] 1062 - Duplicate entry '20701' for key 'PRIMARY'

 

means that this idea is already there,you prolly have increse this specific npc already or this id is already taken by other npc.

  • 0
Posted

ah sry.

alright then,check if its on another page.I'm sure that the table that you're trying to put your npc its the npc sql which got every npc,so be sure that you will check every page of this table

Guest
This topic is now closed to further replies.


  • Posts

    • https://gitlab.com/Tryskell/acis_public nai swsta, exeis kati pio updated na mas protineis? 
    • 🔥 L2Gold Enma – High Rate PvP Interlude 🔥 Interlude Chronicle • C6 Skills • Pure PvP Experience Welcome to L2Gold Enma, a high-rate PvP server designed for players who want instant action, balanced gameplay and nonstop PvP, without pointless grinding. ⚔️ Server Rates XP / SP: x1000 Adena / Drops: x10 Chronicle: Interlude Skills: C6 balanced skills Buff duration: 2 hours No weight limit 🎮 Gameplay Philosophy Fast leveling, instant PvP Clean Interlude experience No pay-to-win mechanics Focus on skill-based PvP 🛡️ Core Features Global Gatekeeper Offline shops Auto events (TvT, DM, CTF, etc.) Retail-like Olympiad with custom balance Active Raid Bosses Easy access to PvP gear 🏰 PvP & Competition Mass PvP & clan wars Meaningful castle sieges Olympiad focused on player skill Balanced classes for both solo & group PvP ⚡ Why L2Gold Enma? Interlude nostalgia with C6 skills High rates, low grind Stable server & active development Community-focused updates 💥 Join L2Gold Enma and dominate the battlefield! This is not a farm server. This is PvP   https://l2gold-enma.com/ https://discord.com/invite/Ba9cHj3HUJ
    • Hi I'm still online for this but making backup of everything in that time I didn't organize well so let me create a pack and upload to archive.org maybe. Thanks ! we can enrich togethers this if everyone add more and more old files.
    • 🔥 **Rework Multi-Sub x12 is coming!** 🔥 A brand-new Lineage II server built from scratch with modern systems, balance, and long-term gameplay in mind. 🧪 OBT: **Feb 16, 18:00 MSK** 🚀 Grand Opening: **Feb 20, 20:00 MSK** Season Pass • Homunculi • Global Trade • Guaranteed Synthesis Clean mechanics. Real progression. Fresh start. 🔗 Join the new chapter of Rework. https://rework.multeria.world/
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..