I've been trying to get my script to log nick changes and show then in a popup, all the nicks that have been changed but I havent been able to get how to do this, I used gettok and variable to store them but the variables has to be typed it, I know it is possible but i can seem to figure out how! help....
The following will create a new window and echo every nick change in it that occurs in the channels that you are in at the time of the nick change.
on *:NICK:{ if ($window(@NickChange) == $null) { window -fk0 @NickChange 0 0 300 100 }
echo @NickChange Nick Change; [ $+ $nick to $newnick $+ ] | halt | haltdef }
}
Do this..
on *:nick:write nicks.txt $nick changed nicks to $newnick
Then.. make a popup that does something like this..
.Nickchanges:say $read(nicks.txt,$$?"=Enter a line")
Something along the lines of that. Everytime someone changes a nick, it's write a new line in nicks.txt like..
"Frog changed nicks to Magus"
"Magus changed nicks to Frog"
And so on.
Seems I was a tad too slow :x anyway, for storing, either way works. Just.. one's in a file, another's in a @Window (easier access)
I think $submenu is what you're describing. The ability to make your popups, themselves, dynamically change. blue-elf's $submenu tutorial can be found at
Prees Alt+r and paste the code below in you remote:
on *:NICK:{ set %Nstore %Nstore $+ $chr(44) $+ $nick $newnick }
alias Nstore {
if ($1 == begin) return -
if ($1 == end) return -
if ($gettok(%Nstore,$1,44)) return $ifmatch :/nick $ifmatch
}
menu nicklist {
&Nick store
.$submenu($Nstore($1))
}
thanx all!!
my main idea once again was to log changes and show em in the channel popup.
what i do rite now is store them manually in variables and use $gettok(%nicks,1,32) to show then in the popup. I want them to automatically get stored in a vairable and as many nicks as i change.