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
HELP - Bot gets to the training spot but forgets X,Y,Z and Attack Enable
Author Message
luckycz Offline
Expired VIP Member
**

Posts: 4
Joined: Dec 2013
Reputation: 1
Version: 1.4.1.118
Post: #1
HELP - Bot gets to the training spot but forgets X,Y,Z and Attack Enable

Hi guys,

I have created a script where my bot character gets to the training spot but as soon as he get there he forgets the x,y,z coordinates and the PvE Attack is disabled. Any advice please?

Code:
SCONFIG = L2TConfig.GetConfig();
SCONFIG_FILE = GetDir() .. '\\scripts\\swamp3.l2b';
L2TConfig.SaveConfig(SCONFIG_FILE);
if (GetMe():GotBuff(15649) == false) and (GetZoneType() == 15) then
Sleep(3000);
UseItem(736); --Use SOE.
WaitForTeleport();
repeat until false;
end;
moveDistance = 30;


if(GetZoneType() == L2ZoneType.PEACEFUL) then
Sleep(600);
SetPause(true);
moveDistance = 30;
moveDistance = 30;

MoveTo(44869, -47829, -801, moveDistance);
MoveTo(44073, -47878, -801, moveDistance);
TargetNpc("Adventurers' Guide", 32327);
MoveTo(43532, -47735, -801, moveDistance);
Talk();
ClickAndWait("menu_select?ask=-7&reply=6", "\"Is there anything you can do to strengthen me?\"");
ClickAndWait("menu_select?ask=-7&reply=21", "\"Warrior's Harmony, please.\"");
ClearTargets();
TargetNpc("Ilyana", 31320);
MoveTo(43532, -47735, -801, moveDistance);
MoveTo(43622, -47702, -801, moveDistance);
Talk();
ClickAndWait("teleport_request", "\"I want to teleport.\"");
ClickAndWait("teleport_4717317184_12_57_1209024877_2", "1010565 - 1500 1000308");
MoveTo(43622, -47702, -801, moveDistance);
WaitForTeleport();
-- Quest state changed, ID: 31, STATE: 1
-- Quest state changed, ID: 470, STATE: 1
-- Quest state changed, ID: 10414, STATE: 1
-- 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(69625, -50085, -3287, moveDistance);
MoveTo(70859, -49593, -3228, moveDistance);
MoveTo(72292, -48993, -3204, moveDistance);
MoveTo(72702, -48732, -3204, moveDistance);
MoveTo(73039, -48399, -3199, moveDistance);
MoveTo(73442, -47732, -3177, moveDistance);
MoveTo(73169, -47196, -3180, moveDistance);
MoveTo(73066, -47123, -3184, moveDistance);
MoveTo(72622, -46796, -3209, moveDistance);
MoveTo(72335, -46463, -3239, moveDistance);
MoveTo(72333, -46348, -3239, moveDistance);
MoveTo(72327, -46224, -3236, moveDistance);
MoveTo(72321, -46087, -3233, moveDistance);
MoveTo(72307, -45858, -3233, moveDistance);
MoveTo(72302, -45784, -3233, moveDistance);
MoveTo(72299, -45699, -3233, moveDistance);
MoveTo(72299, -45637, -3233, moveDistance);
MoveTo(72304, -45541, -3233, moveDistance);
SCONFIG.targeting.centerPoint.X = 72299;
SCONFIG.targeting.centerPoint.Y = -45389;
SCONFIG.targeting.centerPoint.Z = -3233;
SetPause(false);
MoveTo(72260, -45259, -3233, moveDistance);
MoveTo(72252, -45270, -3233, moveDistance);
L2TConfig.LoadConfig(SCONFIG_FILE);
end;
12-31-2013 07:05 AM
Find all posts by this user Quote this message in a reply
SimonHM Offline
@iProtion.com
**

Posts: 174
Joined: Oct 2012
Reputation: 83
Version: 1.4.1.116
Post: #2
RE: HELP - Bot gets to the training spot but forgets X,Y,Z and Attack Enable

Remove these lines:

    LUA Programming
SCONFIG = L2TConfig.GetConfig();
-- SCONFIG_FILE = GetDir() .. '\\scripts\\swamp3.l2b'; --  remove this line  <<<<<<
-- L2TConfig.SaveConfig(SCONFIG_FILE);   --  remove this line  <<<<<<
if (GetMe():GotBuff(15649) == false) and (GetZoneType() == 15) then
Sleep(3000);
.....
.....
SetPause(false);
MoveTo(72260, -45259, -3233, moveDistance);
MoveTo(72252, -45270, -3233, moveDistance);
-- L2TConfig.LoadConfig(SCONFIG_FILE); --  remove this line  <<<<<<
end;


Plugin aPickup using /pickup with filtering list

[Image: simonhm.gif]
Bot for Kingdom Under Fire II
12-31-2013 07:18 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
  Letting my Great wolf attack gino2323 1 1,901 04-05-2015 16:25 PM
Last Post: plixplox
  Disable counter attack/target Roninaldo 1 2,385 06-11-2014 15:02 PM
Last Post: dnrgl
  Not attack purple plixplox 2 2,801 12-02-2013 20:46 PM
Last Post: Sakaszli
  Only attack specified mobs? Kookie 3 3,273 10-16-2013 20:51 PM
Last Post: Kookie



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