PlaneShift

Development => Development Deliberation => Topic started by: owen_a on December 04, 2010, 11:46:07 am

Title: Killing creatures who wander
Post by: owen_a on December 04, 2010, 11:46:07 am
Hi all!

Note: Sorry that I have not been around lately. I've been ill  :(

Now for my question.

I was playing world of warcraft, and I've noticed that all the time theres creatures just wandering about near paths. So what I was thinking, could this be done in planeshift?

So If I were to go up to one of them, I could attack them and earn XP.

If this is possible, could someone tell me how I could acheive this?

Thanks!  :)
Title: Re: Killing creatures who wander
Post by: weltall on December 04, 2010, 11:54:52 am
being able to kill creatures just needs to set them not impervious and have an npcclient running.
for them wandering in paths you need to make a path network and script them to use it in npcbehave.xml
Title: Re: Killing creatures who wander
Post by: LigH on December 04, 2010, 03:13:23 pm
That reminds me on Bug #2669 (http://hydlaaplaza.com/flyspray/index.php?do=details&task_id=2669) (which is reported to be fixed): NPCs on a walking path once used to take that path so serious that they returned to walking it just after a short battle.
Title: Re: Killing creatures who wander
Post by: RlyDontKnow on December 04, 2010, 03:28:24 pm
being able to kill creatures just needs to set them not impervious and have an npcclient running.
for them wandering in paths you need to make a path network and script them to use it in npcbehave.xml

not exactly. you can make them "wander around" (i.e. not going to any target, but walking a bit), too.
iirc there's some example for it in the svn NPC behaviours, too
Title: Re: Killing creatures who wander
Post by: owen_a on December 04, 2010, 05:11:26 pm
I've took the 'Fighter1' from the NPC room and put on the map "ojaroad1".

Everytime I try and attack it, I never do any damage to it, and it does not fight back. Any ideas?
Title: Re: Killing creatures who wander
Post by: owen_a on December 05, 2010, 05:41:51 pm
Right.

Before I mention anything I would like to say I'm getting annoyed in Mirc that no one is really active. Theres about 20 people in the channel, and only 1-2 people are active? :/
--------------------------------------------------------------------------------------------------------

now to say, that someone did say something about "psnpcclient". I've tried my best at configuring it, but since I cant find no tutorial (Suprise) I cant get any help.

Now I'm posting it in here hoping someone might actually help me.

Heres my config (only important parts)

Planeshift.NPCClient.host = localhost
Planeshift.NPCClient.userid = superclient
Planeshift.NPCClient.password = superclient
Planeshift.NPCClient.port = 13331

Planeshift.Database.npchost = localhost
Planeshift.Database.npcuserid = root
Planeshift.Database.npcpassword = test
Planeshift.Database.npcname = planeshift

I'm presuming .Database is the MySQL details so I've entered my credentials on there. I have no idea what .NPCClient is so I left that asit was. Now for my problem.

Everytime I load up the PSNPCClient.exe It closes after 2 seconds, after alot of messages. These messages (I think) are the same from when the server loads about logs. but then it closes.

Any Ideas?
Title: Re: Killing creatures who wander
Post by: Sen on December 05, 2010, 07:19:02 pm
Could you paste the output? It took an eternity to work correctly when I tried it some time ago, but it didn't crash.
Title: Re: Killing creatures who wander
Post by: owen_a on December 05, 2010, 08:20:40 pm
How do I get the output? It immediately closes. Unless theres a text file somewere?  :whistling:
Title: Re: Killing creatures who wander
Post by: owen_a on December 05, 2010, 09:04:25 pm
I've managed to take a photo before it closes.

http://www.filefront.com/17609118/Problem.bmp
Title: Re: Killing creatures who wander
Post by: weltall on December 05, 2010, 09:40:33 pm
looks like you miss that table
Title: Re: Killing creatures who wander
Post by: owen_a on December 06, 2010, 09:17:02 am
Which table? It kinda confuses me its output.
Title: Re: Killing creatures who wander
Post by: LigH on December 06, 2010, 09:41:12 am
What is confusing about the output in the second-last line?

Quote
Table 'planeshift.sc_tribe_resources' doesn't exist
Title: Re: Killing creatures who wander
Post by: owen_a on December 06, 2010, 08:31:37 pm
Well, planeshift.sc_tribe_resources

Planeshift must be the database?

and...    sc_tribe_resources   must be the table i'm missing?
Title: Re: Killing creatures who wander
Post by: owen_a on December 06, 2010, 09:14:43 pm
Ah. It doesnt matter, I just used the .sql file from the SVN. Now when I run PSNPCClient, it connectsand works, but what is this all about? ::

http://www.filefront.com/17614174/ProblemsPSNPCClient.JPG

It crashes, Seems to be that yellow text. By the way I copied the whole ART folder from the client, so I'm using the orginal art.
Title: Re: Killing creatures who wander
Post by: weltall on December 06, 2010, 10:52:29 pm
those are data errors in the art and are normal your problem can be found only with a debugger