alias LookupDialog { dialog -mo LookupDialog LookupDialog } menu * { LookUp Dialog:/dialog -mo LookupDialog LookupDialog } dialog AdvancedPrice { title "Cracky's 'LookUp' Dialog v1.0 > Advanced Price" size -1 -1 200 100 option dbu button "Back", 1, 80 85 40 10, cancel edit "Item Name", 2, 10 10 180 10, center, autohs combo 3, 10 25 180 10, drop edit "Low Price", 4, 10 40 60 10, center, autohs edit "High Price", 5, 80 40 60 10, center, autohs text "To", 6, 70 41 10 10, center check "All Prices", 7, 150 40 40 10 Combo 8, 10 55 180 10, drop button "Search", 9, 20 68 160 15 } dialog ClanInfo { title "Cracky's 'LookUp' Dialog v1.0 > Clan Info" size -1 -1 200 100 option dbu box "Clan Stats for: -", 11, 5 55 190 32 box "Results for: -", 1, 5 2 190 53 edit "Name: -", 2, 10 10 180 10, center, read button "Back", 3, 80 89 40 10, cancel edit "URL: -", 4, 10 21 70 10, read, autohs edit "ML: -", 5, 100 21 70 10, read, autohs button "Go", 104, 81 21 18 10 button "Go", 105, 171 21 19 10 edit "Initials: -", 6, 10 32 58 10, read edit "F2P/P2P", 7, 70 32 58 10, read, center edit "Home: -", 8, 130 32 60 10, read edit "Based: -", 9, 10 43 58 10, read edit "Cape: -", 10, 70 43 58 10, read edit "Members: -", 12, 10 63 88 10, read edit "Avg Cmb: -", 13, 100 63 90 10, read edit "HP: -", 14, 10 74 43 10, read edit "Mage: -", 15, 55 74 43 10, read edit "Range: -", 16, 100 74 44 10, read edit "Total: -", 17, 146 74 44 10, read } on *:Dialog:Claninfo:sclick:104: { URL $remove($did(4),URL:) } on *:Dialog:Claninfo:sclick:105: { URL $remove($did(5),ML:) } on *:dialog:AdvancedPrice:sclick:9: { sockclose dialogprice2 sockopen dialogprice2 www.zybez.net 80 if ($did(3) == All Categories) /set %pricecategory 1 if ($did(3) == Unstable & Popular Items) /set %pricecategory 2 if ($did(3) == Armour & Weapons) /set %pricecategory 3 if ($did(3) == Magic, Runecraft & Prayer) /set %pricecategory 4 if ($did(3) == Archery Equipment) /set %pricecategory 5 if ($did(3) == Mining, Smithing & Crafting) /set %pricecategory 6 if ($did(3) == Herblore, Hunter & Farming) /set %pricecategory 7 if ($did(3) == Cooking, Fishing & Apparel) /set %pricecategory 8 if ($did(3) == Construction & Fletching) /set %pricecategory 9 if ($did(3) == Miscellaneous) /set %pricecategory 10 set %priceitem $replace($did(2),$chr(32),+) set %pricelow $iif($did(7).state == 0,$did(4),allprices) set %pricehigh $iif($did(7).state == 0,$did(5),allprices) set %members $iif($did(8) == All Items (p2p & f2p),yes,no) /did -r LookUpDialog 6 /dialog -x AdvancedPrice AdvancedPrice } ON *:SOCKOPEN:DIALOGPRICE2:{ sockwrite -nt $sockname GET $(/priceguide.php?search_terms= $+ %priceitem $+ &search_area= $+ %pricecategory $+ &price_low= $+ $iif($pricelow,%pricelow) $+ &price_high= $+ $iif($pricelow,%pricelow) $+ &member= $+ $iif(%members == yes,1,0)),2) HTTP/1.1 sockwrite -nt $sockname Host: www.zybez.net sockwrite -nt $sockname $crlf } on *:SOCKREAD:DIALOGPRICE2:{ if ($sockerr) { echo -a Error. sockclose $sockname halt } else { var %price.Read sockread %price.Read if (