Author |
Message |
Irapliskin Newbie
Joined: Mar 12 2007 Posts: 4 Offline
|
Posted: Sun Mar 25, 2007 10:46 pm Post subject: Bot Question |
 |
|
|
|
I was wondering if someone could help me with a question
I want my bot warp everyone to the co-ords i give it when i type !Warpall What do i have to do to do this |
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Sun Mar 25, 2007 11:51 pm Post subject: |
 |
|
|
|
Why not do it yourself with a mod command, *warp? |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Mon Mar 26, 2007 3:51 am Post subject: |
 |
|
|
|
My plugin, Generalbot, can do this. (Mervbot)
You can download it here. _________________
|
|
Back to top |
|
 |
Irapliskin Newbie
Joined: Mar 12 2007 Posts: 4 Offline
|
Posted: Sun Apr 01, 2007 9:00 pm Post subject: Thanks |
 |
|
|
|
Thanks Guys, and Sorry bout that BD, that was a while back when i was a script kiddie anyways. thanks..it worked perfect |
|
Back to top |
|
 |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
Posted: Mon Apr 02, 2007 3:44 am Post subject: |
 |
|
|
|
// Inside your command already.
_listnode <Player> *parse = playerlist->head;
while (parse)
{
Player *p = parse->item;
sendPrivate(p, "*warpto "+(String)xcoord+" "+(String)ycoord); // Will work if xcoord and ycoord are decleared as variables
parse = parse->next;
}
|
String xcoord, ycoord;
ycoord = c->final;
xcoord = ycoord.split(":"); // Leave the right part besides : in ycoord and put the part infront of : in xcoord
|
This should do the trick.
This should work |
|
Back to top |
|
 |
|