PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: patamon90 on 20 October, 2004, 21:47:25

Title: Ad Text something =)
Post by: patamon90 on 20 October, 2004, 21:47:25
Hi, sorry for interupt you all.. I think this script already exists but I can't find it =P

The script is saying one text (for example) once an hour, like:
[16:52] haha, it's so funny to be a bot in this hub!
-----------------------
and later:
[17:52] Yeeehaaa, just wanna say that this hubs rocks hard!
-----------------------
or anything like that =D
so is there any script like this.
Will be happy again for working scripts =D ( got PtokaX DC Hub 0.3.3.3 build 15.25 [debug] )
Title:
Post by: patamon90 on 21 October, 2004, 16:12:36
Thanks, the script works just fine and rocks hard =)
Now I have time for some other stuff =) *drinking coke and eating chips* no I'm just kidding =D
But really, thanks it works great!

But is it possible that making him writing in 2 lines, now It's just 1 line i think.. I mean that you can press and the script will not say "hell no that wont work" =P. Thanks if this is possible!
Title:
Post by: bastya_elvtars on 21 October, 2004, 19:09:07
Newlines are a bit tricky in lua, especially along with dc++. if you write this into the text:

\r\n
then there will be a newline.

for indstance, this:

string="I am bastya_elvtars.\r\nI live in Hungary."
will result in:

QuoteI am bastya_elvtars.
I live in Hungary.
Title:
Post by: patamon90 on 21 October, 2004, 19:42:12
yeah, now the script rocks harder =)
Thank you all!