So,the problem with this is that OPs can't use none of the commands in here, I don't know why,and regusers and unregusers can't !showtopic and !report, not even the OP's.Only the Master. Don't know what's wrong with this ... could someone help ?
this script doesn't have a "path" like this [0] = 1, -- Master
[1] = 1, -- Operator
[2] = 1, -- VIP
[3] = 0, -- Reg
[4] = 0, -- Moderator
[5] = 1, -- Netfounder
[-1] =0, -- User
and I don't get a error in ptoka ...
Everybody should be able to use report and showtopic, as there are in the "everybody" section Not the master section. Btw this script is only ment to work with the standard profiles. Moderators and Netfounds will be just classed as OP.
Type !help with each profile, and see what commands it lists as available to that profile. :)
Yes, but can someone fix it and make it work on unreg users to use !report and !showtopic, and on OP's to !kick and !warn ? Thank you ...
Well, it works fine here (and does them things you said). ???
Maybe another script is interferring with it ? Disable your other scripts , and test again. :)
Also, login as unregisteresd, and type !help, to see what commands it lists which "should" be available for Unregistered. Also do the same for an Op account. :)
it doesn't work :( I have tried everything ... I even make op like master, and still nothing ... what should I do?
hum...
ill try it out
Well, this is for LUA 5.1, so maybe that's the problem ?
Which ptokaX are you using ?
I've also uploaded the one i use (which works fine for me), incase there are any errors / differences with the one you use . . ..
www.freetohost.co.uk/mike/commands.lua :)
I use latest ... 0.3.5.1
Posted on: 28 August 2006, 07:51:01
Can you remove some commands, Pothead and leave the script with only these commands? !getpass !kill !kick !warn !clear !isreg !flood !talk !showtopic !report !help for Masters, !kill !kick !warn !clear !talk !showtopic !report !help for Op's and !regme !showtopic ! report for simple users ? Thank you
Only difference to your request, is that i left !help in for everybody (so users know they can use !regme, !showtopic and !report. :)
thx mate :) just 1 more thing ... can u make the same lite script again, but this time without !regme? I need it 4 my 2nd hub :P
Just delete these lines from it :)
if (cmd == "!regme") then
if extra == "" or (string.find(extra, "[%c|\n\r]")) then
curUser:SendData(Bot, "Syntax Error, !regme <pass> , you must write a password.")
else
AddRegUser(curUser.sName, extra, 3)
SendToOps(Bot, "The user "..curUser.sName.." has registered himself.")
curUser:SendData(Bot, "You have been successufly registered with the pass: "..extra)
curUser:SendData(Bot, "Please reconnect and type your password.")
end
return 1
end
HelpDisp = HelpDisp.."!regme <password> Replace <password> with whatever password you want\r\n"
:)
danke :)
Nice pothead you deserve an aplaud
I have a error in the script Pothead :( can u help me out ? Syntax C:\Volvo Hub\scripts\Commands.lua:215: attempt to concatenate a nil value
Replace that line to:
curUser:SendData(Bot, "Topic is: " ..(frmHub:GetHubTopic() or "Not setted"))
Oh, OR works if a value is not set ?
cool, that's nice to know, i normally used to check with a IF what the value was a line before, which was tedious and annoying.
thanks. :)
thx :)