SRL Archive - FAQ

how to select a spell from the magic tab?


RuneShadow

2011-12-05 17:02:55

Hey all, im trying to create a 'wine of Zamrock' taker but have run into a few minor problems, the main problem is that i dont know how to select a spell from the magic tab, i normally make scripts for rsbot where it is easy to select any spell, however in simba im not exactly sure how you are suppost to do it…

So can anyone give me a sample piece of code which has someone selecting the 'telegrab' spell for me to use and learn off?

YoHoJo

2011-12-05 17:05:11

C:\Simba\Includes\SRL\SRL\skill\magic.scar

Open that up ^ and look though!
{*******************************************************************************
Function Cast(Spell: string; AutoCast: Boolean): Boolean;
By: N1ke!
Rev: 39
Date: 12 Sep 09
Description: Results true if the spell given is clicked.
if Autocast is true, it'll toggle the spell to autocast.
Will work however the spells are sorted, visable or not(Will enable
the spells sort if not enabled).
*******************************************************************************}

Is what you're looking for.
Also you will need to include magic.scar in your script like this:
{$i SRL\SRL\Skill\Magic.SCAR} 

RuneShadow

2011-12-05 18:15:39

Ahhhhhh okay thanks very much =)

PatDuffy

2011-12-05 18:17:52

I actually have a 1/2 done zammy wine grabber, if you want I could show you what work I have done to maybe save you some time. It's realllllllllyyyy buggy though

RuneShadow

2011-12-05 18:32:14

From: PatDuffy
I actually have a 1/2 done zammy wine grabber, if you want I could show you what work I have done to maybe save you some time. It's realllllllllyyyy buggy though


Yessss pleasee!!!

The only thing which i dont understand is the spell casting system, i just need a script with it already integrated to try and understand what it is doing.

So yeh, if you could, just send it to me in a PM or somthing. Thanks heaps =)

Ilya

2012-01-24 03:31:33

I'm actually working on something similar.
PM me with some pointers on how to select/cast spells using SMART.
Thanks in advance.

loser69

2012-01-24 08:47:00

I use a DTM to choose the spell also got a half working zammy wine grabber, but its kinda slow compared to the legit players.