To add a shop to lets say NPC 124666 you have to start buy createing a new lua code with
You must be registered to see links
1. function Carpenter_RecipeList_Init34() -- The call from QuestNPCObjectDB in sql (szluainitscript) table you also need lua_buytheskill_1 in table (szluascript).
2. SetMinimapIcon ( OwnerID(), EM_MapIconType_Mat ); -- setting the mapicon.
3. SetShop( OwnerID() , 601013, "Test_Shop_Close" ); -- Createing sell item from ShopObjectDB in sql.
4. end
we will use the Carpenter_RecipeList_Init34 to add in the sell items like below.
You must be registered to see links
1. function Carpenter_RecipeList_Init34() -- Assigning it to the function above
2. AddRecipe( OwnerID(), 553336 ); -- the actual item added to sell
3. AddRecipe( OwnerID(), 553338 );
4. end
after this you need to finish the function for the sell that would be add like this
You must be registered to see links
the whole lua code would look like this
as long as you add in your sql links to lua code everything will work ...