Author Topic: Advanced Text for MOTD  (Read 13274 times)

0 Members and 1 Guest are viewing this topic.

Offline bolamix

  • Triple Ace
  • **
  • Posts: 169
  • Karma: +4/-0
(No subject)
« Reply #25 on: 28 September, 2004, 18:16:51 »
Yay, I've noticed [NL]Pur's (and others') code posts before... True, [ code ] is the usual method, but i tend to find that [ php] is prettier, and maybe even more readable ;) I've thought before about the fact that it could confuse people, though... but it's the 1st time i notice a remark to that effect.
Sharing is of the essence!

Live music >> Aiwadirock! live music hub
PtokaX knowledge >> The PtokaX Wiki

PtokaX forum

(No subject)
« Reply #25 on: 28 September, 2004, 18:16:51 »

[NL]Pur

  • Guest
(No subject)
« Reply #26 on: 28 September, 2004, 21:56:35 »
i agree with bolamix , it's looking alot nicer,

and if you not only read the error but also thought a few secs about it you could have solved it yourself.

Offline BoJlk

  • Lord
  • ***
  • Posts: 335
  • Karma: +2/-0
(No subject)
« Reply #27 on: 29 September, 2004, 12:21:00 »
...okey [NL]Pur i'll know for next time...

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 725
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
(No subject)
« Reply #28 on: 29 September, 2004, 13:52:42 »
so then tell me exactly what you want

onjoin info on user?

user commands sent from hhub to client?

both?

what?

 ?(
Everything could have been anything else and it would have just as much meaning.

Offline BoJlk

  • Lord
  • ***
  • Posts: 335
  • Karma: +2/-0
(No subject)
« Reply #29 on: 29 September, 2004, 14:06:14 »
Personally me.
I would like for a user to see his own statistics
like
your share is: xxx
you are in: xxx many hubs
etc.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 725
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
(No subject)
« Reply #30 on: 29 September, 2004, 14:20:39 »
Quote
Originally posted by BoJlk
Personally me.
I would like for a user to see his own statistics
like
your share is: xxx
you are in: xxx many hubs
etc.

personally i like the idea, i put it into lawmaker, but a.i. and nxs contain it too, and i guess many more greater scripts than mine.

i dont know if this is an option in robocop, it would be nice to have. request that feature, opti will surely implement it if its not there

the only problem is that MOTD is sent before script execution, so first u see the MOTD, then u se what the script tells u on connection, so better not put this in motd, rather put into RC or whatever.

this motd thingy in yhub is to resolve the non-scriptable program. personally im sick of yhub, it consumes cpu and there is lackl of features that i.e. verli has. In ptokax such features can be reached by scripting.
Everything could have been anything else and it would have just as much meaning.

Offline Typhoon

  • Lord
  • ***
  • Posts: 397
  • Karma: +22/-3
  • PGE Developer
    • PGE Homepage
(No subject)
« Reply #31 on: 29 September, 2004, 14:43:22 »
onjoin info is also available in my signature ;o)

Typhoon?



Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 725
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
(No subject)
« Reply #32 on: 29 September, 2004, 15:12:31 »
Quote
Originally posted by Typhoon?
onjoin info is also available in my signature ;o)

Typhoon?

hey mods

please delete self-advertisements! bleeeeeeeeeeeeeeh

 :D  :D  :D  :D  :D  :D  :D  :D  :D  :D  :D  :D
« Last Edit: 29 September, 2004, 15:13:30 by bastya_elvtars »
Everything could have been anything else and it would have just as much meaning.

Offline BoJlk

  • Lord
  • ***
  • Posts: 335
  • Karma: +2/-0
(No subject)
« Reply #33 on: 29 September, 2004, 15:22:30 »
bastya_elvtars You should know...  :D  :D  :D
« Last Edit: 29 September, 2004, 15:24:14 by BoJlk »

Offline stewpot_smile2005

  • Newbie
  • *
  • Posts: 1
  • Karma: +1/-0
can some one help?
« Reply #34 on: 13 September, 2005, 23:29:54 »
Code: [Select]
--Your Bot's Name
Bot = "IntroBot"

-- This Registers the Bot in the userlist.
function Main()
frmHub:RegBot(Bot)
end

-- This triggers when a user enters the hub
function NewUserConnected(user)

    user:SendData(Bot,"Welcome "..user.sName.." Your IP is: "..user.sIP.." ")
    user:SendData(Bot,"your information")
    user:SendData(Bot,"sharesize:"..getMyInfoString(user).share)
    user:SendData(Bot,"tag:"..getMyInfoString(user).tag)
    user:SendData(Bot,"speed:"..getMyInfoString(user).speed)
    user:SendData(Bot,"email:"..getMyInfoString(user).email)
    user:SendData(Bot,"description:"..getMyInfoString(user).description)
end

I want it to look some thing like this

----------------

your user name is : XXX
your IP is : XXXXXXXXX
your share size is : XXXXXXXXXXXXXX
Your email is :XXXXXXXXXXXXXXXXXXXXXX
Your descipstion is : XXXXXXXXXXXXX
and some on

Offline GrinSlaW

  • Double Ace
  • *
  • Posts: 121
  • Karma: +2/-0
  • Super
(No subject)
« Reply #35 on: 14 September, 2005, 01:02:51 »
search the forum and you will see lots of this kind of bots you want you can configure those by your own if not then say whats your problem is and we will help


cheers
.:: AcExtreme ::. | .:: AcPro ::.

Offline Psycho_Chihuahua

  • Systemspecialist IT
  • Emperor
  • **
  • Posts: 1 054
  • Karma: +112/-1
  • I am wherever i want to be
    • PtokaX Luaboard
(No subject)
« Reply #36 on: 14 September, 2005, 01:56:17 »
Quote
Originally posted by stewpot_smile2005
Code: [Select]
--Your Bot's Name
Bot = "IntroBot"

-- This Registers the Bot in the userlist.
function Main()
frmHub:RegBot(Bot)
end

-- This triggers when a user enters the hub
function NewUserConnected(user)

    user:SendData(Bot,"Welcome "..user.sName.." Your IP is: "..user.sIP.." ")
    user:SendData(Bot,"your information")
    user:SendData(Bot,"sharesize:"..getMyInfoString(user).share)
    user:SendData(Bot,"tag:"..getMyInfoString(user).tag)
    user:SendData(Bot,"speed:"..getMyInfoString(user).speed)
    user:SendData(Bot,"email:"..getMyInfoString(user).email)
    user:SendData(Bot,"description:"..getMyInfoString(user).description)
end

I want it to look some thing like this

----------------

your user name is : XXX
your IP is : XXXXXXXXX
your share size is : XXXXXXXXXXXXXX
Your email is :XXXXXXXXXXXXXXXXXXXXXX
Your descipstion is : XXXXXXXXXXXXX
and some on

I'm not quit sure what u actually want but from what i gather you just wanted an edit on that script so here you go:
Code: [Select]
--Your Bot's Name
Bot = "IntroBot"

-- This Registers the Bot in the userlist.
function Main()
frmHub:RegBot(Bot)
end

-- This triggers when a user enters the hub
function NewUserConnected(user)

    user:SendData(Bot,"your information")
    user:SendData(Bot,"your username is: "..user.sName.." ")
user:SendData(Bot,"your IP is: "..user.sIP.." ")
    user:SendData(Bot,"your sharesize is: "..getMyInfoString(user).share)
    user:SendData(Bot,"your email is:"..getMyInfoString(user).email)
    user:SendData(Bot,"your description is: "..getMyInfoString(user).description)
    user:SendData(Bot,"your connection is: "..getMyInfoString(user).speed)
    user:SendData(Bot,"your tag is: "..getMyInfoString(user).tag)
end

Not tested (only for Syntax with Ptx Hubsoft)
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

Offline Znupi

  • Junior Member
  • **
  • Posts: 24
  • Karma: +0/-0
  • No one else
    • Znupi's LUA scripts
Re: Advanced Text for MOTD
« Reply #37 on: 10 June, 2006, 13:02:29 »
I will post my variant ... hope it helps ...
Code: [Select]

Bot = frmHub:GetHubBotName()
linii = "-----------------------------------------------"

function NewUserConnected(user)
user:SendData(Bot,"////////////////////////////"..linii)
user:SendData(Bot,"  -[ [ [ Znup Bot ver. 0.2 ] ] ]-")
user:SendData(Bot,"     DeVeloPeD bY ZnuPi")
user:SendData(Bot,"     http://znupi.sytes.net")
user:SendData(Bot,"  -[ [ [ Znup Bot ver. 0.2 ] ] ]-")
user:SendData(Bot,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..linii)
user:SendData(Bot,"-----------------------------------------------"..linii)
user:SendData(Bot,"////////////////////////////")
user:SendData(Bot,"       llllllll YOUR INFO llllllll")
user:SendData(Bot,"Nick: "..user.sName)
user:SendData(Bot,"IP: "..user.sIP)
user:SendData(Bot,"Client: "..user.sClient.." "..user.sClientVersion)
if (user.sMode=="P") then
user:SendData(Bot,"Mode : Passive")
end
if (user.sMode=="A") then
user:SendData(Bot,"Mode : Active")
end
user:SendData(Bot,"ShareSize : "..user.iShareSize.." B")
user:SendData(Bot,"Profile : Regular User")
user:SendData(Bot,"You are in "..user.iHubs.." hubs with "..user.iSlots.." slots")
user:SendData(Bot,"       llllllll YOUR INFO llllllll")
user:SendData(Bot,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..linii)
user:SendData(Bot,"-----------------------------------------------"..linii)
user:SendData(Bot,"////////////////////////////"..linii)
user:SendData(Bot,"       llllllllll HUB INFO llllllllll")
user:SendData(Bot,"Name : "..frmHub:GetHubName())
user:SendData(Bot,"Topic : "..title)
user:SendData(Bot,"Users : "..frmHub:GetUsersCount())
user:SendData(Bot,"Hub Bot : "..frmHub:GetHubBotName())
user:SendData(Bot,"       llllllllll HUB INFO llllllllll")
user:SendData(Bot,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..linii)
end
and the output of this is ...
Code: [Select]
<Da'ZnuP'BoT> ////////////////////////////-----------------------------------------------
<Da'ZnuP'BoT>   -[ [ [ Znup Bot ver. 0.2 ] ] ]-
<Da'ZnuP'BoT>      DeVeloPeD bY ZnuPi
<Da'ZnuP'BoT>      http://znupi.sytes.net
<Da'ZnuP'BoT>   -[ [ [ Znup Bot ver. 0.2 ] ] ]-
<Da'ZnuP'BoT> \\\\\\\\\\\\\\\\\\\\\\\\\\\\-----------------------------------------------
<Da'ZnuP'BoT> ----------------------------------------------------------------------------------------------
<Da'ZnuP'BoT> ////////////////////////////
<Da'ZnuP'BoT>        llllllll YOUR INFO llllllll
<Da'ZnuP'BoT> Nick: [RO][-Znupi-]
<Da'ZnuP'BoT> IP: 127.0.0.1
<Da'ZnuP'BoT> Client: DC++ 0.674
<Da'ZnuP'BoT> Mode : Passive
<Da'ZnuP'BoT> ShareSize : 0 B
<Da'ZnuP'BoT> Profile : Regular User
<Da'ZnuP'BoT> You are in 8 hubs with 10 slots
<Da'ZnuP'BoT>        llllllll YOUR INFO llllllll
<Da'ZnuP'BoT> \\\\\\\\\\\\\\\\\\\\\\\\\\\\-----------------------------------------------
<Da'ZnuP'BoT> ----------------------------------------------------------------------------------------------
<Da'ZnuP'BoT> ////////////////////////////-----------------------------------------------
<Da'ZnuP'BoT>        llllllllll HUB INFO llllllllll
<Da'ZnuP'BoT> Name : PalaSh e un idiot
<Da'ZnuP'BoT> Topic : PalaSh e un mare idiot
<Da'ZnuP'BoT> Users : 1
<Da'ZnuP'BoT> Hub Bot : Da'ZnuP'BoT
<Da'ZnuP'BoT>        llllllllll HUB INFO llllllllll
<Da'ZnuP'BoT> \\\\\\\\\\\\\\\\\\\\\\\\\\\\-----------------------------------------------
Hope I helped! :)

Offline Znupi

  • Junior Member
  • **
  • Posts: 24
  • Karma: +0/-0
  • No one else
    • Znupi's LUA scripts
Re: Advanced Text for MOTD
« Reply #38 on: 10 June, 2006, 13:29:52 »
sry for advertising ... you can delete those lines... :D

Offline Znupi

  • Junior Member
  • **
  • Posts: 24
  • Karma: +0/-0
  • No one else
    • Znupi's LUA scripts
Re: Advanced Text for MOTD
« Reply #39 on: 10 June, 2006, 13:36:32 »
Oh, and another thing ... If u want to send a customized message before "This hub is running PtokaX DC Hub 0.3.4.0 [debug] (UpTime: 0 days, 0 hours, 14 minutes)" ... u should make it this way :

function GetNickListArrival(user,data)
 user:SendData(Bot,"Insert welcome message here")
end

This way ye old "This hub is running PtokaX DC Hub 0.3.4.0 [debug] (UpTime: 0 days, 0 hours, 14 minutes)" will be the second message in ur hub, thus the welcome message discplayed in hublist.org will be customized! :D

Offline Typhoon

  • Lord
  • ***
  • Posts: 397
  • Karma: +22/-3
  • PGE Developer
    • PGE Homepage
Re: Advanced Text for MOTD
« Reply #40 on: 10 June, 2006, 20:51:46 »
I will post my variant ... hope it helps ...
Code: [Select]

Bot = frmHub:GetHubBotName()
linii = "-----------------------------------------------"

function NewUserConnected(user)
user:SendData(Bot,"////////////////////////////"..linii)
user:SendData(Bot,"  -[ [ [ Znup Bot ver. 0.2 ] ] ]-")
user:SendData(Bot,"     DeVeloPeD bY ZnuPi")
user:SendData(Bot,"     http://znupi.sytes.net")
user:SendData(Bot,"  -[ [ [ Znup Bot ver. 0.2 ] ] ]-")
user:SendData(Bot,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..linii)
user:SendData(Bot,"-----------------------------------------------"..linii)
user:SendData(Bot,"////////////////////////////")
user:SendData(Bot,"       llllllll YOUR INFO llllllll")
user:SendData(Bot,"Nick: "..user.sName)
user:SendData(Bot,"IP: "..user.sIP)
user:SendData(Bot,"Client: "..user.sClient.." "..user.sClientVersion)
if (user.sMode=="P") then
user:SendData(Bot,"Mode : Passive")
end
if (user.sMode=="A") then
user:SendData(Bot,"Mode : Active")
end
user:SendData(Bot,"ShareSize : "..user.iShareSize.." B")
user:SendData(Bot,"Profile : Regular User")
user:SendData(Bot,"You are in "..user.iHubs.." hubs with "..user.iSlots.." slots")
user:SendData(Bot,"       llllllll YOUR INFO llllllll")
user:SendData(Bot,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..linii)
user:SendData(Bot,"-----------------------------------------------"..linii)
user:SendData(Bot,"////////////////////////////"..linii)
user:SendData(Bot,"       llllllllll HUB INFO llllllllll")
user:SendData(Bot,"Name : "..frmHub:GetHubName())
user:SendData(Bot,"Topic : "..title)
user:SendData(Bot,"Users : "..frmHub:GetUsersCount())
user:SendData(Bot,"Hub Bot : "..frmHub:GetHubBotName())
user:SendData(Bot,"       llllllllll HUB INFO llllllllll")
user:SendData(Bot,"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..linii)
end
and the output of this is ...
Code: [Select]
<Da'ZnuP'BoT> ////////////////////////////-----------------------------------------------
<Da'ZnuP'BoT>   -[ [ [ Znup Bot ver. 0.2 ] ] ]-
<Da'ZnuP'BoT>      DeVeloPeD bY ZnuPi
<Da'ZnuP'BoT>      http://znupi.sytes.net
<Da'ZnuP'BoT>   -[ [ [ Znup Bot ver. 0.2 ] ] ]-
<Da'ZnuP'BoT> \\\\\\\\\\\\\\\\\\\\\\\\\\\\-----------------------------------------------
<Da'ZnuP'BoT> ----------------------------------------------------------------------------------------------
<Da'ZnuP'BoT> ////////////////////////////
<Da'ZnuP'BoT>        llllllll YOUR INFO llllllll
<Da'ZnuP'BoT> Nick: [RO][-Znupi-]
<Da'ZnuP'BoT> IP: 127.0.0.1
<Da'ZnuP'BoT> Client: DC++ 0.674
<Da'ZnuP'BoT> Mode : Passive
<Da'ZnuP'BoT> ShareSize : 0 B
<Da'ZnuP'BoT> Profile : Regular User
<Da'ZnuP'BoT> You are in 8 hubs with 10 slots
<Da'ZnuP'BoT>        llllllll YOUR INFO llllllll
<Da'ZnuP'BoT> \\\\\\\\\\\\\\\\\\\\\\\\\\\\-----------------------------------------------
<Da'ZnuP'BoT> ----------------------------------------------------------------------------------------------
<Da'ZnuP'BoT> ////////////////////////////-----------------------------------------------
<Da'ZnuP'BoT>        llllllllll HUB INFO llllllllll
<Da'ZnuP'BoT> Name : PalaSh e un idiot
<Da'ZnuP'BoT> Topic : PalaSh e un mare idiot
<Da'ZnuP'BoT> Users : 1
<Da'ZnuP'BoT> Hub Bot : Da'ZnuP'BoT
<Da'ZnuP'BoT>        llllllllll HUB INFO llllllllll
<Da'ZnuP'BoT> \\\\\\\\\\\\\\\\\\\\\\\\\\\\-----------------------------------------------
Hope I helped! :)

why not make it into a string instead of beating the shit out of the userobject so f**king many times ?? ..

something like this for example ..

Code: [Select]
SendAdMessage = function()
local border1 = "\t===========H=U=B==I=N=F=O==========="
local border2 = "\t====================================="
local tosend = "\r\n\r\n"..border1.."\r\n"..
" ?Hub Owner:     "..tSetup.HubInfo.Owner.."\r\n"..
" ?Hub Name:      "..frmHub:GetHubName().."\r\n"..
" ?Hub Address:   "..tSetup.HubInfo.HubAddy.."\r\n"..
" ?Web Address:  "..tSetup.HubInfo.HomePage.."\r\n"..
" ?Complain @:   "..tSetup.HubInfo.Complaint_Email.."\r\n"..
" ?Hub Network:  +network".."\r\n"..
" ?Help Menu:      +help".."\r\n"..
" ?Hub Rules:      +rules".."\r\n"..border2.."\r\n"
SendToAll(tSetup.Bots.BotName,tosend)
end,

 cheers Typhoon?



Offline Znupi

  • Junior Member
  • **
  • Posts: 24
  • Karma: +0/-0
  • No one else
    • Znupi's LUA scripts
Re: Advanced Text for MOTD
« Reply #41 on: 10 June, 2006, 23:34:56 »
There's more than one way to acheiving something ... and yes, the one string idea is better ... but I don't use PtokaX as my hubsoft, I use YnHub instead, I only use PtokaX to make LUA scripts 'coz I like the language ... and I think it looks cooler my way ... oh well ...

Offline Typhoon

  • Lord
  • ***
  • Posts: 397
  • Karma: +22/-3
  • PGE Developer
    • PGE Homepage
Re: Advanced Text for MOTD
« Reply #42 on: 11 June, 2006, 01:03:26 »
There's more than one way to acheiving something ... and yes, the one string idea is better ... but I don't use PtokaX as my hubsoft, I use YnHub instead, I only use PtokaX to make LUA scripts 'coz I like the language ... and I think it looks cooler my way ... oh well ...

sure it could be that it looks better your way, but all those object calls are quite a waste and waste resembles in memory leak and so on..

i guess you're here to find out more about Lua, then you should check out the above functions and do some memory/time testing to see the results...

by calling the same user object for 27 times is in my opinion a very poor way of doing it..

but check it out a bit and give some feed back..



Offline Znupi

  • Junior Member
  • **
  • Posts: 24
  • Karma: +0/-0
  • No one else
    • Znupi's LUA scripts
Re: Advanced Text for MOTD
« Reply #43 on: 11 June, 2006, 12:25:50 »
Ok ... so if I understood right ... you're suggesting something more like :
Code: [Select]
function NewUserConnected(user)
if (user.sMode == "P") then
mode = "Passive"
end
if (user.sMode == "A") then
mode = "Active"
end
local linii = "-----------------------------------------------"
local slash = "////////////////////////////"
local bslash = "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
local motd = "\r\n\r\n\t\t"..slash..linii.."\r\n"..
"\t\t  -[ [ [ Znup BoT ver. 0.2 ] ] ]-\r\n"..
"\t\t     DeVeloPeD bY ZnuPi\r\n"..
"\t\t     http://znupi.sytes.net\r\n"..
"\t\t"..bslash..linii.."\r\n"..
"\t\t"..linii..linii.."\r\n"..
"\t\t"..slash..linii.."\r\n"..
"\t\t       llllllll YOUR INFO llllllll\r\n"..
"\t\tNick: "..user.sName.."\r\n"..
"\t\tIP: "..user.sIP.."\r\n"..
"\t\tClient: "..user.sClient.." "..user.sClientVersion.."\r\n"..
"\t\tMode: "..mode.."\r\n"..
"\t\tSharesize: "..user.iShareSize.." B\r\n"..
"\t\tProfile: Regular User\r\n"..
"\t\tYou are in "..user.iHubs.." hubs with "..user.iSlots.." slots\r\n"..
"\t\t       llllllll YOUR INFO llllllll\r\n"..
"\t\t"..bslash..linii.."\r\n"..
"\t\t"..linii..linii.."\r\n"..
"\t\t"..slash..linii.."\r\n"..
"\t\t       llllllllll HUB INFO llllllllll\r\n"..
"\t\tName: "..frmHub:GetHubName().."\r\n"..
"\t\tTopic: "..title.."\r\n"..
"\t\tUsers: "..frmHub:GetUsersCount().."\r\n"..
"\t\tHub Bot: "..frmHub:GetHubBotName().."\r\n"..
"\t\t       llllllllll HUB INFO llllllllll\r\n"..
"\t\t"..bslash..linii.."\r\n"
user:SendData(Bot,motd)
end
Is that better? ;D

Markitos

  • Guest
Re: Advanced Text for MOTD
« Reply #44 on: 11 June, 2006, 15:31:40 »
Ok ... so if I understood right ... you're suggesting something more like :
Code: [Select]
function NewUserConnected(user)
if (user.sMode == "P") then
mode = "Passive"
end
if (user.sMode == "A") then
mode = "Active"
end
local linii = "-----------------------------------------------"
local slash = "////////////////////////////"
local bslash = "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
local motd = "\r\n\r\n\t\t"..slash..linii.."\r\n"..
"\t\t  -[ [ [ Znup BoT ver. 0.2 ] ] ]-\r\n"..
"\t\t     DeVeloPeD bY ZnuPi\r\n"..
"\t\t     http://znupi.sytes.net\r\n"..
"\t\t"..bslash..linii.."\r\n"..
"\t\t"..linii..linii.."\r\n"..
"\t\t"..slash..linii.."\r\n"..
"\t\t       llllllll YOUR INFO llllllll\r\n"..
"\t\tNick: "..user.sName.."\r\n"..
"\t\tIP: "..user.sIP.."\r\n"..
"\t\tClient: "..user.sClient.." "..user.sClientVersion.."\r\n"..
"\t\tMode: "..mode.."\r\n"..
"\t\tSharesize: "..user.iShareSize.." B\r\n"..
"\t\tProfile: Regular User\r\n"..
"\t\tYou are in "..user.iHubs.." hubs with "..user.iSlots.." slots\r\n"..
"\t\t       llllllll YOUR INFO llllllll\r\n"..
"\t\t"..bslash..linii.."\r\n"..
"\t\t"..linii..linii.."\r\n"..
"\t\t"..slash..linii.."\r\n"..
"\t\t       llllllllll HUB INFO llllllllll\r\n"..
"\t\tName: "..frmHub:GetHubName().."\r\n"..
"\t\tTopic: "..title.."\r\n"..
"\t\tUsers: "..frmHub:GetUsersCount().."\r\n"..
"\t\tHub Bot: "..frmHub:GetHubBotName().."\r\n"..
"\t\t       llllllllll HUB INFO llllllllll\r\n"..
"\t\t"..bslash..linii.."\r\n"
user:SendData(Bot,motd)
end
Is that better? ;D
U could use string.rep 4 this
Code: [Select]
local linii = "-----------------------------------------------"
local slash = "////////////////////////////"
local bslash = "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Check the lua 5 manual :-)

Offline Znupi

  • Junior Member
  • **
  • Posts: 24
  • Karma: +0/-0
  • No one else
    • Znupi's LUA scripts
Re: Advanced Text for MOTD
« Reply #45 on: 11 June, 2006, 17:36:45 »
Where can I find that ? ;D

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 725
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: Advanced Text for MOTD
« Reply #46 on: 11 June, 2006, 20:14:59 »
Where can I find that ? ;D

lua.org
Everything could have been anything else and it would have just as much meaning.

PtokaX forum

Re: Advanced Text for MOTD
« Reply #46 on: 11 June, 2006, 20:14:59 »