need a reguser script
 

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

need a reguser script

Started by Themaster, 27 November, 2004, 16:53:38

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Themaster

Hello PPL.

I need a reguser script that reguser in a that why

+reguser

peace out...and love to your all scripter..that do the hard work  :D And all thx to your all there are here 2 help!!! :]

blade.lir.dk

sylvi

--=-=-=-=-=-=-=-=-=-=--
-- ADD/DEL USER BOT
-- By NightLitch
-- Delete Part from Snowman's Mean Machine
-- Add Part by myself
-- Hope you all like it...
-- levels (reg, vip, op, master)
-- some bugs fixed....
--=-=-=-=-=-=-=-=-=-=--


http://board.univ-angers.fr/thread.php?threadid=432&boardid=11&styleid=1&sid=f7e065355bfb9b1aea70d52c3361fde6

Themaster

Nope don't work...still need a script that don't get to my table...i think that is there is my problem...

PLZ help me
peace out...and love to your all scripter..that do the hard work  :D And all thx to your all there are here 2 help!!! :]

blade.lir.dk

Herodes

try this 1 out ..
--- MyRegger v1 
--- by Herodes

--- atm only registers new users ...
--- doesn't allow users to register a level above theirs .. Masters can register any available level ...
--- protects against faulty nicks n passes ..  ("stollen" from nErboS changePassword script)

regBot = "Regger"
regcmd = "!reg"

function DataArrival(user, data)
	if user.iProfile ~= -1 then
		if strsub(data, 1,1) == "<" then
			data = strsub(data, 1, strlen(data)-1)
			s,e,cmd = strfind(data, "%b<>%s+(%S+)")
			if cmd == regcmd then
				s,e,Lvl,nNick,sPass = strfind(data, "%b<>%s+"..regcmd.."%s+(%S+)%s+(%S+)%s+(%S+)")
				if tonumber(Lvl) ~= nil then
					Lvl = tonumber(Lvl)
					if GetProfiles()[Lvl] then
						if nNick and not strfind(nNick, "[%c|\n\r]") then
							if sPass and not strfind(sPass, "[%c|\n\r]") then
								if user.iProfile == 0 or user.iProfile < Lvl then
									AddRegUser(nNick , sPass , Lvl)
									SendBack("Registered a New "..GetProfileName(Lvl).." with the nick "..nNick.." and the pass "..sPass, user)
									local nUser = GetItemByName(nNick) 
									if nUser then
										SendBack("You have been registered by "..user.sName.." as a "..GetProfileName(Lvl), nUser)
										SendBack("Your password is "..sPass.." . If you haven't done so please type /fav in the mainchat and edit the Hub info in your Favourite Hubs window" , nUser)
										SendBack("Then dont forget to reconnect ;)", nUser)
									end
								else 
									SendBack("You may register a user to a level lower than yours.", user)
									SendBack("Presently you're an "..GetProfileName(user.iProfile).." ("..user.iProfile..")", user)
								end
							else	
								SendBack("Malformed Pass. Try Again", user)
							end
						else 
							SendBack("Malformed Nick. Try Again", user, how)
						end
					else 
						local pr = ""
						for i,v in GetProfiles() do
							if i > user.iProfile then
								pr = pr.."("..v..") "..i..", "
							end
						end
						SendBack("The specified profile number does not exist ... any of the following "..pr.." will do", user, how )
					end
				else 
					SendBack("Syntax Error! : Use like "..regcmd.."   " ,user, how)
				end
				return 1
			end
		end
	end
end

function SendBack(msg, user, how)
	if how == nil then
		user:SendData(regBot, msg)
	else
		user:SendPM(regBot, msg)
	end
end

Themaster

Nope it still not work...maybe i must doing like GetArg Function....i don't no
peace out...and love to your all scripter..that do the hard work  :D And all thx to your all there are here 2 help!!! :]

blade.lir.dk

Herodes

well , what I know is that, this script works ..

it all depends on what you need to do and how you explain it ..

SMF spam blocked by CleanTalk