NPCS?

05/20/2012 14:42 Vegetto069#1
Hey dudes, i ´ve my own p server and my question is : how can i put items like wings, items and stamina into an npc, who sell them? Is there any command or what should i do?
ThX
05/20/2012 15:03 yahooh#2
u need one lua file , npc ressource db and market ressource DB

in the market ressource u write to sell your items

in the nPC ressource u create your own npc with name design and ! the contact name

so in the lua file u write ur npc contact name i will show u the lua step so

function NPC_???_???_contact() <<<<< Your Contact Name
-- new shop
dlg_title( "??My Shop??" ) <<<< ingame Table name of your Shop
dlg_text( "Hello ?!" )<< What he speaks if u klick of him

dlg_menu( "?????", "open_market( 'ver_item' )" ) <<<< your Menü tab and your Item discription on the market ressource here

dlg_menu( "@90010002", '' )
dlg_show()
end