Page 1 of 1

adding NPC users int buddylist

Posted: 21 Aug 2011, 02:58
by vsbait
Hi,

I am using your SmartFoxServerPRO 1.6.6 and i am creating npc users according to the your api. Now my question is

can any other normal user can add npc users in there buddylist? If yes, then how to do it??

Thanks.

Posted: 22 Aug 2011, 00:29
by BigFIsh
NPC is like a normal user, so you should be able to add NPC the way you add normal users.

Posted: 22 Aug 2011, 05:11
by vsbait
Hi,
Thanks for your reply.
Its glad to listening that we can treat npc users as normal users.
Now my next question is suppose if any normal user send buddy request to npc user then who will accept that buddyrequest as buddylist setting is "advanced" so mutual request response is require in this setting. So how could i(server java extension) accept that buddy request.
Thanks.
yours faithfully,
vaibhav

Posted: 23 Aug 2011, 05:38
by BigFIsh
I'm not sure. What you're doing isn't a common workflow, so it's up to figure it out. Hint: use zone.getBuddyManager() to give you more controls.