NemeziS MultiScript for PtokaX 0.330 15.25 [debug]...
 

NemeziS MultiScript for PtokaX 0.330 15.25 [debug]...

Started by NemeziS, 09 September, 2004, 23:19:56

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NemeziS

Hi, everyone! Could somebody help me with my MultiScript? There are 7 main parts  in it. If you know how to make some of parts or full script or you have such scripts in your collection please live a message in this topic. I really need this :rolleyes:
part 1  I need  to protect main and PM (+bot's PM) from flood and long messages (not more than 150 symbols for main and not more than 400 symbols for PM ). I wanted to protect !me (in PtokaX 0.330 15.25 there is no russian !me support at all - only english !me messages) and !away messages  from any kind of long messages (protect all the commands with from long messages). My server is not a powerful machine, so if the message sent with !me or !away (or to guest book)is too long, my hub can get down. X(  I also wanted to protect my hub from any kinds of flood and flooders
- 3 warnings: every warning sends to operators and admin (like OpChat) and to a flooder as PM; after 3rd warning user ban.
part 2  A simple script to enable !me messages in PtokaX 0.330 15.25 (not only english !me messages. Russian is main language for my hub)
part 3  I have a bug with redirects. PtokaX 0.330 doesn't redirects users at all?  ?(  
That is my idea: If operator is redirecting a user to somewhere, the message of redirect shows to master and logs. If operator's\VIP's\(other user's allowed to redirect)    IP=redirect adress the message shows to all users and other ops and tells them that user has opened his own hub with adress...
Operators also can't redirect\kick\ban\gag\etc  other operators and master(admin).
part 4  Is it possible to make a script for getting bot's filelist (all bot's shared files may be in one or different dirrectories, except ptokaX folder/scripts) and make downloads from bot as a simple user (everyone can download bot's files)?
part 5  I wanted to disable some built-in commands and messages (for example !help and !userinfo). I also wanted to make all Hub-Sequrity messages in russian.
I don't know if it possible to hide message like "This hub is running PtokaX DC Hub 0.3.3.0 build 15.25 [debug]" on connecting but I want to do it somehow (even if I have to decompill PtokaX, edit souce code and compill it back. I tried this way with ResHACK but the programm is compressed with "EXE compressor", so I can't access the source code  X( ). But if there are some scripts to make it possible or some PtokaX language (*.lan) files it will be fantastic!
I wanted to change/translate into russian kick, ban, gag, ungag, etc messages which are shown in main to all users like that
[00:52:13] NemeziS is kicking zigzaf because:  
[00:52:13] User zigzaf was kicked. IP: ***.***.***.***
part 6 I have many user profiles (statuses). I wanted to make a connection/disconection message to each of them which will be displayed in main and everyone can see it.
for example:
[22:56:07] User with status "..iphost.." with sharesize has connected our hub!
[22:57:01] User with status "..iphost.." with sharesize has left the hub!  

host = tohostname(user.sIP)
ip = user.sIP
iphost = "with IP ["..ip.."] with host ["..host.."]"
if not (host) then
iphost = "with IP ["..ip.."]"


(I used AnnouncerBot but if I add hostnames function to the script the script doesn't work in proper way X( ) I think that  Announcer Bot v1.5 by gg3k is the best way to do it. I added that code and included function HostDetect(user)
part 7 I wanted to add the last record date (users record, alltime share record) to the record bot (RecordBot v0.952 by bonki 2003). I don't know LUA language very well to do it myself. I want the last record date to be shown on connection to the hub with users record and alltime share record
For example:
[22:56:07] Our share record: 3.45 Tb
[22:56:07] Our users record: 71 users
[22:56:07] Last record was: date+time

Who can help me with that?  :)
--LUA forever! =)

NemeziS

Can somebody help me? plzzzzzz...
--LUA forever! =)

plop

part 1: built into ptokax allready.
part 2: on my website is a scripted me script, mod that 2 your needs.
part 3: dc++ changed that inside the clients due 2 adc.
part 4: use the search function from the board.
part 5: disable them in the profiles.
don't even think about modding that line, give the ppl behind the credits they deserve.
you can make your own language file.
part 6: you can't get a hostname on every user, thats most likely the error you get.
part 7: check the record bot from herodes.

all in all use the search and read before you post a question.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

NemeziS

Hi! Thanx for answer. I've read a lot of topics, but i did'n found anything i want. Could you help me with writing some parts of my script?

part 1

You didn't understand me. Who can help me with protecting "!" commands from long text? For example if somebody writes:
!me zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

in main chat or in pm (depends on command) appears

[12:25] * zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

I wanted bot protect my hub from long commands. It's not built-in PtokaX. PtokaX protects my hub only from long messages, not from long commands. I've tested it a lot and tried to write my own script. But no result.

I wanted if the command line > 150 symbols, Bot writes
[12:25] The command line is too long! Max 150 symbols!
and don't sends this command if the command line > 150 symbols

No matter where the command was sent (to main or to Bot's PM). It must be actual for main and PM both.

part 2
I have found !me script on your site. Thanx!!! :))

part 3
I didn't understand you. I wanted a script to protect redirects of Master/operator/vip/other profiles which will be named in the script/.
Each of these profiles can't redirect Master/operator/vip/other profiles which will be named in the script/
Master can redirect ALL users he wants to redirect.
I wanted  Bot to write a message to user who wants to redirect.

part 4

plop wrote "use the search function from the board".
What do you mean?
Can you write a script for me for getting bot's filelist please?

part 5
plop wrote"... give the ppl behind the credits they deserve." What means ppl? Could you give me an example of line (language file) that will change gag\ungag\kick\ban\etc. messages?
I don't use any language files at all. Thanx for advice!

part 6
I saw that script on adress http://board.univ-angers.fr/thread.php?threadid=2608&boardid=11&sid=3776de057a038539345728cac906b635&page=1#9

function NewUserConnected(user)

local myinfo = user.sMyInfoString

local _, _, desc, speed, email, share = strfind(myinfo, "$ALL %S+ (.*)%$ %$(.+)%$(.*)%$(%d+)%$")



if (share == nil) then

share = 0

end



share = share/1024/1024/1024

share = format("%0.2f", share) 



ip = tohostname(user.sIP)

if not (ip) then

ip = user.sIP

end



login = "::["..user.sName.."]::["..ip.."]::["..share.." Gb]::"

SendToAll(login)

end



OpConnected = NewUserConnected



function Round(iNumber)

   assert(type(iNumber) == "number");

   return floor(iNumber + 0.5);

end


Can you edit that script for different profiles? Maybe you can add there disconnection messages?

I wanted it be like:

[22:56:07] User with status "..iphost.." with sharesize has connected our hub!
[22:57:01] User with status "..iphost.." with sharesize has left the hub!
host = tohostname(user.sIP)
ip = user.sIP
iphost = "with IP ["..ip.."] with host ["..host.."]"
if not (host) then
iphost = "with IP ["..ip.."]"

instead of
ip = tohostname(user.sIP)
if not (ip) then
ip = user.sIP


That is my idea: if script can't find the hostname of the user it writes only the IP of the user. Do you understand me? :)

part 7
Could you write a script for getting last record date (no matter what record: user or share)

I wanted it looks like:
[22:56:07] Our share record: 3.45 Tb
[22:56:07] Our users record: 71 users
[22:56:07] Last record was: date+time

if user connect bot shows him this info.

Thanks a lot!
--LUA forever! =)

NemeziS

Could somebody help me? :)
--LUA forever! =)

NemeziS

help me please!!! :)
--LUA forever! =)

SMF spam blocked by CleanTalk