Author Topic: Killing creatures who wander  (Read 1565 times)

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
Killing creatures who wander
« 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!  :)

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Killing creatures who wander
« Reply #1 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

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Killing creatures who wander
« Reply #2 on: December 04, 2010, 03:13:23 pm »
That reminds me on Bug #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.

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

RlyDontKnow

  • Associate Developer
  • Hydlaa Citizen
  • *
  • Posts: 403
    • View Profile
Re: Killing creatures who wander
« Reply #3 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

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: Killing creatures who wander
« Reply #4 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?

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: Killing creatures who wander
« Reply #5 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?
« Last Edit: December 05, 2010, 05:43:36 pm by owen_a »

Sen

  • Hydlaa Notable
  • *
  • Posts: 746
    • View Profile
Re: Killing creatures who wander
« Reply #6 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.
.....also a saddle that won't pinch the tail. One day!

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: Killing creatures who wander
« Reply #7 on: December 05, 2010, 08:20:40 pm »
How do I get the output? It immediately closes. Unless theres a text file somewere?  :whistling:

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: Killing creatures who wander
« Reply #8 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

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Killing creatures who wander
« Reply #9 on: December 05, 2010, 09:40:33 pm »
looks like you miss that table

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: Killing creatures who wander
« Reply #10 on: December 06, 2010, 09:17:02 am »
Which table? It kinda confuses me its output.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Killing creatures who wander
« Reply #11 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

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: Killing creatures who wander
« Reply #12 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?

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: Killing creatures who wander
« Reply #13 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.

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Killing creatures who wander
« Reply #14 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