NickAbuse !me messages..
 

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

NickAbuse !me messages..

Started by NemeziS, 23 September, 2004, 17:48:12

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NemeziS

Hello!

I'm using this NickAbuse script.
function DataArrival(user, data)

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

data=strsub(data,1,strlen(data)-1)

s,e,cmd,Name,rsn = strfind(data,"%b<>%s+(%S+)%s+(%S+)%s+(.*)")

if user.iProfile == 0 then



if (cmd=="+say") or (cmd=="!say") or (cmd=="?say") then

SendToAll(Name, rsn) return 1



elseif (cmd=="+saypm") or (cmd=="!saypm") or (cmd=="?saypm") then

s,e,cmd,to,from,msg = strfind(data,"%b<>%s+(%S+)%s+(%S+)%s+(%S+)%s+(.*)")

SendPmToNick(to,from,msg) return 1

end

end

end

end


I also wanted to make messages like !me from selected user.
Example: I'm writing !sayme Puma lol lol lol
then in main appears

[19:47] * Puma  lol lol lol


What lines should I add to my script to enable this function?
--LUA forever! =)

BottledHate

function DataArrival(user, data)
   if strsub(data,1,1) == "<" then
      data=strsub(data,1,strlen(data)-1)
      s,e,cmd,Name,rsn = strfind(data,"%b<>%s+(%S+)%s+(%S+)%s+(.*)")
      if user.iProfile == 0 then
         if (cmd=="+say") or (cmd=="!say") or (cmd=="?say") then
            SendToAll(Name, rsn) return 1
         elseif (cmd=="+saypm") or (cmd=="!saypm") or (cmd=="?saypm") then
            s,e,cmd,to,from,msg = strfind(data,"%b<>%s+(%S+)%s+(%S+)%s+(%S+)%s+(.*)")
            SendPmToNick(to,from,msg) return 1
         elseif cmd =="!sayme" or cmd == "+sayme" or cmd == "?sayme" then
            if not user.bOperator then return end --//remove this line if you want non ops to use the command.
            Name = Name or ""
            rsn = rsn or ""
            SendToAll("* "..Name.." "..rsn)
            return 1
         end
      end
   end
end

:D

-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

D-J Valhala

hehehehehehehe cool script i love it LoL  :D
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

NemeziS

--LUA forever! =)

SMF spam blocked by CleanTalk