PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: Fica on 03 November, 2004, 01:45:42

Title: clonebot help ..
Post by: Fica on 03 November, 2004, 01:45:42
hello

can anyone tell me how can i make that the script dont check Op's ?

here is the scirpt:

BotName = "CloneBot"

OpChatName = "CloneBot"

function Main()
   frmHub:EnableFullData(1)
   frmHub:RegBot(BotName)
end

function DataArrival(curUser,sdata)
   local _,_, user1 = strfind(sdata,"$GetINFO%s+(%S+)%s+")
   if user1 ~= curUser.sName then
      user1 = GetItemByName(user1)

      if user1 ~= nil then
         if user1.sIP == curUser.sIP then
            SendPmToOps(OpChatName, "Cloned user = "..curUser.sName.." logged in and Disconnected, User is a clone of = "..user1.sName)
            curUser:SendData(" Double Log-In not allowed here.. already a user connected in this Nick: "..user1.sName)
            curUser:SendData(" Your IP: "..user1.sIP)
            curUser:SendData(" Disconnecting you now! and Timeban 15 Min.!")
            curUser:Disconnect()
            curUser:TimeBan(15)
         end
      end
   end
end


Thank you

cheers

soory for my bad english :)
Title:
Post by: Fica on 03 November, 2004, 13:17:06
its workkkkk  8)

thank you  :D


cheers
Title:
Post by: VAZ on 07 November, 2004, 16:43:49
is it possible to make it like if an operator is connected to the hub but also wants to connect as an normal user  that it will not disconnect him.?
Title:
Post by: ((UKSN))shad_dow on 13 November, 2004, 22:36:43
hi

since it dont cheack ops , ops can login as normal users , it only cheacks vips/reg/ and normal users
which a vip cant login as a normal user when log in as a vip

yours

shad
Title:
Post by: VAZ on 15 November, 2004, 05:43:41
ok but its not like that with masters or netfounders then?
Title:
Post by: Helper on 25 November, 2004, 09:36:52
Hi,
I want to put in my own IP's who's not gonna be checked.
Can someone do this for me, please?
Title: HAY
Post by: juda on 28 November, 2004, 16:12:49
Need leattle help !!!
Can someone change this script to send message
to me not to all operators in op chat...
It is a little anoying to other OPs...

          Thanks
Title:
Post by: [_XStaTiC_] on 28 November, 2004, 16:30:46
Change this line

SendPmToOps(OpChatName, "Cloned user = "..curUser.sName.." logged in and Disconnected, User is a clone of = "..user1.sName)

into

SendToNick("yournick", "Cloned user = "..curUser.sName.." logged in and Disconnected, User is a clone of = "..user1.sName)

and replace yournick in whatever the nick who will recieve this message

Sorry for my bad english :)