|
Code to run to SW -
02-08-2010, 08:01 PM
Seems like I have to run new toons from the human starting zone to SW regularly, so I added an extra button to the Whisper plugin to do it for me. Here is the code (remember to change the button4_Click to whatever number button it is for you (I included the line more for positional reference than anything else).
private void button4_Click(object sender, EventArgs e)
{
float my_x1 = -9000;
float my_y1 = -88;
float my_z1 = 85;
Struct.Location my_goto1 = new Struct.Location(my_x1, my_y1, my_z1);
float my_x2 = -9044;
float my_y2 = -98;
float my_z2 = 87;
Struct.Location my_goto2 = new Struct.Location(my_x2, my_y2, my_z2);
float my_x3 = -9066;
float my_y3 = -42;
float my_z3 = 88;
Struct.Location my_goto3 = new Struct.Location(my_x3, my_y3, my_z3);
float my_x4 = -9170;
float my_y4 = -112;
float my_z4 = 71;
Struct.Location my_goto4 = new Struct.Location(my_x4, my_y4, my_z4);
float my_x5 = -9170;
float my_y5 = -112;
float my_z5 = 71;
Struct.Location my_goto5 = new Struct.Location(my_x5, my_y5, my_z5);
float my_x6 = -9243;
float my_y6 = -98;
float my_z6 = 70;
Struct.Location my_goto6 = new Struct.Location(my_x6, my_y6, my_z6);
float my_x7 = -9345;
float my_y7 = -46;
float my_z7 = 65;
Struct.Location my_goto7 = new Struct.Location(my_x7, my_y7, my_z7);
float my_x8 = -9433;
float my_y8 = 51;
float my_z8 = 56;
Struct.Location my_goto8 = new Struct.Location(my_x8, my_y8, my_z8);
float my_x9 = -9399;
float my_y9 = 96;
float my_z9 = 58;
Struct.Location my_goto9 = new Struct.Location(my_x9, my_y9, my_z9);
float my_x10 = -9238;
float my_y10 = 174;
float my_z10 = 67;
Struct.Location my_goto10 = new Struct.Location(my_x10, my_y10, my_z10);
float my_x11 = -9186;
float my_y11 = 240;
float my_z11 = 72;
Struct.Location my_goto11 = new Struct.Location(my_x11, my_y11, my_z11);
float my_x12 = -9170;
float my_y12 = 343;
float my_z12 = 85;
Struct.Location my_goto12 = new Struct.Location(my_x12, my_y12, my_z12);
float my_x13 = -8969;
float my_y13 = 519;
float my_z13 = 96;
Struct.Location my_goto13 = new Struct.Location(my_x13, my_y13, my_z13);
float my_x14 = -8968;
float my_y14 = 564;
float my_z14 = 94;
Struct.Location my_goto14 = new Struct.Location(my_x14, my_y14, my_z14);
float my_x15 = -8925;
float my_y15 = 548;
float my_z15 = 94;
Struct.Location my_goto15 = new Struct.Location(my_x15, my_y15, my_z15);
float my_x17 = -8831;
float my_y17 = 624;
float my_z17 = 94;
Struct.Location my_goto17 = new Struct.Location(my_x17, my_y17, my_z17);
API.ControlPlayer.MoveToWithPPather(my_goto1);
API.ControlPlayer.MoveToWithPPather(my_goto2);
API.ControlPlayer.MoveToWithPPather(my_goto3);
API.ControlPlayer.MoveToWithPPather(my_goto4);
API.ControlPlayer.MoveToWithPPather(my_goto5);
API.ControlPlayer.MoveToWithPPather(my_goto6);
API.ControlPlayer.MoveToWithPPather(my_goto7);
API.ControlPlayer.MoveToWithPPather(my_goto8);
API.ControlPlayer.MoveToWithPPather(my_goto9);
API.ControlPlayer.MoveToWithPPather(my_goto10);
API.ControlPlayer.MoveToWithPPather(my_goto11);
API.ControlPlayer.MoveToWithPPather(my_goto12);
API.ControlPlayer.MoveToWithPPather(my_goto13);
API.ControlPlayer.MoveToWithPPather(my_goto14);
API.ControlPlayer.MoveToWithPPather(my_goto15);
API.ControlPlayer.MoveToWithPPather(my_goto17);
API.ControlPlayer.StopMove();
}
tG
If you got this far, you may know something. How do I create my own plugin? Not a fan of C# yet, and it uses a bunch of resources to do something simple (gotta love MS for that legacy).
|