Hello,
Well, I'm Using IRC for about 1/2 year now, And I decided to make some addons, and maybe a whole new script with these addons.
I've been scripting a lot lately and some of my scripts even work.
But Still I meet some porblems, I got multiple little scripts here that I got problems With And I Need some help to solve them, and I got some Non scripting problems, With adding sub menus to the script and stuff, But hopefully this will all clear up in the coming questions, There will also be some images inserted to make some things clear and stuff
Well here we go:
First up:
I've made a little script what should say "I rule XXX peons in XXX channels!" When u write //say $power, And it doesn't work, It just replys a number like 177
u can see a little screenie here what happens
http://members.lycos.nl/bibadi/power.jpgAs you see when i say //say $power you see a number.
But I want the line I rule %j damned crypts (of $chan(0) $+ ) and possess %k cursed souls (of %l $+ ).
This is my code
alias power {
var %i = 1,%j,%k,%l
while ($chan(%i)) {
if ($me isop $chan(%i)) {
set %k $calc(%k + $nick($chan(%i),0))
inc %j
}
set %l $calc(%l + $nick($chan(%i),0))
inc %i
}
return I rule %j damned crypts (of $chan(0) $+ ) and possess %k cursed souls (of %l $+ ).
}
Then I got another problem;
I made another little script;
on *:ACTION:$(* $+ $me $+ *):*: {if (!%action. [ $+ [ $address($nick,2) ] ]) { /describe $target $replace($1-,$me,$nick)}
This should, when some1 slaps me, Slap him back with excactly the same line But only his name instead of mine, And sometimes it works and sometimes it doesn't
(practically it must say the same thing as another does when he write a line starting with /me and where my nick is placed in , But he doesn't do that always.
Then I made some slapper script, But i practically don't know how to make a sub menu, (when i click right mouse in a chan) Where i can see it and use them;x
Also for this i have a screenie
Which is located here;
http://members.lycos.nl/bibadi/slaps.gifAs you see I already got some slaps there but they are from the script I use now,
Now I want A New submenu, under the submenu 'slaps' called 'slaps2' (smart heh) Where i can put my own slaps. And offcourse I want it to be there when I put a file In my IRC map;x (so i will not change my remote) (it's an addon).
And I made a script when someone bans me, I should remove the ban, Deop the 1 who did it, and notice myself that I was banned
on !@*:ban:#:{
if ($banmask iswm $address($me,5)) {
mode $chan -bo $banmask $nick
echo -a [ ban ] $nick banned you ( $+ $banmask $+ ) on $chan
}
But I woudn't come here if it didn't work:D
Well, I think That's about it for now,
I hope that someone can solve all my problems, Or atleast 1:)
( By The way: Mind my english;x I'm dutch;x)