mIRC Home    About    Download    Register    News    Help

Print Thread
!help #83291 17/05/04 04:01 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
on some channels you see this: !info. I know it's done with a script, but i don't know how. can someone tell me how to do this (not from a bot)
example: if someone types !info, he automsg in a pop up the info from the channel

thx already,
Infernal


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>
Re: !help #83292 17/05/04 04:09 PM
Joined: Mar 2004
Posts: 108
X
xxxYODAxxx Offline
Vogon poet
Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
/help on text

on *:text:!info:#:{
msg $chan YOUR INFO HERE
}

-that should be what ya need -cheers



sometimes these are as bad as quit messages :tongue:
Re: !help #83293 17/05/04 04:13 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
nope, it won't work


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>
Re: !help #83294 17/05/04 04:18 PM
Joined: Mar 2004
Posts: 108
X
xxxYODAxxx Offline
Vogon poet
Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
try using another client/mIRC wink OR for testing purposes:
/server -m IRC.NETWORK.YOURON
I wouldnt run that way being in the same channel all the time as it will double post to other people triggering it wink


sometimes these are as bad as quit messages :tongue:
Re: !help #83295 17/05/04 04:29 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
yes, thanks, that works now, i only have an other error.when you join my channel, i automsg you with. The prob here is that you'll get 2msg, one from me and one from yourself. if you don't understand it and want to see it for yourself: <a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>

Thx,
Infernal


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>
Re: !help #83296 17/05/04 04:38 PM
Joined: Mar 2004
Posts: 108
X
xxxYODAxxx Offline
Vogon poet
Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
like i said: if you use the server -m feature you will double up on your scripts, thus giving you the message twice.. or if you use the *same* mIRC (mIRC sharing the same scripts)

both you: nick a, nick b

a joins and messages b and b messages a
b joins and messages a and a messages b

new nick c (someone else)
c joins and gets it from both a and b

unload a or b and it works fine. wink



sometimes these are as bad as quit messages :tongue:
Re: !help #83297 17/05/04 04:52 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
k thanks, i only need know how to change lines, like:
hello,
nice
to
see
you


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>
Re: !help #83298 17/05/04 05:59 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

I'm gonna take a long shot here cuz I dont' really know what you mean with i only need know how to change lines, like:

hello,
nice
to
see
you

1)

msg # hello
msg # nice
msg # to
msg # see
msg # you

2)

tokenize 32 hello nice to see you
msg # $*


Greetz


Gone.
Re: !help #83299 17/05/04 06:26 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
nope, that won't work for me, i need to know how to send multiple lines of text


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>
Re: !help #83300 17/05/04 07:05 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
/help /play


I refuse to engage in a battle of wits with an unarmed person. wink
Re: !help #83301 17/05/04 07:13 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
and what am i going to do with that


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>
Re: !help #83302 17/05/04 07:37 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Yo,

je moet beter uitleggen wat je bedoelingen zijn. Altijd in gedachten houden, dat de helpers hier niet kunnen ruiken wat je wilt bereiken met een script.

Wat bedoel je precies?

Wil je een bestaande zin zoals: hallo dit is een test, omzetten in meerdere berichten zodat het gaat als:
hallo
dit
is
een
test

of wil je een tekst bestand afspelen in een channel of wat?

Als je meer details geeft, kunnen wij meer help bieden.

Ivm die /play command, als je in mIRC zit, typ dan eens /help /play, en vind die command. Dan zal je zien dat je daarmee files kunt afspelen die tekst bevatten.

Als je bvb. een tekst file hebt die info.txt heet, en daarin zit een hoop tekst die je wilt zenden naar users in je channel of zo, dan kan je die /play command gebruiken.

Grtz


Gone.
Re: !help #83303 17/05/04 08:03 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
aa, nen belg, da ga gemakkelijker gaan. Ik wil gewoon meerdere lijnen tekst naar de gebruiker sturen.
bb: Als hij !help intypt; krijge je normaal een lijn te zien tot dat die vol is en dan gaat die naar een volgende lijn. Ik wil gewoon weten hoe ik van lijn kan vernaderen zonder dat ik een complete tekst moet typen, der moet daar tco heen command voor bestaan, zoals in c++ cout<<"\n" of endl.
Met dien play fucntie heb ik al zitten proberen maar het werkt niet.


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>
Re: !help #83304 17/05/04 08:16 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Ahzo,

nou ja je kunt dus in een .txt file bvb een tekst zetten met korte zinnetjes, zodat je dus zelf kiest welke tekst op 1 lijn komt.

Bvb.

dit is de info file waar je
informatie kunt vinden over
vanalles
en nog wat


Dus zet je tekst in een txt file op die manier, en dan gewoon de /play command gebruiken. De play command zal dan elke regel verzenden, en dus nieuwe regels respecteren.


Je kunt dus iets doen als:

on *:TEXT:!help:#mychannel: play $nick $+(",$mircdir,help.txt,")

Ik ga er hier vanuit dat je help.txt in je mirc folder hebt gezet.


Misschien is er nog een andere manier, maar dit zal toch de gemakkelijkste zijn. 'k zal nog es zien of er zoiets als een command is dat je tussen een lijn kunt zetten, waardoor het script op een nieuwe lijn begint.


Greetz


Last edited by FiberOPtics; 17/05/04 08:17 PM.

Gone.
Re: !help #83305 17/05/04 08:23 PM
Joined: Aug 2003
Posts: 325
W
Wolfie Offline
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
Quote:
and what am i going to do with that

You put the greeting into a text file and then when someone joins, you play the text file to them..

I would recommend doing this though: Set up a variable that you add the nicks to when they join and start a timer. That timer calls on another alias that will play that file to all the nicks in that variable (using the same method of msg nick1,nick2,nick3).. The reason you would want to do that is to reduce your chances of flooding if you should have, say, 5 people join a room and you have 3 lines played to each person. Instead of 15 lines, you would have 3 lines sent out.

smile

Re: !help #83306 17/05/04 08:34 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

another way to msg text where you decide where you want to start a new line, and you don't want to put it in a .txt file and use /play, is the following:

tokenize 10 this is a test $lf to see if this works
msg # $*


So the output will be:

this is a test
to see if this works

Hope that helped you on your way,

Greetz

Last edited by FiberOPtics; 17/05/04 08:45 PM.

Gone.
Re: !help #83307 17/05/04 08:49 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
ja, da werkt
thx mate


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>
Re: !help #83308 19/05/04 06:20 PM
Joined: May 2004
Posts: 24
I
Infernal Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: May 2004
Posts: 24
wel, no i need to know how to put those scripts in a remote bot, someone know a good bot and how to do that remote


<a href="irc://irc.uicn.net/infernalarts" target="_blank">irc://irc.uicn.net/infernalarts</a>