determinate determinate

Author Topic: NXS-3  (Read 48977 times)

0 Members and 1 Guest are viewing this topic.

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
(No subject)
« Reply #70 on: February 02, 2004, 10:55:56 pm »
Can you fix so [Bot]~Op~Chat~ is name [Bot]Op-Chat and have a yellow key?

//WickeD

Offline f3rry

  • Member
  • ***
  • Posts: 38
  • Karma: +0/-0
(No subject)
« Reply #71 on: February 03, 2004, 01:09:46 am »
Hi NightLitch

Your script is getting better every day, i like it!!
Nice to see you have made a vip chat in the script.

Maybe you can fix the following points.

!info without a nick Doesn't show the syntax error message.
 
The Advertising triggers doesn't work.

Where is the userinfo for, it seems that it doesn't work either, or am i wrong.

How can i use the Offline Messages?

Offline c h i l l a

  • Lord
  • ***
  • Posts: 439
  • Karma: +1/-0
(No subject)
« Reply #72 on: February 03, 2004, 01:17:36 am »
nighlitch...

just one thing, the whois, you took from logger (LIS),
well I just modded it to make it a little faster, well excatly to close the socket as soon as possible, but it was actually from tezlo.

else a nice bot, but you should get into tables..
you will be so happy, each time you add a new command ;).

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...NightLitch!
« Reply #73 on: February 03, 2004, 06:03:27 am »
My profiles are:

0|Master|11111111111111111111000000000000
1|Operator|11111111111111111111000000000000
2|VIP|00000000000000000000000000000000
3|Reg|00000000000000000000000000000000
4|Moderator|10000000001000000000000000000000

Is that right?

//WickeD

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...NightLitch!
« Reply #74 on: February 03, 2004, 01:22:54 pm »
Now there are 2 commands that don´t work for me:
!mm
!settings

Are my Profiles right?

//WickeD

Offline Optimus

  • Emperor
  • **
  • Posts: 1 485
  • Karma: +13/-1
(No subject)
« Reply #75 on: February 03, 2004, 02:48:27 pm »
Quote
else a nice bot, but you should get into tables..
you will be so happy, each time you add a new command ;).


hi Chilla, how does that look like?

Btw, nice bot Night

Offline c h i l l a

  • Lord
  • ***
  • Posts: 439
  • Karma: +1/-0
(No subject)
« Reply #76 on: February 03, 2004, 04:12:34 pm »
table with functions:

Code: [Select]


table = {
   test1 = function() end,
   test2 = function() end,
}


Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #77 on: February 03, 2004, 05:16:35 pm »
Quote
Now there are 2 commands that don´t work for me:
!mm
!settings

Are my Profiles right?

//WickeD


hehe !settings doesn't exist yet.. forgot to -- in help...

and mm I don't understand why it doesn't work for you when it does for me.

the profiles is right btw.
//NL

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #78 on: February 03, 2004, 05:18:51 pm »
Quote

Originally posted by Chilla

nighlitch...

just one thing, the whois, you took from logger (LIS),
well I just modded it to make it a little faster, well excatly to close the socket as soon as possible, but it was actually from tezlo.

else a nice bot, but you should get into tables..
you will be so happy, each time you add a new command ;).


Thx Chilla. But haven't had the time looking into makin command into tables gonna try it.

How do I call it in Dataarrival then, this is mine now:

Code: [Select]

function MainCom(curUser,data)
data=strsub(data,1,strlen(data)-1)
local _,_,cmd = strfind(data, "%b<>%s+(%S+)")
if not cmd then cmd = "0" end
if (strsub(cmd, 1, 1) ~= Prefix1 and strsub(cmd, 1, 1) ~= Prefix2) then
return 0
else
cmd = strlower(cmd)
if strlen(cmd) > 1 then
cmd=strsub(cmd,2,strlen(cmd))
local SendCom = (Com(curUser,data,cmd))
if not SendCom then
return 1
else
return SendCom
end
end
end
end
//NL

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #79 on: February 03, 2004, 05:20:54 pm »
Quote
Originally posted by Optimus

Btw, nice bot Night


Thx m8 yours is not soo bad either ;-p.

envy the program you set the settings in.

But Is half there I think, I have a CGI atleast coming to webb. that is a start right ? :-)
//NL

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #80 on: February 03, 2004, 05:22:59 pm »
Chilla give me a short breif on how I create the command call from table.

It will be much nicer yeah. I don't need to write elseif & cmd== jada jada... any longer then.

plz show me.

/Thx
//NL

Offline c h i l l a

  • Lord
  • ***
  • Posts: 439
  • Karma: +1/-0
(No subject)
« Reply #81 on: February 03, 2004, 05:34:39 pm »
take a look here

and

here

and LIS uses it also :)

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #82 on: February 03, 2004, 06:14:00 pm »
One question here Chilla, can I put ex. the tables at the end of my file if I say I want it that way ??
//NL

Offline c h i l l a

  • Lord
  • ***
  • Posts: 439
  • Karma: +1/-0
(No subject)
« Reply #83 on: February 03, 2004, 07:25:56 pm »
sure...  put them table anywhere in the script..

just not into a function, else you only want you table only sometimes.
see ptokax reads a script. first from top to end.
and if you create a table in between, it doesn't matter.

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #84 on: February 03, 2004, 10:14:08 pm »
Ahh.. Thx ALOT man can I do the script differently now. hehe

Well gonna try first the command-table soon enough first.
//NL

Offline c h i l l a

  • Lord
  • ***
  • Posts: 439
  • Karma: +1/-0
(No subject)
« Reply #85 on: February 03, 2004, 10:21:34 pm »
no problem,  and what is also great is that your script will get faster, cause you don't need your if's and esleifs anymore :)

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #86 on: February 03, 2004, 10:27:54 pm »
Well to tell you the truth, I am sick of them.

Am sick off all curUser:SendData or PM to

So have done it Local Msg etc. now.

But know that is a pain to. hehe

trying to find the fastest way programming by testing my
capasity on the keyboard.

NOTE: This is not a way near to be competion Phatty or anyone
trying to be fast writing in this Forum... hehe

Sure I must be able to do the ex:

Kick/Ban/Warn functions have say almost the same function beside a few lines. that must be able to combine.

Gonna take a closer look in LIS about your IP catching & computing. Cause my HubOwner wants the ip-part in the script.

What is faster; having the ip-script beside or inside my NXS-3 ???

ThX Chilla/ NL
//NL

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #87 on: February 03, 2004, 11:46:00 pm »
Question Chilla:

How do I make the profile checks now on the commands ??

do I need more tables ??? or what ??

here is my "test" code:

Code: [Select]

STATSFUNC = {
["!test"] = function(curUser,data) DoHelp(curUser,data) end,
}

function DataArrival(curUser,data)
if ( strsub(data, 1, 1) == "<" ) then

data = strsub(data,strlen(curUser.sName)+4,strlen(data)-1)
local _,_,cmd = strfind(data,"^(%S+)")

if cmd and STATSFUNC[cmd] then
SendToAll(STATSFUNC[cmd](curUser,data))
end
end
end


plz help me out. this All new, haven't handle the commands in a table.
//NL

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #88 on: February 04, 2004, 12:00:39 am »
New Version out for for the moment:

NXS-3 Version 1.4
//NL

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...
« Reply #89 on: February 04, 2004, 05:49:30 am »
Good work m8!  =)

Thx a lot!

//WickeD

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...King of scripts!! =)
« Reply #90 on: February 04, 2004, 06:10:46 am »
Look... I typed !status and gut this info in mainchat:
--------------------------------------------------
These are the current stats:
--------------------------------------------------
Unknown commands: 0 x
PM commands: 0 x
--------------------------------------------------
Key commands: 30 x
MyInfo commands: 16 x
ValidateNick commands: 30 x
GetInfo commands: 45 x
Password commands: 3 x
Version commands: 11 x
--------------------------------------------------
GetNickList commands: 11 x
GetBanList commands: 0 x
--------------------------------------------------
Search commands: 0 x
SR commands: 0 x
CTM commands: 0 x
RevCTM commands: 0 x
--------------------------------------------------
ClientSocket Errors: 0 x
MHSocket Errors: 2 x
MHubReconnectCounter: 255 x

And next time I typed !status I gut this massage:
      Hub Status
 -----=============================================================---
      File:               Size:
      ¯¯¯               ¯¯¯¯
      userinfo.dat            0.00 Kb.
      userlog.dat            0.23 Kb.
      awaylog.dat            0.04 Kb.
      warnlog.dat            0.00 Kb.
      kicklog.dat            0.00 Kb.
      banlog.dat            0.00 Kb.
 
       0 user(s) max counted.
       Hub uptime 4 min(s)
       Highest share shared: 0.000 TB
 -----=============================================================---

And I can not get tha first massage again. Only getting the second massage. How come?

Is it me that is very tired ore what?  *Smiling*

//WickeD

Offline c h i l l a

  • Lord
  • ***
  • Posts: 439
  • Karma: +1/-0
(No subject)
« Reply #91 on: February 04, 2004, 11:25:27 am »
either check in the function or on the command.
But just read, LIS...  you will find so many ways of handling tables in it, it's great :).

you can also call functions you can find it in
crazy script.
« Last Edit: February 04, 2004, 12:03:57 pm by c h i l l a »

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #92 on: February 04, 2004, 12:38:42 pm »
WickeD: I will change command name.

Chilla: Ok Thx, Gonna check it out then. but hope if I don't get it, you halp me out.

/NL
//NL

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...NightLitch!
« Reply #93 on: February 04, 2004, 03:34:22 pm »
Can you add in NSX-3 Bad-Files-Check funktion that check users when they enter the hub?  And when I warned a user today he/she had typed !away and I did get the away massage in a Pm and in OP-Chat to me when I warned he/she. Do you know why?

The warn logged, so the warn works....

//WickeD

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #94 on: February 04, 2004, 03:37:38 pm »
hehe a simple bug that is. hehe gonna check it out.

About the file check I prefer DC++ CMD to check for bad files. but can add it later. well se.

/NL
//NL

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Sorry for all the writing.... =)
« Reply #95 on: February 04, 2004, 04:01:19 pm »
When a user sends a Pm to a user I get that Pm to, In a Pm and in OP-Chat, And every time he/she write it pop´s up in Pm and in OP-Chat to me.  Can you check it out to?

//WickeD

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...
« Reply #96 on: February 04, 2004, 04:04:44 pm »
The !warn that I tested on my self works, it logged in the warnlog, but it do not show in !info or in !myinfo.


//WickeD

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...
« Reply #97 on: February 04, 2004, 04:05:57 pm »
The !warn that I tested on my self works, it logged in the warnlog, but it do not show in !info or in !myinfo.

And what is this: WEEKS = 1 ?


//WickeD

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #98 on: February 04, 2004, 04:12:28 pm »
Just a little miss by me... Will be fixed in upcoming version.
//NL

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Gr8 m8! =)
« Reply #99 on: February 04, 2004, 04:17:34 pm »
If you where a girl a kiss you!!! =)

Thx very very very much!!!

//WickeD

Offline NightLitch

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 479
  • Karma: +16/-0
(No subject)
« Reply #100 on: February 04, 2004, 04:52:41 pm »
Quote
By WickeD
If you where a girl a kiss you!!! =)
 

Well I think we stop here now.

I don't wanna be a girl and yeah and... hehe...
//NL

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi.......
« Reply #101 on: February 04, 2004, 05:59:55 pm »
If you don´t going to add a badfile check in NSX-3, can you write a loose script to me? that don´t kick but warn users, and so the warn will bee logged in to warnlog in NSX-3.  No panic whit it! Get NSX-3 to work first.

//WickeD

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Goodday NightLitch!!
« Reply #102 on: February 05, 2004, 01:01:42 pm »
I have a error in NSX-3 1.4, when I type !getbanlist: Runtime error.  Pop´s up in a window from my oDC 5.212 client, and then my client shut´s down....Do you know why?

//WickeD

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...NightLitch!
« Reply #103 on: February 05, 2004, 01:39:26 pm »
Can you add when users get warn/kick/ban a massage-line there I can type like this: Klagomål och funderingar kan du skicka till hubbens support-mail: northside.se

Sorry all that I writed in swedish!

//WickeD

Offline WickeD

  • Lord
  • ***
  • Posts: 282
  • Karma: +0/-0
Hi...
« Reply #104 on: February 05, 2004, 03:36:47 pm »
A wish from me!  =)

Can you add Triggers i NSX-3 so I can alter the Triggers for my neads?


//WickeD

 

determinate determinate
guestbook