[Problem] With NPC i wrote

10/02/2009 13:20 Jemy#1
Hello there

I am having a problem with an NPC i wrote for my server no matter what i do it just don't want to talk and i just don't know why lol

Even as PM i cannot see any actions comming towards me while i click on it it has a white name and it moves when i click on it but it don't send any actions nor talk

Here is the script

Code:
#
INSERT INTO cq_npc VALUES(9000, 0, 0, "BirthGod", 0002, 4053, -1, 1010, 0090, 0054,1100,0,0,0,0,0,0,0,0,0,0,0, "", 0, 00, 00, 0000, 01, 0000 );
#
INSERT INTO cq_task VALUES (1100,1100,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1101,1101,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1102,1102,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1103,1103,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1104,1104,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1105,1105,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1106,1106,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1007,1107,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1108,1108,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1109,1109,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1110,1110,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1112,1112,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1113,1113,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1114,1114,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1115,1115,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1116,1116,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1117,1117,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
#
INSERT INTO cq_action VALUES (1100,1101,0000,0101,0,"Oh~hello~there~another~young~soul~how~can~i~help~you~my~son~?");
INSERT INTO cq_action VALUES (1101,1102,0000,0102,0,"Who~are~you~? 1103");
INSERT INTO cq_action VALUES (1102,610091,0000,0102,0,"Teleport~Me~To~TwinCity 1112");
#
INSERT INTO cq_action VALUES (1103,1104,0000,0101,0,"Hehe~well~i~got~alot~names~call~me~the~BirthGod");
INSERT INTO cq_action VALUES (1104,610091,0000,0102,0,"Whats~behind~the~bridge~? 1105");
#
INSERT INTO cq_action VALUES (1105,1106,0000,0101,0,"Thats~the~way~to~Twin~City~the~capital~of~all~citys~in~the~land~of~the~living");
INSERT INTO cq_action VALUES (1106,610091,0000,0102,0,"Can~you~let~me~pass~? 1107");
#
INSERT INTO cq_action VALUES (1107,1108,0000,0101,0,"Not~so~fast~my~little~warrior~did~you~talk~yet~to~all~the~masters~specialy~OldGeneralYang~");
INSERT INTO cq_action VALUES (1108,1109,0000,0101,0,"And~TaoistStar~will~teach~a~very~important~leason~before~you~leave~when~you~talked~to~them~");
INSERT INTO cq_action VALUES (1109,1110,0000,0101,0,"And~when~you~are~ready~for~you~journary~i~will~let~you~pass");
INSERT INTO cq_action VALUES (1110,1111,0000,0102,0,"I~am~ready 1112");
INSERT INTO cq_action VALUES (1111,610091,0000,0102,0,"Not~yet. 0");
#
INSERT INTO cq_action VALUES (1112,1113,0000,501,132305,"");
INSERT INTO cq_action VALUES (1113,1114,0000,501,1000000,"");
INSERT INTO cq_action VALUES (1114,1115,0000,501,1000000,"");
INSERT INTO cq_action VALUES (1115,1116,0000,501,1000000,"");
INSERT INTO cq_action VALUES (1116,1117,0000,1003,0,"1002 440 390");
INSERT INTO cq_action VALUES (1117,610091,0000,0101,0,"I~gave~you~Coat~Wooden~Sword~and~some~healing~potions.~Wish~you~pleasant~Journey.");
I hope anyone has an idea whats wrong

Thanks

Regards Jemy.
10/02/2009 20:36 Jemy#2
Bump

Any help please..
10/02/2009 21:10 Soiken#3
Jemy please don`t double post , add thread to You`r favorites (on browser) come back tomorrow and check if any answer has come , if not , find some C# Coder and PM him , might help too
10/02/2009 21:37 damianpesta#4
Quote:
Originally Posted by Soiken View Post
Jemy please don`t double post , add thread to You`r favorites (on browser) come back tomorrow and check if any answer has come , if not , find some C# Coder and PM him , might help too
lol'd "C# coder" erm since when C# contains study of querys?
10/02/2009 21:50 KraHen#5
Quote:
Originally Posted by damianpesta View Post
lol'd "C# coder" erm since when C# contains study of querys?
Just a matter of external libraries xD // jokin
10/02/2009 22:59 samehvan#6
Quote:
Originally Posted by Jemy View Post
Hello there

I am having a problem with an NPC i wrote for my server no matter what i do it just don't want to talk and i just don't know why lol

Even as PM i cannot see any actions comming towards me while i click on it it has a white name and it moves when i click on it but it don't send any actions nor talk

Here is the script

Code:
#
INSERT INTO cq_npc VALUES(9000, 0, 0, "BirthGod", 0002, 4053, -1, 1010, 0090, 0054,1100,0,0,0,0,0,0,0,0,0,0,0, "", 0, 00, 00, 0000, 01, 0000 );
#
INSERT INTO cq_task VALUES (1100,1100,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1101,1101,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1102,1102,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1103,1103,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1104,1104,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1105,1105,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1106,1106,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1007,1107,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1108,1108,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1109,1109,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1110,1110,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1112,1112,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1113,1113,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1114,1114,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1115,1115,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1116,1116,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
INSERT INTO cq_task VALUES (1117,1117,0000,"","",0,0,0,999,-100000,100000,0000,0,-1,0);
#
INSERT INTO cq_action VALUES (1100,1101,0000,0101,0,"Oh~hello~there~another~young~soul~how~can~i~help~you~my~son~?");
INSERT INTO cq_action VALUES (1101,1102,0000,0102,0,"Who~are~you~? 1103");
INSERT INTO cq_action VALUES (1102,610091,0000,0102,0,"Teleport~Me~To~TwinCity 1112");
#
INSERT INTO cq_action VALUES (1103,1104,0000,0101,0,"Hehe~well~i~got~alot~names~call~me~the~BirthGod");
INSERT INTO cq_action VALUES (1104,610091,0000,0102,0,"Whats~behind~the~bridge~? 1105");
#
INSERT INTO cq_action VALUES (1105,1106,0000,0101,0,"Thats~the~way~to~Twin~City~the~capital~of~all~citys~in~the~land~of~the~living");
INSERT INTO cq_action VALUES (1106,610091,0000,0102,0,"Can~you~let~me~pass~? 1107");
#
INSERT INTO cq_action VALUES (1107,1108,0000,0101,0,"Not~so~fast~my~little~warrior~did~you~talk~yet~to~all~the~masters~specialy~OldGeneralYang~");
INSERT INTO cq_action VALUES (1108,1109,0000,0101,0,"And~TaoistStar~will~teach~a~very~important~leason~before~you~leave~when~you~talked~to~them~");
INSERT INTO cq_action VALUES (1109,1110,0000,0101,0,"And~when~you~are~ready~for~you~journary~i~will~let~you~pass");
INSERT INTO cq_action VALUES (1110,1111,0000,0102,0,"I~am~ready 1112");
INSERT INTO cq_action VALUES (1111,610091,0000,0102,0,"Not~yet. 0");
#
INSERT INTO cq_action VALUES (1112,1113,0000,501,132305,"");
INSERT INTO cq_action VALUES (1113,1114,0000,501,1000000,"");
INSERT INTO cq_action VALUES (1114,1115,0000,501,1000000,"");
INSERT INTO cq_action VALUES (1115,1116,0000,501,1000000,"");
INSERT INTO cq_action VALUES (1116,1117,0000,1003,0,"1002 440 390");
INSERT INTO cq_action VALUES (1117,610091,0000,0101,0,"I~gave~you~Coat~Wooden~Sword~and~some~healing~potions.~Wish~you~pleasant~Journey.");
I hope anyone has an idea whats wrong

Thanks

Regards Jemy.
your Direction default is 0 as i think , make it 2
10/03/2009 00:40 Jemy#7
Quote:
Originally Posted by samehvan View Post
your Direction default is 0 as i think , make it 2
What do you mean with Direction ?
10/04/2009 14:07 Jemy#8
So no one wants to help ?
10/04/2009 14:28 teroareboss1#9
where you see
INSERT INTO cq_action VALUES (1102,610091,0000,0102,0,"Teleport~Me~To~TwinCity 1112");

and 1112 at "teleport tc" is next id and put

INSERT INTO cq_action VALUES (1112,0000,0000,1003,0,"1002 440 390");
10/04/2009 18:40 samehvan#10
the Direction is a field in the NPC structure NPC.Direction as NPC.Flag and NPC.ID , it will be in database , u have to change it to 2 to let the NPC talk
10/06/2009 22:22 Jemy#11
Quote:
Originally Posted by samehvan View Post
the Direction is a field in the NPC structure NPC.Direction as NPC.Flag and NPC.ID , it will be in database , u have to change it to 2 to let the NPC talk
There is nothing such as Direction there is type which should be 2 and it is already 2....

Notice i am using the Binary databases

Please anyone can help >......<
10/07/2009 00:01 samehvan#12
Quote:
Originally Posted by Jemy View Post
There is nothing such as Direction there is type which should be 2 and it is already 2....

Notice i am using the Binary databases

Please anyone can help >......<
oh, sorry i have no idea about bins, u can make a screen shot from your database for some working NPCs and i'll try to c how it should work