Editing npcs isnt that easy. If you add them to the database with a specific id you can adjust names etc inside the db, but the client will only look up the id of that npc inside its own database and display what is stored there, so no name/appearance changing without client modding.
to add new npc:
look through the lua files for already present npcs, you can change already present npcs inside the npcresource to call your own merchant script.
I released an item list with new merchants, you can look through those files to understand how to add your own npc and shops.
function NPC_Card_shop_contact()
-- new shop
dlg_title( "All Cards" )
dlg_text( "Hello I am here today to sell you cards of each Race Thank you for choosing my server" )
dlg_menu( "Gaia Cards", "open_market( 'NPC_card_shop_gaia' )" )
dlg_menu( "Deva Cards", "open_market( 'NPC_card_shop_deva' )" )
dlg_menu( "Asura Cards", "open_market( 'NPC_Card_shop_Asura')" )
dlg_menu( "Thanks for shopping.", '' )
dlg_show()
end
function NPC_Card_shop_contact()
-- new shop
dlg_title( "All Cards" )
dlg_text( "Hello I am here today to sell you cards of each Race Thank you for choosing my server" )
dlg_menu( "Gaia Cards", "open_market( 'NPC_card_shop_gaia' )" )
dlg_menu( "Deva Cards", "open_market( 'NPC_card_shop_deva' )" )
dlg_menu( "Asura Cards", "open_market( 'NPC_Card_shop_Asura')" )
dlg_menu( "Thanks for shopping.", '' )
dlg_show()
end
may you tell us how to change the names?
thank you
function NPC_Card_shop_contact()
-- new shop
dlg_title( "All Cards" )
dlg_text( "Hello I am here today to sell you cards of each Race Thank you for choosing my server" )
dlg_menu( "Gaia Cards", "open_market( 'NPC_card_shop_gaia' )" )
dlg_menu( "Deva Cards", "open_market( 'NPC_card_shop_deva' )" )
dlg_menu( "Asura Cards", "open_market( 'NPC_Card_shop_Asura')" )
dlg_menu( "Thanks for shopping.", '' )
dlg_show()
end
{Help} To create PNJ 01/24/2011 - Shaiya - 1 Replies Good evening, I want to know how to create an NPC (seller) to sell the item (pana, stone exp ...)
thank you in advance for your help.
how do i create an npc? 09/26/2010 - CO2 Private Server - 5 Replies im use PowerSourceCO and Steals Server Pack for my private server and im trying to add an NPC but i got really no clue about it heres the instructiosn it gave me
Instructions:
================================================= ================
NpcID:
The ID of your NPC!!, This field is unique, and cannot be used more than once
for example, 10044 is a NPC id, but if you want to make another npcs, u cannot use that
number again.
How To create? 03/24/2010 - Metin2 PServer Guides & Strategies - 7 Replies How to create NPC permanent??
PLease Help ME!!!