View Single Post
  #1  
Old 09-12-2004, 01:07 PM
8ball
Fire Beetle
 
Join Date: Sep 2004
Posts: 12
Default movenpc function

i couldnt find a function to move an npc so i decided to make one
there may be a few errors since i only know the basics of C++

parser.cpp
Code:
else if (!strcmp(strlwr(command),"movenpc")) { 
if (other) other->MovePc((atoi(arglist[0])),(atof(arglist[1])),
 (atof(arglist[2])),(atof(arglist[3])));
embparser.cpp
Code:
"sub movenpc{push(@cmd_queue,{func=>'movenpc',args=>join(',',@_)});}"
if there are any errors please post here with a fix. i dont have a server so i dont have a way to test it.
Reply With Quote