Completely stumped can any1 figure this pls

10/26/2013 15:51 wishybum#1
Hi im trying to make a teleporter for frozen burrow but it will not do anything at all when i click on it does any1 have any idea what im doing wrong pls

(plus its a blue 100 npc which i cant figure)

Thanks in advance to any1 that can help

Quote:
cq_npc

100005 0 0 Port 1 1000050 0 0 -1 1000 540 200 99922122 0 0 0 0 0 0 0 0 0 0 0 нч 0 0 0 0 1 0 0 0 0 0
Quote:
cq task

99922122 99922122 0 0 0 999 -100000 -100000 999 0 0 -1 0
Quote:
cq_action

99922122 99922123 0 101 0 Welcome~to~the~frozen~burrow~entrance!~Are~you~bra ve~enough~to~continue?
99922123 99922126 0 102 0 Yes~send~me~now! 9000 500 418
99922124 99922125 0 1003 0 9000 500 418
99922125 0 0 126 0 Welcome~to~frozen~burrow!!
99922126 99922127 0 102 0 No~way~im~not~strong~enough 0
99922127 99922128 0 104 0 0 0 755
99922128 0 0 120 0
hope some1 can help here :)
10/26/2013 16:27 GM Trilogy PM#2
please check all your cq_task. if you don't add it. it will never show you a text box. and check your cq_npc in task collumn. add the cq_task id at there :)

Regards,
GM Trilogy PM
10/26/2013 16:37 idlemonkey#3
like I said in posts before easiest way to debug a npc is to talk to it with your pm.
you can see the actions wherever it stops and doesnt go any further is where your error is
10/26/2013 16:54 GM Trilogy PM#4
Yeah. Talk with a npc with your PM account will show you the cq_action codes :)
10/26/2013 17:06 wishybum#5
Tried both of them when i click the npc i get no action codes and i have gott all actions in cq_task im lost totally lol
10/26/2013 17:41 idlemonkey#6
Quote:
Originally Posted by wishybum View Post
Tried both of them when i click the npc i get no action codes and i have gott all actions in cq_task im lost totally lol
then you didnt add your task correctly or the very first action is what has the error did you put an id next?

cq_npc

Code:
100005	0	0	Port	1	1000050	0	0	-1	1000	540	200	99922122	0	0	0	0	0	0	0	0	0	0	0	нч	0	0	0	0	1	0	0	0	0	0
npc is fine

cq task

Code:
99922122	99922122	0	 0	0	999	-100000	-100000	999	0	0	-1	0
task is wrong should look more like this

Code:
99922122	99922122	0	 0	0	999	-100000	-100000	999	0	0	-1	0
99922123	99922123	0	 0	0	999	-100000	-100000	999	0	0	-1	0
99922124	99922124	0	 0	0	999	-100000	-100000	999	0	0	-1	0
99922125	99922125	0	 0	0	999	-100000	-100000	999	0	0	-1	0
99922126	99922126	0	 0	0	999	-100000	-100000	999	0	0	-1	0
99922127	99922127	0	 0	0	999	-100000	-100000	999	0	0	-1	0
99922128	99922128	0	 0	0	999	-100000	-100000	999	0	0	-1	0

cq_action

Code:
99922122	99922123	0	101	0	Welcome~to~the~frozen~burrow~entrance!~Are~you~bra ve~enough~to~continue?
99922123	99922126	0	102	0	Yes~send~me~now! 9000 500 418
99922124	99922125	0	1003	0	9000 500 418
99922125	0	0	126	0	Welcome~to~frozen~burrow!!
99922126	99922127	0	102	0	No~way~im~not~strong~enough 0
99922127	99922128	0	104	0	0 0 755
99922128	0	0	120	0
this is also wrong
should look more like this
Code:
99922122	99922123	0	101	0	Welcome~to~the~frozen~burrow~entrance!~Are~you~brave~enough~to~continue?
99922123	99922126	0	102	0	Yes~send~me~now! 9000 500 418
99922124	99922125	0	1003	0	9000 500 418
99922125	0	0	126	0	Welcome~to~frozen~burrow!!
99922126	[npcendaction]	0	102	0	No~way~im~not~strong~enough 0
10/26/2013 19:23 wishybum#7
Thanks for your help but it still wont do anything the npc moves when i click it but thats all it does lol im about ready to give up on the idea :P

Is it possible im missing something client side?
10/26/2013 21:12 idlemonkey#8
Quote:
Originally Posted by wishybum View Post
Thanks for your help but it still wont do anything the npc moves when i click it but thats all it does lol im about ready to give up on the idea :P

Is it possible im missing something client side?
did you change [npcendaction] to whatever it is in your server?

you do realise every time you edit cq_task you need to do a maint right?

and no if you can see the npc then the clientside is fine
10/26/2013 21:49 wishybum#9
when you say maint you mean just shut server down? i may sound a little dumb here but im just learning atm this isnt a public server :) i really appreciate all the help i can get



**Update**
ok my npc is now working but is sending me to the wrong place lmao this is too funny :P
10/27/2013 02:01 funhacker#10
Because I don't have access to a database, I can't see the column headers to ensure you have them in the right fields, however the cq_npc and cq_task entries have the correct data. However the cq_task is missing an entry. You don't need to have a cq_task entry for every action you have, just a task based one. Actions are called from tasks and this is when the "action limit starts" so you can start a new action line by calling a task. One such task calling action is the type 102 which has the following parameter setup: "Action~Display~Text~Without~Spaces TASKID"
The only issue with your cq_action is the following:
Quote:
99922122 99922123 0 101 0 Welcome~to~the~frozen~burrow~entrance!~Are~you~bra ve~enough~to~continue?
99922123 99922126 0 102 0 Yes~send~me~now! 9000 500 418
99922124 99922125 0 1003 0 9000 500 418
99922125 0 0 126 0 Welcome~to~frozen~burrow!!
99922126 99922127 0 102 0 No~way~im~not~strong~enough 0
99922127 99922128 0 104 0 0 0 755
99922128 0 0 120 0
So the area in red needs to be changed to a task id that then links to your action "99922124" which can be done using the following:
Code:
99922124	99922124	0	 0	0	999	-100000	-100000	999	0	0	-1	0
Also the part that idle is talking about "npcendaction" may not work for you, in my database for example I created 100 actions with the type 104 and the parameter for faces between 0 and 99, and each one then pointed to type 120. this allows for saving entries in your database, decreasing load time
10/27/2013 02:11 idlemonkey#11
lol I missed that one when i was re writing it
10/27/2013 18:20 wishybum#12
Thanks for all your help guys i finally got it working it was cq_task 1 of the numbers was wrong after all that

But its all good and working fine now so again thanks for your help guys :) :)