PDA

View Full Version : Random Alarm?



Waffles
12-20-2010, 03:41 AM
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
12-20-2010, 03:57 AM
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
12-23-2010, 06:39 AM
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
12-23-2010, 06:54 AM
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
12-23-2010, 08:15 AM
Just type in FindNormalRandoms or R_FindNormalRandoms and then control click it, its gonna take you to wherever its located.

Bad Boy JH
12-23-2010, 09:09 AM
I don't think its in the R_FindNormalRandoms... could be implemented easy enough though

KingKong
12-23-2010, 09:14 AM
Does anyone know the actual command to play a music file? because i tried playsound('filepathhere') but it did nothing for me.

Rich
12-23-2010, 10:06 AM
if FindNormalRandoms then
PlaySound('FilePath');

i luffs yeww
12-23-2010, 10:15 AM
Should work. What was the extension. I think .wav works?

KingKong
12-23-2010, 10:54 AM
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!
12-23-2010, 10:55 AM
Guys, it saddens me that no one has mentioned RandomTool in /misc/ yet.

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

i luffs yeww
12-23-2010, 11:14 AM
Oh yeah, I was just reading through RandomTool a few days ago for spyrl. :3

**BANNED The Man
12-23-2010, 05:36 PM
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
12-23-2010, 07:18 PM
Some computers don't beep.

**BANNED The Man
12-23-2010, 07:20 PM
Some computers don't beep.

Ohreally?
Well that sucks >_<

Sex
12-24-2010, 12:12 AM
Not really. It's quite annoying actually :rolleyes:.

Zyt3x
12-24-2010, 01:28 AM
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
12-24-2010, 01:33 AM
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
12-24-2010, 10:12 PM
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
12-26-2010, 12:25 PM
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');