SRL Archive - RuneScape News and General

creating a script


Feroc1ty

2011-03-14 13:12:08

so i'm creating a script which will kill chickens… (it can be run for characters straight out of tutorial runner, meaning it will walk to chickens)

what kind of features do you guys want?

so far it has auto start (previous mentioned… will walk from starting loc to chickens)

it will train there until receives desired stats (that you can configure)

after it receives desired stats, if you have range as one of the stats your character will move to goblins and kill them until it gets the sling and goes back to train on chickens

since my character had trouble killing goblins im currently adding grim reaper detection (will do the grim reaper talk) and a death walk



any other features which would be cool? i'm calling the script character self starter, since it will boost a characters start to a decent character from a complete noob

PatDuffy

2011-03-14 13:16:58

Perhaps feather pickup, the same idea as the sling but using air whatever using an air staff from a drop, maybe banking feathers if low health, eating. If you really want to be ambitious I'm sure you could cook raw chicken and eat it for food.

Just a few things I could think of that might be useful, ill edit if I think of more.

Troll

2011-03-14 14:33:53

From: PatDuffy
Perhaps feather pickup, the same idea as the sling but using air whatever using an air staff from a drop, maybe banking feathers if low health, eating. If you really want to be ambitious I'm sure you could cook raw chicken and eat it for food.

Just a few things I could think of that might be useful, ill edit if I think of more.


Woodcutting/Firemarking/Cooking ;)
Also bone burrying?
Not much else i can think of atm

Harry

2011-03-14 15:12:37

Grim reaper you only have to answer once, and you never get sent there again. Shouldn't be too hard, and would be really simple if you're using Reflection. Though chickens are waaay over-botted.

Feroc1ty

2011-03-14 15:40:18

From: Harry
Grim reaper you only have to answer once, and you never get sent there again. Shouldn't be too hard, and would be really simple if you're using Reflection. Though chickens are waaay over-botted.


yeah, forgot to mention that the script detects amount of players on the chickens and if its above the number you input it switches the world… and it picks up the feathers, not gonna bother with the prayer/banking/cooking cuz theres other scripts for that

Dervish

2011-03-14 17:47:52

From: Feroc1ty
yeah, forgot to mention that the script detects amount of players on the chickens and if its above the number you input it switches the world… and it picks up the feathers, not gonna bother with the prayer/banking/cooking cuz theres other scripts for that


F2P => endless switching ?

Feroc1ty

2011-03-14 17:59:38

From: Dervish
F2P => endless switching ?


nah its not that crowded usually hops the world every 30-60 mins

Gu3st...

2011-03-14 18:01:10

Reflection or Color?

Feroc1ty

2011-03-14 18:09:21

its reflection, anyone know how i would go about detecting if im in grip reapers den thingy?

i was gonna use tile location but i tried it out and its random every time with huge ass negative tile numbers

TomTuff

2011-03-14 21:35:43

From: Feroc1ty
its reflection, anyone know how i would go about detecting if im in grip reapers den thingy?

i was gonna use tile location but i tried it out and its random every time with huge ass negative tile numbers



function InGrimsDen: Boolean;
var
MyPos: TTile;
begin
MyPos := GetMyPos;
Result := (MyPos.x <= -100) and (MyPos.y <= -100);
end;

Feroc1ty

2011-03-14 22:30:27

From: TomTuff

function InGrimsDen: Boolean;
var
MyPos: TTile;
begin
MyPos := GetMyPos;
Result := (MyPos.x <= -100) and (MyPos.y <= -100);
end;


it seems like it would return false positives though (if in random or some shit,) but i guess i can check for randoms if it returns positive and check again

i luffs yeww

2011-03-14 22:47:24

Well Randoms' tiles are much different than what your tiles will be, I'm assuming. So also check to see if it's out of a 20+ area or something of the area, and if it is, it's not just out of the box, it's in a random, or too lost to be found.

TomTuff

2011-03-14 23:03:55

From: i luffs yeww
Well Randoms' tiles are much different than what your tiles will be, I'm assuming. So also check to see if it's out of a 20+ area or something of the area, and if it is, it's not just out of the box, it's in a random, or too lost to be found.


he said that the location of the room is apparently random.



function InGrimsDen: Boolean;
var
MyPos: TTile;
begin
if not(r_FindRandoms) then
begin
MyPos := GetMyPos;
Result := (MyPos.x <= -100) and (MyPos.y <= -100);
end;
end;

Feroc1ty

2011-03-15 21:36:57

Didn't work, previous times the den was location in (~-1m,~-1m) now the tile was found somewhere around (8K,600), and as I tried it a few more times it's being (10K,800) etc… so the negative tile number def won't work as the number goes from negative millions to positive 10K's.

IPwnz

2011-03-15 21:50:41

From: Feroc1ty
Didn't work, previous times the den was location in (~-1m,~-1m) now the tile was found somewhere around (8K,600), and as I tried it a few more times it's being (10K,800) etc… so the negative tile number def won't work as the number goes from negative millions to positive 10K's.


Have you tried doing a Reflection NPC check on Grim? I would assume that would work.