PlaneShift

Development => Development Deliberation => Topic started by: ctlmo5 on July 01, 2007, 06:24:13 pm

Title: Make the monster attack?
Post by: ctlmo5 on July 01, 2007, 06:24:13 pm
I find out there have 3 monsters in database table "characters" - FAMILIAR:Roge, FAMILIAR:Clacker and FAMILIAR:Rat.
i set the  npc_spawn_rule to 1, so i can spawn after loadmap, and set the  loc_x  loc_y  loc_z.
Therefore i can see those monster in the NPCroom, but i can not attack them and they can not attack me.
Is it something have to set in the table "characters" to make the monster can be attacked?

can any one give me some hint?
Title: Re: Make the monster attack?
Post by: Caarrie on July 01, 2007, 07:06:19 pm
are you running the npcclient?
Title: Re: Make the monster attack?
Post by: ctlmo5 on July 02, 2007, 03:07:03 am
are you running the npcclient?
NO i am running the psserver and psclient with the account "guest", and i only have npcclient.cfg.

*edit*

is it all the member in table "character" is player or npc?
so they are not able to be attacked?

if yes, which table connect the monster? so should i change the source code?
Title: Re: Make the monster attack?
Post by: Caarrie on July 02, 2007, 11:47:54 am
you need to run the npcclient as well that is what makes the npcs attackable.
Title: Re: Make the monster attack?
Post by: ctlmo5 on July 02, 2007, 11:51:12 am
you need to run the npcclient as well that is what makes the npcs attackable.

What you mean run it?
Is it the same way i run the psclient.exe or ./psclient?
Title: Re: Make the monster attack?
Post by: Caarrie on July 02, 2007, 12:02:22 pm
you need to run the npcclient as well that is what makes the npcs attackable.

What you mean run it?
Is it the same way i run the psclient.exe or ./psclient?

Well that depends on what OS you have as you have not posted that i cant say what way to use to start it.
Title: Re: Make the monster attack?
Post by: ctlmo5 on July 02, 2007, 12:08:09 pm
you need to run the npcclient as well that is what makes the npcs attackable.

What you mean run it?
Is it the same way i run the psclient.exe or ./psclient?

Well that depends on what OS you have as you have not posted that i cant say what way to use to start it.

i am using mac and windows xp, i build PS on both of the OS, in my PS i only have npcclient.cfg so i have to "build" the npcclient?
Title: Re: Make the monster attack?
Post by: Caarrie on July 02, 2007, 12:17:01 pm
You can try to jam psnpcclient and see if that helps
Title: Re: Make the monster attack?
Post by: ctlmo5 on July 02, 2007, 12:18:08 pm
You can try to jam psnpcclient and see if that helps

I know
the npcclient is already build, it is call psnpcclient
Thx
Title: Re: Make the monster attack?
Post by: Ralleyon on July 06, 2007, 11:37:11 am
The npcclient controls NPC's and their movement/actions/responses. So in order to see them do something other than "talk" which is scripted in the DB you have to run that as well.

Be careful, start psserver first then psnpcclient