[TC] Gaming Forums
SCRIPT FAIL - Printable Version

+- [TC] Gaming Forums (https://forum.city-driving.co.uk)
+-- Forum: General Information (/forumdisplay.php?fid=1)
+--- Forum: General Discussions (/forumdisplay.php?fid=4)
+---- Forum: Help Requests & Technical Support (/forumdisplay.php?fid=9)
+---- Thread: SCRIPT FAIL (/showthread.php?tid=25810)



SCRIPT FAIL - Kisiel - 2017-03-21 18:30

Hi guys i tried to make script to switch on !follow and to say to follow me (i know noone will listen but nvm)

https://drive.google.com/open?id=0B-ifuGII5ccIUVJPYWd6b1d5ckU

Command works but its likely ignoring second line. Sad Any help is useful.

Thanks, OneCheque


RE: SCRIPT FAIL - Ash - 2017-03-21 18:36

Unfortunately you can't get LFS to process two /say commands in one script. Annoying, I know.


RE: SCRIPT FAIL - Adorable - 2017-03-21 18:40

You need to add a little delay between your first message and the second one. I usually use 550ms, try this Mary with the cmd:

/o followme

- Download: http://www.filedropper.com/showdownload.php/mary_1

Dont forget the settings.txt Wink

G'day


RE: SCRIPT FAIL - Kisiel - 2017-03-21 18:40

oh Sad
I already tried making second script but...
It says i dont have admin premissions


RE: SCRIPT FAIL - Ash - 2017-03-21 18:48

What Key(s) are you using? CTRL + F1? Just F1 etc?


RE: SCRIPT FAIL - Kisiel - 2017-03-21 18:50

(2017-03-21 18:48)Ash Wrote:  What Key(s) are you using? CTRL + F1? Just F1 etc?

How you know? yep CTRL + F1

SCRIPT1
/say !follow works
/run followme works
/echo FOLLOW ME works
SCRIPT2
/echo FOLLOWME work
/say !l dear user behind. Follow me. dont work


RE: SCRIPT FAIL - Adorable - 2017-03-21 20:22

(2017-03-21 18:50)Kisiel Wrote:  /say !l dear user behind. Follow me. dont work

It will not work as LFS doesn't allow you to say two messages very quickly to prevent spamming.

If you used Mary before, you can use the edited version I uploaded for you in which I added the cmd: /o followme

That will do exactly what you want.

If you wanna stick with LFS Scripts, that's fine, but you need a way to freeze the script in the middle of 1st msg and the second one, for 500ms or so.

Which is apparently not possible: http://en.lfsmanual.net/wiki/Script_Guide#Commands


RE: SCRIPT FAIL - Barney - 2017-03-21 22:52

Technically i think it even might be possible by multiplying the last line. Just keep adding 10 or 20 at once, test and see when it pops up. Prolly the most stupid way lol. But still a possible way. The needed delay might vary from single- to multiplayer.


RE: SCRIPT FAIL - MariusMM - 2017-03-22 11:06

.....


RE: SCRIPT FAIL - Rout - 2017-03-22 11:51

LFS has a cooldown to send the messages and You cant set it up with scripts :/


RE: SCRIPT FAIL - Adorable - 2017-03-22 11:56

Quote:You cant set it up with scripts :/

Thread.Sleep - Good alternative Biggrin



(2017-03-22 11:06)MariusMM Wrote:  (/o script message1%message2%message1000)

Haven't used / didn't know how that works, thx for telling :*

Quote:crawl back now pls.

What do you mean? Laugh


RE: SCRIPT FAIL - Kisiel - 2017-03-23 07:30

I think it's actually too hard for me. Biggrin
Thanks guys. Smile


RE: SCRIPT FAIL - Rout - 2017-03-23 12:13

I am developing [GU]Tools it actually have this thing, but for the caution sign.
When I finish the first version, it will be public Wink


RE: SCRIPT FAIL - Wouter - 2017-03-23 20:39

You can also use Clavier+ for delays: http://forum.city-driving.co.uk/showthread.php?tid=21580.