This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Please Help Repair

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
Shadowless
Voice
Posts: 1
Joined: Mon Aug 04, 2014 1:53 pm

Please Help Repair

Post by Shadowless »

Please Help Repair international horoscope script of #@homer version 0.8
release date 26/02/2006
seems the webpage is not aviable
help me repair it

http://www.egghelp.org/cgi-bin/tcl_arch ... ad&id=1286

Code: Select all

package require http


#international horoscope script 0.8 (now public) (1h 21m 20s)
#horoscope script by #@homer in irc.quakenet.org (homer^im^bett)
#easy to use just load and type !horoscope <zodiac> (without the <>)
#contact: fkhg1@web.de

#Aries (Mar. 21 - Apr. 19)
#Taurus (Apr. 20 - May 20)
#Gemini (May 21 - Jun. 21)
#Cancer (Jun. 22 - July 22)  
#Leo (July 23 - Aug. 22)  
#Virgo (Aug. 23 - Sep. 22)  
#Libra (Sep. 23 - Oct. 23)  
#Scorpio (Oct. 24 - Nov. 21)  
#Sagittarius (Nov. 22 - Dec. 21)  
#Capricorn (Dec. 22 - Jan. 19 )  
#Aquarius (Jan. 20 - Feb. 18)  
#Pisces (Feb. 19 - Mar. 20)  


bind pub - !horoscope horoscope
proc horoscope { nick host hand chan text } {
	set d [http::geturl http://www.astrologers-online.com/[string tolower [lindex $text 0]].php]
	set r [split [http::data $d] \n]
	http::cleanup $d
	set c 0
	set bool 0
	foreach x $r {
		if {($bool) && ($c < 5)} {
			if {$c == 0} { set line [lindex [split $x {<|>}] 2] }
			if {$c == 2} { set line [lappend line "Love: [string repeat @ [lindex [split $x {.|_}] 1]]"] }
			if {$c == 3} { set line [lappend line "Work: [string repeat @ [lindex [split $x {.|_}] 1]]"] }
			if {$c == 4} { set line [lappend line "Communication: [string repeat @ [lindex [split $x {.|_}] 1]]"] }
			incr c 
		}
		if {$x == "</form>"} {
			set bool 1 
		}
	}
	putserv "PRIVMSG $chan :[join $line]"
}
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
User avatar
heartbroken
Op
Posts: 110
Joined: Thu Jun 23, 2011 11:15 pm
Location: somewhere out there

Post by heartbroken »

that astrologer.... url doesn't exists anymore, it redirects to another web site...

but if you still wants to get horoscopes from that link;
you can find it in -> http://forum.egghelp.org/viewtopic.php?t=19697 here...
Life iS Just a dReaM oN tHE wAy to DeaTh
Post Reply