Question

06/27/2011 01:30 darkmoon00#1
hi guys i want ask about the npc how i can make new npc with cq_action and add items with it
06/27/2011 05:30 shadowkiller990#2
well to make a new npc needs to be done in cq_npc and to have it drop items u gotta do it in cq_dropitemrule and if u wish to edit what its equips are u have to edit the .c3 file i think it is

Hope it helps :D
06/27/2011 09:45 Avis2#3
Well you would make an npc under "cq_npc" easiest/fastest thing to do is copy and NPC u like from the table and change the id name and task0 (task0 will be the action id you created) In the cq_action area you would add your actions depending on how you want ur npc set up you are also going to need to add the action ids in the cq_task table.

So back to the cq_action in the cq_action you have 6 columns id, id_next, id_nextfail, type, data, param. The tricky columns for newbies are type and data.
for type you would use these:101,102,501,502,508
101 puts the text you have in param in the top of the dialog box (basically what the npc is saying to you)
102 put the text you have in param in the dialog box area for players to click.
with 102 param you add the action id after the text so when a player clicks what they want it goes to that action.
501 is to give the item to the player
502 would be to take an item from a player
508 is used to check a players bag to see is they have room for the item

next is data for data you would put the item id you want to give(501) or take(502)

If you need farther help let me know.
06/27/2011 09:46 ¤iTsbSkuLLy¤#4
Make a new mpc ^^ cq_npc, then you should know from the post above mine^^
06/27/2011 10:01 Marcus*#5
found this [Only registered and activated users can see links. Click Here To Register...] hope it helps
06/27/2011 12:07 ~Sword~Stalker~.#6
Quote:
The tricky columns for newbies are type and data.
just the DATA part is tricky .. something as TYPE: 126 .. the data:0 gives a function than data:1 and data:5002 .

for the types . i guess its the easiest part in the cq_action

and u forgot about TYPE: 104 / 120 . thats for an exchanger NPC . then ull need it .

and btw ., u need to mention that the data will be 0 . but how ever since u opened the window of the NPC . then u can change the Data
06/28/2011 00:08 Avis2#7
Quote:
Originally Posted by ~Sword~Stalker~. View Post
just the DATA part is tricky .. something as TYPE: 126 .. the data:0 gives a function than data:1 and data:5002 .

for the types . i guess its the easiest part in the cq_action

and u forgot about TYPE: 104 / 120 . thats for an exchanger NPC . then ull need it .

and btw ., u need to mention that the data will be 0 . but how ever since u opened the window of the NPC . then u can change the Data
I did forget the 104 120 but must peeps just use the 4000026 action id for the next action at the end of the npc convo
06/28/2011 00:18 ~Sword~Stalker~.#8
aah yes , as an id_next . its duplicated but its fine to give full info tho ;)

im not saying urs is wrong im just notifying u and really thanks for what u have explained there it would be helpful for starters ^^

Regards