You will have to define the contact script in your lua.
Contact scripts start with a code like the following:
Code:
function npc_secroute_contact()
dlg_title("@00000000")
dlg_text("@00000001")
if get_env("game.cash_usable_server") == 0 then
dlg_menu( "@000000002", "open_market( 'secroute_market' )" )
else
dlg_menu( "@000000003", "open_market( 'normal_market' )" )
end
dlg_menu( "@90010002", '' )
dlg_show()
end
The code above is just an example on how to write a contact script.
You will have to adjust the values of the string-calls (@number).
The number following the '@' equals the code of a specific string in the dbo.StringResource.
You may also just enter a string by yourself (don't forget the quotation marks).
Modifiy the script as you want, then add the functions name ('npc_secroute_contact()')
to the field 'contact_script' of the npc in the dbo.NPCResource.
Greez,
Ciel