PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Help with scripts => Topic started by: atonal on 02 June, 2008, 21:17:59

Title: LoginMsg 1.0 L5.1
Post by: atonal on 02 June, 2008, 21:17:59
hello
mutor i habe   LoginMsg 1.0 L5.1    and y habe this massage now  i habe  3 mouns thsi scripts and was working well
100%, now tis working 40%  only for unreg, before was for all user, reg.master.vip, ctc
and now when some reg user conect i habe this massage 

S?ntaxis ...DiXBoT v2.0 Build 2781\scripts\LoginMsg 1.0 L5.1.lua:93: attempt to index field '?' (a nil value)

S?ntaxis ...DiXBoT v2.0 Build 2781\scripts\LoginMsg 1.0 L5.1.lua:90: attempt to index field '?' (a nil value)
and i try to:

   [-1] = {true,"Unregistered User.txt"},
   
Title: Re: LoginMsg 1.0 L5.1
Post by: atonal on 02 June, 2008, 22:14:59
Mutor i habe this profiles for Dixbot  :)
-----------------------------------------------------
Owner
  Master
SuperUser
Operator
KVIP
VIP
Reg
------------------------------------------------------
and the scripts have


[-1] = {true,"Unregistered User.txt"},
   
Title: Re: LoginMsg 1.0 L5.1
Post by: atonal on 02 June, 2008, 22:44:19
Thank brother,  dont wokrk for me , is very bad, the scripts was ok now o goint to put away
i try for more then i?one our to try to fix with the profiles i put all profiles in order

and nothin happen

habe good day and thanks for yuo help
Title: Re: LoginMsg 1.0 L5.1
Post by: Snooze on 04 June, 2008, 11:15:51
oh my...

Exchange the profile table with:


local Msgs = {
[-1] = {true,"Unregistered User.txt"},
    [0]= {false,"Owner.txt"},
[1] = {false,"Master.txt"},
    [2] = {false,"SuperUser.txt"},
    [3] = {false,"Operator.txt"},
    [4] = {false,"KVIP.txt"},
    [5] = {false,"VIP.txt"},
    [6] = {false,"Reg.txt"},
}


Remember to edit the true/false part and Textfile name as needed..


/Snooze
Title: thanks Snooze for yuo big help
Post by: atonal on 04 June, 2008, 15:25:57
Now the login massage is working 100%  this was good help    i hpe yuo make one for Dixbot

Yor are the best atonal25
Title: Re: thanks Snooze for yuo big help
Post by: Snooze on 04 June, 2008, 15:31:04
You're welcome..

I have indeed made this possible in DiXBoT.

The code is finished and it's being tested as we speak:

Commands:


--------------------------------------------------------------------------------
HUB CONFIG\MOTD:
--------------------------------------------------------------------------------
!dxbmotd                  :View/Set DiXBoT MOTD True/False per Profile.
!dxbmotdhelp              :View the DiXBoT MOTD Help
!dxbmotdpm                :View/Set DiXBoT MOTD in PM True/False per Profile.
!dxbmotdset              :View/Set DiXBoT MOTD Message per Profile.
!pxmotd                  :View/Set PtokaX MOTD True/False
!pxmotdpm                :View/Set PtokaX MOTD in PM True/False
!pxmotdset                :View/Set PtokaX MOTD Message.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Options for DiXBoT MOTDs:


#HUBNAME# Will be replaced with Hub Name
#HUBADDY# Will be replaced with Hub Address
#HUBPORT# Will be replaced with the Default(first) Hub TCP Port
#HUBPORTS# Will be replaced with ALL Hub TCP Ports
#HUBSHARE# Will be replaced with the total hub share
#HUBUPTIME# Will be replaced with the Hub uptime
#HUBUSERS# Will be replaced with the total usercount

#USERNAME# Will be replaced with the users Nick
#USERIP# Will be replaced with the users IP
#USERPROF# Will be replaced with the users ProfileName
#USERSHARE# Will be replaced with the users share
#USERMAIL# Will be replaced with the users Mail
#USERTAG# Will be replaced with the users Tag
#USERCLIENT# Will be replaced with the users Client + Client Version
#USERHUBS# Will be replaced with the users Total Hubcount.
#USERSLOTS# Will be replaced with the users Total Slotcount.


Thanks,
Snooze