Problem with service script!

Paste Your code(s) here, and state your problem.

Re: Problem with service script!

Postby zNigel- » Sun May 03, 2009 7:35 pm

Try to add ur +x host in it then o0
zNigel-
 

Re: Problem with service script!

Postby Jerzy » Tue May 05, 2009 1:34 pm

still someting wrong.
Jerzy
 

Re: Problem with service script!

Postby Futz0r » Tue May 05, 2009 2:00 pm

Jerzy wrote:so now my scripts looks like:
Code: Select all
on *:TEXT:*:#Jerzy:{
  if ($readini(admin.ini,admin,$address($nick,2)) == admin) {
    if ($1 == .unban) { mode $chan -b $iif(*!*@* iswm $2,$2,$address($2,1)) }
    elseif ($1 == .kick) { Kick $chan $2- }
    elseif ($1 == .ban) { mode $chan +b $address($2,1) }
    elseif ($1 == .kickban) { mode $chan +b $address($2,1) | kick $chan $2- }
    elseif ($1 == .server-uptime) { msg $chan Uptime: $uptime(server,1) }
    elseif ($1 == .join) { join $2 | msg $chan 0,14[0J4]0 Joiner nu kanal: $2 4[0J4] }
    elseif ($1 == .part) { part $2 }
    elseif ($1 == .load) { load -rs $2 | msg $chan 0,14[0J4] 0Scriptet4 $2 0er succesfuldt loaded! 4[0J4] }
    elseif ($1 == .unload) { unload -rs $2 | msg $chan 0,14[0J4] 0Scriptet4 $2 0er succesfuldt unloaded! 4[0J4] }
    elseif ($1 == .say) { msg $chan $2- }
    elseif ($1 == .botnick) { nick $2- | msg $chan $2 har nu skiftet nick til $2- }
    elseif ($1 == .voice) { mode $chan +v $2 | msg $chan 0,14[0J4]0 $2 er nu blevet voice! (+v) 4[0J4] }
    elseif ($1 == .devoice) { mode $chan -v $2 | msg $chan 0,14[0J4]0 $2 er nu blevet devoice! (-v) 4[0J4] }
    elseif ($1 == .op) { mode $chan +o $2 | msg $chan 0,14[0J4]0 $2 er nu blevet op! (+o) 4[0J4] }
    elseif ($1 == .deop) { mode $chan -o $2 | msg $chan 0,14[0J4]0 $2 er nu blevet deop! (-o) 4[0J4] }
    elseif ($1 == .invite) { .invite $2 $3 }
  }
}

and admin.ini look like:
Code: Select all
[admin]
Jerzy@0x4dd431d3.adsl.cybercity.dk=admin




its not
Code: Select all
[admin]
Jerzy@0x4dd431d3.adsl.cybercity.dk=admin


but its
Code: Select all
[admin]
*!*Jerzy@0x4dd431d3.adsl.cybercity.dk=admin
Futz0r
 

Re: Problem with service script!

Postby Jerzy » Tue May 12, 2009 5:21 pm

i just make the thing:
if ($me isop)
osv (:
Jerzy
 

Re: Problem with service script!

Postby Blady » Tue May 12, 2009 6:05 pm

You are checking userrights with $address($nick,2) which mean: *!*@host

But, your .ini file looks like :
Code: Select all
[admin]
*!*Jerzy@0x4dd431d3.adsl.cybercity.dk=admin


as you can see, the host you are using is in the format : $address($nick,1)

2 possibilities :
1) Change in your script $address($nick,2) by $address($nick,1)
2) change the host you added in your ini with : *!*@0x4dd431d3.adsl.cybercity.dk
Blady
 

Re: Problem with service script!

Postby Jerzy » Tue May 19, 2009 11:07 am

i try that (:
Jerzy
 

Re: Problem with service script!

Postby Blady » Tue Aug 18, 2009 1:57 pm

so ?
Blady
 

Re: Problem with service script!

Postby StareX » Sun Oct 18, 2009 5:02 pm

look:

Code: Select all
on *:TEXT:*:#Jerzy:{
   if ($readini(userlist.ini,Admins,$address($nick,1)) == ADMIN) {
    if ($1 == .unban) { mode $chan -b $iif(*!*@* iswm $2,$2,$address($2,1)) }
    elseif ($1 == .kick) { Kick $chan $2- }
    elseif ($1 == .ban) { mode $chan +b $address($2,1) }
    elseif ($1 == .kickban) { mode $chan +b $address($2,1) | kick $chan $2- }
    elseif ($1 == .server-uptime) { msg $chan Uptime: $uptime(server,1) }
    elseif ($1 == .join) { join $2 | msg $chan 0,14[0J4]0 Joiner nu kanal: $2 4[0J4] }
    elseif ($1 == .part) { part $2 }
    elseif ($1 == .load) { load -rs $2 | msg $chan 0,14[0J4] 0Scriptet4 $2 0er succesfuldt loaded! 4[0J4] }
    elseif ($1 == .unload) { unload -rs $2 | msg $chan 0,14[0J4] 0Scriptet4 $2 0er succesfuldt unloaded! 4[0J4] }
    elseif ($1 == .say) { msg $chan $2- }
    elseif ($1 == .botnick) { nick $2- | msg $chan $2 har nu skiftet nick til $2- }
    elseif ($1 == .voice) { mode $chan +v $2 | msg $chan 0,14[0J4]0 $2 er nu blevet voice! (+v) 4[0J4] }
    elseif ($1 == .devoice) { mode $chan -v $2 | msg $chan 0,14[0J4]0 $2 er nu blevet devoice! (-v) 4[0J4] }
    elseif ($1 == .op) { mode $chan +o $2 | msg $chan 0,14[0J4]0 $2 er nu blevet op! (+o) 4[0J4] }
    elseif ($1 == .deop) { mode $chan -o $2 | msg $chan 0,14[0J4]0 $2 er nu blevet deop! (-o) 4[0J4] }
    elseif ($1 == .invite) { .invite $2 $3 }
  }
}


Create a file called userlist.ini

Edit the txt file.

Type that on the txt file:

[Admins]
*!*Jerzy@0x4dd431d3.adsl.cybercity.dk=ADMIN

And then check it.

It should work... if not, its bug in your IRC

I tested it and its work fine to me :)
StareX
 

Re: Problem with service script!

Postby Patty » Tue Nov 24, 2009 5:44 pm

$address($nick,2) == *!*@0x4dd431d3.adsl.cybercity.dk

You are at the moment trying to do:
*!*Jerzy@0x4dd431d3.adsl.cybercity.dk = *!*@0x4dd431d3.adsl.cybercity.dk

Try to debug your 'if's' a little more..
Patty
 

Previous

Return to Mirc Scripting Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron