Jump to content

Recommended Posts

Posted

nice great work man really appreciate it

 

does player only mean that it only interatcs with my figure and not with the party?(dont look at their hp and heal/buff?)

Posted

nice great work man really appreciate it

 

does player only mean that it only interatcs with my figure and not with the party?(dont look at their hp and heal/buff?)

 

yes, everything what uses only player stats shoud work.. I'm already working on full supported version

  • 2 weeks later...
Posted

Nice bot! It works on my server! But i have some problems with the pick-up command, i post my config script here, please help me if i wrote something wrong.

 

const
  //Keyboard targeting
  useKeyboardTargeting = true;
  keyboardTargetMaxWait= 800;   //in ms 
  keyboardTargetCommand= 'F2';                                            //can i use also /nexttarget command?
  
  //Mouse targeting
  useMouseTargeting      = false;
  mouseTargetMode        = 2;   // 0 - center, 1 - up, 2 - down
  mouseTargetUseShift    = true;
  mouseTargetUseCtrl     = false;
  mouseTargetDoubleClick = false;
  mouseTargetAllowMix    = true;
  mouseTargetMaxWait     = 800; //ms
  mouseTargetMinRange    = 200; //px
  
  //Camera rotation
  useRotation            = false;
  rotationMode           = 0;   //0 - left, 1 - right
  rotationTime           = 1200; //ms
  
  //Rest
  useRest                = true;
  restMinHp              = 50;   //%
  restMinCp              = 0;    //%
  restMinMp              = 20;   //%
  restSitCommand         = '/sit';
  restStandCommand       = '/stand';
  
  //Mob killing
  firstAttackCommand                 = 'F1';
  firstAttackCommandBlockTime        = 600; //ms
  repeatAttackCommand                = 'F1';
  repeatAttackCommandBlockTime       = 500; //ms
  repeatAttackCommandEvery           = 5000; //ms
  hp60PrecentAttackCommand           = 'F3';
  hp60PrecentAttackCommandBlockTime  = 0; //ms
  hp30PrecentAttackCommand           = '';
  hp30PrecentAttackCommandBlockTime  = 0; //ms
  mobDeathCommand                    = '';                                         //i tried also to put here the F4 command assigned to the pickup but didnt works
  mobDeathCommandBlockTime           = 0; //ms
  
  //Pickup 
  pickupCommand  = 'F4';                                                              //pickup dont works
  pickupCount    = 0;   // 0 - disabled
  pickupBlockTime= 400; // ms
         
  //KS Protection                                                                                         //i dont know what is that, i disable it
  enableKSProtection = false; //You wont attack mob 
  
  //Stuck Protection
  enableStuckProtection = false;
  stuckProtectionTimer  = 30000; //ms
  
  //ClickProtection
  enableClickProtection = false;
  clickProtectionRange  = 20; //px
     
  //List of Mobs to kill
  var  mouseTargetTargetsList:TStringList;                                                   //bot seems dont take care about this command
  procedure setMouseTargetsNames;
  begin
    mouseTargetTargetsList.Add('Spelunking Ant');
  end;

//------------END-OF-CONFIGURATION----------------------------------------------

 

I repeat that bot attack mobs, but leave drop on the floor :| please help me with the code, or post your code :p

Posted

About script:

 

const
  //Keyboard targeting
  useKeyboardTargeting = true;     //true - using targeting ...
  keyboardTargetMaxWait= 800;    //in ms 
  keyboardTargetCommand= 'F2';   //yes you can use /nexttarget if i remember, you can always try...
  
  //Mouse targeting
  //this is for targeting using mouse, it will work only on C5, IL, and is somekind of OCR, i trying to find mobs names on screen.
  useMouseTargeting      = false;  //on/of
  mouseTargetMode        = 2;   // 0 - center, 1 - up, 2 - down - its for with mob try to target first
  mouseTargetUseShift    = true; 
  mouseTargetUseCtrl     = false;
  mouseTargetDoubleClick = false;
  mouseTargetAllowMix    = true; // its a param for OCR procedure
  mouseTargetMaxWait     = 800; //ms
  mouseTargetMinRange    = 200; //px
  
  //Camera rotation
  useRotation            = false; // its for mouse target mode, char shoud rotate (pressing left/right key)
  rotationMode           = 0;   //0 - left, 1 - right
  rotationTime           = 1200; //ms
  
  //Rest - i never used this :P
  useRest                = true;
  restMinHp              = 50;   //%
  restMinCp              = 0;    //%
  restMinMp              = 20;   //%
  restSitCommand         = '/sit';
  restStandCommand       = '/stand';
  
  //Mob killing 
  firstAttackCommand                 = 'F1'; //you can use here /attack
  firstAttackCommandBlockTime        = 600; //ms 
  repeatAttackCommand                = 'F1'; //same as abowe
  repeatAttackCommandBlockTime       = 500; //ms
  repeatAttackCommandEvery           = 5000; //ms
  hp60PrecentAttackCommand           = 'F3';
  hp60PrecentAttackCommandBlockTime  = 0; //ms
  hp30PrecentAttackCommand           = '';
  hp30PrecentAttackCommandBlockTime  = 0; //ms
  mobDeathCommand                    = '';         //this is for sweep, or hp drain for necro/sh                           
  mobDeathCommandBlockTime           = 0; //ms
  
  //Pickup 
  pickupCommand  = 'F4';                         //you can put here /pickup
  pickupCount    = 0;   // 0 - disabled        //cant be 0, its how much time it press F4 (pickup) after mob death
  pickupBlockTime= 400; // ms                 //delay bettwen key press
         
  //KS Protection                                                                      
  enableKSProtection = false; //You wont attack mob - its like dont attack mobs what already dont have ~100%
  
  //Stuck Protection
  enableStuckProtection = false;              //if in 30s you dotn take hp of mob, try target other
  stuckProtectionTimer  = 30000; //ms
  
  //ClickProtection
  enableClickProtection = false;               //for mouse mode
  clickProtectionRange  = 20; //px
     
  //List of Mobs to kill
  var  mouseTargetTargetsList:TStringList;          //its for mouse mode and OCR procedure (C5, IL)
  procedure setMouseTargetsNames;
  begin
    mouseTargetTargetsList.Add('Spelunking Ant');
  end;

//------------END-OF-CONFIGURATION----------------------------------------------

 

About program:

Yes it works on HB, Gracia but only 3.2 and only reading Player info (i already know how to read all posible data from game using some hooks, maybe in future i will make it). 3.2 have small bugs, like ther eis not posible to stop scriipt, or program (pause shoud work), its because of some code bug, maybe i will fix it in future until that you have to restart program. Support for Gracia is same like L2 Potion User.

 

About new Dex protection.

True, they blocked both programs, but if you recompile it with diffrent window name and diffrent icon they will work :P

Maybe I will do that in weekend with full support for Gracia Epilogue & bugs fixes.

 

For Gracia you need to change reader in Configuration tab. If you dont need to use skills, or potions from other skillbar ten you can use L2 Potion User.

Posted

Yes it is...

begin
repeat
WriteCommand('/target Treasure Box');
Sleep(2000);
UseFKey('F1'); //use key
Sleep(10000);
UseFKey('F1'); //to be sure
Sleep(3000);
UseFKey('F2'); //pickup
Sleep(600);  //wait for pickup
UseFKey('F2'); //pickup
Sleep(600);  //wait for pickup
UseFKey('F2'); //pickup
Sleep(600);  //wait for pickup
UseFKey('F2'); //pickup
Sleep(600);  //wait for pickup
Sleep(500);
until false;
end.

 

And some list of commands (few wont work on gracia...):

type TTargetType = (trNone,trPlayerNpc, trMob, trSummonPartyMember);

type
  TMyPoint = record
              X:integer;
              Y:integer;
              name:String;
             end;
  TPoints = array of TMyPoint;

procedure Delay(time:longword);
procedure Sleep(time:longword);
procedure Writeln(log:String);
procedure ChangeGlobalNameList(words:TStrings); // <- Use TStringList class
function getNpcPositions(allowMoreThanOneMobInOnePlace:boolean=true): TPoints;
function isClockModInstalled:boolean;
function getPlayerInfo:TPlayerInfo;
function getTargetInfo:TTargetInfo;
function getPartyInfo:TPartyInfo;
function getL2WindowHandle:longword;
function getL2WindowPos:TRect;
function UseFKey(F:String):boolean;
function UseFKeySend(F:String):boolean;
function WriteCommand(S:String):boolean;
function WriteCommandSend(S:String):boolean;
function SendKeySendMessage(key:string; down:boolean):boolean;
function SendKeyNormal(key:string; down:boolean):boolean;
procedure BlockTime(time:longword);
function MouseClick(key:byte; shift, ctrl, doubleclick:boolean):boolean;
function MouseClickXY(x:integer; y:integer; key:byte; shift, ctrl, doubleclick:boolean):boolean;
function isAnyL2WindowActive:boolean;
function isL2WindowActive:boolean;
function Timer:int64; //zwraca czas w ms

function getPlayerHP:double;
function getPlayerCP:double;
function getPlayerMP:double;
function getPlayerStatus:boolean;

function getTargetHP:double;
function getTargetMP:double;
function getTargetStatus:boolean;
function getTargetType:TTargetType;

function getPartyCP(index:byte):double;
function getPartyHP(index:byte):double;
function getPartyMP(index:byte):double;
function getPartyStatus(index:byte):boolean;
function getPartyXY(index:byte):TPoint;

 

 

 

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

    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • L2REBORN x10  l2reborn x1   LU4 MASTERWORRK BOHPTS - TOP PRICE discord - adver745645
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “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 ➡ ✉ Email: solomonbog@socnet.store
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “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 ➡ ✉ Email: solomonbog@socnet.store
  • 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