mIRC Homepage
Posted By: HappyFappy listen for a tip via channel - 19/10/14 11:33 PM
This is the piece of the code that looks for the tip

Code:
    if (%target == $sockname) {
      if ($regex(%text,/^tipped [names here]/i)) {
        var -s %tipper $regml(1), %tip $regml(2)
        if (%tip !isnum 1-5) {
          sockwrite -nt $sockname PRIVMSG %nick :!tip %tipper %tip
          sockwrite -nt $sockname NOTICE %tipper :Sorry, but I only accept tips between $v2 CCN. (Silently Returned)
          return
        }


where [namehere] is has:
Code:
(wheeloffortune|(true|icon)slots|cutwire|BJ21|treasuredive|InstaScratch|HYPStorm|pulltrigger|cashier)


the "if target == socket" i believe is looking for the query from the tipbot on the channel, unfortunatly the tipbot DOES NOT do query's, and instead needs to look for the bold/underlined part of this from the specific user "Matylda"
----
<+Matylda> User tipped iconslots 1 Hyp! "/msg Matylda help" to claim. - Sponsored by {channel}
----

Anyway to make this work?

© mIRC Discussion Forums