mIRC Home    About    Download    Register    News    Help

Topic Options
#175759 - 28/04/07 12:45 AM War Tracking
Mpot Offline
Fjord artisan

Registered: 24/04/07
Posts: 228
How hard would it be to create a script that returns if a person has any active wars using this? Like '!wars username' and it returns if they have any wars?

And, perhaps, a script that checks if any of these people are in a war?

And, perhaps, a script that will respond with a listing of wars for an alliance from this list. Like !wars alliance and it sends back a listing of all members of that alliance in a war?

Also, I don't want the bot to get flooded off, so I've got this script.

Quote:
alias inoutbot {
if ($1 = 1) { $read(limiter.txt, 1)
write -dl1 limiter.txt
}
if ($1 = 0) {
write limiter.txt $2-
}
}
on *:start:{ timerbotlimiter 0 2 /inoutbot 1
write -c limiter.txt }


So can you incorporate the /inoutbot 0 limiter into any msg commands. And, I'd like the war listings for an alliance to send in a query. And wars for a single person in notice.


If anyone can pull this off, I congratulate them.


Edited by Mpot (28/04/07 01:04 AM)

Top
#175869 - 29/04/07 09:20 PM Re: War Tracking [Re: Mpot]
CShadowRun Offline
Nutrimatic drinks dispenser

Registered: 29/04/07
Posts: 5

Top
#175876 - 29/04/07 09:48 PM Re: War Tracking [Re: CShadowRun]
Mpot Offline
Fjord artisan

Registered: 24/04/07
Posts: 228
There's not a chance I can do it by myself. I'm useless at this stuff. I kinda need some help. Perhaps Raimus could assist.


Edited by Mpot (29/04/07 09:52 PM)

Top
#175881 - 29/04/07 11:07 PM Re: War Tracking [Re: Mpot]
Mpot Offline
Fjord artisan

Registered: 24/04/07
Posts: 228
Alright, I just found out that the website doesn't support war searches anymore. What we need to do is go here, input the data specified in !wars username, keeping in mind that names can contain spaces.

Then this comes up:

If there aren't any search results, it'll look like this:



If there are no mathes, I want the script to reply in notice with '0 Colonies found matching search criteria.'

If there are several matches like this:



it should come back with 'Multiple results, please narrow your query:
user here
user here


Alright. So it's narrowed to one person. It clicks on the name and is taken to the colony overview.

If they aren't in wars, it looks like this:



If they aren't in any wars, the script comes back and says User is not in wars.

If they are in wars, it looks like this:




If in an aggressive war, it'd say the same thing with the war name under aggressive wars.

So, if they're in a war, I want the script to come back with 'use in in war #####' and with a link to the war, which can be obtained by clicking on the number in the display colony screen.

To recap:
!wars username: bot inputs into search feature. If multiple results, the script returns with 'Multiple results, please narrow your query' and lists the users it got back.

If there's one, it goes to the colony. If it's in no wars, script says 'colonynamehere is not in any wars'.

If in wars, it says 'colonynamehere' is in war ### with a link to that war.

Top
#176003 - 01/05/07 05:45 PM Re: War Tracking [Re: Mpot]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Unfortunately, that site requires that:

1) You need to be registered.
2) It searches without changing the URL, so you need to POST the correct information and everything I've tried doesn't seem to work. Of course, I don't have much experience POSTing.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#176064 - 02/05/07 12:07 PM Re: War Tracking [Re: Riamus2]
Mpot Offline
Fjord artisan

Registered: 24/04/07
Posts: 228
So that means we're screwed?

Top
#176097 - 03/05/07 03:48 AM Re: War Tracking [Re: Mpot]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Not necessarily. It does mean that someone with more knowledge would need to help, though.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#176108 - 03/05/07 11:55 AM Re: War Tracking [Re: Riamus2]
Mpot Offline
Fjord artisan

Registered: 24/04/07
Posts: 228
Could you put me in touch?

Top