SRL Archive - Outdated / Broken

[Reflection] Nava2 Mirror Fight


Nava2

2009-01-12 08:27:36

This is my most recent script, its a Reflection Auto-Fighter. It is general, and can fight any monster.

Currently, all I ask is for some progress reports, as well as bugs. From what I have tested, it works well, but I could be wrong. :)

This needs the newest rev of reflection.

Setup:
  Players[0].name := '';
Players[0].pass := '';
Players[0].nick := '';
Players[0].active := true;
NPI[0].Combat := '';
NPI[0].Names := [''];
NPI[0].FightOptions := [True, False, False];
NPI[0].RunAwayDir := 'N';
NPI[0].PickupIDs := [];
NPI[0].PickupNames := [];
NPI[0].ProItems := [];
NPI[0].InvOpts := [True, False];
NPI[0].RangeOptions := [True, False];
NPI[0].AmmoID := 0;
NPI[0].AmmoStrings := ['', ''];
NPI[0].BlackAreas := [];


  • NPI[0].Combat := ''; Skill to Train, or combat mode to use.
  • NPI[0].Names := ['']; Monster Names, its an array so you can use more than one.
  • NPI[0].FightOptions := [True, False, False]; Use an Up Text check before clicking, Always right click, Wait for your HP to regen if forced to run away.
  • NPI[0].RunAwayDir := 'N'; Direction to run away if needed
  • NPI[0].PickupIDs := []; Item IDs of the Items to Pick Up
  • NPI[0].PickupNames := []; Names of the Items to pick up, must be in the same order as the IDs.
  • NPI[0].ProItems := []; Item IDs of the Items to NOT drop, PickupIDs, FoodIDs, and AmmoID are added automatically to this list. No need for duplicates.
  • NPI[0].InvOpts := [True, False]; Drop Items not in the ProItems list; Bury Bones all bones
  • NPI[0].RangeOptions := [True, False]; Pickup Arrows; Equip Arrows
  • NPI[0].AmmoID := 0; Item ID of the Ammo being used.
  • NPI[0].AmmoStrings := ['', '']; Name of the Ammo; Type of ammo, knives, arrows, darts, etc.
  • NPI[0].BlackAreas := []; Areas you would not like the script to get NPCs from. This is done with TBoxs and using the IntToBox(x1, y1, x2, y2) : TBox; command. These are boxes of Tiles.

The script will automatically eat food, if it exists.

To get Item ID's I suggest using the GE or RSBot, if you didn't already know that. :)

Thanks!

To add:
  • Automatic inventory set up, no id's required. Added.

TheChineseMan

2009-01-12 08:38:50

wow nice nava2 u are impressive how many scripts is that now?

1st post!

EDIT: can i leave the blackareas thing blank? cus im testing at chickens

Naike

2009-01-12 09:29:01

Ahh you released it :O

Thought you sayd this would stay private?, However
Nice work :)

noidea

2009-01-12 10:20:07

Please keep in members only :p It looks great!

P1nky

2009-01-12 11:13:33

awsome :)

ima use it on goblins :)

NCDS

2009-01-12 13:58:55

Great Job with this Nava.

I just briefly glanced over it, but it looks rather impressive :)

Nava2

2009-01-12 15:09:59

Thanks all, I hope you can post progress reports. I just want to know if it works well. :)

It is still in beta!

@Chinese, this will make three working, but my abyssal crafter won't take much to fix. :)

@N1ke, nah, I was going to release, I was just going to wait todo so. :)

Lancelot074

2009-01-12 15:31:58

Was going to test until I realized that after it sets up combat style, SMARt and SCAR both close. Only happens with this script aswell.

Nava2

2009-01-12 15:44:27

Some people have said this, and I have no idea why…

P.S. Updated the script post.

Timer

2009-01-12 15:46:55

Reflection? Weak..

Nice although.

Nava2

2009-01-12 15:52:54

From: Timer
Reflection? Weak..

Nice although.


How is that weak…?

Its better than color for a lot of things. This is one of them.

Timer

2009-01-12 15:54:01

Reflection makes things too easy…
Anyone can make a reflection script..

lordsaturn

2009-01-12 16:39:53

From: Timer
Reflection makes things too easy…
Anyone can make a reflection script..


Yes, but when it comes down to reliability.. reflection > color. It doesn't make a difference if it's reflection either, it still takes a great coder to make a great reflection script.

Lancelot074

2009-01-12 16:47:32

Ok just some quick feedback, I finally got it to work. I was killing guards and sometimes it wouldn't kill the guard before hitting a new one. It would go into a little loop for like 10 clicks. I didn't get a proggy but I like the on screen one though. :D

Nava2

2009-01-12 17:04:45

From: Lancelot074
Ok just some quick feedback, I finally got it to work. I was killing guards and sometimes it wouldn't kill the guard before hitting a new one. It would go into a little loop for like 10 clicks. I didn't get a proggy but I like the on screen one though. :D


Thanks, the R_InFight is annoying me.

Its buggy. I will have to do some failsafes into it.

Might write a function to see if the player is interacting.. :)

Glad it kinda worked xD

E: Fixed that for next version.. I already knew that bug, put in a breaking condition… forgot to write Break;…

NiCbaZ

2009-01-12 18:24:24

From: Timer
Reflection makes things too easy…
Anyone can make a reflection script..


I dont see my self making somthing this good…

Tniffoc

2009-01-12 18:38:41

From: NiCbaZ
I dont see my self making somthing this good…


Me neither. I'm only good at things that don't move around =). Then, you just have to find interesting ways to make finding perfect and not worry a ton about speed. If it was a Reflection wcer, then that's a different story.

P.S. Testing soon.

Method

2009-01-12 18:47:17

From: Timer
Reflection makes things too easy…
Anyone can make a reflection script..


From: Timer
Reflection? Weak..

Nice although.


If all you're going to do is bash Nava2 and his script, please go post elsewhere.

Great job on this, Nava2. I'm glad to see it released! :)

Nava2

2009-01-12 19:15:31

From: Tniffoc
Me neither. I'm only good at things that don't move around =). Then, you just have to find interesting ways to make finding perfect and not worry a ton about speed. If it was a Reflection wcer, then that's a different story.

P.S. Testing soon.


Well, I did quite the opposite. I made it as accurate as I could at the moment, AND very fast ;). Might not be as fast as TPAs, but its damn close, and the other faster reflection procedures make up for this.

Thanks for testing ;)

From: Method
If all you're going to do is bash Nava2 and his script, please go post elsewhere.

Great job on this, Nava2. I'm glad to see it released! :)


<3

I'm glad I released it as well.

Edit:

Updated :) Added Automatic food updating.

Fixed the bug where it wouldn't stop clicking.

Santa_Clause

2009-01-13 02:27:51

Ehh, don't worry about Timer, he's just jealous :p

Looks awesome, I'll test it out as soon as possible. I'm glad it has as much functionality as Narcle's Fighter.

Narcle

2009-01-13 02:44:36

Course looks good. Btw I changed your password and sent you the info.

I was thinking on a joint "NPCList.ini" for black/white list.

Nava2

2009-01-13 08:15:58

From: Narcle
Course looks good. Btw I changed your password and sent you the info.

I was thinking on a joint "NPCList.ini" for black/white list.


I would be quite willing, thanks for the info btw. :)

Claymore

2009-01-13 09:55:04

I'll try expirements. I got 15K~ average exp p/h in ruski's fighter. Let's see SRLs best auto-fighter yet can do! =p

Lancelot074

2009-01-13 15:13:12

Ok, I tried the newest version and whenever it logs me in it sets up combat, checks the food and just stands there. It says in the status bar "Eatthefood | Hp is at 100%" or something along those lines. Just trying to report the bugs I can find. :D

NiCbaZ

2009-01-13 18:36:43

Hooks are outdated ( I think).

Nava2

2009-01-14 06:41:36

That was probably because of the hooks, yeah. :)

They are update now ;)

Lancelot074

2009-01-14 16:10:42

Another quick bug report, happens for me anyway.

After I get 3 kills it stands there and the status bar says "InblackArea - False"
and then it just doesn't do anything.

TheChineseMan

2009-01-14 17:21:56

lance same thing is happening with me it kills like 1 chicken then just stands there doing nothing

Nava2

2009-01-14 18:39:19

I'm not sure why, I will have to look. Might be a bug in the R_InFight, OR in the WWF.

Nava2

2009-02-15 16:56:48

I think I got most of the errors. Could some people please test and let me know?

Upped version 0.04