The tables you will need to work on are
Cq_action
Cq_tasks
Cq_NPC or Cq_dynnpc
First off all open Cq_npc add new ID .. Location .. for the lookface "Copy other NPC's" for task0 put a new ID and make sure the id u put Doesn't have any on cq_action. will require a restart so the npc shows...
when u click the npc it will directly send u to task0 ... which is the new ID u will put
Lets consider the ID as *ID1*
open cq_action
on the ID you put *ID1* id_next the next action script that must comes after the starting query so id_next is *ID2*
if you click the npc it will take u to *ID1* then reads *ID2*... how to make the npc starts a conversation? keep going on the guide..
we got other columns called type .. data and param
To start a conversation when someone clicked the npc you gotta put 101 as type and under param write the text gotta be of 255 letters thats the limit of each column...
note that the space doesn't be readen on TQ binarys you gotta replace each space with ~ for exmple (Welcome~to~E.M.E's~NPC,~You~can~buy~blah~blah~bla h.)
so are first line is
*ID1* *ID2* 0 101 0 Welcome~to~E.M.E's~NPC,~You~can~buy~blah~blah~blah .
then on line 2 comes the options for the NPC
line 2 id is *ID2* gotta be same as Id_next and the type of the options param is 102 so for line 2
*ID2* *ID3* 0 102 0 THE PARAM
the param gotta be the options name like
(Lets~buy) then a space and the action id that must be redirected to so for exmple
(Lets~Buy *ID10*)
and to make an ending option
will be *ID3* it will have to be
*ID3* 15003 0 102 0 THE PARAM
and the param is (END 0) or Nevermind or how ever u wanted to end it...
So we got now
*ID1* *ID2* 0 101 0 Welcome~to~E.M.E's~NPC,~You~can~buy~blah~blah~blah .
*ID2* *ID3* 0 102 0 Lets~Buy *ID10*
*ID3* 15003 0 102 0 END 0
now open cq_tasks
insrt new line
place the following ids as tasks
*ID1*
*ID3*
*ID10*
the cq_tasks has id and id_next
on both add the same ids and the rest copy another line info but make sure the marriage has -1 or else married characters wouldn't be able to get redirected to the actions
the cq_tasks is any request been made by npc tasks this why you have to add your action id on task0 at cq_npc so when u click the npc it do a check on task if the ID exist if it does it redirects you to the actions (id_next)
and for the options on the dialog
*ID2* *ID3* 0 102 0 Lets~Buy *ID10* << when you click Lets~buy it request the *ID10* from tasks to and redirects to ID10 so after u build your dialog u do the rest of action to do w/e u wanted to do with your NPC thats not a full guide this guide made to show you how does the cq_action work for TQ Binarys u can check other npcs for more info to start your own
NPC Changes money into cps.
Requested by: Tarek_ahmed






