PDA

View Full Version : noob shattered scripting help needed



Falcon
08-10-2010, 07:44 AM
I rest in a room having a group of friends that afk script and spell up each other. When I'm gone sometimes my buddy wants to do mass spells and include me...but can't hold us all long enough to get masses off becuase of bigshot starting up sending me and others on their way....Looking for a script that can loop and just wait for xxx whispers, wait.....pauses bigshot...allows them to hold me....waits for them to whisper, go and starts bigshot up again....

Here is what I made but the waitfor doesn't work and I don't know why...maybe need a match line? I've tried many ways to get the waitfor to work, but I'm doing something wrong...and need a bit of guidance.

Loop {

waitfor "xxx whispers, "Stop.""
pause_script 'bigshot'
multifput "group open", "join xxx", "kneel"
waitfor "xxx whispers, "Go.""
unpause_script 'bigshot'

}

Showal
08-10-2010, 07:52 AM
Wow ... bots are out in full force this morning.

JohnDoe
08-10-2010, 07:58 AM
Check out opensesame in the repo, has a good example of this. Snippet below

password = "Lich"

loop{


target,pattempt = matchfindword('? whispers, "?."')

if pattempt =~ /#{password}/
fput "group open"
fput "whisper #{target} Password Accepted. Opening group for 15 seconds"
pause "15s"
fput "group close"
else

end
}

GsJersey
08-13-2010, 11:58 PM
I rest in a room having a group of friends that afk script and spell up each other. When I'm gone sometimes my buddy wants to do mass spells and include me...but can't hold us all long enough to get masses off becuase of bigshot starting up sending me and others on their way....Looking for a script that can loop and just wait for xxx whispers, wait.....pauses bigshot...allows them to hold me....waits for them to whisper, go and starts bigshot up again....

Here is what I made but the waitfor doesn't work and I don't know why...maybe need a match line? I've tried many ways to get the waitfor to work, but I'm doing something wrong...and need a bit of guidance.

Loop {

waitfor "xxx whispers, "Stop.""
pause_script 'bigshot'
multifput "group open", "join xxx", "kneel"
waitfor "xxx whispers, "Go.""
unpause_script 'bigshot'

}

waitforre /(john|frank|henry) whispers, "stop" /i

or if you dont want to use a specific character names

matchfindword (" ? whispers, stop")

something like that should work the ? is used in place of the name so ? just arrived can be any character.

Hope it helps
Jersey

Falcon
08-15-2010, 02:44 PM
thanks for the replies....I will check it out and fiddle with it...and post here what works for me....

cheers,