Witchie NL Posted January 31, 2006 Report Posted January 31, 2006 can anyone program this for a MERVbot (command.cpp): let a bot say in public: *prize 7, when you tell the bot: !buywarpall Thanks alot -Witchie NL
»D1st0rt Posted January 31, 2006 Report Posted January 31, 2006 if (c->check("buywarpall")) { sendPublic("*prize #7"); } ? edit: used the wrong function, haven't done merv in forever
Witchie NL Posted February 3, 2006 Author Report Posted February 3, 2006 nope doesnt work gives errors with compiling...
»D1st0rt Posted February 3, 2006 Report Posted February 3, 2006 The above code should work, unless there are already command checks in the file In that case you should use "else if" instead of "if"
Witchie NL Posted February 9, 2006 Author Report Posted February 9, 2006 oke ill try to do that thanks alot im still noobie with programming bots...can i PM any of you guys ingame if i need you? ohh and D1st0rt nice arena in TW (?go battleship) best sub i ever seen
Witchie NL Posted February 9, 2006 Author Report Posted February 9, 2006 wooohoooo nice 1 guy i forgot to delete the p, after sendPublic( tested it and it works YES would bring me alot further! and the else isnt needed just if is enough.
Recommended Posts