Author Topic: need help with pm auto responce  (Read 6648 times)

taz001

  • Newbie
  • *
  • Posts: 6
need help with pm auto responce
« on: August 15, 2008, 01:15:46 PM »
i am trying to make a auto responder to when only incoming pm get a message i make not when i send a pm

DarkStar

  • Full Member
  • ***
  • Posts: 135
  • Scripts for Praise
    • CorpseCorp
Re: need help with pm auto responce
« Reply #1 on: August 16, 2008, 12:45:45 PM »
For this you would use the ONQUERY event.
This message brought to you by the Wonderful Wizard of Oz.

taz001

  • Newbie
  • *
  • Posts: 6
Re: need help with pm auto responce
« Reply #2 on: August 18, 2008, 12:18:15 PM »
can you give me an example i don't have onquery in my events

Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: need help with pm auto responce
« Reply #3 on: August 18, 2008, 12:23:16 PM »
that's cuz your looking at icechat 7 style events try icechat 5 style
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: need help with pm auto responce
« Reply #4 on: August 18, 2008, 12:24:37 PM »
You have to ADD it to your events.

Under the Script Events menu, choose IceChat 5 Style-> ON Query. It will add the default event, and then you just add the coding between the lines.

Plenty of examples in these forums to learn from.
The IceChat God

taz001

  • Newbie
  • *
  • Posts: 6
Re: need help with pm auto responce
« Reply #5 on: August 19, 2008, 01:41:05 PM »
here is what i made is this the correct way

Sub ONQUERY(Message,Nickname,Host,ServerNumber)
sendcommand /msg if you are looking for TCG versions of  TDGS and 5DS1 go here http://www.4shared.com/dir/1376064/fa82b3ca/sharing.html If you are looking for a duel letme know wat version TCG or OCG
End Sub


Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: need help with pm auto responce
« Reply #6 on: August 19, 2008, 02:00:19 PM »
no but this would
Code: [Select]
Sub ONQUERY(Message,Nickname,Host,ServerNumber)
SendCommand "/query " & Nickname & " if you are looking for TCG versions of  TDGS and 5DS1 go here http://www.4shared.com/dir/1376064/fa82b3ca/sharing.html If you are looking for a duel letme know wat version TCG or OCG",ServerNumber
End Sub

only downside is that it'll go off everytime any1 says something in teh query unless u specify what words will trigger it

looks like theres an onqueryopen event so u could get it to fire only when a query opens but it will fire on every query that opens
Code: [Select]
Sub ONQUERYOPEN(NickName,Host,ServerNumber)
SendCommand "/query " & Nickname & " if you are looking for TCG versions of  TDGS and 5DS1 go here http://www.4shared.com/dir/1376064/fa82b3ca/sharing.html If you are looking for a duel letme know wat version TCG or OCG",ServerNumber
End Sub
don't forget to save em as .ice file
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

taz001

  • Newbie
  • *
  • Posts: 6
Re: need help with pm auto responce
« Reply #7 on: August 19, 2008, 02:58:20 PM »
ok thanks and one last ? where it says servernumber at the end of line 2 is where do i find the server # or do i even edit that part

Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: need help with pm auto responce
« Reply #8 on: August 19, 2008, 04:12:01 PM »
no u just leave that part the way it is
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

taz001

  • Newbie
  • *
  • Posts: 6
Re: need help with pm auto responce
« Reply #9 on: August 21, 2008, 01:14:30 PM »
i never could get that one to work but i did get this one to work

on ^*:open:?:*:{
  msg $nick *Auto Reply* If you are looking for the TCG versions of TDGS and 5DS1 go here http://www.4shared.com/dir/1376064/fa82b3ca/sharing.html , If you are looking for a duel let me know what version TCG or OCG.
  echo -a $nick has messaged you -}


but when i get the echo to me i get the person has sent me a message and i get command unknownafter that in red

Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: need help with pm auto responce
« Reply #10 on: August 21, 2008, 02:11:35 PM »
Code: [Select]
on ^*:open:?:*:{
  /msg $nick *Auto Reply* If you are looking for the TCG versions of TDGS and 5DS1 go here http://www.4shared.com/dir/1376064/fa82b3ca/sharing.html , If you are looking for a duel let me know what version TCG or OCG.
  /echo -a $nick has messaged you -
}

and that code should work i tryed it out myself

I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: need help with pm auto responce
« Reply #11 on: August 21, 2008, 02:20:58 PM »
oh wait i pasted teh wrong code but this is the right one and it will work
Code: [Select]
on ^*:open:?:{
  /msg $nick *Auto Reply* If you are looking for the TCG versions of TDGS and 5DS1 go here http://www.4shared.com/dir/1376064/fa82b3ca/sharing.html , If you are looking for a duel let me know what version TCG or OCG.
  /echo -a $nick has messaged you -}
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

taz001

  • Newbie
  • *
  • Posts: 6
Re: need help with pm auto responce
« Reply #12 on: August 21, 2008, 05:36:11 PM »
ok thanks