08-13-2013, 16:55 PM
Hi !
I write here because I've a problem with my script.
As matter of fact, I try to make a script that buff my character and teleport it in a specific zone.
However my script doesn't perfect, it launch on time....
But, I want that this script always launch.
My script,
Thanks
I write here because I've a problem with my script.
As matter of fact, I try to make a script that buff my character and teleport it in a specific zone.
However my script doesn't perfect, it launch on time....
But, I want that this script always launch.
My script,
Code:
if (GetMe():GotBuff(15649) == false) ------->>> Warrior's Harmony
then
SetPause(true); --If the bot is running, this command will pause it.
Sleep(500);
ShowToClient("System","Pas de Buff !");
Sleep(500);
ShowToClient("System","Chargement...");
Sleep(1000);
UseItem(736); --Use SOE.
Sleep(3000);
ShowToClient("System","[Auto: Bloody Swampland] by DUDE!");
Sleep(500);
moveDistance = 30;
MoveTo(11167, 16012, -4584, moveDistance);
Sleep(500);
TargetNpc("Teleport Device", 30134);
Talk();
ShowToClient("System","Teleportation...");
Click("teleport_request", "Teleport");
Click("teleport_4723523376_0_57_1209025613_1", "811;F;1010005");
Sleep(5000);
MoveTo(-14598, 124016, -3120, moveDistance);
Sleep(500);
MoveTo(-14722, 124044, -3120, moveDistance);
Sleep(500);
TargetNpc("Adventurers' Guilde", 32327);
ShowToClient("System","Tiens tes buffs CULAY !");
Talk();
ClickLinkAndWait("blessing_list001.htm");
Click("menu_select?ask=-7&reply=21", "Warrior's Harmony, please.");
MoveTo(-14540, 124060, -3120, moveDistance);
MoveTo(-14487, 124156, -3120, moveDistance);
MoveTo(-14540, 124060, -3120, moveDistance);
TargetNpc("Bella", 30256);
Talk();
ShowToClient("System","Teleportation...");
Click("teleport_request", "Teleport");
Click("teleport_4723561968_12_57_1264635302_1", "811;F;1010158");
Sleep(500);
MoveTo(11172, 15975, -4584, moveDistance);
Sleep(500);
TargetNpc("Teleport Device", 30134);
Talk();
ShowToClient("System","Teleportation...");
Click("teleport_request", "Teleport");
Click("teleport_4723523376_6_57_1209025613_1", "811;F;1010164");
Sleep(500);
ShowToClient("System","En route pour le spot...");
MoveTo(-14619, 28179, -3664, moveDistance);
Sleep(500);
MoveTo(-14704, 27550, -3656, moveDistance);
Sleep(500);
MoveTo(-15942, 26906, -3280, moveDistance);
Sleep(500);
MoveTo(-17913, 26603, -3184, moveDistance);
Sleep(500);
MoveTo(-19281, 26803, -2992, moveDistance);
Sleep(500);
MoveTo(-19648, 25180, -3152, moveDistance);
Sleep(500);
ShowToClient("System","STATUT: OK!");
Sleep(500);
ShowToClient("System","C'est parti !");
Sleep(500);
ShowToClient("System","En attente de debuff...");
end;
SetPause(false);
Thanks