SRL Archive - Reflection

[R]X-Fighter[Lite] - AIO combat


Flight

2011-09-27 08:21:25

Thank you Carlito for the logo! Hopefully I'll make some dynamic signatures for the script later on.


SRL Stats Page

Description:
X-Fighter; your combat aid for anything, anywhere, any time. Max your combat stats, gain your profit from drops, and spend more time outdoors! :spongebob:


Features:
  • AIO combat with user-defined NPCs (by names)
  • Any-item looting
  • Eats any food
  • Fast target recognition
  • Out of food failsafes to keep you safe
  • Solid break system (By Echo_) with cool graphics!
  • World switching option (Switch worlds after every break)
  • SRL Stats
  • Updated On-Screen progress report

Setup instructions:
Like most of my scripts, there's two areas you need to fill in for the script set up. You'll notice at the top of the script is the main setup, but also starting at line 67 is the user set up, this is also where you put in your 'loot settings'.

All the settings are well-explained in the script already, but one I want to mention is the TakeItemName. This is a string array, and I gave a good example on how to use it, just put "ke" + your item name (or part of it) in the array, this is so the OCR can tell the difference between 'Take' and 'Examine' when grabbing items.

PRO version:
  • Special-attack handling for all weapons
  • Familiar/Scroll healing [Bunyips, Ice/Fire/Moss Titans, Unicorn Stallions]
  • Healing priorities

*The PRO version is free for all but limited to Members+. Not a Member? read this post to find out how. It will never cost anything to be a Member, just show effort to SRL and be a part of the community. :)

[End Note]:
It actually took about 1 day or so to make the base of the script, pretty much the Lite version alone, but several days afterwards to continue building on it to come out with the PRO version. I had to do alot of experimenting to come out with the stable version, even had to make a slight downgrade to the item-looting, but it's nothing you will notice. Please let me know of errors if you encounter them, and like always, post your progress reports, looting profits, and achieved skills!

Cheerz, ~Flight

Flight

2011-09-27 08:22:28

Post reserved for reports and screenshots.


=-=-=-=-=-= X-Fighter 1.0 by Flight =-=-=-=-=-=
Time Running: 2 Hours, 19 Minutes and 22 Seconds
Attack XP: 161824
Strength XP: 0
Defence XP: 0
Constitution XP: 53851
Ranged XP: 0
Breaks: 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


sf411

2011-09-27 09:02:59

Aw snap, its out! I will try this one out later today and report back.

Bubix

2011-09-27 11:46:54

ahh nice one, sad that im not member +, but i got question is it gona support prayer? like protect from mage/range/meele ? :p

Bow looked on setup, loked really nice, like the pick up items thing :)

Flight

2011-09-27 11:51:35

Yeah I'm thinking I'll be adding Prayers later on in the script, that seems to be in request. :p

Carlito

2011-09-27 11:59:39

oh yeah its out!!! made this for your script to show you my gratitude in bringing this out to public. Will post proggies and other things soon!


litoris

2011-09-27 12:16:11

Using this seems to work well with chickens, lol.
PS: What does "healing priorities" mean?

Flight

2011-09-27 12:20:48

@Carlito:
Nice, thank you! You did a good job with that. :)

@litoris:
Glad to hear it. :p Healing priorities have to do with the summoning in the Pro version, like healing scrolls take priority over food, but if we don't have a summoned familiar and no potion to summon another one then we'll eat food. The same applies if the familiar doesn't have enough special points to cast a healing scroll to heal us.

Kasi

2011-09-27 13:03:50

funny how it's named lite ;D nice script dude =] Repped

Bubix

2011-09-27 13:12:31

From: Flight
Yeah I'm thinking I'll be adding Prayers later on in the script, that seems to be in request. :p


Hehe great to hear :)
but then its next question is it will be to lite tho or pro only? :p

will test this next day, need to get up my army a big cmb`s :spot:

onilika

2011-09-27 13:27:51

OMG! It's out! The XFighter is out! I will definitely try it out and post some proggies!!
Way to go Flight!

bolshak25

2011-09-27 16:10:01


*The PRO version is free for all but limited to Members+. Not a Member? read this post to find out how. It well never cost anything to be a Member, just show effort to SRL and be a part of the community.


well should be will.
i will test it out when my dung is at 85

mika

2011-09-27 16:34:09

how do i add a champions scrill to the pickup list? wats the id?

Carlito

2011-09-27 16:49:55

i was running it, got to 52 minutes but im not sure what happened. i think my simba crashed…running it again.

question: is there a way to disable the debugg so it doesn't always show?

edit1: i killed a dustdevil then went to another and it started to right click through the wall to pick up the green charm…looked really sketchy. Also it continues to click through the walls to get to the monsters…i just think its pretty wierd.

edit2: for loot pickup, i noticed that it will click to another monster then pick up items, is there a way once the mob dies to right click under it then pick up anything, if theres nothing it clicks the next monster…?

edit3: i also like to stick to the southwest corner (when you walk in you go right) as theres a nice spot of dustdevils there. wondering if we set the character in one specific spot we can either map out that room and it will walk back to that spot if it wanders to far, or just set a radius from that point so if it passes…let say 10 blocks, it was walk back near the start location.

sf411

2011-09-27 17:17:52

From: mika
how do i add a champions scrill to the pickup list? wats the id?


Found these using google:

(6798) Champion scroll
(6799) Champion scroll
(6800) Champion scroll
(6801) Champion scroll
(6802) Champion scroll
(6803) Champion scroll
(6804) Champion scroll
(6805) Champion scroll
(6806) Champion scroll
(6807) Champion scroll
(6808) Champion scroll


Try them and report back if it works.

Carlito

2011-09-27 17:47:07

tried running it at Aberrant spectre…
things i noticed:
1. will attack ones that are already in combat,
2. doesn't play nice with mobs that are aggressive
3. will try to pick something up over and over even if inventory is full
4. the angle is wierd how it views the monster, shouldn't it rise up for a better view?

Flight

2011-09-27 21:05:22

It seems like your angle and picking up issues are because your camera is zoomed in. Look down at line 1197 (ScriptSetup(86,True,True,False);) That last 'False' is for 'SetCam' which means do you want the script to set your camera at the beginning of the script, so change to to true and you're good to go.

Checking the loot directly after you kill an NPC will surely slow down your combat. But if it's something that you really want that I'd suggest putting a Wait between lines 1190 and 1191, enough time for your target to die and spawn the loot items.

Aggressive NPC's I'll believe that, because the way I check if we're fighting is not based on whether we're in combat, it's based on our interacting NPC is in combat, that's what makes the combat in this script fast. Luckily the script sets auto-retaliate on so either way the script will continue.

About the full inventory, I had forgot I took this out when downgrading the looting procedure. Good catch! You can throw this little bit inside the GrabLoot function:


if R_InvFull then
Shutdown('Full inventory');

ry0240

2011-09-27 23:42:34

Your fighting procedure in this script seemed to be constantly trying to fight another NPC while still in a fight, like constantly, I copied your fighting procedure from your catacomber script and put it in this and it seems to be doing alot of better. I think theres a fault somewhere in this scripts fighting procedure.

mika

2011-09-28 18:07:51

From: sf411
Found these using google:



Try them and report back if it works.


thanks will try im asuming each id is different depending on on which monster the scroll is from. Will try to find zombie one. im guessing this is the zombie one: (6801) Champion scroll

mika

2011-09-28 22:27:50

From: sf411
Found these using google:



Try them and report back if it works.


I can confirm this (6801) Champion scroll ID does not work. Will try another one. i sort of doubt any of those are correct there should be 13 first of all.

can someone please find an ID for the zombie champion scroll or at least tell me how

ry0240

2011-09-28 22:59:17

Flight, have you personally tested the Lite version recently? The fighting is messed up somewhere, it attacks constantly kind of like when that interacting fighting hook was messed up in reflection.

Flight

2011-09-28 23:52:36

What NPC are you using it on, Ry0240? I think I might know why.

Home

2011-09-28 23:55:11

From: Flight
What NPC are you using it on, Ry0240? I think I might know why.


Mabey those NPCs are NULL NPCs?


~Home

Flight

2011-09-29 00:03:49

From: Home
Mabey those NPCs are NULL NPCs?


~Home


That's what I was thinking, by default I have it set to ignore NULL NPC's. That's why I'd like to test it first hand on whatever NPC he's targeting.

ry0240

2011-09-29 00:14:29

From: Home
Mabey those NPCs are NULL NPCs?


~Home


I was using it on the chickens in port sarim and then also tried them on the lv 2 Goblins South-West-ish of port sarim.

mormonman

2011-09-29 00:51:32

From: ry0240
I was using it on the chickens in port sarim and then also tried them on the lv 2 Goblins South-West-ish of port sarim.


Neither of those are null_npcs.

Flight

2011-09-29 02:34:03

Yeah it might just be somewhere I went wrong when I was taking out features from Pro > Lite.

Edit:
Might anyone have a low level'd account that I could test Lite on for chickens?

Edit2:
Tested Lite on my account, no problems. I tested it with someone else's account on some NPC's in the Catacombs, no problems.

Mr. Bottomtooth

2011-09-29 17:11:43

Arrrr I'm facing a difficult decision here:

Do I want to start leveling my skiller or not :duh: Would really love to test this script out.

onilika

2011-09-29 17:14:46

I noticed that we can't use the script at a non-multi combat area because it starts attacking an npc before killing the previous one. Went to Fire Giants for slayer task, and it's working pretty well :)

Carlito

2011-10-02 21:00:02

From: Flight
It seems like your angle and picking up issues are because your camera is zoomed in. Look down at line 1197 (ScriptSetup(86,True,True,False);) That last 'False' is for 'SetCam' which means do you want the script to set your camera at the beginning of the script, so change to to true and you're good to go.

Checking the loot directly after you kill an NPC will surely slow down your combat. But if it's something that you really want that I'd suggest putting a Wait between lines 1190 and 1191, enough time for your target to die and spawn the loot items.

Aggressive NPC's I'll believe that, because the way I check if we're fighting is not based on whether we're in combat, it's based on our interacting NPC is in combat, that's what makes the combat in this script fast. Luckily the script sets auto-retaliate on so either way the script will continue.

About the full inventory, I had forgot I took this out when downgrading the looting procedure. Good catch! You can throw this little bit inside the GrabLoot function:


if R_InvFull then
Shutdown('Full inventory');



if R_InvFull then
Shutdown('Full inventory');

That would just kill the script?
i was talking about the script shouldn't pick up never items if the inventory is full but continue to pick up already existing items in inventory. because if this was left that way, anyone who went anywhere with full inventory of food, it would just turn off.

edit:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=-=-=-=-= X-Fighter 1.0 by Flight =-=-=-=-=-=
Time Running: 32 Minutes and 49 Seconds
Attack XP: 9224
Strength XP: 9225
Defence XP: 9225
Constitution XP: 9224
Ranged XP: 0
Breaks: 0

stopped working though, i had a shark left…perhaps that what caused it?

edit2: got more sharks in the inventory and restarted the script at aquanites, ran for 5 minutes then just stopped. not sure whats goin on

edit3: for the wait time, Wait(RandomRange(xxx,xx); what should be a decent time for it to check then continue?

chitin

2011-10-12 05:21:35

sadly im not a member …used to have access to member scripts then it went away for some reason….nevertheless, i got some suggestions… i always did want an ultimate fighting script, i think this is as close to something i wanted as i have ever seen….so:

and im not sure what you may already have / already requested…:

-prayer prtc/ switching during cb prioritizing (although kinda complex i think)
-wep specs for all weps
-guthans set support for heal @ certain % of health (helm + spear/ 4 piece/ combo)-if that makes sense….
-multi pot support (atleast 3?) assuming some to be antifire / prayer so detectability too? + super def/combat?
-bonecrusher/herbicide/gembag useage….
-aura support
-custom priorities mainly 0.0
-find altar if fighting next to 1 (like ape atoll or that 1 place near mortanyia with zammy monks)
-summon /renewal/scrolls/ point recharge
-bank with tele support & tele back + run back (im guessing thats possible if its not too far from tele location)
-hi alch junk support?
-multi cannon support(not sure how possible this is, cant be that hard i imagine)
-mob finder? pretty standard, assuming in closed dungeons like resource dung.
-if u havnt already, for pickup as defualt items/examples u might as well add dstone, loop/teeth half, shield left/right half?

well i hope that helped in someway. good luck

ry0240

2011-10-13 12:20:25

I can never get this to run more than 20 minutes, after about 20 minutes it just floods the debug with my username and stops fighting and just stands there.

Flight

2011-10-13 12:43:33

From: ry0240
I can never get this to run more than 20 minutes, after about 20 minutes it just floods the debug with my username and stops fighting and just stands there.


Yeah there was a mistake in R2.2 and it was fixed just a matter of hours ago. You might update your reflection now and give it a try.

Carlito

2011-10-13 15:47:38

Flight, do you plan to updating the lite version or really just focusing on the other or whats going on? do you find this sufficient as the main auto fighter?

just curiosity.

Flight

2011-10-13 22:17:20

Yes, all the features planned for V1.1 will be included in both Pro and Lite versions, as they're very simple yet useful additions. The familiars and special attacks were a bit complex, so they'll remain Pro only.

Also, Prayers won't be in V1.1, but when I finally take on that project, they'll be included in the Pro version only, I'm sorry. :(

ry0240

2011-10-13 22:51:35

Another feature that would be nice, if it's even possible, would to have an option to stay with in a certain perimeter. I know it has a run back option but sometimes if a doors open in a building it will run outside and then the door sometimes gets closed while out and just gets stuck constantly trying to attack the NPC in the area..but it's outside the area just looking really botty.

Flight

2011-10-13 23:21:45

From: ry0240
Another feature that would be nice, if it's even possible, would to have an option to stay with in a certain perimeter. I know it has a run back option but sometimes if a doors open in a building it will run outside and then the door sometimes gets closed while out and just gets stuck constantly trying to attack the NPC in the area..but it's outside the area just looking really botty.


I've been trying to work around this issue lately. I can have an optional user-defined 'box region' to stay within for both fighting and looting. This was my original plan, but I also came across the R_CanReach function, that tells us whether or not a certain tile is reachable, taking into consideration any objects/walls between yourself and that tile. Although, I've been having trouble with it.

Carlito

2011-10-15 14:05:11

can we get an option to enable/disable debugg?

Flight

2011-10-15 21:42:41

From: Carlito
can we get an option to enable/disable debugg?


Debug…. which debugging do you want enabled/disabled?

Also, on a side note, I'm putting this project on pause until a couple things in Reflection are fixed, mainly the R_CanReach. In the mean time I'm making a Curly Root burner. It seems to be a success so far, I'm averaging 185k FM exp/hour at absolutely no cost.

ry0240

2011-10-15 22:09:46

From: Flight
Debug…. which debugging do you want enabled/disabled?

Also, on a side note, I'm putting this project on pause until a couple things in Reflection are fixed, mainly the R_CanReach. In the mean time I'm making a Curly Root burner. It seems to be a success so far, I'm averaging 185k FM exp/hour at absolutely no cost.


Will that be Public? Theres not really any working FM'ers.

Flight

2011-10-15 22:20:43

Absolutely, it's nothing fancy. The only drawback is the requirements (Membership, 83+ Woodcutting/Firemaking).

http://stats.villavu.com/script/179

Carlito

2011-10-16 15:41:33

flight everytime i hit play it says my account name and it does work, but then it just stopps fighting…idk why.

Carlito

2011-10-17 18:39:20

Error: Exception: Access violation at line 80
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, 2, 3]

inventory line 80 =

Result.Name := R_TrimHTML(SmartGetFieldString(Item, hook_interface_ComponentName));

Harry

2011-10-17 19:56:11

Update your Simba?..

Carlito

2011-10-17 23:51:22

From: Harry
Update your Simba?..


i have truly no idea what was wrong…it worked before and then when i hit it i gt that, perhaps the new update or something how i had my inventory organized/adjusted.

also noticing in the debugg it says my account name over and over spammed. couldn't that make simba lagg?

Flight

2011-10-18 01:05:40

From: Carlito
i have truly no idea what was wrong…it worked before and then when i hit it i gt that, perhaps the new update or something how i had my inventory organized/adjusted.

also noticing in the debugg it says my account name over and over spammed. couldn't that make simba lagg?


Yes, update your reflection. This was due to a little bit of debugging in a reflection function, it's removed now.

João Lopes

2011-11-05 13:39:45

When i do "run" and the SMART open the bot stops :/

Nava2

2011-11-05 13:41:28

Please read the thread, this is a reflection script. Reflection is depreciated.

Flight

2011-11-05 21:06:27

Thank you guys for moving this and my other scripts to Reflection. I appreciate your hard work. :)

Gage3d

2012-01-04 18:06:11

i get this for some reason ? Exception in Script: Unable to find file 'Reflection/Reflection.simba' used from '' please reply

Kyle Undefined

2012-01-04 18:07:31

Sigh…read please.

REFLECTION IS DEAD!

unteenager

2012-01-06 06:44:37

doesnt work anymore? :S

Harry

2012-01-06 06:45:42

All of you, read the top of the forum…
Please note scripts moved here are currently not functional due to recent "bot-buster" update.