Hi,
I want make a NPC on server.
Basically is a player, but with a timer(3000 mls), that will make the player walk and interact with other players.
But how to add a new player on server manually?
by prsolucoes » March 26th, 2010, 7:33 pm
by Benjaminsen » March 28th, 2010, 11:25 am
by prsolucoes » March 28th, 2010, 12:39 pm
Broadcast("USER_JOIN", player)
NPC npc = new NPC();
npc.setPosX(256);
npc.setPosY(128);
player.send("NPC", npc);
NPC npc1 = new NPC();
npc1.setPosX(256);
npc1.setPosY(128);
npc1.setPosZ(3);
NPC npc2 = new NPC();
npc2.setPosX(128);
npc2.setPosY(256);
npc2.setPosZ(3);
ArrayList npcs = new ArrayList();
npcs.Add(npc1);
npcs.Add(npc2);
player.send("NPC", npcs);
by Benjaminsen » March 28th, 2010, 2:00 pm