Hey Wims ,thanks for taking the time to come back and post. I added the above suggestions to the script and it seemed to be working fine but then I noticed 2 things:


1. It is now displaying red for the FW version equal or higher than 3.6 but it doesnt show the FW version info at all for anything under 3.60.

Click to reveal..
Code:
[2:53am] <@D00M> !gameupdate bles00963
[2:53am] *UPDBot* Game Name:  F.E.A.R. 3
[2:53am] *UPDBot* UPD Version: 01.01 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BLES00963/BLES00963_T0/315031ca5915f380/EP1018-BLES00963_00-F3PATCH000000001-A0101-V0100-PE.pkg - File Size: 25165680 - FW Version: 03.6000
[2:55am] <@D00M> !gameupdate bcus98114
[2:55am] *UPDBot* UPD Version: 01.05 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0105-V0100-PE.pkg - File Size: 637423280 - FW Version:
[2:55am] *UPDBot* UPD Version: 01.06 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0106-V0100-PE.pkg - File Size: 314873312 - FW Version:
[2:55am] *UPDBot* UPD Version: 01.07 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0107-V0100-PE.pkg - File Size: 48650880 - FW Version:
[2:55am] *UPDBot* UPD Version: 01.08 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0108-V0100-PE.pkg - File Size: 1805056 - FW Version:
[2:55am] *UPDBot* UPD Version: 01.09 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0109-V0100-PE.pkg - File Size: 49298736 - FW Version:
[2:55am] *UPDBot* UPD Version: 01.10 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0110-V0100-PE.pkg - File Size: 398418784 - FW Version: 03.6000
[2:55am] *UPDBot* UPD Version: 01.11 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0111-V0101-PE.pkg - File Size: 64123456 - FW Version: 03.6000
[2:55am] *UPDBot* UPD Version: 01.12 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0112-V0100-PE.pkg - File Size: 13512448 - FW Version: 03.6000
[2:55am] *UPDBot* UPD Version: 01.13 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0113-V0100-PE.pkg - File Size: 1175872 - FW Version: 03.6000
[2:55am] *UPDBot* UPD Version: 02.00 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0200-V0100-PE.pkg - File Size: 1249152240 - FW Version: 03.7000
[2:55am] *UPDBot* UPD Version: 02.01 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0201-V0100-PE.pkg - File Size: 117369568 - FW Version: 03.7000
[2:55am] *UPDBot* UPD Version: 02.02 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0202-V0100-PE.pkg - File Size: 256980640 - FW Version: 03.7000
[2:55am] *UPDBot* UPD Version: 02.03 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0203-V0100-PE.pkg - File Size: 234996768 - FW Version: 03.7000
[2:55am] *UPDBot* UPD Version: 02.04 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0204-V0100-PE.pkg - File Size: 81953344 - FW Version: 03.7000
[2:55am] *UPDBot* UPD Version: 02.05 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0205-V0100-PE.pkg - File Size: 25323536 - FW Version: 03.7000
[2:55am] *UPDBot* UPD Version: 02.06 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0206-V0100-PE.pkg - File Size: 497668864 - FW Version: 04.1000
[2:55am] *UPDBot* UPD Version: 02.07 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0207-V0100-PE.pkg - File Size: 2244720 - FW Version: 04.1000
[2:55am] *UPDBot* UPD Version: 02.08 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0208-V0100-PE.pkg - File Size: 237496816 - FW Version: 04.1000
[2:55am] *UPDBot* Game Name:  Gran Turismo 5
[2:55am] *UPDBot* UPD Version: 02.09 - URL: http://b0.ww.np.dl.playstation.net/tppkg/np/BCUS98114/BCUS98114_T52/926756a8e8e39359/UP9000-BCUS98114_00-0000000000000000-A0209-V0100-PE.pkg - File Size: 106075712 - FW Version: 04.1000


2. The game name now showed the first time at the top but didn't show at all on the second return and if you get a large return of results, it puts the name on the second last line.
I'm guessing I just did a bad edit again so please forgive me. blush

Code:
on *:sockread:game_id:{
  var %a,%c $sock($sockname).mark
  sockread -f %a
  while ($sockbr) {
    if (<tr><td><strong>* iswm %a) {
      noop $regex(parse,$nohtml(%a),/^(\d+(?:\.\d+)?)(.+\.pkg)(\d+) Bytes(.{40})(\d+(?:\.\d+)?)(?:Game:(.+)&laquo; Back)?/iS)
      if ($regml(parse,6)) %c 15Game Name:4 $html2ascii($v1)
      %c 15UPD Version:8 $regml(parse,1) - 15URL: $regml(parse,2) - 15File Size:4 $regml(parse,3) - 15FW Version:3 $iif($regml(parse,5) >= 3.6,$+($chr(3),04,$v1)),$v1)
    }


Quote:
As for the random characters appearing, they come from the website, there's nothing I can do not to get them, but by assuming some things, like the fact that the game's name can only contain letter and number, we could get rid of them, you would need to tell me if this is true etc...


As far as I'm aware there numbers, letters hyphons and colons in the game names other than the & sign.

Example:
Champion Jockey: G1 Jockey & Gallop Racer
Cars: Race-O-Rama

For the Q itself I did try if ($play((0) which works for another script I use but that is for playing a txt file and couldnt get it to work with this script.

Code:
if ($play(0)) { notice $nick 4 $nick 14-=15You're in Queue so sit tight.. 3(Q'd at:9 $v1 3) 14=-. }


I did try to add an antiQ for the flood and it seems to work but the notice to the user gets displayed "after" the results have finished displaying to the first user.
How do I make it display the Q and antiQ msg the user while it is returning the results to another user?

Code:
on *:text:!gameupdate &:#MY_CHAN:{
   inc %guds
   inc -u5 %ANTiQ
   if (%ANTiQ > 1) { notice $nick 15You must wait 5 seconds between searches. | halt }
else {
   if (!$sock(game_id)) game_id notice $nick $upper($2)
 }
}


One last thing is how would I slow the results down? I know I can put 1000 or 2000 for 1 or 2 seconds per line but I just don't know where it goes in your script.

Again Wims thanks for the time and effort you are taking here and look forward to your reply,

D00M

Last edited by D00M; 16/12/12 06:01 PM.