Bot Questions - if their ship isnt warbird, set em to warbird... Anonymous - Fri Jul 01, 2005 10:14 pm Post subject: if their ship isnt warbird, set em to warbird...
Hi,
I'm a bit of a n00b to bot plugin making for MervBot, and I'd like to know how to do this...
When a player changes ships, if that ship isn't ship one, message them and set them to ship one.
I'm not really a n00b to c++, but yes, I am to bot programming... They don't make it easy to learn what's that, do they?
Thanks,
Doug
Muskrat - Fri Jul 01, 2005 10:38 pm Post subject:
If you only want 1 ship for a zone/arena, wouldn't it be easier for you to just make all the ships settings and gfx the same?
Purge - Fri Jul 01, 2005 11:21 pm Post subject:
Or just use the rankbot plugin.
Bak - Fri Jul 01, 2005 11:38 pm Post subject:
If you know C++, read my tutorial on making plugins at http://forums.minegoboom.com/viewtopic.php?p=41573#41573
the only difference is you want to edit spawns.cpp (look for event_playerentering and event_playership) and put in
if (p->ship != SHIP_Spectator && p->ship != SHIP_Warbird)
sendPrivate(p,"*setship 1");
Assassin2684 - Fri Jul 01, 2005 11:42 pm Post subject:
I have decided to learn C++, got the dummies book and im already on the second chapter I will be needing some help so expect alot of posts. Anyway i thought there was a plugin liek that at catids place.
Anonymous - Sat Jul 02, 2005 10:20 pm Post subject:
Ok, that works. Thanks