heres a fun one I made long ago just a slap with a random item socket. idk maybe someone can take away a diff way to do these rather then using a txt ini or hash file. anyways keep at it..
example:
- ~napa182 slaps Death around a bit with some Brickhouse Soaps
- ~napa182 slaps Sick0 around a bit with some Leco Butter + Margarine
- ~napa182 slaps Death around a bit with some Ecolab Multipurpose Cleaner Kit
menu nicklist {
-
Slap $+([,$$1,]) {
if ($sock(item2)) sockclose item2
sockopen item2 www.globalpackagegallery.com 80
sockmark item2 describe # slaps $1 around a bit with some
}
-
}
on *:load:{
echo 07 -a You Have Just Loaded Napa182's Slap With A Random Item
echo 04 -a An Irc.EzzyChat.com Production
}
on *:sockopen:item2: {
sockwrite -nt item2 GET /main.php/random?g2_albumId= HTTP/1.1
sockwrite -nt item2 Host: $+($sock(item2).addr,$str($crlf,2))
}
on *:sockread:item2: {
var %item2 | sockread %item2
if ($regex(%item2,/^Album:(.+?)\50/)) {
$sock(item2).mark $replace($regml(1),&,&,",")
sockclose item2
}
}