Commands
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Commands

Started by BoyKind, 23 August, 2006, 23:51:47

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BoyKind

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 ?
With all the respect

BoyKind

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 ...
With all the respect

Pothead

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. :)

BoyKind

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 ...
With all the respect

Pothead

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. :)

BoyKind

it doesn't work :( I have tried everything ... I even make op like master, and still nothing ... what should I do?
With all the respect

JueLz

hum...
ill try it out
I am owner of the MzDistortion? Empire
the addy to my hub is mzdistortion.no-ip.org
____________________________________________
--=                        [HT 500]                          =--

Pothead

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 :)

BoyKind

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
With all the respect

Pothead

Only difference to your request, is that i left !help in for everybody (so users know they can use !regme, !showtopic and !report. :)

BoyKind

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
With all the respect

Pothead

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"

:)

BoyKind

With all the respect

JueLz

Nice pothead you deserve an aplaud
I am owner of the MzDistortion? Empire
the addy to my hub is mzdistortion.no-ip.org
____________________________________________
--=                        [HT 500]                          =--

BoyKind

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
With all the respect

Thor

Replace that line to:
curUser:SendData(Bot, "Topic is: " ..(frmHub:GetHubTopic() or "Not setted"))

Pothead

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. :)

BoyKind

With all the respect

SMF spam blocked by CleanTalk