SRL Archive - Research & Development Lounge

Help with a few odds and ends


mriddler

2012-02-01 10:41:32

I am almost done with a castle wars script, but i am facing a few problems.

1. My antiban won't compile for some reason, it says the GameTab is undefiable, not sure why.


procedure Antiban1;
begin
case random(250) of
0: begin StatsGuise('Antiban') GameTab(tab_Stats) HoverSKill('Magic', False) GameTab(28) end;
1: begin StatsGuise('Antiban') SleepAndMoveMouse(7000 + Random(500)); end;
2: begin StatsGuise('Antiban') GameTab(tab_Inv) ExamineInv; GameTab(28); end;
3: begin StatsGuise('Antiban') GameTab(Tab_Stats); Wait(3000 + Random(500)); GameTab(28); end;
4: begin StatsGuise('Antiban') GameTab(tab_Stats HoverSkill('Random', False); GameTab(28); end;
end;
end;


2. Can you add scripts to the Msi-Run tab, and if you can, how, and how should it go into the loop.

3. Isn't there a bunch of functions that should go into almost all the scripts also?

I am a bit new to this kind of scripting, i do have a little bit of knowledge in javascripting but the differences is a bit confusing.

footballjds

2012-02-01 10:46:49

You missed a closing ")" in your fifth line inside your case statement.
You won't be able to add a castle wars script to MSI I'm afraid.
It's a great stand alone script though :D

3. Isn't there a bunch of functions that should go into almost all the scripts also?

Yes, this is why the SRL Resource Library was created. Because all scripts use many of the same functions.

mriddler

2012-02-01 10:53:17

Thank, don't know how i missplaced the closing bracket. But the GameTab is still getting unknown identifiar.

footballjds

2012-02-01 10:56:22

Could you upload/post your script here in code tags?
If you want it kept private pm it to me and I'll take a look at your compiler errors. I really can't help you otherwise.

mriddler

2012-02-01 11:04:01

Alright, be warned, its extremely simple, though i haven't got the going up the ladder in the game done yet, no one is playing CW at the moment. Will pm u it.

footballjds

2012-02-01 11:11:30

program CastleWars;
{$define SMART}
{$i srl/srl.scar}
{$i SRL/SRL/Misc/stats.simba}
You need to include SRL.
Also you used ClickNorth and passed it a bad parameter.
ClickNorth(true); or ClickNorth(false); should be used.

Also you could work on some standards but at it compiles now :)