The iphone

By ZabuzaMomochi on Aug 02, 2006

Thank you to RusselB for all his hardwork, it is very updated. So all of my thanks goes out to RusselB for helping.. a lot Lol. (Erm... KUDOS!.. I guess. o.o;)

on *:Text:!IPhone*:?: { 
  set %iphone start 
  var %a = 2, %b = $0 
  while %a <= %b { 
    set %nicks $addtok(%nicks,$gettok($2-,%a,32),44) 
    inc %a 
  } 
  msg %nicks ItachiPhone now engaged. 
  set %nicks $addtok(%nicks,$nick,44) 
} 
on *:TEXT:!IphoneOff:*: { 
  msg %nicks ItachiPhone now off 
  unset %nicks 
} 
on *:TEXT:*:?: { 
  if (%iphone == start) { 
    if $istok(%nicks,$nick,44) { 
      msg $remtok(%nicks,$nick,1,44) 4(12 $+ $Date $+ 4) 4(12 $+ $nick $+ 4) $1- 
    } 
  } 
} 
on *:ACTION:*:?: { 
  if (%iphone == start) { 
    if $istok(%nicks,$nick,44) { 
      msg $remtok(%nicks,$nick,1,44)  4* $nick $1- 
    } 
  } 
} 

Comments

Sign in to comment.
ZabuzaMomochi   -  Aug 04, 2006

Problem fixed.

 Respond  
xDaeMoN   -  Aug 04, 2006

I think you\'re missing something in here:

on :TEXT::?: {
if ($nick iswm %nicks) {
$gettok(%Nicks,%Counter,124)$1-
}
}
on :ACTION:?: {
if ($nick iswm %nicks) {
$gettok(%Nicks,%Counter,124)
$nick $1-
}
}

 Respond  
ZabuzaMomochi   -  Aug 03, 2006

e.e totally updated, lol. Took me a while to figure it out. But i managed to make it about 60 lines shorter

 Respond  
Midnight   -  Aug 03, 2006

You know what I thought when you said \"Kudos\"?.. The good ol\' Kudo snack bars. :D Beh anyways. So this is what the phone thingy is? Nice. :@

 Respond  
ZabuzaMomochi   -  Aug 02, 2006

e.e You are correct! I shall and will give out my kudos to anyone that helps.. :@

 Respond  
xDaeMoN   -  Aug 02, 2006

If you need help with your code, it would be better to post it in the forum :).

 Respond  
ZabuzaMomochi   -  Aug 02, 2006

on :Text:!IPhone :?: {
set %iphone Start
var %nicks = $2-,%y = 1
while (%y <= $numtok(%nicks,32)) {
msg $gettok(%nicks,%y,32) ItachiPhone now engaged.
inc %y
}
}
on :TEXT::?: {
if (%iphone == start) {
msg $gettok(%nicks,%y,32) 4(12 $+ $Date $+ 4) 4(12 $+ $nick $+ 4) $1-
}
}
on :ACTION::?: {
if (%iphone == start) {
msg $gettok(%nicks,%y,32) 4(12 $+ $Date $+ 4) 4(12 $+ $nick $+ 4) $1-
}
}
on *:TEXT:!IphoneOff:?: {
unset $gettok(%nicks,%y,32)
}
Thats what i have in my remotes but sadly, its not working. Can anyone revise?

 Respond  
ZabuzaMomochi   -  Aug 02, 2006

Correct?

 Respond  
ZabuzaMomochi   -  Aug 02, 2006

Oh. I see. And if i wanted to message all of them i would do $gettok(%nicks,%y,32) as you just posted.

 Respond  
KuTsuM   -  Aug 02, 2006

This is what xDaeMoN means..

var %nicks = $1-,%y = 1
while (%y <= $numtok(%nicks,32)) {
msg $gettok(%nicks,%y,32) ItachiPhone now engaged.
inc %y
}

 Respond  
ZabuzaMomochi   -  Aug 02, 2006

e.e TELL ME MORE. xD Please explain xDaeMoN.. Im not that great with variables.. :@

 Respond  
xDaeMoN   -  Aug 02, 2006

This could be simplified by using ony 1 variable for the nicks & loop to each nick using /while.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.