ProphesyOfWolf
Member
- Joined
- Dec 6, 2007
- Sythe Gold
- 0
- Messages
- 85
Okay.. As everyone always asks before stuff like this.. Please, don't be mean 'bout how I did on this. Criticism is okay, as long as it is constructive..
Well, as this is my first script, it doesn't work right. Well, it says it compiled okay, but it just won't work. I'm not sure what I did wrong. I'm sure it's something small, but would you take a look at it, please?
Well, as this is my first script, it doesn't work right. Well, it says it compiled okay, but it just won't work. I'm not sure what I did wrong. I'm sure it's something small, but would you take a look at it, please?
Code:
{+-+-+-+-+-+-+-+-+-+-+-+-+-ProphesyOfWolf Presents-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#########################Undead Crumbler v 1.0#################################
## Lemme just give you a small story behind this script.. I was killing skellies
in Varrock Sewers when I though, "Hell, I should make a script for this thing..
It's such a pain in the ass clicking crumble undead so many times.." So, I
started making it. I hope you enjoy!###########################################
###############################Instructions####################################
### Go to the range/mage place in Varrock Sewers, directly across the Skeletons
and Ghosts (Go up the path north, go east, then north (There should be scorpions
next to you). I would not advise low levels to use this (Level 28 or lower), as
scorpions are very aggressive. You will need an earth staff (equipped), along
with air and chaos runes. You will need 2 air runes for every chaos rune, (and,
of course, a mage level of 39)so make sure to stop by your local rune shop, mmk?
Good luck!
###############################################################################}
program PoWCrumbler;
{.include SRL/SRL.scar}
var
SkelColor,GhostColor,xg,yg,xsk,ysk: Integer;
KillSkel,KillGhost: Boolean;
procedure setup;
begin
SkelColor:=6383720; //change if necessary
GhostColor:=6776687; //again, change if necessary
KillSkel:= True;//Do you want to kill Skeletons?
KillGhost:= True;//Do you want to kill Ghosts?
end;
procedure clickcastfirst;
begin
GameTab (7);
MoveMouseSmooth(715, 450);
ClickMouse(715, 450 , True);
end;
procedure clickcastchorus;
begin
MoveMouseSmooth(715, 450);
ClickMouse(715, 450 , True);
end;
procedure skeletonhit(State: Boolean);
begin
if (KillSkel = True) then
if (findcolor(xg, yg, 7040116, 126, 141, 636, 474)) then
begin
ClickMouse(xg,yg,true);
end else
begin clickcastchorus;
end;
end;
procedure ghosthit(State: Boolean);
begin
if (KillGhost = True) then
if (findcolor(xsk, ysk, 7831680, 126, 141, 636, 474)) then
begin
ClickMouse(xsk,ysk,true);
end else
begin clickcastchorus;
end;
end;
begin
end.


