Help!
 

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

Help!

Started by BBD, 19 January, 2005, 20:49:08

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BBD

Currently using the lucifer anti advertising script, i want to change the user alerts to set usernames instead of all ops

i.e.

SendPmToOps ("OP Chat", "Control: User "..user.sName.." with IP "..user.sIP.." told in main: "..onlymes.."")

to

SendPmTo  ("OP Chat", "Control: User "..user.sName.." with IP "..user.sIP.." told in main: "..onlymes.."")


Can this be done?   ?(

Cheers
Is God willing to prevent evil, but not able? Then he is not omnipotent. Is he able, but not willing? Then he is malevolent. Is he both able and willing? Then whence cometh evil? Is he neither able nor willing? Then why call him God?

BBD

Ok, thanks for you info

This is what i come up with...checked in ptokax and came up with no errors, but im kinda new to this so...


Nicks={[" R a z e "]=1}

tabAdvert = {}

function Main()

	frmHub:RegBot(BotName)

	SetTimer(60000)

	StartTimer()

end

function OnTimer()

	for key, value in tabAdvert do

		if (tabAdvert[key].iClock > clock()+60) then

			tabAdvert[key]=nil

		end

	end

end

function DataArrival(user, data)

	if not user.bOperator then

		if strsub(data, 1, 1) == "<" then

			local _, _, msg = strfind(data, "^%b<>%s+(.*)|")

			if Verify(user.sName, msg) then 

				catch=strsub(user.sName,1,5)         --5 is counting chars of the tag below: if u change [VIP], change it!

				if catch=="[VIP]" then                  --ControlUser status : insert users Tag u don't want to get kicked

				else

					tabAdvert[user.sName]=nil

					SendToAll( BotName, user.sName.." get slaughtered by Lucifer for advertising!")

					user:SendPM(BotName, "I slaughtered you! Don't try again to advertise!") 

					user:Disconnect();

					user:TimeBan(15); 

					s,e,onlymes = strfind(data, "%b<> (.*)")

					SendPmToNick(Nicks,Report, "User "..user.sName.." with IP "..user.sIP.." advertised in main chat saying: "..onlymes.."")

				end

			end


Oh and i aint got a clue about that

GetItemByName(who)  

lol, so anymore info on that would be appreciated.

Cheers
Is God willing to prevent evil, but not able? Then he is not omnipotent. Is he able, but not willing? Then he is malevolent. Is he both able and willing? Then whence cometh evil? Is he neither able nor willing? Then why call him God?

SMF spam blocked by CleanTalk