Hawkee  -  Dec 29, 2012

Better to post your question here rather than a link to your question. I also wouldn't ask somebody to make something for me. Better to ask how to make it yourself.

fraguk  -  Dec 29, 2012

wheres the forum gone? i would have asked on there. :(

Hawkee  -  Dec 29, 2012

Its at the bottom of the site because its being deprecated. You asked in the right place, but we are starting to move away from coding Q&A in general. StackOverflow has that covered.

fraguk  -  Dec 29, 2012
Hawkee  -  Dec 29, 2012

Ah, I see what happened. My intention was to hide the link on mobile phones, but your resolution was low enough to trigger the mobile display threshold. I've adjusted the threshold and it should now appear.

VxD aka DEATHJ0KER  -  Dec 29, 2012

fraguk
Of course the staff is required to address only the 'user to the' goal that want to achieve.
There is a great forum site owner mIRC with a lot of unused space to discuss what is being developed ... I wonder why after so many years there is only one post :|

You are probably increasingly abandoning the 'idea of ​​support for irc networks.

Conscious  -  Dec 29, 2012

@fraguk you're using $regml(1) but you didn't capture anything in your $regex.

fraguk  -  Dec 30, 2012

Conscious can you help me with this script? becouse im at a lose now.

Conscious  -  Dec 30, 2012

Do you understand regex? Did you write this yourself?

fraguk  -  Dec 30, 2012

no i dont understand regex sorry.

fraguk  -  Dec 30, 2012

this is what i woould like trhe bot to do

!summary
bot > summary for Tank Nation
bot> || Member 9 || Avg. strength - 9 241 ||Avg. experience - 47 457 || Average rank - World Class Force** || Damage today - 1 227 850 || Damage yesterday - 16 602 420 ||

Conscious  -  Dec 30, 2012

So you didn't write this?

fraguk  -  Dec 30, 2012

its a code i got from another script thats was made for me, i just changed the word to summary,
i new it wouldnt work tho.. i just no clue with scokets :(

can you help?

Conscious  -  Dec 30, 2012

It's not your socket, it's your parsing of the socket. First, try echoing the data you get from sockread in the variable

fraguk  -  Dec 30, 2012

thats what i mean i have no ider what to pars, well in away i do, but not how to code it.

Conscious  -  Dec 30, 2012

First, try echoing the data you get from sockread in the variable

fraguk  -  Dec 30, 2012

i get nothing , thats the point of me asking for some help.

Conscious  -  Dec 30, 2012

Show me your code doing the echo

fraguk  -  Dec 30, 2012

experience 147 654"

Conscious  -  Dec 30, 2012

I said code, not result. By the way, you said you were getting nothing, that looks like something? I may have understood what you mean by you "Get nothing". You understand nothing? If you don't understand how to echo data we have a problem

fraguk  -  Dec 30, 2012

i just need to know what this should be.

on *:sockread:summary: {
var %summary | sockread %summary
if ($regex(%summary,/\Avg. experience 147 654"\/div>/)) {
$sock(summary).mark $remove($regml(1), )
sockclose summary
}
}

If you dont know just say?

Conscious  -  Dec 30, 2012

First, try echoing the data you get from sockread in the variable

Do you understand this statement?

Aion-  -  Dec 30, 2012

After glancing through the website, what you want to look for is this tag

. There are 7 of them going from 'Avg. Strenght' to 'Damage yesterday'. Luckily, it is not used anywhere else to display data so you needn't to worry about unwanted results.
fraguk  -  Dec 30, 2012

Yea see that Aion- , but i have no clue what the code should be. im sure some 1 on here could do it easyly.

Hawkee  -  Dec 30, 2012

Has anybody written a DOM parser for mIRC? Seems this would be very useful and much better than using regular expressions.

Hawkee  -  Dec 30, 2012

Here's one: http://www.hawkee.com/snippet/8123/ - I'm not sure if it lets you select the Nth element or whether or not it will even let you search based on the class, but its a start.

fraguk  -  Dec 30, 2012

14(1521:0714) 14· &4FragUK 14· !summary
14(1521:0714) 00· Teh-EvilCode 00· Tank Nation - || Avg. strength - 9 306 || Avg. experience - 47 739 || Average rank - World Class Force** || Damage today - 10 102 600 || Damage yesterday - 14 489 960 ||

Conscious  -  Dec 30, 2012

@fraguk I have written the code but I don't want to give you a handout, I want to give you a hand.

fraguk  -  Dec 31, 2012

Conscious did you see my post from my bot? all workin now.

1 think i would like but cant see how it can be done is to have !summary name
for all the MUs on that site.

Conscious  -  Dec 31, 2012

Who did it for you? Lol

What is an MU?

fraguk  -  Dec 31, 2012

Had to chase up an old mate on irc :P
MU = Military Unit.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.