mIRC Homepage
Posted By: Infernal !help - 17/05/04 04:01 PM
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
Posted By: xxxYODAxxx Re: !help - 17/05/04 04:09 PM
/help on text

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

-that should be what ya need -cheers

Posted By: Infernal Re: !help - 17/05/04 04:13 PM
nope, it won't work
Posted By: xxxYODAxxx Re: !help - 17/05/04 04:18 PM
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
Posted By: Infernal Re: !help - 17/05/04 04:29 PM
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
Posted By: xxxYODAxxx Re: !help - 17/05/04 04:38 PM
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

Posted By: Infernal Re: !help - 17/05/04 04:52 PM
k thanks, i only need know how to change lines, like:
hello,
nice
to
see
you
Posted By: FiberOPtics Re: !help - 17/05/04 05:59 PM
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
Posted By: Infernal Re: !help - 17/05/04 06:26 PM
nope, that won't work for me, i need to know how to send multiple lines of text
Posted By: CtrlAltDel Re: !help - 17/05/04 07:05 PM
/help /play
Posted By: Infernal Re: !help - 17/05/04 07:13 PM
and what am i going to do with that
Posted By: FiberOPtics Re: !help - 17/05/04 07:37 PM
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
Posted By: Infernal Re: !help - 17/05/04 08:03 PM
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.
Posted By: FiberOPtics Re: !help - 17/05/04 08:16 PM
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

Posted By: Wolfie Re: !help - 17/05/04 08:23 PM
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
Posted By: FiberOPtics Re: !help - 17/05/04 08:34 PM
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
Posted By: Infernal Re: !help - 17/05/04 08:49 PM
ja, da werkt
thx mate
Posted By: Infernal Re: !help - 19/05/04 06:20 PM
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
© mIRC Discussion Forums