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
Using SoE + Rebuff in Village
Author Message
luckycz Offline
Expired VIP Member
**

Posts: 4
Joined: Dec 2013
Reputation: 1
Version: 1.4.1.118
Post: #1
Using SoE + Rebuff in Village

Hi guys, I have been having trouble with using SoE when my buffs disappear. Can any of you give me an advice how to fix the script? I want it to be that when I die or run out of buffs it goes back to town for a rebuff. Thanks in advance.

Code:
SCONFIG = L2TConfig.GetConfig();
SCONFIG_FILE = GetDir() .. '\\scripts\\swamp1.l2b';
L2TConfig.SaveConfig(SCONFIG_FILE);
if (GetMe():GotBuff(15649) == false) and (GetZoneType() == 15) then
Sleep(3000);
UseItem(736); --Use SOE.
WaitForTeleport();
repeat
moveDistance = 30;
if(GetZoneType() == L2ZoneType.PEACEFUL) then
Sleep(600);
SetPause(true);
moveDistance = 30;
MoveTo(45829, -49061, -801, moveDistance);
MoveTo(45778, -49115, -801, moveDistance);
MoveTo(45694, -49181, -801, moveDistance);
MoveTo(45511, -49329, -801, moveDistance);
MoveTo(45381, -49427, -801, moveDistance);
MoveTo(45213, -49578, -801, moveDistance);
MoveTo(44553, -50089, -801, moveDistance);
MoveTo(44470, -49973, -801, moveDistance);
MoveTo(44317, -49772, -801, moveDistance);
MoveTo(44161, -49436, -801, moveDistance);
MoveTo(44119, -49257, -801, moveDistance);
MoveTo(44102, -49179, -801, moveDistance);
MoveTo(44070, -49067, -801, moveDistance);
MoveTo(43965, -48723, -801, moveDistance);
MoveTo(43853, -48402, -801, moveDistance);
MoveTo(43818, -48322, -801, moveDistance);
TargetNpc("Adventurers' Guide", 32327);
SetDefaultTimeout(5000);
MoveTo(43570, -47721, -801, moveDistance);
Talk();
SetDefaultTimeout(5000);
ClickAndWait("menu_select?ask=-7&reply=6", "\"Is there anything you can do to strengthen me?\"");
SetDefaultTimeout(5000);
ClickAndWait("menu_select?ask=-7&reply=21", "\"Warrior's Harmony, please.\"");
SetDefaultTimeout(5000);
MoveTo(43570, -47721, -801, moveDistance);
MoveTo(43568, -47810, -801, moveDistance);
TargetNpc("Ilyana", 31320);
SetDefaultTimeout(5000);
MoveTo(43732, -47780, -801, moveDistance);
Talk();
ClickAndWait("teleport_request", "\"I want to teleport.\"");
SetDefaultTimeout(5000);
ClickAndWait("teleport_4717317184_12_57_1209024877_1", "1010565 - 3000 1000308");
SetDefaultTimeout(5000);
MoveTo(43732, -47780, -801, moveDistance);
WaitForTeleport();
-- Quest state changed, ID: 31, STATE: 1
-- Quest state changed, ID: 470, STATE: 1
-- Quest state changed, ID: 761, STATE: 2
-- Quest state changed, ID: 10408, STATE: 1
-- Get new quest item, ID: 36669, COUNT: 329
-- Get new quest item, ID: 36669, COUNT: 329
-- Get new quest item, ID: 36669, COUNT: 329
-- Get new quest item, ID: 36669, COUNT: 329
-- Get new quest item, ID: 36668, COUNT: 50
-- Get new quest item, ID: 36668, COUNT: 50
-- Get new quest item, ID: 36668, COUNT: 50
-- Get new quest item, ID: 36668, COUNT: 50
-- Get new quest item, ID: 17822, COUNT: 20
-- Get new quest item, ID: 17822, COUNT: 20
-- Get new quest item, ID: 17822, COUNT: 20
-- Get new quest item, ID: 17822, COUNT: 20
MoveTo(69345, -50208, -3292, moveDistance);
MoveTo(69540, -50124, -3291, moveDistance);
MoveTo(69616, -50091, -3288, moveDistance);
MoveTo(69715, -50052, -3285, moveDistance);
MoveTo(69996, -49949, -3260, moveDistance);
MoveTo(70825, -49642, -3235, moveDistance);
MoveTo(71134, -49516, -3204, moveDistance);
MoveTo(71224, -49479, -3205, moveDistance);
MoveTo(71386, -49413, -3205, moveDistance);
MoveTo(71584, -49331, -3204, moveDistance);
MoveTo(71913, -49194, -3204, moveDistance);
MoveTo(72016, -49142, -3204, moveDistance);
MoveTo(72084, -49105, -3204, moveDistance);
MoveTo(72442, -48900, -3204, moveDistance);
MoveTo(72644, -48771, -3204, moveDistance);
MoveTo(72739, -48668, -3204, moveDistance);
MoveTo(72790, -48613, -3204, moveDistance);
MoveTo(73016, -48375, -3194, moveDistance);
MoveTo(73231, -48051, -3180, moveDistance);
MoveTo(73381, -47793, -3177, moveDistance);
MoveTo(73439, -47633, -3177, moveDistance);
MoveTo(73443, -47501, -3179, moveDistance);
MoveTo(73439, -47354, -3183, moveDistance);
MoveTo(73353, -47294, -3181, moveDistance);
MoveTo(73157, -47137, -3184, moveDistance);
MoveTo(72387, -46497, -3240, moveDistance);
MoveTo(72345, -46435, -3238, moveDistance);
MoveTo(72160, -45956, -3233, moveDistance);
MoveTo(72167, -45853, -3233, moveDistance);
MoveTo(72180, -45782, -3233, moveDistance);
MoveTo(72134, -45709, -3233, moveDistance);
MoveTo(72100, -45681, -3233, moveDistance);
MoveTo(71996, -45504, -3233, moveDistance);
MoveTo(71954, -45437, -3233, moveDistance);
MoveTo(71909, -45373, -3233, moveDistance);
MoveTo(71862, -45318, -3233, moveDistance);
MoveTo(71756, -45152, -3233, moveDistance);
MoveTo(71689, -45053, -3233, moveDistance);
MoveTo(71594, -44920, -3233, moveDistance);
MoveTo(71553, -44867, -3233, moveDistance);
MoveTo(71474, -44735, -3233, moveDistance);
MoveTo(71370, -44548, -3210, moveDistance);
MoveTo(71384, -44437, -3196, moveDistance);
MoveTo(71396, -44382, -3187, moveDistance);
ClearTargets();
MoveTo(71411, -44061, -3162, moveDistance);
MoveTo(71427, -43871, -3188, moveDistance);
MoveTo(71475, -43841, -3204, moveDistance);

MoveTo(71740, -43628, -3233, moveDistance);
MoveTo(71832, -43565, -3233, moveDistance);
MoveTo(71907, -43509, -3233, moveDistance);
MoveTo(72112, -43344, -3233, moveDistance);
MoveTo(72294, -43206, -3214, moveDistance);
MoveTo(72581, -43015, -3212, moveDistance);
MoveTo(72716, -42930, -3223, moveDistance);
MoveTo(72808, -42873, -3230, moveDistance);
MoveTo(72904, -42744, -3232, moveDistance);
MoveTo(72916, -42694, -3232, moveDistance);
MoveTo(72959, -42535, -3232, moveDistance);
MoveTo(73049, -42238, -3232, moveDistance);
MoveTo(73195, -42272, -3232, moveDistance);
MoveTo(73215, -42277, -3232, moveDistance);
MoveTo(73207, -42244, -3232, moveDistance);
MoveTo(73205, -42176, -3232, moveDistance);
MoveTo(73203, -42117, -3232, moveDistance);
MoveTo(73200, -42045, -3232, moveDistance);
MoveTo(73200, -42014, -3232, moveDistance);
MoveTo(73203, -41938, -3232, moveDistance);
MoveTo(73205, -41892, -3232, moveDistance);
MoveTo(73209, -41839, -3232, moveDistance);
MoveTo(73225, -41628, -3236, moveDistance);
MoveTo(73280, -41451, -3225, moveDistance);
MoveTo(73372, -41343, -3221, moveDistance);
MoveTo(73454, -41284, -3232, moveDistance);
MoveTo(73720, -41169, -3240, moveDistance);
MoveTo(73829, -41122, -3223, moveDistance);
MoveTo(73962, -41063, -3211, moveDistance);
MoveTo(74045, -41026, -3204, moveDistance);
MoveTo(74060, -41082, -3217, moveDistance);
MoveTo(74097, -41190, -3237, moveDistance);
MoveTo(74183, -41415, -3221, moveDistance);
MoveTo(74197, -41435, -3221, moveDistance);
MoveTo(74288, -41528, -3213, moveDistance);
MoveTo(74380, -41621, -3226, moveDistance);
MoveTo(74533, -41765, -3227, moveDistance);
MoveTo(74554, -41801, -3223, moveDistance);
MoveTo(74661, -42006, -3211, moveDistance);
MoveTo(74839, -42323, -3218, moveDistance);
MoveTo(74851, -42214, -3209, moveDistance);
MoveTo(74836, -42169, -3206, moveDistance);
MoveTo(74855, -42131, -3200, moveDistance);
MoveTo(74907, -42047, -3192, moveDistance);
MoveTo(75088, -41805, -3186, moveDistance);
MoveTo(75249, -41693, -3175, moveDistance);
MoveTo(75687, -41569, -3170, moveDistance);
MoveTo(75726, -41556, -3176, moveDistance);
MoveTo(75859, -41527, -3189, moveDistance);
MoveTo(76203, -41489, -3211, moveDistance);
MoveTo(76387, -41494, -3208, moveDistance);
MoveTo(76456, -41495, -3205, moveDistance);
MoveTo(76523, -41498, -3203, moveDistance);
MoveTo(76565, -41500, -3202, moveDistance);
MoveTo(76664, -41506, -3201, moveDistance);
MoveTo(76679, -41506, -3200, moveDistance);
MoveTo(76860, -41515, -3187, moveDistance);
MoveTo(76946, -41521, -3186, moveDistance);
MoveTo(77031, -41527, -3184, moveDistance);
MoveTo(77090, -41530, -3187, moveDistance);
MoveTo(77175, -41535, -3193, moveDistance);
MoveTo(77279, -41541, -3204, moveDistance);
MoveTo(77412, -41547, -3229, moveDistance);
MoveTo(77683, -41561, -3231, moveDistance);
MoveTo(77962, -41576, -3231, moveDistance);
MoveTo(78096, -41586, -3229, moveDistance);
MoveTo(78361, -41614, -3218, moveDistance);
MoveTo(78379, -41633, -3217, moveDistance);
MoveTo(78391, -41660, -3215, moveDistance);
MoveTo(78431, -41686, -3215, moveDistance);
MoveTo(78483, -41686, -3217, moveDistance);
MoveTo(78500, -41680, -3218, moveDistance);
MoveTo(78560, -41671, -3224, moveDistance);
MoveTo(78583, -41670, -3226, moveDistance);
MoveTo(78610, -41691, -3230, moveDistance);
MoveTo(78671, -41702, -3234, moveDistance);
MoveTo(78792, -41755, -3239, moveDistance);
MoveTo(78919, -41885, -3242, moveDistance);
MoveTo(79114, -42043, -3241, moveDistance);
MoveTo(79416, -42159, -3241, moveDistance);
SetPause(false);
SCONFIG.targeting.centerPoint.X = 79576;
SCONFIG.targeting.centerPoint.Y = -42160;
SCONFIG.targeting.centerPoint.Z = -3241;
end;
if(GetZoneType() == 15) then
Sleep(700);
SetPause(false);
end;
until false;
end;
12-30-2013 13:13 PM
Find all posts by this user Quote this message in a reply
mardukx Offline
VIP Member
***

Posts: 240
Joined: Jan 2012
Reputation: 0
Version: 1.4.2.142
Post: #2
RE: Using SoE + Rebuff in Village

i need that script too =(
07-18-2014 06:35 AM
Find all posts by this user Quote this message in a reply
knutoz Offline
Expired VIP Member
**

Posts: 283
Joined: Aug 2013
Reputation: 17
Version: 1.4.2.133
Post: #3
RE: Using SoE + Rebuff in Village

    LUA Programming
BuffID =  ---- place here the ID
 
function need_buffs()
 if not GetMe():GotBuff(BuffID) then
 return true
 end
 return false
end 
function need_rez()
 if GetMe():IsAlikeDeath() == true then
 return true
 end
 return false
end
 
function main()
 if running then
 if need_buffs() and not need_rez() then
 use soe command here <-
 SetPause(true)
 -urscript-
 SetPause(false) 
 elseif need_rez() then
 SetPause(true)
 Sleep(900)
 RequestRestartPoint(2) --- To Village
 -urscript-
 SetPause(false)
 end
 end
 return false
end
 
repeat
 if running then
 main()
 end
 Sleep(1000)
 ClearTargets()
until false;



Enjoy it!
PD: When u die it go to village and pause the bot by script, so if u have option like go to village when die in tower, remove it to use the script properly
07-18-2014 16:09 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #4
RE: Using SoE + Rebuff in Village

Search the forum for autofarm script. What you are describing is just that. The earlier posted code is only a portion of a full autofarm script so I advise for you to get a complete one
(This post was last modified: 07-21-2014 00:38 AM by tophersoccer.)
07-21-2014 00:37 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  ISS REBUFF AT ERTHEIA UPDATE aut0matic 8 5,982 08-13-2014 14:09 PM
Last Post: rORUMI
  GUIDE Go to village dug2006 12 63,119 06-19-2012 11:49 AM
Last Post: TheBl4ckPhoenix
  plz help with rebuff ElAurelo 0 2,553 01-13-2012 17:07 PM
Last Post: ElAurelo



User(s) browsing this thread: