NPC/Bots implementation in VCMP 0.4 Servers

Started by habi, Apr 01, 2022, 05:37 PM

Previous topic - Next topic

habi2

Hi Megamind,
Quotenpcclient v1.8 beta 4 = API 1.8
v1.8 beta 3 = API 1.6
So you are running v1.8 beta 3 or before. But plugins (rpclib, actionlib,..) are newer. So  npcclient.exe version is different. Here is the latest version of npcclient as of now. Also i think name of server output in console in beta 4 and not before. So you was running an older version of npcclient.

Also npc shoots and bullet not coming is an issue with 0.4.7.1 fixed in beta 4.

Could you get a screenshot of failure read [SCRIPT] next time if it comes?

MEGAMIND

Quote from: habi2 on Nov 17, 2024, 04:20 AMHi Megamind,
Quotenpcclient v1.8 beta 4 = API 1.8
v1.8 beta 3 = API 1.6
So you are running v1.8 beta 3 or before. But plugins (rpclib, actionlib,..) are newer. So  npcclient.exe version is different. Here is the latest version of npcclient as of now. Also i think name of server output in console in beta 4 and not before. So you was running an older version of npcclient.

Also npc shoots and bullet not coming is an issue with 0.4.7.1 fixed in beta 4.

Could you get a screenshot of failure read [SCRIPT] next time if it comes?
oki doki ill check this version, and if any bugs comes out ill get back to u  ;D

MEGAMIND

#167
@habi2 Si Gracias amigo it worked

MEGAMIND

Quote from: zainraza1789 on Nov 19, 2024, 09:15 AMBrother I Need /explode <player name> cmd Please Give me I Also Subscribe Your Channel DG-Code
Thanks
first of all this is not a place to ask for something that is not relevant to the topic.. u can ask them in the specific boards..

secondly use wiki

MEGAMIND

#169
@habi2 hi i was tryint to kick a player using sendcommand is this the way or some otherway?
kickFunc<-RFC(0,"SendCommand");
kickFunc("kick 1");

as i have one the works fine ChatFunc<-RFC(0, "SendChat");
          ChatFunc(messageContent);
for sending messages from serverside to npc


aaah got it so i tried rain cmd and it started raining means it works but problem is if kick 1 or any id then its not working even thouhg my npc is admin

also one more request how can we send a priv message from npc to player i mean using sendchat

habi2

Quotebut problem is if kick 1 or any id then its not working even thouhg my npc is admin
hi megamind, i think the npc is sending the command to server but server or your script is not kicking the player. Check the event onPlayerCommand and find the case when cmd is "kick".

MEGAMIND

Quote from: habi2 on Nov 22, 2024, 05:07 PM
Quotebut problem is if kick 1 or any id then its not working even thouhg my npc is admin
hi megamind, i think the npc is sending the command to server but server or your script is not kicking the player. Check the event onPlayerCommand and find the case when cmd is "kick".
yea it worked thanks i have some freaking mechanism to kick or ban a player well i did the alternate thanks again

MEGAMIND

@habi2 how can u get a player position from RFC example

PlayerPos<-RFC(0,"GetPlayerPos");
print(PlayerPos);
where i want both the id 0 and other player that can be any id

MEGAMIND

Quote from: MEGAMIND on Nov 27, 2024, 10:41 AM@habi2 how can u get a player position from RFC example

PlayerPos<-RFC(0,"GetPlayerPos");
print(PlayerPos);
where i want both the id 0 and other player that can be any id
ah oki so i found an alternate idk if it sorts my issue out ill try this
local pid = GetPlayerIDFromName(player);
 local pid2 =  FindPlayer(pid).Pos;
 print(pid2);

and get back to u if what im really looking for

habi2

i have no idea what you are doing :P

MEGAMIND

Quote from: habi2 on Nov 27, 2024, 12:29 PMi have no idea what you are doing :P
u realy dont wanna know doing something wide range idk just to let know that making a.i see stuff via npc eyes lol


habi2

I have tried once which server packet send score and ping (F5) and was not able to find. Maybe i should try again


MEGAMIND

#179
is npc wiki down? as i see this