SRL Archive - Non-RuneScape Scripts

SoulSplit Cow Killer (First Script Ever)


Kerk

2012-05-07 19:49:42

This is my very first script and is VERY basic. Most of what I learned is from Yohojo's scripting videos. You should try to get on a world with less people then set up your camera like this (tilt down and face towards the red lined area of the fence) to get decent results:

I will probably not be updating this script anytime soon, sorry :(


[ATTACH]15774[/ATTACH]

zluo

2012-05-08 23:44:42

i was gonna make a script like urs :p, was gonna make it search for hp bars and check for bitmap uptext. havent gotten around it yet.

Fletcher

2012-05-09 00:45:48

34 line script .. nice
  if FindColorSpiralTolerance(x, y, 10031, 265, 12, 765, 330, 5) or
FindColorSpiralTolerance(x, y, 10031, 265, 12, 765, 330, 5) or
FindColorSpiralTolerance(x, y, 10031, 265, 12, 765, 330, 5) Then
Begin
Why did you do this 3 times??


MoveMouse (x, y);
wait (50);
ClickMouse(x, y, 1);
ReleaseMouse (x, y, 1);
in order to release the mouse button you must first 'hold' it .. Instead of doing it this way you could use the Mouse(x, y, ?) function with the '?' being either True for left click or False for right click

Kerk

2012-05-09 16:36:40

From: fletcher18
34 line script .. nice
  if FindColorSpiralTolerance(x, y, 10031, 265, 12, 765, 330, 5) or
FindColorSpiralTolerance(x, y, 10031, 265, 12, 765, 330, 5) or
FindColorSpiralTolerance(x, y, 10031, 265, 12, 765, 330, 5) Then
Begin
Why did you do this 3 times??


Oops, I didn't mean to do that… I will find some different colors soon.


From: zluo
i was gonna make a script like urs :p, was gonna make it search for hp bars and check for bitmap uptext. havent gotten around it yet.


I was going to do the same exact thing! But at the moment my scripting skills are minimal. Hopefully once I've learned more I will be able to do that.

*Idea we should work together, PM me if interested.

Fletcher

2012-05-09 16:52:53

if your gonna look for more than 1 colour you can use FindObjEx ..
http://docs.villavu.com/srl-5/object.html

spin3x

2012-06-04 14:23:33

Hey, is there any way for the script to determine if you're still in combat. I'm like you who has just started coding for rsps'.

I also made a combat script and did it like you have. "Wait(70000); "

So I'm just wondering if theres a way to tell if you finished killing the monster.

Recursive

2012-06-04 15:09:10

From: spin3x
Hey, is there any way for the script to determine if you're still in combat. I'm like you who has just started coding for rsps'.

I also made a combat script and did it like you have. "Wait(70000); "

So I'm just wondering if theres a way to tell if you finished killing the monster.


First off, this is the wrong place to ask this. You have to ask it in scripting help section.

To answer your question, you can call a function called
srl_infight
This function basically checks for you char's hp bar and if it finds it, then you are in a fight else you are not

spin3x

2012-06-04 16:03:15

Chig I know this is the wrong place to ask, but I was asking the community, I was asking op if he knew.

Thanks fot your help :)

zluo

2012-06-05 00:22:54

From: Chig
First off, this is the wrong place to ask this. You have to ask it in scripting help section.

To answer your question, you can call a function called
srl_infight
This function basically checks for you char's hp bar and if it finds it, then you are in a fight else you are not


are you sure srl_infight actually works in a private server like soulsplit? and could you tell me the destination this function is in simba?