I'm not going to explain the whole process to you, for you should be able to use common sense and the search function to validate what I'm going to tell you.
Each NPC record in the Database refers to a 'contact_script' (e.g. 'laksy_blacksmith()')
This script calls to a mirror function in an LUA, you can even go as far as creating an lua specifically for this task.
Or you could simply edit the original Teleporter LUA, should be easy enough to find. Just look for 'dlg_menu' this denotes menu options like 'I'd like to use the shop' and also denotes menu options for 'Teleport' just mimic the examples of Teleports from City to City.
|