SRL Archive - RS3 Help

Basic Looter Implementation


General_Patrick

2015-03-13 14:00:43

Hello:

I have been recently trying to use Bonsai's Basic Fighter for combat experience, but I wanted to find a way to implement a looter to pick up big bones from the hill giants or moss giants. I was originally planning to use bg5's tutorial on the forums, but it is 3 years old and SRL has changed dramatically over time. If someone could help me out by providing a basic example of how to setup a looter, I would appreciate it.

KeepBotting

2015-03-13 17:52:05

I wrote a lot of proof-of-concept code for fighting scripts in this thread: https://villavu.com/forum/showthread.php?t=111254

While there's nothing there that is explicitly geared towards the purpose of looting, there are routines to reliably determine the position (onscreen) of the monster you're fighting. This will give you the bounds of the fight - once you've got that, it's a simple matter of searching inside those bounds for the color of your loot pile (usually white unless your monster doesn't drop bones)

General_Patrick

2015-03-13 19:23:54

From: KeepBotting
I wrote a lot of proof-of-concept code for fighting scripts in this thread: https://villavu.com/forum/showthread.php?t=111254

While there's nothing there that is explicitly geared towards the purpose of looting, there are routines to reliably determine the position (onscreen) of the monster you're fighting. This will give you the bounds of the fight - once you've got that, it's a simple matter of searching inside those bounds for the color of your loot pile (usually white unless your monster doesn't drop bones)


Thanks!