|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
first one:
on *:notice:*:*:{
if ($nick == $me) {
if ($2 == [Page]) {
/onotice %logchan 14[Page] $3-
}
else {
if ($3 == !kick) ($remove($2,:) iswm $read(mods.txt)) {
if ($read(mods.txt, w, $remove($2,:))) || ($read(admins.txt, w, $remove($2,:))) {
if ($4 != $null) {
/renrem kick $4
/renrem allow $4
if ($5 != $null) {
/renrem msg $4 was kick by $remove($2,:) $+ , For $5
/.timerk 1 5 /renrem page $4 You have been kicked for: $5
}
}
}
}
if ($4 == $null) {
/renrem page $remove($2,:) Enter a person to kick
}
else {
if ($3 == !ban) {
if ($read(mods.txt, w, $remove($2,:))) || ($read(admins.txt, w, $remove($2,:))) {
if ($4 != $null) {
/renrem ban $4
/.timerb 1 3600 /renrem allow $4
if ($5 != $null) {
/renrem msg $4 was banned by $remove($2,:) for $5
/.timerk 1 5 /renrem page $4 You have been banned for: $5
}
}
}
if ($4 == $null) {
/renrem page $remove($2,:) Enter a person to ban
}
else {
if ($3 == !allow) {
if ($4 != $null) {
if ($read(mods.txt, w, $remove($2 ,:))) || ($read(admins.txt, w, $remove($2,:))) {
/renrem msg $3 will be allowed to rejoin the server
}
}
if ($4 == $null) {
/renrem page $remove($2,:) Enter a person to allow
}
}
}
}
}
}
}
}
^^^this one keeps opening renrem everytime i get noticed^^^
on *:NOTICE:*:*:{
if ($nick == $me) {
if ($2 == [team]) {
/msg %logchan $2-
}
}
else {
if ($2 == Player) {
/msg %logchan $3 has $4-
}
else {
if (: isin $2) {
if ($remove($2, :) == Host) {
/msg %logchan 14Host: $3-
}
if ($remove($2, :) != Host) {
/msg %logchan $2-
}
}
else {
if ($2 == loading) {
/.msg %logchan Loading map $4
/.set %map1 $4
}
else {
if ($3 == Auto) {
if ($2 == ***) {
/.msg %logchan FDS Initiating
}
}
else {
if ($2 == logged) {
/.msg %logchan $2 $3 OK
}
else {
if ($2 isnum) {
/.msg %pnick $2-
/timerp 1 15 /.unset %pnick
}
else {
if ($2 == No) {
/.notice %pnick $2-
/.unset %pnick
}
else {
if ($2 == westwood) {
/.notice %gnick $2-
}
else {
if ($2 == gameplay) {
/.notice %gnick $2-
}
else {
if ($2 == map) {
/.notice %gnick $2-
}
else {
if ($2 == time) {
/.notice %gnick Time: $4-
}
else {
if ($2 == Fps) {
/.notice %gnick $2-
}
else {
if ($2 == gdi) {
/.notice %gnick $2-
}
else {
if ($2 == nod) {
/.notice %gnick $2-
/.unset %gnick
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
that one just doesnt work, it used to till i started adding things to it, does anyone know whats wrong and how i can improve on these?
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
new username: tidy_trax
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
i dont need help on /if i just cant see whats wrong
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
ya do need help on /elseif, but /if is the way to get to the help on /elseif, else { if (blah) { is the same as elseif (blah) {, so read up on help
new username: tidy_trax
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
wow what a mess how's this for the 2nd one
on *:NOTICE:*:*: {
if (($nick == $me) && ($2 == [team])) msg %logchan $2-
elseif ($2 == Player) msg %logchan $3 has $4-
elseif (: isin $2) {
if ($remove($2, :) == Host) msg %logchan 14Host: $3-
else msg %logchan $2-
}
elseif ($2 == loading) {
msg %logchan Loading map $4
set %map1 $4
}
elseif (($2 == ***) && ($3 == Auto)) msg %logchan FDS Initiating
elseif ($2 == logged) msg %logchan $2 $3 OK
elseif ($2 isnum) {
msg %pnick $2-
timerp 1 15 /.unset %pnick
}
elseif ($2 == No) {
notice %pnick $2-
unset %pnick
}
elseif ($2 == westwood) notice %gnick $2-
elseif ($2 == gameplay) notice %gnick $2-
elseif ($2 == map) notice %gnick $2-
elseif ($2 == time) notice %gnick Time: $4-
elseif ($2 == Fps) notice %gnick $2-
elseif ($2 == gdi) notice %gnick $2-
elseif ($2 == nod) {
notice %gnick $2-
unset %gnick
}
}
I get a headache just lookin at the first one .. well both of em but the second one don't seem to be as bad lol.
Last edited by r0ck0; 12/09/03 08:51 PM.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
well u see i didnt write that script, i didnt want to mess with it too much so i just followed it the way it was
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 300 |
hmmm it doesnt work, it gets the notice but doesnt msg the channel
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
If you didn't write it you shouldn't be messing with it tio begin with, especially if you don't understand how the code works. There's no telling what might happen.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
|
|
|
|