Page 1 of 1

Whats a NPC and can it help me?

Posted: 07 Apr 2010, 17:31
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.

Posted: 07 Apr 2010, 23:21
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.