Jump to content

Shannons69

Inactive Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Shannons69

  1. 😮 So YOU understand it? *-) Hmmmmm, I am completely lost!
  2. Thanks err0r! So far, so good! You made me a very happy camper!
  3. I completely agree that there should be no difference but it is not what I have found. My trouble is that I am not a coder. I take stuff that has been made for me and move from one script to another and have been doing that for years. I run a copy of Fracture on ECN and my google snippit works there, in it. It is the same snippit I have used for years in several different scripts on SPCN. I had converted Justice League to connect to EVO from SPCN. I have already successfully been able to use the first edition of Winz's weatheraddon on EVO in the script but when I try to update to current version that saves the location, it stops working. I have tried to get the google snippit to work in the Justice League conversion and it will not work. I thought, it has to be my fault and I downloaded the new Moschino script that you (err0r) thankfully provided for EVO and it will not work in it either. I had asked Red to make me a copy of Fracture for EVO and because of his time constraints, he offered to help me convert it from ECN to EVO. (Only copy of Fracture I have.) I explained of my troubles and he used teamveiwer to test it in the Moschino script (I had just downloaded this past week.) As I know it is clean, he was unable to get it to work as well. He put my snippit into his copy of Fracture already working on EVO and it works. I am sure that if I get my copy of Fracture converted, it should work. My main concern though is that ANY and all scripts should work basically the same on EVO (If new and designed for EVO from the get go.) but am finding that not to be the case. For me and I am sure others like me, this can be frustrating when it really shouldn't be. I hope I have explained myself properly but if not, please let me know and I will clarify anything if need be. Below is a copy of the snippit in question at the moment - Google.mrc - This is the exact same thing I am running on two different servers in two different types of scripts and it works. As always, thank you for anyone's time and patience, that offers assistance to this, it actually does mean a lot to me... ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ;.oO{ Google v1.9 by HM2K }Oo. - www.hm2k.org ;Installation: Make sure google.mrc is in your $mircdir then type: /load -rs google.mrc ;Usage: /g or /google <string> or /gs or /googlesay <string> (There is also a popup menu) ;Google v1.9 - Changed the error message to be more in line with what google does now ;Google v1.8 - Revamped some of the code a little ;Google v1.7 - Resorted back to the simple method, fixed a few relaying bugs ;Google v1.6 - Changed the lookup method to a more complicated one (it means the script is more flexable), and added total results to the output, debug mode was added too. ;Google v1.5 - Added simple flood protection, and urlencoding. ;Google v1.4 - Completly changed most of the way the script works including the output. ;Google v1.3 - Original public release. ;Settings alias -l google.ver return Google v1.9 alias -l google.server return www.google.com alias -l google.prefix return * Google: ;Code alias letme say http://letmegooglethatforyou.com/?q= $+ $urlencode($1-) alias -l google.out return $google.relay($1-) $google.prefix alias -l google.relay { var %out echo $color(info2) -gat if ($modespl) { if ($1) { if (($ifmatch != Status Window) && ($ifmatch != -)) { if ($left($1,1) != $chr(35)) { var %out msg $1 } elseif ($chan($1)) { var %out msg $1 } } } elseif (($nick) && ($nick != $me)) var %out notice $nick } return %out } alias g google $1- alias gs googlesay $1- alias google { if (!$1) { $google.out Usage: google (-<server>) <text> | halt } if ($left($1,1) == -) { var %server = $right($1,-1) } google.open $iif(%server,%server,$google.server) $google.encode($iif(%server,$2-,$1-)) } alias googlesay { if (!$1) { $google.out Usage: google (-<server>) <text> | halt } if ($left($1,1) == -) { var %server = $right($1,-1) } if ($left($1,1) == @) { var %nick = $right($1,-1) } google.open $iif(%server,%server,$google.server) $google.encode($iif(%server,$2-,$1-)) $active %nick } #!google on on *:text:*:*: { if ($strip($1) == `google) { if (!$2) { $google.out($iif($chan,$chan,$nick)) Usage: google <text> | return } if ($1 == !googleuk) { var %server = www.google.co.uk } if ($1 == !google2) { var %server = www2.google.com } if ($1 == !google3) { var %server = www3.google.com } google.open $iif(%server,%server,$google.server) $google.encode($2-) $iif($chan,$chan,$nick) $nick $repeatcheck(`google) } } #!google end alias -l repeatcheck { ;v0.12 by HM2K - will disable the appropriate group if its flooded var %rep.lim = 3 var %rep.t.lim = 25 var %rep.t.expr = 10 if (%rep.lockusr- [ $+ [ $nick ] ]) { echo $ifmatch | haltdef } inc $+(-u,%rep.t.lim,$chr(32),%,rep-,$nick,.,$len($strip($1-)),.,$hash($strip($1-),32)) 1 if (%rep- [ $+ [ $nick ] $+ . $+ [ $len($strip($1-)) ] $+ . $+ [ $hash($strip($1-),32) ] ] == %rep.lim) { ;ignore -u60 $address($nick,5) if ($group($chr(35) $+ $1) == on) { .disable $chr(35) $+ $1 | .echo -gat $1 is $group($chr(35) $+ $1) due to a repeat flood from $iif($chan,$nick in $chan,$nick) $+ , to re-enable: /enable $chr(35) $+ $1 } .set $+(-u,%rep.t.expr,$chr(32),%,rep.lockusr-,$nick) 1 } } alias -l google.encode { return $urlencode($strip($1-)) } alias -l google.open { ;Usage: <server[:port]> <text> [nick/chan] if (!$1) { $google.out Usage: google.open <server[:port]> <text> [nick/chan] | halt } if ($sock($google.id($2))) { sockclose $google.id($2) } if ($1) { sockopen $google.id($2) $iif(: isin $1,$replace($1,:,$chr(32)),$1 80) } else { $google.out Usage: google.open <server[:port]> <text> [nick/chan] | halt } set % $+ $google.id($2) $1 $strip($2) $3 } alias -l google.id { return google. $+ $md5($1) } on *:sockopen:google.*: { if ($sockerr > 0) { return } sockwrite -tn $sockname HEAD /search?btnI=&q= $+ $gettok($(% $+ $sockname,2),2,32) HTTP/1.0 sockwrite -tn $sockname $crlf } on *:sockread:google.*: { if ($sockerr > 0) { return } :i if ($sock($sockname) != $null) { sockread -f %y } if ($sockbr == 0) { return } if (Location: isin %y) { var %y $gettok(%y,2,32) if ($left(%y,1) == /) var %y $+(http://,$sock($sockname).addr,%y) sockmark $sockname %y halt } goto i } on *:sockclose:google.*: { var %out $iif($sock($sockname).mark,$sock($sockname).mark,Google wasn't feeling lucky.) See: $+(http://,$sock($sockname).addr,/search?q=,$gettok($(% $+ $sockname,2),2,32)) $google.out($iif($gettok($(% $+ $sockname,2),3,32),$ifmatch,)) %out unset $(% $+ $sockname,1) } menu status,menubar,channel,query { $google.ver .Google Search: { google $?="text?" } .Google Say: { googlesay $?="text?" } .!google trigger $group(#!google) : { if ($group(#!google) == off) { .enable #!google | google.out !google is enabled } else { .disable #!google | google.out !google is disabled } } } alias -l urlencode { var %t = $len($1-),%r = "",%c while (%t) { %c = $asc($right($1,%t)) if (%c == 32) { %c = + } elseif ((%c <= 32) || (%c == 34) || (%c == 38) || (%c == 43) || (%c >= 127)) { %c = % $+ $base($ifmatch,10,16,2) } else { %c = $chr(%c) } %r = %r $+ %c dec %t } return %r } #google.sockdebug off ;debug mode for sockets v0.02 by HM2K alias -l sockdebug { var %win @sockdebug if (!$window(%win)) { window -e %win } if ($1-) { aline %win $timestamp $1- } } alias -l sockopen { sockopen $1- sockdebug -> sockopen $1- } alias -l sockwrite { sockwrite $1- sockdebug > sockwrite $1- } alias -l sockread { sockread $($1-,1) sockdebug < sockread $sockname $($1-,2) } alias -l sockclose { sockclose $1- sockdebug <- sockclose $1- } #google.sockdebug end ;EOF
  4. That makes some sense to me Winz, keeping in mind I am not a coder... As when a guest tried to use the weather addon - it worked sometimes - but for me with unicode nick and in web, it would not at all.. P.s. Thanks again for all of your effort into this, it is truly appreciated...
  5. ""If you want to give me evolutions server info, I can go there and see if I can troubleshoot the problem. Typically code is more mIRC specific across the same server protocols not code specific so yes"" server 167.114.203.110 7778 http://evolutionchat.co This is just one of the things that will not work there...This is the most basic one I have.. on :TEXT:*kicks da bot:#:/msg # Hey Fragile piece of machinery here!! My google search snippit works on others - but not evo - same with several other snippits - I did get a guest to work your weather add-on but not all the time it seems. I pretty much have given up for now as I already have my fingers in too many pies / projects to play with it for now.. (A) hmm no angel emote so (YN)
  6. Same setup as SPCN & ECN...Looks exactly the same...😉
  7. BTW...If I had speeds like that, I really would not be advertising it...😎
  8. Thanks jOhnson, I have been wondering the same thing, though leave out that buzz part and add ECN... 😉
  9. Have had this for many - many years and it NEVER gets old! ;) 

    dummy.gif

    I really wanted it to be my 'avatar pic' but the size 'limit' was just under the file size... ?

    100.352kb: is limit - was file size 105.96KiB 

     Ɯįƞʐ : try this one https://ezgif.com/resize

    Thanks Winz! 

  10. Yippieeeeeeeeeeeeeee! It works! A HUGE Thanks to err0r! Seems he had already coded it in another post.. So I am good to go! /me Is doing the Happy Dance!!! Shannons69
  11. Thanks JOhnson, I looked over the code err0r provided for you and think it is easy enough to make work. Just stuck on the radio id # can't seem to find that anywhere. I will research a bit more but did want to ask if you were ever able to get it to work? Err0r, Yes, after thinking on what I had posted later on that evening, I realized my mistake in thinking that it would not work as only the conn is specially designed for each site. I really liked some of the options that the code from 'blufm' has in it. Such as showing DJ name & last 5 songs played but think that there is a lot of other stuff that is specifically designed for that site that I will not need. I am the type to try to do it myself before having to ask for anyone to help so will try a bit more to get the simple one you created to work. I will be back either way to let everyone know how I made out of course... (And give requested details if necessary.) Thanks to you both for taking your time and offering your assistance as it is greatly appreciated. Shannons69
  12. Hiya to everyone reading this, I have been in search of a snippit and was lucky enough to find it here.. (Y) https://www.tg007.net/snippets/id-58 While I have been 'using' scripts & even beta testing for many years I have not really gotten my feet wet in the coding end of it and am in need of some help. :$ It will be used on ECN and is a newly setup radio station. The snippit has Phreik all over it which I have edited for ECN. I saw that err0r so kindly gave out details for the connections but am unable to find the irc connection. That is the first thing I think I need. Looking further into the file I am thinking I just might be in over my head. The file is from 2011 and everyone that is anyone has changed from MSN's ocx to the new format and think that a lot of this is coded around the old format. Rather then going on with more questions I think it would be best for me to wait for the more intelligent members here, to at least look at it and tell me if it will still even work as intended without a major rewrite. If that is the case, a rewrite, I will just have to learn how to as I do not expect that much to be done on my behalf. Thank you in advance for your thoughts and suggestions... Sincerely, Shannons69
×
×
  • Create New...