SRL Archive - OSR Help

Need help with crafting script


Dinomite00

2012-02-17 10:58:40

Hey everyone,

I am in the process of coding my first script and, as you can already guess, im fairly new to this. I need help with two things,

How do i make the script set the camera angle up?

Once i find the loom color (doing thing for citadel), how do i make the script click it 4 times and then move to the next one to the left in order?

Thanks in advance,
Dino

Iambubbleman

2012-02-17 12:23:20

This is how to do the Camera Angle
setangle(0);

I don't really understand the second part, if you could give pics, that would be helpful

mriddler

2012-02-17 21:36:03

MoveMouse(x, y);
ClickMouse(x, y);

Usually works for people who are starting up.

x[Warrior]x3500

2012-02-17 22:46:35

From: mriddler
MoveMouse(x, y);
ClickMouse(x, y);

Usually works for people who are starting up.


this, or if you want something that looks more human, and less botty:

MMouse(x , y, rx, ry); //similar to MoveMouse();
ClickMouse2(button); //clicks either right or left mouse button
Mouse(x, y, rx, ry, button); //moves mouse to x,y then clicks

EDIT: here is the difference between MoveMouse(); and MMouse();

Steps to view this:
1. run code - after 1 second, MoveMouse(); will start moving the mouse to 3 spots
2. after you are done viewing MoveMouse(); press F5
3. after a second, MMouse(); will start moving the mouse to the same 3 spots
4. press F5 again when done.

program new;
{$I SRL/SRL.simba}
begin
setupsrl;
wait(1000);
repeat
movemouse(100,200);
movemouse(450,350);
movemouse(700,200);
until(isfkeydown(5));
wait(1000);
repeat
mmouse(100,200,0,0);
mmouse(450,350,0,0);
mmouse(700,200,0,0);
until(isfkeydown(5));
end.

shaggyster

2012-02-18 08:43:17

basically for those who dont know at citidal there is a loom that kinda looks like this

___________________
…….+……………+
…….+……………+
…….+……………+
…….+……………+

the plus represent the lay out of the looms

shadowmarkus

2012-02-18 14:23:51

I suggest going to the tutorial section, there are basic guides to help you make stuff just like this.. ^^