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
Autofarm Script repeat without condition problem.
Author Message
either Offline
Elpy
*

Posts: 4
Joined: Apr 2016
Reputation: 0
Version: 1.4.2.133
Post: #1
Autofarm Script repeat without condition problem.

Hello guys im new on script and stuff and i wanted to ask a little bit of help here cuz it seems im stuck with an autofarm script that is not working properly.

First, My script is about autofarming like if the characters dies go back to town rebuff and walk again to the farm spot.

the problem.
The problem is that even when the script is running ok after a while for some reason it starts again i mean it just skip the part where the char has to be dead to start so in mid of the farming the script makes the char walk to the city and rebuff again and back again to the farm spot.

What i want.
i want it to work like when the char is dead then do everything go town rebuff and go back to the spot BUT not before that. i'll leave the script here and i hope any of you guys can help me and thank you.
P.S sorry my bad english.

    LUA Programming
SCONFIG = L2TConfig.GetConfig();
SCONFIG_FILE = GetDir() .. '\\scripts\\farmeo.l2b';
L2TConfig.SaveConfig(SCONFIG_FILE);
moveDistance = 30;
 
repeat
if GetMe():IsAlikeDeath() == true then
SetPause(true);
Sleep(5000);
RequestRestartPoint(4)
WaitForTeleport();
Sleep(10000);
if GetMe():GotBuff(4329) == false then 
UseItem(9445); -- this a buff item
Click("sb_r_u_p#9445", "UNKNOWN LINK 4");
MoveTo(49495, -115683, -3813, moveDistance);
MoveTo(49598, -115767, -3812, moveDistance);
MoveTo(49854, -115945, -3792, moveDistance);
MoveTo(49955, -116037, -3786, moveDistance);
MoveTo(50036, -116111, -3781, moveDistance);
MoveTo(50053, -116127, -3780, moveDistance);
MoveTo(50219, -116284, -3787, moveDistance);
MoveTo(50506, -116554, -3838, moveDistance);
MoveTo(51426, -117421, -4304, moveDistance);
MoveTo(51464, -117554, -4332, moveDistance);
MoveTo(51544, -117930, -4359, moveDistance);
MoveTo(51522, -118292, -4332, moveDistance);
MoveTo(51440, -119064, -4187, moveDistance);
MoveTo(51296, -119787, -4151, moveDistance);
MoveTo(51143, -120022, -4144, moveDistance);
MoveTo(50820, -120539, -4252, moveDistance);
MoveTo(50664, -120820, -4305, moveDistance);
MoveTo(50405, -121339, -4198, moveDistance);
MoveTo(50209, -121743, -4119, moveDistance);
MoveTo(50179, -121990, -4185, moveDistance);
MoveTo(50123, -121972, -4167, moveDistance);
MoveTo(50001, -122093, -4143, moveDistance);
MoveTo(49842, -122162, -4097, moveDistance);
MoveTo(49767, -122367, -4086, moveDistance);
MoveTo(49702, -122547, -4066, moveDistance);
MoveTo(49993, -122974, -4086, moveDistance);
MoveTo(50279, -123030, -4086, moveDistance);
MoveTo(50520, -123102, -4073, moveDistance);
MoveTo(50752, -123206, -4042, moveDistance);
MoveTo(50975, -123380, -4014, moveDistance);
MoveTo(50990, -123397, -4004, moveDistance);
MoveTo(51106, -123508, -3994, moveDistance);
MoveTo(51241, -123568, -3998, moveDistance);
MoveTo(51471, -123689, -4012, moveDistance);
MoveTo(51542, -123759, -4014, moveDistance);
MoveTo(51581, -123790, -4018, moveDistance);
MoveTo(51653, -123854, -4028, moveDistance);
MoveTo(51824, -123993, -4050, moveDistance);
SetPause(false);
end;
end;
until false;
 
L2TConfig.LoadConfig(SCONFIG_FILE);

05-24-2016 12:48 PM
Find all posts by this user Quote this message in a reply
UgliBiBagli Offline
Expired VIP Member
**

Posts: 175
Joined: Jan 2015
Reputation: 29
Version: 1.4.2.132
Post: #2
RE: Autofarm Script repeat without condition problem.

what clan are you playing in? XD
05-24-2016 16:03 PM
Find all posts by this user Quote this message in a reply
either Offline
Elpy
*

Posts: 4
Joined: Apr 2016
Reputation: 0
Version: 1.4.2.133
Post: #3
RE: Autofarm Script repeat without condition problem.

(05-24-2016 16:03 PM)UgliBiBagli Wrote:  what clan are you playing in? XD

?
05-24-2016 17:52 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: 639
Version: 1.4.2.133
Post: #4
RE: Autofarm Script repeat without condition problem.

GotBuff was bugged so use other condition Tongue

PUSH [Image: knUu53] IF HELPED
05-25-2016 01:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Problem with High Five client newlifeform 0 125 09-02-2022 17:36 PM
Last Post: newlifeform
  L2 Zaken Classic problem kvourg13 0 1,505 10-07-2018 05:29 AM
Last Post: kvourg13
  problem with the programm killbill 1 1,609 11-15-2017 02:54 AM
Last Post: kbelinh0
Sad License. problem jonathanf1 1 2,672 04-19-2017 23:07 PM
Last Post: Jonathan6666
  Problem... Critical error [c6 server] Nasif 2 3,368 10-18-2016 13:48 PM
Last Post: Verb
  AntiBot problem SaintRose 2 3,342 10-05-2016 22:27 PM
Last Post: Vinter
  how to resolve this problem? lozjan 1 2,230 05-21-2016 06:13 AM
Last Post: martlegion
  Healer Fix plugin problem aa300598 1 2,516 02-20-2016 13:21 PM
Last Post: Vinter
  Bot reset setting problem aa300598 2 2,747 02-04-2016 13:18 PM
Last Post: TheQQmaster
  I had a problem kinjiru01 20 11,588 12-10-2015 21:16 PM
Last Post: TheQQmaster



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