Request for a small 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

Request for a small script

Started by Woodster, 11 February, 2004, 19:33:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Woodster

I wonder if anyone can help me!

I was looking for a little script that with a command like

!pm2opchat

would send a pm to opchat from the bot! i need it to act as a raw command for a faker bot i have got!

If that is not possible could it send a pm to all ops

!pm2ops       for example

Regards

Woodster
Owner of UK...     dc-hubs2     ...UK
Main Address dc-hubs2.ath.cx
Alt Address dc-hubs.no-ip.com
Apart of DC-HUBS NETWORK

nErBoS

#1
Hi,

You want the AntiFake-BOT to send pms to OP-Chat ?? Why do you want the command for ???

Best regards, nErBoS
--## nErBoS Spot ##--

kepp

#2
Or you use this so you save yourself some hassle

SendPmToOps(Bot, "What you want in here")
Guarding    

Woodster

I am using DC++k as a FakerB0t

I want a simple little script that i can use for the RAW commands in DC++k that reports the faker to Ops in PM (as though it is a mass message but for ops only)

So in the RAW command i type into DC++k is:

!pm2ops **REPORT** %[nick] is Faking - Please Kick Out of Hub

Thanx Woodster
Owner of UK...     dc-hubs2     ...UK
Main Address dc-hubs2.ath.cx
Alt Address dc-hubs.no-ip.com
Apart of DC-HUBS NETWORK

NightLitch

here you go:

-- PM 2 OPS / request by: Woodster
-- By: NightLitch 2004
BotName = "Pm2ops"
Command = "!pm2ops"

function Main() 
	frmHub:RegBot(BotName)
end
function DataArrival(user, data) --remove from here
	if (strsub(data, 1, 1) == "<" ) then 
		data=strsub(data,1,strlen(data)-1) 
		local _,_,cmd=strfind(data, "%b<>%s+(%S+)") 
		if not cmd then cmd = "0" end 
		cmd = strlower(cmd) 
		if (cmd == Command) then
			local _,_,Name =strfind(data, "%b<>%s+%S+%s+(%S+)") 
			if Name == nil or Name == "" then
				user:SendData(BotName,"Usage: "..Command.." ")
				return 1
			end
			local vUser = GetItemByName(Name)
			if vUser == nil or vUser == "" then
				user:SendData(BotName,"User not found.")
				return 1
			else
				SendPmToOps(BotName, "**REPORT** "..vUser.sName.." is Faking - Please Kick Out of Hub")
				return 1
			end
		end
	end
end
//NL

SMF spam blocked by CleanTalk