View Single Post
Re: How to make some change in buying
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: How to make some change in buying - 05-12-2004

this is normal because you must consider that client commands are sent individually.
If a real client can send client commands in a burst separated by semicolons (e.g, "buy;menuselect A;menuselect B"), it's because his client DLL separates each command and calls the client command function THREE TIMES. Once for "buy", another time for "menuselect A", another time for "menuselect B".
The FakeClientCommand() function you are using does not permit to do that. One or two years ago I wrote a different version of FakeClientCommand() coupled with pfnCmd_Argc, Argv and Args, that implements this behaviour and enables bots to send client commands in the same way humans do (i.e, with semicolons to separate each). It is implemented in POD-bot 2.6mm, if you want to give it a look.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote