SRL Archive - RS3 Script Requests

Random Alarm?


Waffles

2010-12-19 22:41:58

I tend to auto when I'm doing something else in the general area, like while writing a paper or doing laundry in the next room.

Would there be any way to have a unsolvable random alarm? So instead of logging me out, it would stop the script and play a wav file.

Mr.Klean

2010-12-19 22:57:07

Yeah. Just find all the random handling for unsolvable randoms and add in a playsound and a wait. Then you will know when it happens and have time to pause it. And if you don't respond in time it'll log out anyways.

Btw no clue if playsound is the right command.

Waffles

2010-12-23 01:39:03

From: Mr.Klean
Yeah. Just find all the random handling for unsolvable randoms and add in a playsound and a wait. Then you will know when it happens and have time to pause it. And if you don't respond in time it'll log out anyways.

Btw no clue if playsound is the right command.


Hate to ask this, but where would I find this in the script?
My only experience with SCAR/(Simba now?) is making scripts for flash games, nothing as complicated as Runescape script :V. But I could probably edit it in if I knew where.

Sex

2010-12-23 01:54:48

In the SRL include somewhere. I also believe there are procedure pointers that you can define..not sure. But I remember Shut or somebody already implemented this…

KingKong

2010-12-23 03:15:20

Just type in FindNormalRandoms or R_FindNormalRandoms and then control click it, its gonna take you to wherever its located.

Bad Boy JH

2010-12-23 04:09:27

I don't think its in the R_FindNormalRandoms… could be implemented easy enough though

KingKong

2010-12-23 04:14:47

Does anyone know the actual command to play a music file? because i tried playsound('filepathhere') but it did nothing for me.

Rich

2010-12-23 05:06:02

if FindNormalRandoms then
PlaySound('FilePath');

i luffs yeww

2010-12-23 05:15:39

Should work. What was the extension. I think .wav works?

KingKong

2010-12-23 05:54:35

Oh.. I used .mp3 extension since I can't find a .wav extension readily on my comp, but i tried it now with a .wav file and it works.

EvilChicken!

2010-12-23 05:55:28

Guys, it saddens me that no one has mentioned RandomTool in /misc/ yet.

RandomTool is just the thing you need, OP. :)

i luffs yeww

2010-12-23 06:14:23

Oh yeah, I was just reading through RandomTool a few days ago for spyrl. :3

**BANNED The Man

2010-12-23 12:36:27

You can do:

if FindNormalRandoms then
PlaySound('IncorrectFilepath');
and it will play the windows beeeeeeeeeeeep :D
Or you can just put in the correct FilePath :( (the boring way :D:D)

-Boom

Sex

2010-12-23 14:18:27

Some computers don't beep.

**BANNED The Man

2010-12-23 14:20:59

From: Sex
Some computers don't beep.


Ohreally?
Well that sucks >_<

Sex

2010-12-23 19:12:10

Not really. It's quite annoying actually :rolleyes:.

Gu3st...

2010-12-23 20:28:34

From: Sex
Not really. It's quite annoying actually :rolleyes:.
But will help tech people understand what the problem is if there's a problem. It usually indicates a problem with the BIOS, which is something you don't want to have…

Sex

2010-12-23 20:33:52

From: Zyt3x
But will help tech people understand what the problem is if there's a problem. It usually indicates a problem with the BIOS, which is something you don't want to have…

Obviously not. Most problems will be displayed at posting..

Edit: This is not my area so I don't know much. After looking around I see you are correct, however my computer rarely beeps..

Waffles

2010-12-24 17:12:13

From: EvilChicken!
Guys, it saddens me that no one has mentioned RandomTool in /misc/ yet.

RandomTool is just the thing you need, OP. :)


http://villavu.com/forum/showthread.php?t=46606 (For anyone else interested)

Hopefully it still works with Simba
Going to try this tonight, will post results.

KingKong

2010-12-26 07:25:20

I think the code below will work as well, but only good for scripts that don't involve much walking, like alchers, superheaters, or powerfishers/miners/wcers

if not MeInBox(IntToBox(x1, y1, x2, y2)) then
PlaySound('filepathhere');