PDA

View Full Version : New to scripting, need a very simple script to sit down



dew1960
10-21-2012, 12:04 PM
Hello!

I just came back to GSIV after 8 years and I am playing on Shattered. I am learning to use lich scripts and just beginning to try and understand how to modify or write a script but it's all greek to me right now.

I would like to have a very simple script and I guess I am asking if anyone has one like this or can make one for me.

I just need it to check to match that I am at room #228 and then if I am, to sit down. That is all. I will run this after I run "sloot3 sell".

Can someone tell me how to do make a script like that or post one for me? I can play around with it from there if I need to.

Thank you for helping this noob!

subzero
10-21-2012, 12:51 PM
I dunno why you'd need something so simple and useless, but try this:


loop{
if Room.current.id == 228
waitrt?
fput "sit" until sitting?
break
end
sleep 0.2
}
exit

Snoopy Dogg
10-21-2012, 12:52 PM
start_script "go2", ['228']
wait_while { running?('go2') }
fput "sit"

theres the script, doesnt get much more simpler then that

dew1960
10-21-2012, 01:09 PM
Thanks! Thats it!

Gompers
10-21-2012, 01:48 PM
if youre using bigshot, you can put "sit" in the resting commands, the resting commands will run after your resting scripts (ie sloot3 etc) finish running