As far as I'm pretty new in NPC subject, I have some quesions:
1) I realized that for making NPC mechanism, I need to extends java code.
As far as I have a little experience with java (I write C++ and AS3),
could you give me a few guide lines on how to make such extention- something basic and simple will do.
2) which developing tool do you suggest, to develop the java code on ?
Thanks alot
question on NPC
Re: question on NPC
http://openspace-engine.com/support/manuals/extension1) I realized that for making NPC mechanism, I need to extends java code.
As far as I have a little experience with java (I write C++ and AS3),
could you give me a few guide lines on how to make such extention- something basic and simple will do.
Please also read the SmartFoxServer documentation about extensions and NPCs.
We use Eclipse.2) which developing tool do you suggest, to develop the java code on ?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
thanks
thanks, that exactly what i was looking for, don't know how I've missed it
NPC custom action
How do I make NPC perform custom action?
You should send your own response from the server to the client, containing your custom parameters and the id of the npc user. The retrieve a reference to the avatar by means of the OpenSpace.getAvatarById method and pass your custom parameters to it, using a custom method.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re:
There's function called setMyAvatarAction() in clientside API, which triggers PC avatar's onCustomAction event. How do I do it serverside for NPC?