02-26-2023, 09:57 PM
A complete guide for relocating NPC’s have been requested, and that happens to be one of the very few things I know how to do. Hopefully this will explain everything clearly, but if not, don’t hesitate to ask questions and I’ll try to answer to the best of my ability.
First off you need to find the ID of the NPC you want moved. For this you will need a NPC tool, and in this case I’m using the LCMT ( Last Chaos Multi Tool ). I will be relocating Weapon Lending Dealer, which has ID = 272
After you’ve found the ID, you need to decide where you want the NPC to stand. You do this by going in game and positioning your character at the exact spot you want the NPC to be at. In this case, I want Weapon Lending Dealer to stand at “1123, 898”. This is the x and z coordinates, which you will find in the top right corner above your minimap.
Now that you know the ID and the coordinates, we can go ahead and open the database and find our guy. Every NPC you need will be listed in two separate tables under live_data -> t_npc_regen and t_shop.
All the shop NPC’s will be in t_shop, and other “people” NPC will be in t_npc_regen. It’s safe to assume that Weapon Lending Dealer will be in the t_shop table, and we can make a query to find him there. To open a new Query in Navicat, go to Query -> new query and the second window will open as shown in the picture below.
To find NPC’s in t_shop you will need this query:
Select * from t_shop where a_keeper_idx = Id (the id you found earlier)
To find NPC’s in t_npc_regen you will need this query:
Select * from t_npc_regen where a_npc_idx = Id (the id you found earlier)
When you press the “run” button after typing the query, you should find the NPC you are looking for. If not, you might be in the wrong table, or have the wrong ID.
But now you can go ahead and change his coordinates to match the ones at the location you want the NPC. The first number 1123 = x and the second 898 = y. After the information changed to your liking, press apply to confirm it.
You can leave h as it is, and lastly there is the r position. You might find the NPC facing the wrong way, and to fix this you have to change the r value. In my case I can leave it as is, but lets say you want it to face south, you would put 180 as the value here. A nice trick is to just think of what direction relative to the north gate in Randol you are facing
After you are happy with your edits, you can go ahead and pull out the NPC tool, then save the new “mobAll.lod” file and replace the old one in your client. If you are using LCMT, you simply press file -> save as -> find your mobAll.lod in the data folder of the client and replace the file.
Close everything down and reboot the servers, then voila! Go nuts ?
If I'm wrong in anything here, please let me know and we'll set it right!

