L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script auto farm help
Author Message
twisterfire Offline
Elpy
*

Posts: 3
Joined: Jan 2014
Reputation: 0
Version: 1.4.2.133
Post: #1
script auto farm help

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); 
(This post was last modified: 12-09-2017 16:47 PM by twisterfire.)
12-09-2017 16:29 PM
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 640
Version: 1.4.2.133
Post: #2
RE: script auto farm help

there was simple click as i remember
use just tekst on 2nd value
Click("", "Go outside");-- like this

PUSH [Image: knUu53] IF HELPED
12-10-2017 01:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
lared Offline
Goblin Grave Robber
*

Posts: 18
Joined: Apr 2014
Reputation: 2
Version: 1.4.3.143
Post: #3
RE: script auto farm help

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)
(This post was last modified: 03-04-2018 16:06 PM by lared.)
03-04-2018 16:04 PM
Find all posts by this user Quote this message in a reply
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,640
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #4
RE: script auto farm help

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


G2A is a fantastic web-store where you can buy games cheap (40%+ Discounts!)
[Image: uaFndGu.gif]
03-04-2018 16:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lared Offline
Goblin Grave Robber
*

Posts: 18
Joined: Apr 2014
Reputation: 2
Version: 1.4.3.143
Post: #5
RE: script auto farm help

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.
(This post was last modified: 03-23-2018 05:51 AM by lared.)
03-04-2018 20:01 PM
Find all posts by this user Quote this message in a reply
TMBlack Offline
Gremlin
*

Posts: 6
Joined: Apr 2013
Reputation: 0
Version: 1.4.2.133
Post: #6
RE: script auto farm help

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
07-10-2018 22:43 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Auto Augment - Services / AIO NPC. 2pho3nix 11 17,551 07-27-2020 09:37 AM
Last Post: z3renity
  Help, with "Auto" De-level script JavaFan 3 3,100 11-12-2015 17:18 PM
Last Post: JavaFan
  [HELP] Auto Saved DC ! nikevers 0 1,983 07-28-2015 00:32 AM
Last Post: nikevers
  AUTO RES ACCEPT sonsfully 17 11,299 07-15-2015 19:59 PM
Last Post: Maveco
  Auto Accept Res Not working aywka 32 16,348 07-10-2015 08:16 AM
Last Post: TheQQmaster
Information pet auto attack alexanderkalm 0 2,650 07-09-2015 06:14 AM
Last Post: alexanderkalm
  BEST SPOT FARM LV 92/94 budarox 0 2,431 07-08-2015 20:55 PM
Last Post: budarox
  WTB Auto accept mail scripts or plugins king200527 0 2,223 07-07-2015 11:39 AM
Last Post: king200527
  Not workl: Auto Resurrection On! . erickalisetc 9 6,500 05-27-2015 07:37 AM
Last Post: rORUMI
  Help Auto Buff Or Heal For Not In Party Verheiden 3 4,201 04-27-2015 16:58 PM
Last Post: Hebdzik



User(s) browsing this thread: 1 Guest(s)