PDA

View Full Version : [Fighting] [AL] AeroFighter (lite version)



Flight
07-23-2017, 05:55 PM
AeroFighter Lite
By Flight
Current version: 0.1
Current revision: 0


Core features:

Auto-fights user-defined NPCs in OSRS
Any client; SMART/OSRS official, ect...
NPC target files are loaded via text files
Auto-eating common fish
Loot grabbing
Location detection & optional walk-back system
Hop worlds if players detected nearby (optional)
Recognition of no ammo/runes or a completed Slayer task
Break system
100% color


Requirements:

AeroLib (2.0+) (http://villavu.com/forum/showthread.php?t=108953)
Newest Simba


Creating an NPC file:

To make the script truly AIO and to save on clutter, this script loads txt-based NPC files from a directory created by the script. Once this directory (Simba/AeroFighter/) is created you can save your NPC files there. To create your own you'll want to open up a simple text-editor, like Notepad and use this format for your NPC file:


[NPC_Obj_Main]
ObjCount=
XPMod=

[NPCObj_0]
Name=
UpText(C)=
UpText[0]=
ColI=
TolI=

[GI_Array_Main]
GICount=
CheckNotedItems=

[Map_Settings]
UseMap=
UseDots=


Defining your NPC:

The first section of the file is where you define the NPC itself, such as name, uptext and XP per kill. For this example we'll use a level 13 Minotaur found in the Security Stronghold Dungeon. So let's fill in the blanks:


[NPC_Obj_Main]
ObjCount=1
XPMod=40

[NPCObj_0]
Name=Minotaur
UpText(C)=3
UpText[0]=ck Min
UpText[1]=Minot
UpText[2]=otaur
ColI=9082518
TolI=10
hModI=0.16
sModI=0.15



ObjCount refers to the number of TMSObjects you'll use to find your NPC
XPMod is the XP you'll receive from a single kill (excluding Hitpoints/Slayer XP)
[NPCObj_0] 0 begin the array index of the TMSObject. In this case, only 1 TMSObject is used so only need [NPCObj_0]. If you had 2 then you'd make another section labeled "[NPCObj_1]", and so on...
UpText(C) the number of uptext to search for when targeting an NPC
UpText[...] the first uptext in the array. Follow the format for additional uptext


The rest in that section is your TColEx info, which if you're not familiar with you can refer to this tutorial (https://villavu.com/forum/showthread.php?t=113715). If you want a more precise TMSObject for your NPC including "MinCount", Height, Width, and SizeTol" then just add them to the bottom of that, like so:


MinCount=30
Height=30
Width=20
SizeTol=15

And if you're using dual-colors then add your "OuterCol" immediately after your main "InnerCol", like so:


ColI=9082518
TolI=10
hModI=0.16
sModI=0.15
ColO=9079445
TolO=12
hModO=0.16
sModO=0.15
MinCount=5
Height=15
Width=15
SizeTol=10


Defining your loot (ground items):

The section [GI_Array_Main] refers to the ground items associated with your NPC. Again, looting items is optional but here's how to create your own ground items for the script to pick up.


[GI_Array_Main]
GICount=1
CheckNotedItems=True

NotedGIText(C)=1
NotedGIText[0]=ke Rune

[GIObj_0]
Name=Arrows
GIText=ke Iron
ColI=670304
TolI=3
hModI=0.09
sModI=0.94
MinCount=30
Height=20
Width=30
SizeTol=15



GICount is the number of ground items the script will search for
CheckNotedItems True for checking all noted items on the ground, False to ignore them
NotedGIText(C) if checking noted items, the number of right-click options to search for
[GIObj_...] index of each ground item and its TMSObject. Layout identical to NPC's TMSObject



Map settings:

If you'd like to use RSWalker to walk back to an area populated with the NPC you're targeting you can easily add this option to the NPC file, as in the example:


[Map_Settings]
UseMap=True
UseDots=False
MapName=SecurityStronghold
MapX=254
MapY=120



UseMap use a loaded map file or not
UseDots if not using a map, walk to nearest NPC on the mini-map when no free NPC is found?
MapName name of the map (if any) to load (should be placed in Includes/AeroLib/maps/)
MapX/MapY the X and Y coordinate of the tile to walk to if no free NPCs are found


And you're all done. Now just save it as the NPC name (MUST BE LOWER CASE) as a normal text file.


Example Minotaur file (Simba/AeroFighter/minotaur.txt)



[NPC_Obj_Main]
ObjCount=1
XPMod=88

[NPCObj_0]
Name=Minotaur
UpText(C)=3
UpText[0]=ck Min
UpText[1]=Minot
UpText[1]=otaur
ColI=9082518
TolI=10
hModI=0.16
sModI=0.15

[GI_Array_Main]
GICount=2
CheckNotedItems=False

[GIObj_0]
Name=Arrows
GIText=ke Iron
ColI=670304
TolI=3
hModI=0.09
sModI=0.94
MinCount=30
Height=20
Width=30
SizeTol=15

[GIObj_1]
Name=Arrows
GIText=ke Iron
ColI=670304
TolI=3
hModI=0.09
sModI=0.94
MinCount=30
Height=30
Width=20
SizeTol=15

[Map_Settings]
UseMap=True
UseDots=False
MapName=SecurityStronghold
MapX=254
MapY=120

Flight
07-23-2017, 05:58 PM
Additional NPC files

Chicken


[NPC_Obj_Main]
ObjCount=2
XPMod=12

[NPCObj_0]
Name=Chicken
UpText(C)=3
UpText[0]=ck Chi
UpText[1]=Chicken
UpText[2]=el-1
ColI=7247532
TolI=13
hModI=0.03
sModI=0.68
Height=20
Width=20
SizeTol=10

[NPCObj_1]
Name=Chicken
UpText(C)=3
UpText[0]=ck Chi
UpText[1]=Chicken
UpText[2]=el-1
ColI=2576752
TolI=7
hModI=0.05
sModI=1.71
Height=20
Width=20
SizeTol=10

[GI_Array_Main]
GICount=0
CheckNotedItems=False

[Map_Settings]
UseMap=True
UseDots=False
MapName=WorldMap
MapX=4541
MapY=3257


Ankou


[NPC_Obj_Main]
ObjCount=1
XPMod=260

[NPCObj_0]
Name=Ankou
UpText(C)=3
UpText[0]=ck Ankou
UpText[1]=Ankou
UpText[2]=el-82
ColI=4076391
TolI=5
hModI=0.64
sModI=2.07

[GI_Array_Main]
GICount=2
CheckNotedItems=True

NotedGIText(C)=2
NotedGIText[0]=essen
NotedGIText[1]=ke Mith

[GIObj_0]
Name=Death rune
GIText=ke Dea
ColI=14803428
TolI=15
ColO=9079445
TolO=12
hModO=0.16
sModO=0.15
MinCount=5
Height=15
Width=15
SizeTol=10

[GIObj_1]
Name=Blood rune
GIText=ke Blo
ColI=1121675
TolI=15
ColO=9079445
TolO=12
hModO=0.16
sModO=0.15
MinCount=5
Height=15
Width=15
SizeTol=10

[Map_Settings]
UseMap=True
UseDots=False
MapName=StrongholdSlayerCave
MapX=515
MapY=265


Bloodveld


[NPC_Obj_Main]
ObjCount=1
XPMod=484

[NPCObj_0]
Name=Bloodveld
UpText(C)=2
UpText[0]=ck Blood
UpText[1]=veld (L
ColI=7044011
TolI=12
hModI=0.05
sModI=0.73

[GI_Array_Main]
GICount=2
CheckNotedItems=False

[GIObj_0]
Name=Blood rune
GIText=ke Blo
ColI=1121675
TolI=15
ColO=9079445
TolO=12
hModO=0.16
sModO=0.15
MinCount=5
Height=15
Width=15
SizeTol=10

[GIObj_1]
Name=Rune med helm
GIText=ke Rune
ColI=6708293
TolI=12
hModI=0.04
sModI=0.09
MinCount=5
Height=10
Width=10
SizeTol=5

[Map_Settings]
UseMap=True
UseDots=False
MapName=StrongholdSlayerCave
MapX=475
MapY=133


Fire giant


[NPC_Obj_Main]
ObjCount=1
XPMod=444

[NPCObj_0]
Name=Fire giant
UpText(C)=2
UpText[0]=ck Fire
UpText[1]=iant (L
ColI=3426177
TolI=5
hModI=0.26
sModI=1.23

[GI_Array_Main]
GICount=1
CheckNotedItems=False

[GIObj_0]
Name=Rune scimitar
GIText=ke Rune
ColI=6576964
TolI=5
hModI=0.14
sModI=0.25
MinCount=5
Height=10
Width=20
SizeTol=10

[Map_Settings]
UseMap=True
UseDots=False
MapName=StrongholdSlayerCave
MapX=195
MapY=382


Kurask


[NPC_Obj_Main]
ObjCount=1
XPMod=404

[NPCObj_0]
Name=Kurask
UpText(C)=3
UpText[0]=ck Kura
UpText[1]=urask
UpText[2]=el-106
ColI=1075543
TolI=12
hModI=0.12
sModI=2.22

[GI_Array_Main]
GICount=4
CheckNotedItems=True

NotedGIText(C)=5
NotedGIText[0]=ke Big
NotedGIText[1]=ke Papa
NotedGIText[2]=ke White
NotedGIText[3]=ke Limp
NotedGIText[4]=ke Coc

[GIObj_0]
Name=Nature rune
GIText=ke Nat
ColI=1411857
TolI=3
ColO=9079445
TolO=12
hModO=0.16
sModO=0.15
MinCount=5
Height=15
Width=15
SizeTol=10

[GIObj_1]
Name=Rune axe
GIText=ke Rune
ColI=6116415
TolI=3
hModI=0.19
sModI=0.34
ColO=942723
TolO=5
hModO=0.05
sModO=0.50

[GIObj_2]
Name=Rune Longsword
GIText=ke Rune
ColI=6116415
TolI=3
hModI=0.19
sModI=0.34
ColO=942723
TolO=5
hModO=0.05
sModO=0.50

[GIObj_3]
Name=Leaf-bladed sword
GIText=ke Lea
ColI=7369081
TolI=7
hModI=0.27
sModI=0.05
MinCount=15
Height=22
Width=13
SizeTol=8

[Map_Settings]
UseMap=True
UseDots=False
MapName=FremennikSlayerDungeon
MapX=180
MapY=301


Turoth


[NPC_Obj_Main]
ObjCount=1
XPMod=324

[NPCObj_0]
Name=Turoth
UpText(C)=3
UpText[0]=ck Turo
UpText[1]=Turoth
UpText[2]=el-8
ColI=8027564
TolI=7
hModI=0.07
sModI=1.52

[GI_Array_Main]
GICount=2
CheckNotedItems=False

[GIObj_0]
Name=Nature rune
GIText=ke Nat
ColI=1411857
TolI=3
ColO=9079445
TolO=12
hModO=0.16
sModO=0.15
MinCount=5
Height=15
Width=15
SizeTol=10

[GIObj_1]
Name=Leaf-bladed sword
GIText=ke Lea
ColI=7369081
TolI=7
hModI=0.27
sModI=0.05
MinCount=15
Height=22
Width=13
SizeTol=8

[Map_Settings]
UseMap=True
UseDots=False
MapName=FremennikSlayerDungeon
MapX=275
MapY=275

acow
07-23-2017, 06:50 PM
Very nice job man. Looks like a great script for people to learn from.

EduardSB123
07-23-2017, 06:58 PM
Hi Flight, is it correct that the areolib simba file has the 1.2 version as a variable / constant named in the include file instead of 2.0?



Const
AL_VERSION_MAIN = 1.2;
AL_VERSION_SUB = 6;
AL_GITURL = 'https://github.com/J-Flight/AeroLib';

Flight
07-23-2017, 08:16 PM
Hi Flight, is it correct that the areolib simba file has the 1.2 version as a variable / constant named in the include file instead of 2.0?



Const
AL_VERSION_MAIN = 1.2;
AL_VERSION_SUB = 6;
AL_GITURL = 'https://github.com/J-Flight/AeroLib';


Nah that's the GitHub version. This script requires 2.0 which I just very recently released here (https://villavu.com/forum/showthread.php?t=108953&page=27&p=1388024#post1388024).

klerx
07-24-2017, 01:30 AM
Had a problem with AeroLib 2.0, fixed issue. I will update with reactions to the script.

ham22
07-24-2017, 12:00 PM
Keep getting

Error: Expected variable of type "Int32", got "Extended" at line 571
Compiling failed.

Flight
07-24-2017, 01:45 PM
Keep getting

Error: Expected variable of type "Int32", got "Extended" at line 571
Compiling failed.


Is this error within the script or the AeroLib include? Make sure you're using AL 2.0 or higher and the newest version of Simba. I'd recommend this one (https://villavu.com/forum/showthread.php?t=116951).

klerx
07-24-2017, 07:35 PM
Script runs really well, great job! I've been able to make new NPC scripts and add items successfully.

Issues:

1.Sometimes attacks a new NPC without killing the last one attacked. I'd say about 1/10 kills it may do this. Might be the timings, I'm still testing new ones. Isn't a big deal in multi.

2.Picking up items. As it is color, if another player is wearing rune armor, the script will check several times on the player's armor for a rune scimitar drop. Same issue when a drop triggers a color but text doesn't match, the script will continuously right click on the color/drop. I need to watch for this drop issue more but the scripts stops checking the drop after 1-2 kills I believe (Could be timed to end?). Maybe add a delay if a drop isn't found after 1-3 checks? I'm not sure how to implement that.

3.When logging out the script attempts to logout within 10 seconds of combat, the script then stops attempting to logout before the player is allowed to logout.

4.and finally

Error: Expected variable of type "Int32", got "Extended" at line 571
Compiling failed.

relates to

until(T.timeElapsed() > min ((COMBATTIME * 1000), 3600));

I solved this issue by calculating comabtitme*1000 myself.

until(T.timeElapsed() > min(2500, 3600));

I'm using Simba 1.1

Flight
07-27-2017, 02:15 PM
Script runs really well, great job! I've been able to make new NPC scripts and add items successfully.

Issues:

1.Sometimes attacks a new NPC without killing the last one attacked. I'd say about 1/10 kills it may do this. Might be the timings, I'm still testing new ones. Isn't a big deal in multi.


A difficult issue to accurately overcome with a color-based auto-fighter when fighting near other players. To fix this problem you might try adjusting BarDist (line 62) which is your variable to check within the given distance, from your player, of the nearest HP bar, excluding your own. It's default set to 70 but you can increase that some if you're fighting solo, however fighting near other players it might pick up them/their target being in combat and mistake it for your own player. It's a trade-off and I knew it would be, that's why I made it easy for the user to adjust to their liking.



2.Picking up items. As it is color, if another player is wearing rune armor, the script will check several times on the player's armor for a rune scimitar drop. Same issue when a drop triggers a color but text doesn't match, the script will continuously right click on the color/drop. I need to watch for this drop issue more but the scripts stops checking the drop after 1-2 kills I believe (Could be timed to end?). Maybe add a delay if a drop isn't found after 1-3 checks? I'm not sure how to implement that.


You can make this much more accurate by giving your ground item a size and mincount restriction. Say a rune helmet on the ground, it will have a small height and width and definitely a small amount of "rune color" visible versus a player wearing rune armor. Use that logic to define your ground item and give it a smaller size and mincount, or just a size or just a mincount. The script will accept all variations of NPC/ground items TMSObjects.



3.When logging out the script attempts to logout within 10 seconds of combat, the script then stops attempting to logout before the player is allowed to logout.


That was supposed to be fixed a while back in AeroLib itself but it appears I'll need to take a look at it. Either way, that's an include issue rather than the script. For a temporary work-around you could just do a combat check before logging out the player. If you're in combat then wait until it's stopped, then log out.



4.and finally

Error: Expected variable of type "Int32", got "Extended" at line 571
Compiling failed.

relates to

until(T.timeElapsed() > min ((COMBATTIME * 1000), 3600));

I solved this issue by calculating comabtitme*1000 myself.

until(T.timeElapsed() > min(2500, 3600));

I'm using Simba 1.1

That's probably fixed by using the newest version of Simba. For what it's worth, I recommend the 32-bit version as I've had problems with the 64.

dandandan
08-09-2017, 02:03 PM
Hey Flight, great script. I've ran it for a while and it seems relatively stable for one that's so new. Would it be possible to implement banking (walk or tele) in the future? I'm willing to work on it but as I'm kind of inexperienced with scripting, I'm not sure how well it would pan out. On a totally unrelated (and much easier to script) note, a small QoL change could be a "loot all" option, where it picks up all drops from a dead npc, so we don't have to worry about typing out the entire loot table.

Smalfinn
08-11-2017, 09:06 AM
Just wondered before I start using this script -

Does anyone have the setup .txt file for Giant rats?

Captin_55
08-19-2017, 08:34 PM
I added a function that automatically takes any antipoison in your inventory. I've also included the DTM's:



procedure takeAntipoison();
var
i,x,y,slot : Integer;
iBox : TBox;
iPoint : TPoint;
begin
writeln('Im Poisoned! Searching for antipoisons');
for i:=0 to high(Antipoisons) do
begin
if Antipoisons[i].inInventory() then
begin
slot := Antipoisons[i].getSlot();
iBox := invBox(slot);
iPoint := Point(randomRange(iBox.x1, iBox.x2), randomRange(iBox.y1, iBox.y2));
humanMMouse(iPoint, 4, 4);
Wait(200 + Random(300));
if isUpTextMulti(['Use', 'Vial', 'ial']) then
begin
writeln('Empty vial found. Dropping...');
Antipoisons[i].interact('Drop');
Continue;
end
else
begin
writeln('Antipoison found! Drinking...');
if Antipoisons[i].interact('Drink') then break else Continue;
end
end
else Continue;
end;
end;


And the DTM's (to be put in your loadVars function, declared as Array of TItem):



//Declared somewhere above with other variables
Antipoisons : Array of TItem;


begin
setArrayLength(Antipoisons, 8);
//Normal Antipoisons
Antipoisons[0].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxOXlFV CV+LEI1FxqYQQAANzqHbw=');
Antipoisons[1].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxGVl5V CV+LEI1FxqYQQAANtnHbk=');
Antipoisons[2].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxCWXJK Aq8WMRqLnUwggAANk/HbQ=');
Antipoisons[3].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxG23na Aq8WMRqLnUwggAAPvsHfk=');
//Super Antipoisons
Antipoisons[4].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxBUVlV CV+LEI1FxqYQQAAN5tHb8=');
Antipoisons[5].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxGVl5V CV+LEI1FxqYQQAANtnHbk=');
Antipoisons[6].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxJekCq Aq8WMRqLnUwggAANhDHbI=');
Antipoisons[7].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxLddW6 Aq8WMRqLnUwggAAPyAHfo=');
end


I placed the check in checkHealth() with the following two lines:



poisoned := isPoisoned();
if poisoned then takeAntipoison();

Flight
08-20-2017, 03:46 PM
Hey Flight, great script. I've ran it for a while and it seems relatively stable for one that's so new. Would it be possible to implement banking (walk or tele) in the future? I'm willing to work on it but as I'm kind of inexperienced with scripting, I'm not sure how well it would pan out. On a totally unrelated (and much easier to script) note, a small QoL change could be a "loot all" option, where it picks up all drops from a dead npc, so we don't have to worry about typing out the entire loot table.

It's possible yes but I doubt I'll be modifying the script that heavily. And looting-all... with an accurate target-tracking system that can be accomplished, and I'm actually about to implement a form of this in my developer version of the script. I recently and successfully added object-tracking to a few mining scripts so carrying over the basic idea this script shouldn't be too difficult. Should it be successful I'll update the script, possibly with the option to loot-all from a slain target. It would also open the door to a viable killer & looter for ironman accounts.


Just wondered before I start using this script -

Does anyone have the setup .txt file for Giant rats?

For the giant rats behind Lumbridge Castle:


[NPC_Obj_Main]
ObjCount=1
XPMod=20

[NPCObj_0]
Name=Giant rat
UpText(C)=2
UpText[0]=ck Gia
UpText[1]=ant ra
ColI=9934475
TolI=18
hModI=0.08
sModI=0.12

[GI_Array_Main]
GICount=0
CheckNotedItems=False

[Map_Settings]
UseMap=True
UseDots=False
MapName=WorldMap
MapX=4586
MapY=3631

Dan the man
08-21-2017, 01:56 AM
I added a function that automatically takes any antipoison in your inventory. I've also included the DTM's:



procedure takeAntipoison();
var
i,x,y,slot : Integer;
iBox : TBox;
iPoint : TPoint;
begin
writeln('Im Poisoned! Searching for antipoisons');
for i:=0 to high(Antipoisons) do
begin
if Antipoisons[i].inInventory() then
begin
slot := Antipoisons[i].getSlot();
iBox := invBox(slot);
iPoint := Point(randomRange(iBox.x1, iBox.x2), randomRange(iBox.y1, iBox.y2));
humanMMouse(iPoint, 4, 4);
Wait(200 + Random(300));
if isUpTextMulti(['Use', 'Vial', 'ial']) then
begin
writeln('Empty vial found. Dropping...');
Antipoisons[i].interact('Drop');
Continue;
end
else
begin
writeln('Antipoison found! Drinking...');
if Antipoisons[i].interact('Drink') then break else Continue;
end
end
else Continue;
end;
end;


And the DTM's (to be put in your loadVars function, declared as Array of TItem):



//Declared somewhere above with other variables
Antipoisons : Array of TItem;


begin
setArrayLength(Antipoisons, 8);
//Normal Antipoisons
Antipoisons[0].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxOXlFV CV+LEI1FxqYQQAANzqHbw=');
Antipoisons[1].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxGVl5V CV+LEI1FxqYQQAANtnHbk=');
Antipoisons[2].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxCWXJK Aq8WMRqLnUwggAANk/HbQ=');
Antipoisons[3].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxG23na Aq8WMRqLnUwggAAPvsHfk=');
//Super Antipoisons
Antipoisons[4].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxBUVlV CV+LEI1FxqYQQAAN5tHb8=');
Antipoisons[5].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxGVl5V CV+LEI1FxqYQQAANtnHbk=');
Antipoisons[6].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxJekCq Aq8WMRqLnUwggAANhDHbI=');
Antipoisons[7].DTM := DTMFromString('m1gAAAHic42KAgF//////CcQ/gPg7lAbxfwMxG1CeEaqOCYhZgBgkxgHEXEDMA8S8UMwHxLddW6 Aq8WMRqLnUwggAAPyAHfo=');
end


I placed the check in checkHealth() with the following two lines:



poisoned := isPoisoned();
if poisoned then takeAntipoison();


Nice addition. The DTMs can be handled with one DTM though (the 1 dose potion). I create the center point of the potion in the middle of the potion and put the tolerance to 255, then create the second point at the bottom of the potion, where there is color, and set the tol to 40 or 50, then create black outlines to make it unique. Since these colors exist in 4/4, 3/4, 2/4 and 1/4, it will track them all.

You could also cut down the slot interaction to something like:

Pick first in inventory:

procedure takeAntipoison();
begin
AntiPoison.interact(MOUSE_MOVE);
if isUpTextMulti(['Use', 'Vial', 'ial']) then
FastClick(MOUSE_LEFT);
end;

Pick random from inventory:

procedure takeAntipoison();
var
PotArray:TIntegerArray;
i, RandSlot:integer;
begin
PotArray := AntiPoison.getSlots();
RandSlot := Randomrange(low(PotArray), high(PotArray));
InteractSlot(PotArray[RandSlot], MOUSE_MOVE);
if isUpTextMulti(['Use', 'Vial', 'ial']) then
FastClick(MOUSE_LEFT);
end;

Captin_55
08-21-2017, 03:52 AM
...

Thanks! Both great idea's I'll have a go at adding them later tonight.

Also I modified the targeting procedure to accomidate right clicking higher level mobs:



...(about line 786)
for i:=0 to min(3,high(fPnts)) do
begin
missMouse(fPnts[i], 3, 3);
if waitUpTextMulti(['alk h', '/ 2', '/ 1', '/ 3', '/ 4', '/', 'ore', 'tions', 'More', 'Options'], 200) then break;
if waitUpTextMulti(NPC_Targets[0].MSObj.UpText, 150) then break;
end;

if not isUpTextMulti(NPC_Targets[0].MSObj.UpText) then
begin
if not isPlayerFighting() then
begin
fastClick(MOUSE_RIGHT);
if optionExistsMulti(NPC_Targets[0].MSObj.UpText) then chooseOptionMulti(['ttack', 'ack', 'Attack'])
else Exit;
end
end
else
begin
if not isPlayerFighting() then
fastClick(MOUSE_LEFT);
end
...

Hoodz
08-21-2017, 04:11 PM
Thanks! Both great idea's I'll have a go at adding them later tonight.

Also I modified the targeting procedure to accomidate right clicking higher level mobs:



...(about line 786)
for i:=0 to min(3,high(fPnts)) do
begin
missMouse(fPnts[i], 3, 3);
if waitUpTextMulti(['alk h', '/ 2', '/ 1', '/ 3', '/ 4', '/', 'ore', 'tions', 'More', 'Options'], 200) then break;
if waitUpTextMulti(NPC_Targets[0].MSObj.UpText, 150) then break;
end;

if not isUpTextMulti(NPC_Targets[0].MSObj.UpText) then
begin
if not isPlayerFighting() then
begin
fastClick(MOUSE_RIGHT);
if optionExistsMulti(NPC_Targets[0].MSObj.UpText) then chooseOptionMulti(['ttack', 'ack', 'Attack'])
else Exit;
end
end
else
begin
if not isPlayerFighting() then
fastClick(MOUSE_LEFT);
end
...


you can go to settings on rs, and select the option to give npc always an attack option.

Captin_55
08-21-2017, 06:56 PM
you can go to settings on rs, and select the option to give npc always an attack option.

Wild lol, haven't been back to rs in too long. I guess just another layer of antiban then.

Hoodz
08-22-2017, 09:26 AM
Wild lol, haven't been back to rs in too long. I guess just another layer of antiban then.
i dont think thats how banning works lol

pkeri
08-28-2017, 10:07 AM
Hey!
I'm kinda a simba nub.
When running this script i get this error:

Error: Unknown declaration "hoverSkills" at line 313
Compiling failed.
Would like to get help on this :spot:
cheers,
pkeri

edit:
I changed the aerolib from aerolib-master to the aerolib from aerolib2.0 and now i get this error:

Error: Expected variable of type "Int32", got "Extended" at line 571
Compiling failed.

Flight
08-28-2017, 01:28 PM
Hey!
I'm kinda a simba nub.
When running this script i get this error:

Would like to get help on this :spot:
cheers,
pkeri

edit:
I changed the aerolib from aerolib-master to the aerolib from aerolib2.0 and now i get this error:

Good catch, I'll fix & upload the new version. Until then, change line 571 to this:

until(T.timeElapsed() > min(round((COMBATTIME * 1000)), 3600));

pkeri
08-28-2017, 06:03 PM
Thanks a lot!
Now I have the problem the script gets stuck when it wants to change to a f2p world from a p2p world.
This is the output where it gets stuck.

[AL] Switching to a F2P world
[AL] Logging player in...
[AL] Members world
[AL] Changing worlds; current world:389
When I manually choose an f2p world it finally logs in.
When I use the default Minotaurs.txt file and change the default script food to trout, the scripts does not recognize the food.

[SCRIPT] Out of food
Hope you can help!
cheers!

edit:
then i have another question.
How does the coordinate system of the npc file works?

Flight
09-03-2017, 07:09 PM
Thanks a lot!
Now I have the problem the script gets stuck when it wants to change to a f2p world from a p2p world.
This is the output where it gets stuck.

When I manually choose an f2p world it finally logs in.
When I use the default Minotaurs.txt file and change the default script food to trout, the scripts does not recognize the food.

Hope you can help!
cheers!

edit:
then i have another question.
How does the coordinate system of the npc file works?

I'll take a look at the TItem for trouts to make sure they're detected properly; it's possible it may have a broken DTM however unlikely.

The coordinate system in the NPC file just acts as a player walk-back tool. Should your player venture further from the NPC coordinate than you defined in the script as the MAPDIST, then the script will walk you back to that coordinate. Also, if no free NPC targets are found then the script will walk you back to that coordinate, provided you're further than 7 tiles away. For a bit more info check out the Map settings section of the OP, near the bottom.

hash1mate
09-06-2017, 12:56 AM
Trying to run this, getting this error
Error: No default value for parameter 2 found at line 89
Compiling failed.
Which is the line warn('AeroFighter directory not found, creating it now...');
And there's not a directory saving to simba for me. Any ideas? I've got the up to date aerolib and simba

Ocupation
09-19-2017, 10:38 PM
It seems to me like the COMBATTIME or COMBATCYCLE one of them seems off, It will click to attack a target, and after i am in combat, it will go and click to attack another NPC no matter what they are set to wait for.

Flight
09-23-2017, 11:32 PM
Trying to run this, getting this error
Error: No default value for parameter 2 found at line 89
Compiling failed.
Which is the line warn('AeroFighter directory not found, creating it now...');
And there's not a directory saving to simba for me. Any ideas? I've got the up to date aerolib and simba

This might be a change with AeroLib revision #1 (https://villavu.com/forum/usertag.php?do=list&action=hash&hash=1) , which sets the procedure warn() to, by default, set the last parameter (WarnType) to "AL_SCRIPT". So either add that as a second parameter to that line, or make sure you're actually using the newest AeroLib (at this point, AL 2.0 Rev.1).


It seems to me like the COMBATTIME or COMBATCYCLE one of them seems off, It will click to attack a target, and after i am in combat, it will go and click to attack another NPC no matter what they are set to wait for.

Those two variables absolutely affect how the script functions, that's why they're declared at the top of the script with the other user-preferred variables; you have the power to edit those two variables however you see fit. I know personally I adjust them depending on my combat type and my NPC target.

Also, the next revision of this script should handle combat slightly faster and more accurately, based partly off of adjustments made within AeroLib. However, I'm working on a length project revolving around an auto-responder to include in the next AeroLib. So I'm not yet sure when that will be finished, and since revision #1 (https://villavu.com/forum/usertag.php?do=list&action=hash&hash=1) of this script will run off the newest AL, I cannot release an update just yet.

sjemple
10-07-2017, 10:05 PM
is it possible to get zombie text file?? i tried making sense of the tutorial but couldnt quite get it. :S
Soo if zomebodi could help me (possibly others aswel) and share a zombie text file thoes zombies that are in the security stronghold

sjemple
10-08-2017, 10:16 AM
is it possible to get zombie text file?? i tried making sense of the tutorial but couldnt quite get it. :S
Soo if zomebodi could help me (possibly others aswel) and share a zombie text file thoes zombies that are in the security stronghold

Or could i please get links to more in depth guides how to get thoes variables ?? So i could try and actually create my own

THANKS IN ADVANCE TO ANYONE THAT COULD HELP ON THIS MATTER !

Flight
10-08-2017, 03:44 PM
is it possible to get zombie text file?? i tried making sense of the tutorial but couldnt quite get it. :S
Soo if zomebodi could help me (possibly others aswel) and share a zombie text file thoes zombies that are in the security stronghold

Here's mine for the level 30 zombies in the Security Stronghold:


[NPC_Obj_Main]
ObjCount=1
XPMod=120

[NPCObj_0]
Name=Zombie
UpText(C)=3
UpText[0]=ck Zom
UpText[1]=Zombie
UpText[1]=el-30
ColI=9608605
TolI=9
hModI=0.15
sModI=0.22

[GI_Array_Main]
GICount=2
CheckNotedItems=False

[GIObj_0]
Name=Arrows
GIText=ke Steel
ColI=670304
TolI=3
hModI=0.09
sModI=0.94
MinCount=30
Height=20
Width=30
SizeTol=15

[GIObj_1]
Name=Arrows
GIText=ke Steel
ColI=670304
TolI=3
hModI=0.09
sModI=0.94
MinCount=30
Height=30
Width=20
SizeTol=15

[Map_Settings]
UseMap=True
UseDots=False
MapName=SecurityStronghold
MapX=712
MapY=155


Which part of the tutorial are you having issues with? I'll try to help where I can.

sjemple
10-09-2017, 07:34 AM
Here's mine for the level 30 zombies in the Security Stronghold:


[NPC_Obj_Main]
ObjCount=1
XPMod=120

[NPCObj_0]
Name=Zombie
UpText(C)=3
UpText[0]=ck Zom
UpText[1]=Zombie
UpText[1]=el-30
ColI=9608605
TolI=9
hModI=0.15
sModI=0.22

[GI_Array_Main]
GICount=2
CheckNotedItems=False

[GIObj_0]
Name=Arrows
GIText=ke Steel
ColI=670304
TolI=3
hModI=0.09
sModI=0.94
MinCount=30
Height=20
Width=30
SizeTol=15

[GIObj_1]
Name=Arrows
GIText=ke Steel
ColI=670304
TolI=3
hModI=0.09
sModI=0.94
MinCount=30
Height=30
Width=20
SizeTol=15

[Map_Settings]
UseMap=True
UseDots=False
MapName=SecurityStronghold
MapX=712
MapY=155


Which part of the tutorial are you having issues with? I'll try to help where I can.



Thanks for thoes zombies :)

But the trouble im having is getting and understanding some of the variables. for example these:
UpText(C)=3
UpText[0]=ck Min
UpText[1]=Minot
UpText[2]=otaur
Dont quite understand this part.
Also im trying to make sense now how to get other variables aswell. Kinda new to actual workings of a script in simba. Uptext part was most confusing.

sjemple
10-09-2017, 07:54 AM
Thanks for thoes zombies :)

But the trouble im having is getting and understanding some of the variables. for example these:
UpText(C)=3
UpText[0]=ck Min
UpText[1]=Minot
UpText[2]=otaur
Dont quite understand this part.
Also im trying to make sense now how to get other variables aswell. Kinda new to actual workings of a script in simba. Uptext part was most confusing.


Ouh also the picking up items does not seem to work for me :/... when i started testing out the script at minotaurs it worked fine until at some point it is just not picking up iron arrows anymore

One Kid
10-09-2017, 03:30 PM
Thanks for thoes zombies :)

But the trouble im having is getting and understanding some of the variables. for example these:
UpText(C)=3
UpText[0]=ck Min
UpText[1]=Minot
UpText[2]=otaur
Dont quite understand this part.
Also im trying to make sense now how to get other variables aswell. Kinda new to actual workings of a script in simba. Uptext part was most confusing.

Those are for detecting if a certain uptext is on screen. UpText is the text that appears in the upper left part of your screen when you hover over objects in-game. They have multiple strings I guess to account for inaccuracies in the function that reads the text. Considering this is Aerolib and not Reflection, some times it can be a little inaccurate so having a few different variables to check for helps to account for that.

Flight
10-10-2017, 11:36 AM
Thanks for thoes zombies :)

But the trouble im having is getting and understanding some of the variables. for example these:
UpText(C)=3
UpText[0]=ck Min
UpText[1]=Minot
UpText[2]=otaur
Dont quite understand this part.
Also im trying to make sense now how to get other variables aswell. Kinda new to actual workings of a script in simba. Uptext part was most confusing.

UpText(C): Refers to the number of UpText strings with a TMSObject.
UpText[...]: Each index of the UpText array.

To clarify, here's an example. Say you're looking for a ladder and you want to also search the UpText of the objects that may possibly be a match. The UpText you want the script to search for is "Climb Ladder / 3 More options". And because the OCR may be inaccurate, as mentioned above, we'll split that string into a few unique parts so there's a much higher chance our correct UpText will be recognized. Personally, I'd do ['Climb', 'mb Lad', 'Ladder', 'dder /']. In this example I have 4 UpText strings. Now... how would that be placed in a NPC text file? Just like this:



UpText(C)=4
UpText[0]=Climb
UpText[1]=mb Lad
UpText[2]=Ladder
UpText[3]=dder /


You can see now the UpText(C) equals 4; the total number of UpText strings we defined. And each UpText[...] is the index, and don't forget; all arrays start at the index of 0. This is why we have UpText[0-3] rather than
UpText[1-4]. I hope that makes sense.


Ouh also the picking up items does not seem to work for me :/... when i started testing out the script at minotaurs it worked fine until at some point it is just not picking up iron arrows anymore

It should work correctly for camera angles north, south, east and west. Any angle in between those it may have issues, based on how I created the Iron Arrows ground items.

nt4rz
11-14-2017, 02:07 PM
How is the ban rate with this script? :)

footballjds
11-19-2017, 02:12 AM
How is the ban rate with this script? :)

the ban rate depends on your use. 4 hours a day or less should be fine? (I use official rs client, not smart).

Flight, script works great. I've been working on writing my own combat script and am learning about the aerolib include from copying off of this script. Ironically I created a type to hold color info and then found tColEx in aeroLib was identical... :)

Note
11-20-2017, 09:31 AM
Hey hey long time no see old friend @flight,

Thought i'd give your godly creation a looksy. I'm trying to figure out why my script is doing this.

It loads up the script, proceeds to check combat style, Then it toggles the xp drop option.
Finally it attacks my desired npc and outputs

"[SCRIPT] Task finished" Proceeding to log my account off.


I'm assuming it's referring to my slayer task because that's what im doing. Although i have 79 remaining kills left on my task.

Bit confused any insight would be great.

Kalphite Worker

[NPC_Obj_Main]
ObjCount=1
XPMod=163

[NPCObj_0]
Name=Kalphite Worker
UpText(C)=3
UpText[0]=ck Kal
UpText[1]=Kalphite
UpText[2]=Worker
ColI=1667928
TolI=22
hModI=0.10
sModI=1.68

[GI_Array_Main]
GICount=0
CheckNotedItems=False

[Map_Settings]
UseMap=False
UseDots=False
MapName=WorldMap
MapX=227
MapY=154


Update: Oddly enough i ran the script on official osrs client and the sript ran smoothly? no hicups maybe the issue is with osbuddy? (That's the client im using)

Flight
12-02-2017, 12:11 AM
Hey hey long time no see old friend @flight,

Thought i'd give your godly creation a looksy. I'm trying to figure out why my script is doing this.

It loads up the script, proceeds to check combat style, Then it toggles the xp drop option.
Finally it attacks my desired npc and outputs

"[SCRIPT] Task finished" Proceeding to log my account off.


I'm assuming it's referring to my slayer task because that's what im doing. Although i have 79 remaining kills left on my task.

Bit confused any insight would be great.

Update: Oddly enough i ran the script on official osrs client and the sript ran smoothly? no hicups maybe the issue is with osbuddy? (That's the client im using)

Well howdy Mr Note! Yeah I'd certainly say the task finished recognition is being triggered by some visual aid on OSBuddy. I'm afraid I dunno what that is as I've never used that client, but it may be being triggered by the "areTalking" which basically checks if a NPC is chatting with our player. So you might try removing that bit from the checkChatMessages procedure and see if that does the trick.

Also as a note to everyone else, I've a new revision of this script I'd like to release here soon, however it will require AeroLib 2.1 to run. I just need to polish a bit here and there.

jajo123
12-31-2017, 06:43 AM
What are you using to get the values for ColI, TolI, hModI, and sModI?

Citrus
12-31-2017, 08:17 AM
What are you using to get the values for ColI, TolI, hModI, and sModI?

ACA (https://villavu.com/forum/showthread.php?t=26944)

gorgelis
01-17-2018, 09:22 PM
Hello, i am having problem with this. It will spam attack on monsters. Seems like it doesnt detect combat. Any fix?

Flight
01-18-2018, 12:06 AM
Hello, i am having problem with this. It will spam attack on monsters. Seems like it doesnt detect combat. Any fix?

I would say your in-game settings are off, such as your camera zoom and/or brightness. The current revision of the script uses a combination of your player's health bar and your XP bar to detect if you're currently in combat. So the settings, as I mentioned before, would disrupt the first method of combat detection, and the second would require your XP bar to be visible and be set to a stat of which you'll gain relevant combat XP, such as Hitpoints or Total XP.

If you've taken a look at those two possibilities and you're still experiencing problems, send me a picture of your player in-game fighting the NPC you're having issues with. I'll scan it to see if I can determine the issue. Be sure to block out your username for general safety.

gorgelis
01-18-2018, 03:03 PM
I would say your in-game settings are off, such as your camera zoom and/or brightness. The current revision of the script uses a combination of your player's health bar and your XP bar to detect if you're currently in combat. So the settings, as I mentioned before, would disrupt the first method of combat detection, and the second would require your XP bar to be visible and be set to a stat of which you'll gain relevant combat XP, such as Hitpoints or Total XP.

If you've taken a look at those two possibilities and you're still experiencing problems, send me a picture of your player in-game fighting the NPC you're having issues with. I'll scan it to see if I can determine the issue. Be sure to block out your username for general safety.

I tried changing settings. Its my first time trying simba, maybe i need to set up something differently?

https://i.imgur.com/JpcO8C5.jpg

Flight
01-18-2018, 11:34 PM
Yep as I thought, your client settings aren't correct. However this is on me as I never stated in this script specifically the required in-game settings for running it. Your camera zoom should be set to the default setting and your brightness to the max (which is standard on all scripts).

gorgelis
01-19-2018, 10:13 AM
Still the same problem.

Edit: Seems it doesnt work only at canifis slayer tower.

RafaelCouto
01-21-2018, 12:19 AM
""DrawTPABitmap(Bmp,TempTPA,clRed);"" Error.......

And... errors...

"Unknown declaration "clRed" at line 41."

lljeffll
02-06-2018, 09:15 PM
UpText(C): Refers to the number of UpText strings with a TMSObject.
UpText[...]: Each index of the UpText array.

To clarify, here's an example. Say you're looking for a ladder and you want to also search the UpText of the objects that may possibly be a match. The UpText you want the script to search for is "Climb Ladder / 3 More options". And because the OCR may be inaccurate, as mentioned above, we'll split that string into a few unique parts so there's a much higher chance our correct UpText will be recognized. Personally, I'd do ['Climb', 'mb Lad', 'Ladder', 'dder /']. In this example I have 4 UpText strings. Now... how would that be placed in a NPC text file? Just like this:



UpText(C)=4
UpText[0]=Climb
UpText[1]=mb Lad
UpText[2]=Ladder
UpText[3]=dder /


You can see now the UpText(C) equals 4; the total number of UpText strings we defined. And each UpText[...] is the index, and don't forget; all arrays start at the index of 0. This is why we have UpText[0-3] rather than
UpText[1-4]. I hope that makes sense.



It should work correctly for camera angles north, south, east and west. Any angle in between those it may have issues, based on how I created the Iron Arrows ground items.

FLIGHT! is there anyway you could make one for the lvl34 red spiders under lumby please im trying and i cant get it right please help! thank you!

Flight
02-09-2018, 02:46 PM
FLIGHT! is there anyway you could make one for the lvl34 red spiders under lumby please im trying and i cant get it right please help! thank you!

Could you tell me exactly where they are and how to get to them? I've never heard of red spiders in or under Lumbridge.

P1nky
02-09-2018, 03:02 PM
Could you tell me exactly where they are and how to get to them? I've never heard of red spiders in or under Lumbridge.

I believe those are located in the Lumbridge swamp caves, @lljeffll correct me if I'm wrong.

http://oldschoolrunescape.wikia.com/wiki/Lumbridge_Swamp_Caves

slacky
02-09-2018, 03:11 PM
Could you tell me exactly where they are and how to get to them? I've never heard of red spiders in or under Lumbridge.
He is tricking you! Must mean varrock.. I used to bot there back in the day, very few people who spot you :p

Flight
02-09-2018, 03:25 PM
I believe those are located in the Lumbridge swamp caves, @lljeffll correct me if I'm wrong.

http://oldschoolrunescape.wikia.com/wiki/Lumbridge_Swamp_Caves

Ah yeah those old caves. I don't think they have spiders however.


He is tricking you! Must mean varrock.. I used to bot there back in the day, very few people who spot you :p

I haven't fought there since RS classic. :surprised: Time to take a trip down memory lane. I'll whip up a NPC file for those pesky spiders in Varrock sewers, if that's what's being requested.

Edit:
Here ya go, lljeffll:


[NPC_Obj_Main]
ObjCount=1
XPMod=130

[NPCObj_0]
Name=Deadly red spider
UpText(C)=3
UpText[0]=ck Dead
UpText[1]=adly red
UpText[1]=el-34
ColI=3949480
TolI=4
hModI=0.05
sModI=0.18

[GI_Array_Main]
GICount=0
CheckNotedItems=False

[Map_Settings]
UseMap=True
UseDots=False
MapName=Underground
MapX=1022
MapY=561


I suppose I better better go ahead and release the next revision of this script as the next major version with object-tracking is far from done.

lljeffll
02-10-2018, 10:48 PM
Ah yeah those old caves. I don't think they have spiders however.



I haven't fought there since RS classic. :surprised: Time to take a trip down memory lane. I'll whip up a NPC file for those pesky spiders in Varrock sewers, if that's what's being requested.

Edit:
Here ya go, lljeffll:


[NPC_Obj_Main]
ObjCount=1
XPMod=130

[NPCObj_0]
Name=Deadly red spider
UpText(C)=3
UpText[0]=ck Dead
UpText[1]=adly red
UpText[1]=el-34
ColI=3949480
TolI=4
hModI=0.05
sModI=0.18

[GI_Array_Main]
GICount=0
CheckNotedItems=False

[Map_Settings]
UseMap=True
UseDots=False
MapName=Underground
MapX=1022
MapY=561


I suppose I better better go ahead and release the next revision of this script as the next major version with object-tracking is far from done.

thanks so much!!! your the best i added you as a friend too!! ... and im sorry i meant under varrock lol
and i have another question.. is there some kind of antiban feature i can add to this that can make it even better than it already is like random clicks and stuff and more often without messing up the script

Flight
02-11-2018, 03:24 PM
thanks so much!!! your the best i added you as a friend too!! ... and im sorry i meant under varrock lol
and i have another question.. is there some kind of antiban feature i can add to this that can make it even better than it already is like random clicks and stuff and more often without messing up the script

Sure can. Down in the doAntiBans() procedure you'll find the default anti-bans I've assigned to the script. So if you'd like to add some additional anti-bans you'd add them within that procedure, the same way the others are. To view all of the anti-bans AeroLib currently has to offer you should check out the AntiBan file (Includes/AeroLib/core/Antiban.simba).

lljeffll
02-11-2018, 04:27 PM
Sure can. Down in the doAntiBans() procedure you'll find the default anti-bans I've assigned to the script. So if you'd like to add some additional anti-bans you'd add them within that procedure, the same way the others are. To view all of the anti-bans AeroLib currently has to offer you should check out the AntiBan file (Includes/AeroLib/core/Antiban.simba).

ok awesome thanks so much for the help!! so now that i did that now im looking for a way to be able to use super combat pots too during training to increase kills per hour i was looking at that guys antipoison script is it something like that!!thanks again

lljeffll
02-13-2018, 08:57 PM
ok awesome thanks so much for the help!! so now that i did that now im looking for a way to be able to use super combat pots too during training to increase kills per hour i was looking at that guys antipoison script is it something like that!!thanks again

flight!! all of a sudden today the script isnt working smart launches but its blank do you know why

lljeffll
02-18-2018, 07:04 PM
Sure can. Down in the doAntiBans() procedure you'll find the default anti-bans I've assigned to the script. So if you'd like to add some additional anti-bans you'd add them within that procedure, the same way the others are. To view all of the anti-bans AeroLib currently has to offer you should check out the AntiBan file (Includes/AeroLib/core/Antiban.simba).

nevermind i fixed what was wrong now...

Smalfinn
02-21-2018, 09:41 PM
Does this script re-equip weapons after death?

Flight
02-21-2018, 11:27 PM
Does this script re-equip weapons after death?

I'm afraid not, as such a task wouldn't equate to much. After you die, and the script re-equips your items, then what? Everything after that is custom to the NPC you're fighting and the location you're fighting in; it would not be feasible to implement this into a universal fighting script. However that doesn't mean you cannot do this yourself within your own custom version of the script.

Smalfinn
02-21-2018, 11:32 PM
I'm afraid not, as such a task wouldn't equate to much. After you die, and the script re-equips your items, then what? Everything after that is custom to the NPC you're fighting and the location you're fighting in; it would not be feasible to implement this into a universal fighting script. However that doesn't mean you cannot do this yourself within your own custom version of the script.

That's fair. I've also noticed that the script doesn't check what skill you training then change to the one you select in the settings, is this by design?

Flight
02-22-2018, 12:05 AM
That's fair. I've also noticed that the script doesn't check what skill you training then change to the one you select in the settings, is this by design?

Yes it is. The SKILLTOTRAIN setting, for now, is simply for skill hovering (anti-ban) and reporting. In the to-be-released version it also affects certain combat detection methods if using Ranged. In the future, this setting will be utilized more thoroughly.

6b49WR7VbUjs9Hqeq5Etr
02-22-2018, 05:08 PM
Yes it is. The SKILLTOTRAIN setting, for now, is simply for skill hovering (anti-ban) and reporting. In the to-be-released version it also affects certain combat detection methods if using Ranged. In the future, this setting will be utilized more thoroughly.

Is there anywhere to see the new options in the script or anything like that? I am curious how this script is coming along.

Smalfinn
02-26-2018, 01:01 PM
Can someone help me with defining loot?

What do I use to find these:

ColI=
TolI=
ColO=
TolO=
hModO=
sModO=
MinCount=
Height=
Width=
SizeTol=

Smalfinn
03-01-2018, 12:57 PM
Is there something I didn't read or a program I need to use?

flakazoid
03-01-2018, 04:32 PM
Can someone help me with defining loot?

What do I use to find these:

ColI=
TolI=
ColO=
TolO=
hModO=
sModO=
MinCount=
Height=
Width=
SizeTol=

Use ACA (https://villavu.com/forum/showthread.php?t=26944) to get CTS2 colors.

Mincount, height, width, and size tolerance could be trial and error. Or I think you can leave them blank with this script to start out.

Smalfinn
03-05-2018, 05:16 PM
Use ACA (https://villavu.com/forum/showthread.php?t=26944) to get CTS2 colors.

Mincount, height, width, and size tolerance could be trial and error. Or I think you can leave them blank with this script to start out.

I think I've got it all sorted :)


[NPC_Obj_Main]
ObjCount=2
XPMod=12

[NPCObj_0]
Name=Chicken
UpText(C)=3
UpText[0]=ck Chi
UpText[1]=Chicken
UpText[2]=el-1
ColI=7247532
TolI=13
hModI=0.03
sModI=0.68
Height=20
Width=20
SizeTol=10

[NPCObj_1]
Name=Chicken
UpText(C)=3
UpText[0]=ck Chi
UpText[1]=Chicken
UpText[2]=el-1
ColI=2576752
TolI=7
hModI=0.05
sModI=1.71
Height=20
Width=20
SizeTol=10

[GI_Array_Main]
GICount=1
CheckNotedItems=False

[GIObj_0]
Name=Feathers
GIText=ke Feat
ColI=11974592
TolI=6
hModI=0.28
sModI=0.12
MinCount=5
Height=20
Width=30
SizeTol=15

[Map_Settings]
UseMap=True
UseDots=False
MapName=WorldMap
MapX=4541
MapY=3257

shaezy
03-08-2018, 09:23 AM
Hey guys, I messed around with Simba a few years ago but had uninstalled it because i stopped playing.. so i have freshly reinstalled it and set it up again ( I may have it wrong)

anyways im trying to run this script and i get this error message

Error: Unknown declaration "dateToStr" at line 448
Compiling failed.

and this is the line which is highlighted

writeINI('WorldList_Main', 'Last updated', dateToStr(Date), PATH_WORLDLIST);


anyone have any ideas?

flakazoid
03-08-2018, 03:08 PM
Hey guys, I messed around with Simba a few years ago but had uninstalled it because i stopped playing.. so i have freshly reinstalled it and set it up again ( I may have it wrong)

anyways im trying to run this script and i get this error message

Error: Unknown declaration "dateToStr" at line 448
Compiling failed.

and this is the line which is highlighted

writeINI('WorldList_Main', 'Last updated', dateToStr(Date), PATH_WORLDLIST);


anyone have any ideas?

What version of simba you are using?

Follow setup of AeroLib (https://villavu.com/forum/showthread.php?t=108953) as closely as you can, including having the indicated version of simba, and try again. Hope things work out for you.

shaezy
03-10-2018, 08:30 AM
No worries, might uninstall everything and go again

wit1
03-16-2018, 11:15 PM
Don't know why but it's just fighting 1, killing it, and then logging out to end the script?



[==================================]
[ AeroFighter V 0.1 Rev 0 ]
[ by Flight ]
[==================================]
[ Total Run Time : 1 Min 32 Sec ]
[ Kills : 2 (78/Hr) ]
[ Strength XP : 176 (6,871/Hr) ]
[ Switched Worlds : 0 ]
[ Breaks : 0 ]
[ Logged In : 1 ]
[==================================]
[ AeroFighter V 0.1 Rev 0 ]
[==================================]
Time until break: 02:27:34
[SCRIPT] Task finished
Successfully executed.

Nixes
03-27-2018, 07:02 AM
I tried this script out for half an hour and it worked flawlessly. Thanks a lot for the nice script Flight.

Mew
06-08-2018, 09:16 PM
Does anyone here have a nice collection of monsters?
If not it's okay :P

Mew
06-19-2018, 12:16 AM
Anybody having issues with the script just saying

Failed to find any free targets

then trying to hop worlds in combat?

Europe
07-10-2018, 06:07 AM
everytime I try to start the script it starts a blank smart screen and ends with this text in the debug.
[AL] Could not start up OSRS or RSReady was not detected!
Successfully executed.

pkeri
07-12-2018, 06:30 PM
For me the script only attacks 1 minotaur and then logs out with the out of food warning... When I replaced all shutdown :=True; to shutdown := False; it continued but didnt ate anymore. I think it has something to do with the way the script checks for food... Would be nice if u fix this :p

gottapercha2
07-15-2018, 01:30 PM
gahhh banned so fast, no breaks for 6 hour period. Back to account creation :D

I need to chop this script up some but its niiicee.

oldspinach
09-11-2018, 05:41 AM
Hey, I can`t run this script without SMART, I get this error. Maybe you guys know how to fix it?

All I did was put // before define smart

https://gyazo.com/2e8fffbdc7c3eebb855231532623d77e

symbiosis
09-11-2018, 12:56 PM
Hey, I can`t run this script without SMART, I get this error. Maybe you guys know how to fix it?

All I did was put // before define smart

https://gyazo.com/2e8fffbdc7c3eebb855231532623d77e

my best guess would be, you didn't define a new windows (using the corsshair) and now it's failing because it expects the height and width values which are missing. But this is just a guess

Maestrom1
09-12-2018, 09:30 AM
Hmm, somehow I can't run any more script anymore: procedure eZFormShow();native;

Loaded Font UpChars_s
Error: Block expected at line 58
Compiling failed.

Anyone know a solution? Would love to hear from you.

symbiosis
09-12-2018, 07:05 PM
Hmm, somehow I can't run any more script anymore: procedure eZFormShow();native;

Loaded Font UpChars_s
Error: Block expected at line 58
Compiling failed.

Anyone know a solution? Would love to hear from you.

Is your setup up to date? By setup I mean, Simba, the includes & plugins?

oldspinach
09-13-2018, 07:18 AM
my best guess would be, you didn't define a new windows (using the corsshair) and now it's failing because it expects the height and width values which are missing. But this is just a guess

Still not working, maybe you guys have some more suggestions how i could fix this problem?

symbiosis
09-13-2018, 08:53 PM
Still not working, maybe you guys have some more suggestions how i could fix this problem?

Please provide as much information as you can, so we can help you the best.

Informations which could help are:
- The OS your running Simba on (I'm assuming this will be Windows)
- The Version of Simba
- The Version of the includes (most important the version of AeroLib) & plugins
- The Client which you try to get this Script running on
- The lines of code you edited
- The erros you get and the code it where the error happens (this is stated in the error code)

Edit:
By looking at the date when the script was released and last edited, it seems that the script uses an older version of Simba, probably version 1.1. See this post https://villavu.com/forum/showthread.php?t=116503
Also consider that AeroLib isn't actively in development at the moment, which means the AeroLib itself gets more and more outdated as new versions of Simba get released.

KeepBotting
09-14-2018, 02:24 AM
Still not working, maybe you guys have some more suggestions how i could fix this problem?

Use a supported script written using a supported include https://github.com/SRL/SRL

oldspinach
09-14-2018, 07:10 AM
Please provide as much information as you can, so we can help you the best.

Informations which could help are:
- The OS your running Simba on (I'm assuming this will be Windows)
- The Version of Simba
- The Version of the includes (most important the version of AeroLib) & plugins
- The Client which you try to get this Script running on
- The lines of code you edited
- The erros you get and the code it where the error happens (this is stated in the error code)

Edit:
By looking at the date when the script was released and last edited, it seems that the script uses an older version of Simba, probably version 1.1. See this post https://villavu.com/forum/showthread.php?t=116503
Also consider that AeroLib isn't actively in development at the moment, which means the AeroLib itself gets more and more outdated as new versions of Simba get released.

1. Yes i`ve made partition on mac and now use windows 10.
2. Latest version of simba
3. https://villavu.com/forum/showthread.php?t=108953 i use aerolib 2.1 which is mentioned here
4. I`ve tried on original rs client and rsbuddy
5. I`ve just commented out DEFINE SMART putting // before
6. Currently i can`t reproduce the problem, because the pc i`m using dont have simba, but as i remember one of the errors was with ciRed 40 or something like that.

EDIT: I`ve cheked simba version i`m using by going to Help->About it says 1100

symbiosis
09-14-2018, 09:45 AM
1. Yes i`ve made partition on mac and now use windows 10.
2. Latest version of simba
3. https://villavu.com/forum/showthread.php?t=108953 i use aerolib 2.1 which is mentioned here
4. I`ve tried on original rs client and rsbuddy
5. I`ve just commented out DEFINE SMART putting // before
6. Currently i can`t reproduce the problem, because the pc i`m using dont have simba, but as i remember one of the errors was with ciRed 40 or something like that.

EDIT: I`ve cheked simba version i`m using by going to Help->About it says 1100

Well this:
6. Currently i can`t reproduce the problem, because the pc i`m using dont have simba, but as i remember one of the errors was with ciRed 40 or something like that
Sounds like it has troubles findig the red "X" when you click on something. This could happen either if your StatChars & WorldChars aren't the correct ones or your Simba version isn't compatible with the AreoLib version.

Once again as a reminder: We are doing dead care here. AeroLib isn't supported atm. it would be likely if you get it running, that you face another error soon as you would be relying on an old version of Simba.

DeOudeGebruiker
09-15-2018, 09:15 PM
I think its done for me know, the community seems dead. Script creators haven't logged for a while and searching for all the answers is hard if you can't code.
I tried to get Simba running for like a week now, pushed alot of fixed, changed plugins/includes and even went back to a 32bit version but still I get errors there shouldn't be.
For example: Error: Unknown declaration "dateToStr" at line 448
Compiling failed. this should be fixed by using the 32bit version, but it keeps coming back. If anyone can help me I can pay you for a fix, if not it was nice for those years.

(Didn't receive the password reset link so had to create a new account).

KeepBotting
09-15-2018, 11:21 PM
I think its done for me know, the community seems dead. Script creators haven't logged for a while and searching for all the answers is hard if you can't code.
I tried to get Simba running for like a week now, pushed alot of fixed, changed plugins/includes and even went back to a 32bit version but still I get errors there shouldn't be.
For example: Error: Unknown declaration "dateToStr" at line 448
Compiling failed. this should be fixed by using the 32bit version, but it keeps coming back. If anyone can help me I can pay you for a fix, if not it was nice for those years.

(Didn't receive the password reset link so had to create a new account).

You are using outdated scripts/includes.

See here for a current guide: https://villavu.com/forum/showthread.php?t=118223&p=1391739#post1391739

DeOudeGebruiker
09-17-2018, 06:00 PM
Fixed it, fresh install and fresh Aerolib without overwriting the newer simba files.
Big thanks to KeepBotting!

symbiosis
09-18-2018, 03:57 PM
Fixed it, fresh install and fresh Aerolib without overwriting the newer simba files.
Big thanks to KeepBotting!

Another tip I can give you on the way, is to look into the discord channel if you seek fast help. :)
https://discord.gg/rReXzGv (Or klick on the link in KeepBottings signature)

The forums may seem dead, but they aren't and the discord channel is way more active.

johnstride101
09-20-2018, 02:10 AM
hey guys, i'm having an issue where the script will run the antiban and leave the tab on the stats tab so when the script needs to eat, it does not see the inventory (because it is still on the skills tab) and says it is out of food

KeepBotting
09-20-2018, 02:34 AM
hey guys, i'm having an issue where the script will run the antiban and leave the tab on the stats tab so when the script needs to eat, it does not see the inventory (because it is still on the skills tab) and says it is out of food

Hi,

AeroLib is unmaintained, and this script seems to be experiencing breakage because of that. I would suggest that you look into SRL, the currently supported API for script writing. You can find it here: https://github.com/SRL/SRL

You don't necessarily need to convert the entire script to SRL, changing only the broken routines to their SRL equivalents would probably get you up and running with minimal effort.

Drop by the IRC or Discord if you have any questions.

Vusn
09-22-2018, 09:49 PM
hey guys, i'm having an issue where the script will run the antiban and leave the tab on the stats tab so when the script needs to eat, it does not see the inventory (because it is still on the skills tab) and says it is out of food

Use
FTab(tab_Inv); to switch to inventory, opposed to whatever other command you are using. The include is messed up.

orlinowns
08-14-2019, 03:54 PM
can u help me make a cow npc file with cow hides loot

Sulferx
12-06-2019, 02:55 AM
The script seems to have trouble with the health check function (possibly due to AeroLib being outdated), so I disabled it. This removed the script's ability to eat food in response to damage, but allowed it to otherwise function perfectly. Luckily, food is unnecessary at experiments.

Here's the NPC file I used for experiments:

[NPC_Obj_Main]
ObjCount=2
XPMod=400

[NPCObj_0]
Name=Experiment
UpText(C)=3
UpText[0]=xperi
UpText[1]=Expe
UpText[2]=ment
ColI=2638170
TolI=7
hModI=0.05
sModI=0.27

[NPCObj_1]
Name=Experiment
UpText(C)=3
UpText[0]=xperi
UpText[1]=Expe
UpText[2]=ment
ColI=8829618
TolI=16
hModI=0.03
sModI=.52

[GI_Array_Main]
GICount=0
CheckNotedItems=False

[Map_Settings]
UseMap=False
UseDots=True

Thank you for a wonderful script!