Hi,
I am trying to add custom shops to the game but i can't get them to work. Here's what i did:
1: Added a new NPC to NPCResource and some strings to StringResource_EN for the name and text id's
2: Set the contact script as cookietestscript()
3: Created a new lua: NPC_custom.lua with the following contents
function get_module_name()
return "NPC_custom"
end
function cookietestscript()
dlg_title( "Test salesman" )
dlg_text( "Welcome, I sell a variety of useful items." )
dlg_menu( "Store", 'open_market("cookietestmarket")' )
dlg_menu( "Goodbye", '' )
end
4: Compressed the lua script
5: Created a new entry in MarketResource for cookietestmarket so the store can show an item (a CNC in this case)
6: Dumped NPCResource and StringResource_EN in the client
Testing results:
1: The servers run YAY!!!
2: The client runs YAAYY!!!!!
3: The new NPC is added with the correct title/name YAAAYYY!!!!
4: Clicking the NPC does nothing.... NAAAAYYYY =(
Why doesn't the lua script launch when i click the new NPC? As far as i understand the contact_script should launch the cookietestscript and at least show the conversation window...
Any help is greatly appreciated