Jump to content

Recommended Posts

Posted

First of all Hello Maxcheaters.

Serveral days Users Contact to me and Ask to help add Gmshop,Global GK,Buffer and etc.

So i tired to explain.

Also forum is full with topics with chronicle npcs requests...

I decided to open topic about how to import NPC normally.

 

Let's Start.

 

i took L2J-Teon.

for example we download some GMShop

first of all we must add sql file yes?

Go Navicat

Right Click on l2jdb and select Execute Batch File

Select GMshop-s sql and press Start.

We Got Error

[Err] 1136 - Column count doesn't match value count at row 1

What we must do?

 

1.Just Click On table npc and then Export Wizard

 

59132782.png

 

2.We must select export format. Select SQL script file(*.sql)

 

15428436.png

 

3.Below Export to Click ...

 

68364004.png

 

4.Save File to desktop

 

42001186.png

 

5.Click 3 times Next and then Start

 

26262611.png

 

6.If you see this all is ok

 

[Msg] [Exp] Table Type - SQL script file
[Msg] [Exp] Getting and Exporting data ...
[Msg] [Exp] Export table [npc]
[Msg] [Exp] Export to - C:\Documents and Settings\Leki\Desktop\npc.sql
[Msg] [Exp] Finished - Successfully

 

7.Now go to desktop and open npc.sql with Notepad.

 

30344604.png

 

8.Now you must choose how your gmshop must like? ID you can view Here

 

9.Say you choose Mew the Cat(14177)

 

10.Press Ctrl+F and write 14177

 

11.You see Mew the Cat's SQL script copy it

 

INSERT INTO npc
   (`id`, `idTemplate`, `name`, `serverSideName`, `title`, `serverSideTitle`, `class`, `collision_radius`, `collision_height`, `level`, `sex`, `type`, `attackrange`, `hp`, `mp`, `hpreg`, `mpreg`, `str`, `con`, `dex`, `int`, `wit`, `men`, `exp`, `sp`, `patk`, `pdef`, `matk`, `mdef`, `atkspd`, `aggro`, `matkspd`, `rhand`, `lhand`, `armor`, `walkspd`, `runspd`, `faction_id`, `faction_range`, `isUndead`, `absorb_level`, `absorb_type`, `ss`, `bss`, `ss_rate`, `AI`)
VALUES
   (14177, 14177, 'Mew the Cat', 0, '', 0, 'Monster.cutie_cat', 8.00, 15.00, 78, 'female', 'L2Npc', 40, 7085, 2057, 13.43, 3.09, 40, 43, 30, 21, 20, 25, 0, 0, 1715, 555, 1069, 520, 278, 0, 333, 0, 0, 0, 52, 154, NULL, 0, 0, 0, 'LAST_HIT', 0, 0, 0, 'fighter');

 

12.Now you must change some things...

 

INSERT INTO npc

  (`id`, `idTemplate`, `name`, `serverSideName`, `title`, `serverSideTitle`, `class`, `collision_radius`, `collision_height`, `level`, `sex`, `type`, `attackrange`, `hp`, `mp`, `hpreg`, `mpreg`, `str`, `con`, `dex`, `int`, `wit`, `men`, `exp`, `sp`, `patk`, `pdef`, `matk`, `mdef`, `atkspd`, `aggro`, `matkspd`, `rhand`, `lhand`, `armor`, `walkspd`, `runspd`, `faction_id`, `faction_range`, `isUndead`, `absorb_level`, `absorb_type`, `ss`, `bss`, `ss_rate`, `AI`)

VALUES

  (NPC_ID, 14177, 'NPC_NAME', 1, 'NPC_TITLE', 1, 'Monster.cutie_cat', 8.00, 15.00, 78, 'female', 'NPC_TYPE', 40, 7085, 2057, 13.43, 3.09, 40, 43, 30, 21, 20, 25, 0, 0, 1715, 555, 1069, 520, 278, 0, 333, 0, 0, 0, 52, 154, NULL, 0, 0, 0, 'LAST_HIT', 0, 0, 0, 'fighter');

 

*NPC_TYPE

GMShop - L2Merchant

Gatekeeper - L2Teleporter

Monster - L2Monster

Raid Boss - L2RaidBoss

Grand Boss  - L2GrandBoss

Minion - L2Minion

Other Npc - L2Npc

 

Save it in *.sql file and execute :)

 

That all :) Thanks for writing i hope i help :)

 

Credits for Guide to me :)

 

P.s  I hope some1 will give me karma

  • 3 weeks later...
Posted

[Err] 1062 - Duplicate entry '1' for key 1

[Err] INSERT INTO `npc` VALUES (1, 1, 'Thomas D. Turkey', 0, 'Misguided Holiday Scrooge', 0, 'LineageMonster4.br_crazy_turkey', 20.00, 30.00, 70, 'male', 'L2Npc', 40, 3862, 1494, 0.00, 0.00, 40, 43, 30, 21, 20, 20, 0, 0, 1303, 471, 607, 382, 253, 0, 333, 0, 0, 0, 0, 30, 132, 0, 0, 'LAST_HIT', 'false');

[Msg] Finished - Unsuccessfully

--------------------------------------------

 

And this info i have (i step by step in your guide)

  • 3 weeks later...
Posted

[Err] 1062 - Duplicate entry '1' for key 1

[Err] INSERT INTO `npc` VALUES (1, 1, 'Thomas D. Turkey', 0, 'Misguided Holiday Scrooge', 0, 'LineageMonster4.br_crazy_turkey', 20.00, 30.00, 70, 'male', 'L2Npc', 40, 3862, 1494, 0.00, 0.00, 40, 43, 30, 21, 20, 20, 0, 0, 1303, 471, 607, 382, 253, 0, 333, 0, 0, 0, 0, 30, 132, 0, 0, 'LAST_HIT', 'false');

[Msg] Finished - Unsuccessfully

--------------------------------------------

 

And this info i have (i step by step in your guide)

 

He forgot to mention in his guide you need to change the NPC ID.

 

The NPC_ID is the first number after VALUES, in your case its 1, change it to any number that is not already in use, for instance 77701.

 

Then you will be working.

Posted

Good guide that you can do it for make an .sql file for one mod/npc/armor/weapon/item that you make and you dont know to create .sql file for each project (l2j server dont have the same .sql files like the l2j teon that you use for example).

  • 8 months later...
Posted

[Err] 1146 - Table 'l2jdb.npc' doesn't exist

[Err] INSERT INTO `npc` VALUES (1, 1, 'Thomas D. Turkey', 0, 'Misguided Holiday Scrooge', 0, 'LineageMonster4.br_crazy_turkey', 25.00, 35.00, 80, 'male', 'L2Npc', 40, 680.000000000000000, 2000.000000000000000, 0.000000000000000, 0.900000000000000, 40, 43, 30, 21, 20, 20, 0, 0, 8.47458, 60000.00000, 5.78704, 200000.00000, 253, 1, 0, 333, 0, 0, 0, 19.50000, 160.00000, 1, 1, 0, 1);

[Msg] Finished - Unsuccessfully

--------------------------------------------------

 

Can you help me?

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


  • Posts

    • Perfect way to experience L2 without the brutal official grind. The progression here is so much smoother and faster, you get to the fun PvP and epic raids way quicker. The custom stuff keeps it fresh too. Definitely worth diving into!
    • L2-Getwork server highly customized with high-stats https://l2server.eu/ https://discord.gg/SsVhm7R Rates: L2 High Five fully customized Getwork Style with High Stats and Enchant ExP/Sp: 75x (custom) Drop/Spoil: 1x (custom) Safe: 500 Max: 50 000   Enchant System: Normal Scrolls: 93% - fail - decrease enchant by 20 Blessed Scrolls: 96% - fail - decrease enchant by 10   Armor Max Enchant D-Grade: +1000 Max Enchant C-Grade: +2000 Max Enchant B-Grade: +3000 Max Enchant A-Grade: +4000 Max Enchant S-Grade: +5000   Weapons Max Enchant D-Grade: +5000 Max Enchant C-Grade: +10000 Max Enchant B-Grade: +15000 Max Enchant A-Grade: +20000 Max Enchant S-Grade: +25000 - 50000   Fir Tree Branch (Weapon): +100 into Weapons (max 50 000) Fir Tree Branch (Armor): +15 into Armor (max 5000) Road to Dvc Cloak Enchant: +1 into cloak (max +1000) Masks of Spirit/Demon Horns Enchants: +1 into Masks (max +10) Each accessories has different max enchant and chances Daily Missions (.missions) Collections (ALT + B) Gambling System(.gamble) - each pack cost different amount Gamble Points, different items How to get gambling points? - by killing Raid Bosses/Events or Completing Daily Missions. Clan Bonus VIP Bonuses (maximum level 10) Battlepass (maximum level 100) - by killing monsters Rebirth (starting in Parnassus) Everything in ALT+B Master's Buffs - 100 Small Glass Box (1 buff) Farm Zones: Custom Farm Zones: Ruin of Agony (Exp Zone) Underground Coliseum (Safe Exp Zone) DVC,Brigand,Frost are similiar farm zones with same monsters Dvc Brigand Stronghold Frost Lake Parnassus - TOP ZONE some of our features: .gamble,collections,battlepass,talent tree, rebirth        
    • https://www.mediafire.com/file/l905r1sd84hnovf/FileEdit.rar/file
  • Topics

×
×
  • 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