Whats a NPC and can it help me?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
ParkerJ
Posts: 30
Joined: 31 Aug 2009, 23:14

Whats a NPC and can it help me?

Post by ParkerJ »

I am creating a battle system for a game its going to be real time...

So this means Im going to need something that will automaticly control that user serverside or with flash. The battle will allow users to join in at any time and leave at any time. The battle type will be real time... so you attack it runs to the target does its damage then runs back. I am then going to make the user wait 2 seconds before doing another action.

I want the bot/monster to do exaclly the same so How would I do this....

also whats a NPC and can you use them within Smartfoxbasic.
smoochict
Posts: 53
Joined: 18 Mar 2010, 06:21

Post by smoochict »

Hi,

I don't think you can create an NPC in smartfox basic, as it does not have extension support.
Though in SmartFoxPro you could do something like:

var botuobj = _server.createNPC("botname", "127.0.0.1", 9339, "zone_name")

Then join the bot using the object its created.
Thanks,
Daniel
Post Reply