mIRC Home    About    Download    Register    News    Help

Topic Options
#260590 - 19/05/17 04:34 PM Get a word with gettok
nexux Offline
Ameglian cow

Registered: 20/11/14
Posts: 23
Get a word and send to notice or write in the room or modify it later

Code:
on 1:text:*:#channel: {
if ( solicitado iswm $strip($1-) ) { /notice $gettok($1-,3,32)
}


But this code I've put is just an example of what I want to do, but it does not work for me

But I want to get any phrase that is written and then I can do whatever I want with that sentence, either send me a notice to me, or be able to change and send it to the room.

Top
#260591 - 19/05/17 05:46 PM Re: Get a word with gettok [Re: nexux]
nexux Offline
Ameglian cow

Registered: 20/11/14
Posts: 23
I'm trying this way, but


Code:
on *:text:!petition *:#:{
  ;save word
  set %word. $+ $nick $2
  notice $me $nick $qt($2) was saved!
}


But, my code is work!

But he does not do what he should. I explain..

Quote:
(New Petition) nick has requested: will smith miami


And what I need is:

Code:
/notice $me $nick


Top