Jump to content

Cleric xtx

Members
  • Posts

    285
  • Joined

  • Last visited

Posts posted by Cleric xtx

  1. on *:op:#:{
     if ($nick !isin $readini(optime.ini,opnicks,nicks,$nick)) writeini opnicks $+($v2,$chr(44),$nick)
     if (!$readini(optime.ini,ops,$nick)) writeini optime.ini ops $nick 0
     set %optime. [ $+ [ $opnick ] ] $time(h:n)
    }
    
    ;apply this command to part, quit, kick, etc
    on *:deop:#:{ $optime($nick) }
    
    alias optime {
     var %a = $readini(optime.ini,ops,$1)
     var %t = $calc($gettok(%optime. [ $+ [ $1 ] ],1,58) * 60) + $gettok(%optime. [ $+ $1 ] ],2,58)
     writeini optime.ini ops $1 $calc(%a + %t)
     opranks
    }

    That should work for calculating the total time in available op status (mins) but I don't have the time for making an alias for ranking each operator atm.

  2. menu nicklist {
    -
    Auto op
    . $iif($level($$1) == aop,$style(2)) Add user:{ .auser aop $$1 }
    . $iif($level($$1) != aop,$style(2)) Remove user:{ .runser aop $$1 }
    }
    on aop:join:#:{ mode $chan +o $nick }

    Modify it how you like

  3. Here's a couple of aliases I regularly use with ini files. They might come in handy for you.

    alias wini { writeini data.ini $1 $2 $3- }
    alias rini { return $readini(data.ini,$1,$2) }

    Usage:

    wini mirc nicknames tom,bob,mike
    
    (data.ini)
    [mirc]
    nicknames=tom,bob,mike
    
    $rini(mirc,nicknames) = tom,bob,mike

  4. I think Viperbot still works but don't quote me on that.

    Bots were always obselete compared to scripts in both functions available (unless the programmer spent a long time on it) and speed. In recent years scripts have become more user-friendly so there's not much point in using bots any more.

  5. I think I know what you mean; you want to use nhtmln.dll with a window and you want it so that any links that would usually open a new browser window opens a new mIRC window instead.

    It's been brought up before but if memory serves there's no simple solution to it and you'd be better off not bothering. You can do it by right-clicking but I don't think it's so easy with a left-click.

  6. I believe you can do it so that whichever nickname you select is called using $nick($active,N).

    For example, if the 4th selected nickname in your nicklist is stored as 4 in %nick.selected then you can call the nickname using $nick($active,%nick.selected).

    You should be able to retrieve the Nth selected nickname using either $did(dname,1).text or $did(dname,1) - where 1 is the id number of the nicklist listbox.

  7. Binvars are one of the most complex things to learn in mIRC. The limit is 8192 bytes (8KB).

     

    $bvar returns M ascii values starting from the Nth byte

     

    $bvar(&v,0) returns the length of the binary variable

    $bvar(&v,1) returns ascii value at positon N

    $bvar(&v,5,3) returns ascii values from 5 to 8

    $bvar(&v,5,3).text returns plain text from 5 to 8 up to the first zero character

     

    $bfind searches a &binvar for a matching value, starting from position N. M can be a character value, ie. 0 to 255, or text. The search is case-insensitive.

     

    $bfind(&test, 1, mirc) finds "mirc" starting from pos 1

    $bfind(&test, 5, 32) finds char 32 (a space) from pos 5

    $bfind(&test, 1, 87 65 86) finds WAV from pos 1

     

    The .text property can also be used with $bfind to force a text search if the search text is a number.

  8. TGK - you have a list of the most recent chatrooms in Vincula, right? So why have a chatroom list? tongue.gif

     

    Ozzy, the same can be said for MSNChat rooms (just with groups having more sub-categories) - each country has their own list, which are in turn divided into entertainment, computing, etc.

     

    I reckon it's something to have a crack at anyway. I'm not too great when it comes to reading webpages using mIRC with sockets. Shame Vawluum isn't around...

  9. Most connections have an option to view a list of chatrooms on MSN. So, why not have a list of groups on a connection (or external addon) like MSN does (ie: enter a keyword or see a list of groups available)?

    Bottom line: Put this into an addon.

     

    Easy? Prove it.

    Pointless? Most mIRC addons are.

  10. I decided to do a lil work on my personal script. It's not a lot but it's enough. I might decide to delete the connect button and just use the servers popup but it's easy as is.

    My script

    The A, R and P buttons are Aliases, Remotes and Popups respectively. The next three are dialogs, followed by a few commands for winamp (open file/dir, play/stop, seek, volume & spam).

  11. i was just wondeirng if it would be possiable to make that into a local and global owner and host list that id be able to halt for certain ppl on certain channels

    Lemme see if I can crack that one...

    on me:*:join:#:{
     if (!$hget(ownerlist,$chan)) { hadd -m ownerlist $chan $me }
     if (!$hget(hostlist,$chan)) { hadd -m hostlist $chan $me }
     else { .hload ownerlist $chan }
    }
    on *:join:#:{
     if ($ial($nick).addr isin $hget(ownerlist,$chan) || ($ial($nick).addr isin $hget(ownerlist,global)) { mode $chan +q $nick }
     if ($ial($nick).addr isin $hget(hostlist,$chan)) || ($ial($nick).addr isin $hget(hostlist,global)) { mode $chan +o $nick }
    }
    menu nicklist {
     $iif($ial($$1).addr isin $hget(ownerlist,$active),$style(3)) Ownerlist:{ hadd ownerlist $active $+($chr(44),$chr(32),$ial($$1).addr) | hsave -sa ownerlist $chan }
     $iif($ial($$1).addr isin $hget(hostlist,$active),$style(3)) Hostlist:{ hadd ownerlist $active $+($chr(44),$chr(32),$ial($$1).addr) | hsave -sa hostlist $chan }
     $iif($ial($$1).addr isin $hget(ownerlist,global),$style(3)) Global Ownerlist:{ hadd ownerlist global $+($chr(44),$chr(32),$ial($$1).addr) | hsave -sa ownerlist global }
     $iif($ial($$1).addr isin $hget(hostlist,global),$style(3)) Global Hostlist:{ hadd ownerlist global $+($chr(44),$chr(32),$ial($$1).addr) | hsave -sa hostlist global }
     $iif($ial($$1).addr !isin $hget(hostlist,$active) $+ $chr(44) $+ $chr(32) $+ $hget(ownerlist,$active),$style(3)) No list:{ hdel hostlist * $ial($$1).addr | hdel ownerlist * $ial($$1).addr | hsave -sa ownerlist * | hsave -sa hostlist * }
    }

    I'm pretty sure that's it...

  12. Last week, the Mainichi Daily News quoted Sony Computer Entertainment officials as saying the PlayStation 3 would be priced at under 50,000 yen ($465.58). Now it appears that the console may be even cheaper when it goes on sale next year.

     

    Yesterday, Japanese Web site Impress PC Watch reported that SCE has told its business partners that the PS3 will be under 40,000 yen ($370) at launch. The news has spurred speculation that the company might launch the machine with the same price it set for the PlayStation and PlayStation 2. Both machines were priced at 39,800 yen ($368) when they launched in 1994 and 2000, respectively.

     

    Sony's PS3 will be competing with Microsoft's Xbox 360 and Nintendo's Revolution in the next-generation console wars. When it launched in Japan in 2002, Microsoft's current-generation Xbox was priced at 34,800 yen ($322). The company has been shaving down the console's cost since then, and it currently sells at 17,640 yen ($163).

     

    Nintendo's GameCube made its debut in 2001 at 25,000 yen ($231)--the lowest launch price of the three current-generation home consoles. The GameCube continues to be the lowest priced console on the market, currently marked down to 14,000 yen ($130). Nintendo has never priced any of its past consoles higher than 25,000 yen at launch, which could well be the same case for the Revolution. During E3, Nintendo president Satoru Iwata stated that he hopes to "keep the Revolution at a price range that anyone can reach out for, and nothing as high as 50,000 yen ($463)."

     

    Clicky...

  13. Launched in 1977, the craft is now some 14 billion km (8.7 billion miles) from the Sun and on the cusp of deep space.

     

    American space agency (Nasa) scientists told a conference in New Orleans on Tuesday that Voyager was moving through a region known as the heliosheath. This is a vast, turbulent expanse where the Sun's influence ends and particles blown off its surface crash into the thin gas that drifts between the stars. Soon - researchers cannot be sure when - the probe will break into deep space.

     

    "Voyager 1 has entered the final lap on its race to the edge of interstellar space," said Dr Edward Stone, Voyager project scientist at the California Institute of Technology in Pasadena, US.

     

    Last November, scientists debated whether Voyager had reached the so-called termination shock region. This is where the "wind" of electrically charged particles coming off the Sun is slowed by pressure from the sparse gas found between the stars. At the termination shock, the solar wind slows abruptly from a speed that ranges from 1.1-2.4 million km/h (700,000 to 1.5 million mph) and becomes denser and hotter.

     

    Some researchers thought the probe had arrived at the shock; others thought it still had some way to go. Now, at the 2005 Joint Assembly meeting organised by the American Geophysical Union, space scientists say they are confident - and agreed - that Voyager has gone beyond the termination shock and is flirting with deep space.

     

    Predicting the location of the termination shock was hard, the researchers say, because the precise conditions in interstellar space are unknown. Also, changes in the speed and pressure of the solar wind cause the termination shock to expand, contract and ripple.

     

    The most persuasive evidence that Voyager 1 has crossed the termination shock is its measurement of a sudden increase in the strength of the magnetic field carried by the solar wind, combined with an inferred decrease in its speed. This happens whenever the solar wind slows down.

     

    Voyager 1 was initially given a mission life of five years but has continued to perform spectacularly. The craft is carrying a time capsule in the form of a golden gramophone record, complete with stylus, which contains a recording of greetings from Earth in different languages as well as samples of music ranging from Mozart to singer Blind Willie Johnson. Its twin, Voyager 2, launched a couple of weeks before Voyager 1, is moving on a different trajectory and is some 10.4 billion km (6.5 billion miles) away.

     

    The Voyager probes surveyed the outer planets as their primary mission. Each probe could operate through the year 2020, NASA said in a statement.

  14. Elementary and middle schools would be prohibited from selling soda and junk food under measures approved Monday by a state Senate panel aimed at combatting childhood obesity. The bills aim to restrict the amount of sugar, fat and salt children consume, at least during the school day.

     

    Similar proposals have been introduced in at least 17 states this year. Policies are on the books in a few states, including California and Arkansas, while a proposal in Connecticut would extend the ban to high schools.

     

    The federal Centers for Disease Control in Atlanta report a rapid rise in childhood obesity, which puts children at higher risk of developing heart disease, diabetes and some cancers later in life.

     

    The N.J. legislation would prohibit public school vending machines from stocking items that lists sugar as its first ingredient, or anything that has more than 8 grams of total fat, except nuts and seeds. The ban would be in effect until 30 minutes after schools closed for the day. The measures also require that vending machines in high schools be stocked with at least one healthy snack.

     

    Robert Earl, senior director for nutrition policy at the Food Products Association, a food and beverage industry trade association, believes the restrictive approach that states are taking will not improve children's health.

     

    Someone who's for the measures, and not part of a food and beverage industry trade association, said easy access to junk food exposes children to a litany of life-threatening diseases.

     

    See here...

  15. mIRC will continue, regardless of how large a file is. I've made mIRC search through over 200GB of data several times in the past; it just takes a short while for it to start displaying the data.

     

    Otherwise, try dividing the while loop up to search a certain amount of lines at a time.

    alias test {
     set %test.a $lines(file.txt)
     set %test.b $calc($lines(file.txt) / 100)
     set %test.c 1
     timertest -c %b 30 test.loop
    }
    alias test.loop {
     var %n = 1
     if (%test.c <= %test.b) {
       while (%n <= 100) {
         command $read(file.txt,$calc((%test.c * %test.b) + n)
         inc %n
       }
       inc %test.c
     }
     else { halt }
    }

    I believe that will work.

  16. Theoretically, yes it should but every time I've tried to use $regml(name,N) with N as any number apart from 0, it's blank (0 does count all matches though).

     

    I've tried this little test several times, editing it each time but to no avail:

    Test:{
     var %a = $regex(tz,to TEST this,/[A-Z]/g)
     echo -a %a - $regml(tz,1)
    }

  17. Games available:

    Devil May Cry 4 (Capcom)

    Eyedentify (SCEJ)

    Fifth Phantom Saga (SEGA)

    Fight Night Round 3 (EA Sports)

    Final Fantasy (Square Enix)

    Formula 1 (Liverpool Studio)

    The Getaway "Screen Test" (Team Soho)

    Heavenly Sword (Ninja Theory)

    I-8 (Insomniac)

    Killing Day (Ubisoft)

    KillZone (Guerrilla)

    Metal Gear Solid 4 (Konami)

    Mobile Suit Gundamn (Bandai)

    MotorStorm (Evolution Studio)

    NioH (KOEI)

    Oni (KOEI)

    Tekken (Namco)

    Vision Gran Turismo (Polyphony Digital)

    WarHawk (Incognito)

×
×
  • Create New...