Lineage 2 Tower Forum

Full Version: script auto farm help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone, help me with my script, I want him to do it

-> automatic buffer
-> teleport to farme area

see this problem


which command I use to click on the "PLAYER" box I used the html to save more I could not.

check this imagem

https://imgur.com/a/ftHxf[

PHP Code:
moveDistance 30;

MoveTo(116663, -179885, -1144moveDistance);
MoveTo(115392, -178331, -928moveDistance);


TargetNpc("Miss Queen"24019);
Talk();
ClickLinkAndWait("html");
ClickText("\"Players\"");
MoveTo(148139, -55555, -2742moveDistance);
MoveTo(148027, -55361, -2734moveDistance);
TargetNpc("Tatiana"31275);
Talk();
ClickAndWait("npc_268466895_Chat 1""\"I want to teleport.\"");
ClickAndWait("npc_268466895_goto 1095""Hot Springs - 9300 Adena");
MoveTo(147949, -55261, -2734moveDistance);
WaitForTeleport();
MoveTo(149599, -112694, -2065moveDistance);
MoveTo(149769, -112595, -2065moveDistance); 
there was simple click as i remember
use just tekst on 2nd value
Click("", "Go outside");-- like this
I have checked and it should work if you just delete the line WaitForTeleport();

The GK teleports you, and then system takes a long time until script continues.
Someone can help here? It seems the script stops for itself with no reason.
In the line of the last ClickAndWait, executes the teleport, that's okey, but the next time of ShowToClient takes long time to appear. Then script continues normally.


Code:
TargetNpc("Elisa", 30848);
        Talk();
        Sleep(200);
        ClickAndWait("npc_268471415_Chat 1", "Teleport");
        Sleep(200);
        ClickAndWait("npc_268471415_goto 1087", "Silent Valley - 6100 Adena");
        ShowToClient("Elisa", "Teleport to Silent Valley activated");



Someone know why this happens? I have checked ClickLink, ClickText, and just Click; any of those worked... and ClickAndWait works, but takes long time to take next action (ShowToClient in my case)
Uhm might be premium(VIP) command, in any case i've sent you a 1 day license to test and see if it works fine with it i know there's a list of whats premium somewhere
Thank you.
Is solved.

ClickAndWait makes a waiting, as WaitForTeleport does. So, if we put ClickAndWait for teleport, it will wait normal time(60s). If we also put WaitForTeleport, its takes double time(120s).

Solution is like this:

    LUA Programming
TargetNpc("Elisa", 30848);
			Talk();
			Sleep(200);
			ClickAndWait("npc_268471415_Chat 1", "Teleport");
			Sleep(200);
			SetDefaultTimeout(2*1000);
			ClickAndWait("npc_268471415_goto 1087", "Silent Valley - 6100 Adena");
			ShowToClient("Elisa", "Teleport to Silent Valley activated");
			SetDefaultTimeout(60*1000);




As we change default timeout, it teleports and continue script in 2 seconds, then fix it to 60s again for walking paths and other intructions.
guys how to write one for me i have captcha system that send me back to the start of MOS and i want the char to go back inside and start farming at first block ill try to add rebuff to it later can any one help please
Reference URL's