moderator and netfounder 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

moderator and netfounder script

Started by OneHero, 27 October, 2004, 07:36:22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

OneHero

i use the script OPChat (look under to se it) how can i make the moderator and the netfounder to read them just like the masters or OPs can?

the OPChat script
-- Creator: klownietklowniet 
-- Network: [ > DC - UniteD < ] 
-- 
-- Editor: R?P?FF? 
-- Network:?In?a??? ??tw??x? An ?nd?rGr?und? ??tw??k Subnet 
-- 
-- Request by Peter 
-- 
-- Edits by R?P?FF? & klownietklowniet 
-- 
-- A VIP and Higher chat 
-- 02-09-2003: klownietklowniet changed the script abit so all (VIPs, OPs and SUs) can chat. (Request by BlazeXXX) 
-- 19-10-2003: R?P?FF? added the (Reg) & (SuperOp) profile in it so now regs & sops are included in script. 
-- 19-10-2003: klownietklowniet added a message so when non reg users pm it, it will respond and act on the message 
-- "This chat is for registered users only. Your message has not been sent." (Request by R?P?FF?) 


BotName = "-OpChat-" 


function Main() 
   frmHub:RegBot(BotName) 
end 


function DataArrival(curUser,data) 
local MessageRecognized = 0 

if isPM(data)==1 then 
   whoto,from,message=ParsePM(data) 
   MessageRecognized=1 
end 

   if MessageRecognized==1 and whoto==BotName then 
      if (curUser.iProfile>=0 and curUser.iProfile<=1) then 
      local sus=GetUsersByProfile("Master") 
      local sops=GetUsersByProfile("SuperOp") 
      local ops=GetUsersByProfile("Operator")       
         for i, n in sops do 
            if n == curUser.sName then 
      else 
            SendPmToNick(n, BotName, from.." -> "..message) 
         end 
      end 
      for i, n in sus do 
         if n == curUser.sName then 
   else 
         SendPmToNick(n, BotName, from.." -> "..message) 
      end 
   end 
   for i, n in ops do 
      if n == curUser.sName then 
   else 
      SendPmToNick(n, BotName, from.." -> "..message) 
   end 
end 

else 
curUser:SendPM(BotName, "This chat is for OPs and higher users only. Your message has not been sent.  If you wanna report a faker send the !report   in main chat :D") 
end 
end 
end 


function ParsePM(data) 
s,e,whoTo,from,message = strfind(data,"$To:%s+(%S+)%s+From:%s+(%S+)%s+$%b<>%s+(.*)") 
message = strsub(message,1,strlen(message)-1) 
return whoTo,from,message 
end 


function isPM(data) 
if( strsub(data, 1, 3) == "$To" ) then 
return 1 
else 
return 0 
end 
end

bastya_elvtars

open your Profiles.dat and post its contents here, thus we can help ya
Everything could have been anything else and it would have just as much meaning.

OneHero

0|Master|11111111111111111100000000000000
1|Operator|11110100001101111100000000000000
2|VIP|10000000000001111100000000000000
3|Reg|10000000000000000000000000000000
4|Moderator|11111110001101111100000000000000
5|NetFounder|11111111111111111100000000000000

SMF spam blocked by CleanTalk