Jump to content

Recommended Posts

Posted (edited)

Does this work for you? It seems to me that the condition (NpcList.Items(i).Target = User) never gives true. Maybe it doesn't work in interlude?

var AggroMobs:integer; 

function MobsAttacking : integer; //Сколько мобов нас атакует?
var i, n: Integer;
begin
n := 0;
AggroMobs:=0;
for i := 0 to NpcList.Count - 1 do
if (NpcList.Items(i).Target = User) and not NpcList.Items(i).Dead then inc(n);
AggroMobs:= n;
Result := n;
end;

begin
print(MobsAttacking);
end.

How do I configure the bot interface to attack only agro mobs?

Edited by darknesscrysis
Posted

Does this work for you? It seems to me that the condition (NpcList.Items(i).Target = User) never gives true. Maybe it doesn't work in interlude?

var AggroMobs:integer; 

function MobsAttacking : integer; //Сколько мобов нас атакует?
var i, n: Integer;
begin
n := 0;
AggroMobs:=0;
for i := 0 to NpcList.Count - 1 do
if (NpcList.Items(i).Target = User) and not NpcList.Items(i).Dead then inc(n);
AggroMobs:= n;
Result := n;
end;

begin
print(MobsAttacking);
end.

How do I configure the bot interface to attack only agro mobs?

yes this doesnt work for interlude, check this http://www.maxcheaters.com/topic/189997-l2-adrenaline-scripts/?p=2637922

Posted (edited)

 

function checkAgro: boolean;

var npc: TL2Npc;

begin

result := Engine.FindEnemy(npc, user, 1100));

end;

 

begin

engine.moveto(123,123,123);

engine.useskill(123);

engine.facecontrol(0,true);

while checkAgro do delay(1111);

engine.facecontrol(0,false);

end.

 

 

The problem with that is that it only kills the mobs after it arrives to the point. So when you cross a chamber you would have a lot of mobs to kill at once.

 

I think this way would work better, you create a config that doesn't attack any mob but beat off attacking mobs, you load that config before moving to the hunting zone, and when you arrive you change it for the usual config to attack all the mobs in that zone.

BEGIN
  Engine.LoadConfig ('KillAggroMobs');
  Engine.FaceControl (0, True);
  Engine.MoveTo ...
  move..
  move..
  ...
  if  User.InRange (x, y, z, range, zRange)  then begin
    Print ('Arrived to hunting zone');
    Engine.LoadConfig (User.Name);
    Engine.LoadZone ('huntingZoneName.zmap');
  end;
END.
Edited by darknesscrysis
Posted

 

The problem with that is that it only kills the mobs after it arrives to the point. So when you cross a chamber you would have a lot of mobs to kill at once.

 

I think this way would work better, you create a config that doesn't attack any mob but beat off attacking mobs, you load that config before moving to the hunting zone, and when you arrive you change it for the usual config to attack all the mobs in that zone.

BEGIN
  Engine.LoadConfig ('KillAggroMobs');
  Engine.FaceControl (0, True);
  Engine.MoveTo ...
  move..
  move..
  ...
  if  User.InRange (x, y, z, range, zRange)  then begin
    Print ('Arrived to hunting zone');
    Engine.LoadConfig (User.Name);
    Engine.LoadZone ('huntingZoneName.zmap');
  end;
END.

i still prefer that function xd

Posted (edited)

It would be nice if it stopped when there's a mob attacking, but it would need to pause the movement. How would that be? Something like..

function checkAgro: boolean;
var
  npc: TL2Npc;
begin
  result := Engine.FindEnemy(npc, user, 1100));
end;

procedure  killAgroMobs;
begin
  if  checkAgro // suspend thread movingToHuntingZone
  // resume thread after killing mobs
end;

procedure  movingToHuntingZone;
  ...

begin
  script.newThread(@killAgroMobs);
  script.newThread(@movingToHuntingZone);
end.
Edited by darknesscrysis
Posted (edited)

 

It would be nice if it stopped when there's a mob attacking, but it would need to pause the movement. How would that be? Something like..

procedure  checkAgroMobs;
  ... // if true suspend thread movingToHuntingZone
      // resume thread after killing mobs

procedure  movingToHuntingZone;
  ...

begin
  script.newThread(@checkAgroMobs);
  script.newThread(@movingToHuntingZone);
end.

simply before each move check for agro mobs, and if agro true then turn on bot and do delay for example

procedure CustomMoveTo(x,y,z:integer);
begin
if checkAgro then begin
engine.facecontro(0, true);
while checkAgro do delay(20);
engine.facecontrol(0,false);
end;
engine.moveto(x,y,z);
end;


begin
CustomMoveTo(123,123,123);
end.

it before start use engine.moveto it will check if mobs hit u, gl!

Edited by adr.bot

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • 新品上线! 提供高级订阅账号,支持热门AI服务:Gemini Pro 和 Perplexity AI。 ➡ Gemini Pro 订阅 + 2TB 谷歌云存储(绑定您的 Google 账号,有效期1年)| 需要访问您的 Google 账号 | 价格:6美元起 ➡ Perplexity AI Pro 订阅(绑定您的账号,有效期1年)| 需要访问您的账号 | 价格:6美元起 欢迎通过我们的网站或 Telegram 机器人购买! 有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 其他服务: 购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 以下是我们平台最新的促销与特别优惠列表: 1. 促销码 OCTOBER2025(8% 折扣),适用于十月期间在我们的网站或机器人中购物!首次购买可使用促销码 SOCNET(15% 折扣)。 2. 获取1美元余额或10–20%折扣 —— 注册后在我们网站的论坛帖子中留言,格式为:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板即可获得1美元奖励 —— 只需在我们网站(支持中心)提交主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买 Stars 的机器人中赠送 Telegram Stars! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop✅ ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord 服务器:https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram:https://t.me/socnet_support✅ ➡ WhatsApp:https://wa.me/79051904467✅ ➡ Discord:socnet_support ✅ ➡ ✉ 邮箱:solomonbog@socnet.store ✅
    • 新品上线! 提供高级订阅账号,支持热门AI服务:Gemini Pro 和 Perplexity AI。 ➡ Gemini Pro 订阅 + 2TB 谷歌云存储(绑定您的 Google 账号,有效期1年)| 需要访问您的 Google 账号 | 价格:6美元起 ➡ Perplexity AI Pro 订阅(绑定您的账号,有效期1年)| 需要访问您的账号 | 价格:6美元起 欢迎通过我们的网站或 Telegram 机器人购买! 有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 其他服务: 购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 以下是我们平台最新的促销与特别优惠列表: 1. 促销码 OCTOBER2025(8% 折扣),适用于十月期间在我们的网站或机器人中购物!首次购买可使用促销码 SOCNET(15% 折扣)。 2. 获取1美元余额或10–20%折扣 —— 注册后在我们网站的论坛帖子中留言,格式为:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板即可获得1美元奖励 —— 只需在我们网站(支持中心)提交主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买 Stars 的机器人中赠送 Telegram Stars! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop✅ ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord 服务器:https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram:https://t.me/socnet_support✅ ➡ WhatsApp:https://wa.me/79051904467✅ ➡ Discord:socnet_support ✅ ➡ ✉ 邮箱:solomonbog@socnet.store ✅
    • New Products! Accounts with premium subscriptions for popular AI services Gemini Pro and Perplexity AI. ➡ Gemini Pro Subscription + 2TB Google Storage on your Google Account for 1 YEAR | Requires access to your Google account | Price from: $6 ➡ Perplexity AI Pro Subscription ON YOUR ACCOUNT for 1 YEAR | Requires access to your account | Price from: $6 Shop in our online store or through our Telegram bot! Active Links: Digital goods store (Website): Go Store Telegram bot: Go Other services: Telegram bot for purchasing Telegram Stars: Go SMM Panel: Go – promote your social media accounts. We would like to present you with the current list of promotions and special offers for purchasing products and services from our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website or Bot) in October! You can also use the first-time promo code SOCNET (15% discount). 2. Get $1 credited to your store balance or a 10–20% discount — just post your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly giveaways of Telegram Stars in our Telegram channel and in our Telegram bot for Star purchases! News: ➡ Telegram channel: https://t.me/accsforyou_shop✅ ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord server: https://discord.gg/y9AStFFsrh✅ Contacts and Support: ➡ Telegram: https://t.me/socnet_support✅ ➡ WhatsApp: https://wa.me/79051904467✅ ➡ Discord: socnet_support ✅ ➡ ✉ Email: solomonbog@socnet.store ✅
    • New Products! Accounts with premium subscriptions for popular AI services Gemini Pro and Perplexity AI. ➡ Gemini Pro Subscription + 2TB Google Storage on your Google Account for 1 YEAR | Requires access to your Google account | Price from: $6 ➡ Perplexity AI Pro Subscription ON YOUR ACCOUNT for 1 YEAR | Requires access to your account | Price from: $6 Shop in our online store or through our Telegram bot! Active Links: Digital goods store (Website): Go Store Telegram bot: Go Other services: Telegram bot for purchasing Telegram Stars: Go SMM Panel: Go – promote your social media accounts. We would like to present you with the current list of promotions and special offers for purchasing products and services from our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website or Bot) in October! You can also use the first-time promo code SOCNET (15% discount). 2. Get $1 credited to your store balance or a 10–20% discount — just post your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly giveaways of Telegram Stars in our Telegram channel and in our Telegram bot for Star purchases! News: ➡ Telegram channel: https://t.me/accsforyou_shop✅ ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord server: https://discord.gg/y9AStFFsrh✅ Contacts and Support: ➡ Telegram: https://t.me/socnet_support✅ ➡ WhatsApp: https://wa.me/79051904467✅ ➡ Discord: socnet_support ✅ ➡ ✉ Email: solomonbog@socnet.store ✅
    • you can expose him here 🙂 let everyone see what kind of person he is and exactly what he is selling.  
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock