mIRC Battle Script (recommended for all battlers)

General discussion about the games and the scene.

Moderator: Moporators

Post Reply
User avatar
jaytea
37mins club
Posts: 1015
Joined: 22 May 2004, 08:45

mIRC Battle Script (recommended for all battlers)

Post by jaytea »

Here is an mirc script i made for myself but decided to share with the rest of you who use mIRC to battle. i was finding it tedious to keep double clicking on any .lev/.rec link I saw and then having to click "Save" and navigate to my C:\Program Files\Elma directory.

Now all I have to do is double click the blue link labeled "[Download]" next to every link and my script will download the file in the background to the appropriate folder so I can simply maximize Elastomania to play the newly downloaded level or watch the rec.

- Simply download the script from: http://www.mxb.dk/upload2/elma.mrc
- Save it to your mIRC folder
- Load it into mIRC using the command /load -rs elma.mrc
- Choose to run the initialization commands
- Let the script guide you from there

I haven't tested it extensively so let me know of any problems or possible improvements
User avatar
Ky.Jelly
Flood to teh MAX
Posts: 4009
Joined: 20 May 2002, 21:40
Location: Ramarama, Auckland, New Zealand
Contact:

Post by Ky.Jelly »

sounds like i just got a hard on
[10:51:18] <skint0r> i could SACh see KyJelly working at ICA ;D
[10:51:37] <skint0r> "vad kostar denna?" "wtf ch0b0"
Thursday, March 2nd 2005, 0942 i was 3333 [4.43% of total / 3.25 posts per day]
User avatar
hilamr
Kuski
Posts: 109
Joined: 19 Dec 2002, 15:05
Location: Stugudal!!!

Post by hilamr »

Nice!!

Great, been waiting for that long. 8O
Thx for making it 8)
Image TT: 43:16:22
User avatar
sierra
39mins club
Posts: 2471
Joined: 15 Apr 2004, 22:51

Post by sierra »

i wonder what time was it when you finally finished?
[OMG] | [SpEF] | Apparently my TT was once 39:26:06
User avatar
insane guy
Kuski
Posts: 1673
Joined: 22 May 2002, 20:53
Contact:

Post by insane guy »

thanks!
this script is great!
"Every night, me go to sleep, me have wet dream..."
one nagual sorcerer
Kuski
Posts: 23
Joined: 11 Feb 2004, 00:04

Post by one nagual sorcerer »

oh my god this is great!

But making litte adjustment to your script, it would become extra useful. I'm talking about using that script to download .avi .mpeg .mpg .wmv and so on movie files which tend to open in some media player. I do all the setting changes but still I can't simply donwload .avi IRC link to my harddrive....
User avatar
Napoleon
Kuski
Posts: 1333
Joined: 10 Sep 2002, 18:26
Location: õ,õ

Post by Napoleon »

does this script only work with ie?
one nagual sorcerer
Kuski
Posts: 23
Joined: 11 Feb 2004, 00:04

Post by one nagual sorcerer »

It works with http, I think it is not related to internet browsers at all,it doesnt use them.
User avatar
petsen
Meetsen
Posts: 2044
Joined: 29 May 2002, 01:27
Location: Aarhus S, Denmark or nearest DEM

Post by petsen »

when i save that file it gets saved as a txt file... and i cant load it... help plz ?!
Proud Member Of RDK
User avatar
zworqy
Kuski
Posts: 3706
Joined: 19 May 2002, 23:17
Location: Lilla Edet, Sweden
Contact:

Post by zworqy »

petsen wrote:when i save that file it gets saved as a txt file... and i cant load it... help plz ?!
then rename it to .mrc, u noob :P

btw, great script
<Fihlvein> another case of zworqy-is-always-right closed i guess
<yoosef> zworqy doesnt suck at anything
aavv
Kuski
Posts: 123
Joined: 28 Sep 2003, 12:06

Post by aavv »

Petsen, do one of the following:

open a dos window, find elma dir and do rename elma.txt elma.mrc

open windows explorer -> tools -> options -> view and uncheck (uncheck) 'hide file extensions for known files' , then just change the file extension from txt to mrc or whatever. after you've done it check that square you unchecked previously not to fakap by mistake :S

and ffs, if you people simply have bad program associations just do like this:

go to windows explorer -> tools -> options -> filetypes -> find (for example) .mrc and delete it. this should also work for people who can't download rec/lev files by double-clicking links, just do the same with .rec and .lev

sach noob helpdesk but should work i guess :X
User avatar
jaytea
37mins club
Posts: 1015
Joined: 22 May 2004, 08:45

Post by jaytea »

sierra wrote:i wonder what time was it when you finally finished?
shortly after you went offline, my tt was roughly an hour with breaks in between..,.i could probably reduce that if i hoyled (btw im tipsy right now, details and some golden hallage later perhaps)
User avatar
jaytea
37mins club
Posts: 1015
Joined: 22 May 2004, 08:45

Post by jaytea »

one nagual sorcerer wrote: But making litte adjustment to your script, it would become extra useful. I'm talking about using that script to download .avi .mpeg .mpg .wmv and so on movie files which tend to open in some media player. I do all the setting changes but still I can't simply donwload .avi IRC link to my harddrive....
i was considering that but decided to do the minimum first then gauge people's reaction as to whether it could be expanded. in this case it's just a matter of a small adjustment to the script. find this line:

.echo -q $regsub($1-,/(http:\/\/.+?\.(?:rec|lev))(?:\s|$)/i,\1 $+($chr(32),$chr(3),12,$chr(31),[Download],$chr(15),$chr(32)),%i)

what needs to be changed is the bit inside the non capturing assertion like so:

.echo -q $regsub($1-,/(http:\/\/.+?\.(?:rec|lev|avi|mpg|mpeg|txt))(?:\s|$)/i,\1 $+($chr(32),$chr(3),12,$chr(31),[Download],$chr(15),$chr(32)),%i)

and they can be added in that fashion. if you want it to work for any extension replace rec|lev with .+?

now these files will go to your elma lev folder by default, because of the nature of the script. you can change that through this line:

if ($2 = d) return $iif($gettok($nopath(%x),-1,46) = rec,%elma.rec,%elma.lev)

change that to:

if ($2 = d) return $iif($gettok($nopath(%x),-1,46) = rec,%elma.rec,$iif($gettok($nopath(%x),-1,46) = lev,%elma.lev,C:\FOLDER))

changing C:\FOLDER to the full path of your download folder
one nagual sorcerer
Kuski
Posts: 23
Joined: 11 Feb 2004, 00:04

Post by one nagual sorcerer »

Thanks jaytea, I did this and it works now! I have done some small scripting with my mirc and I guess your script is not associating fully with all my scriptings... I get some little "bugs" that other people probably dont get, like this:

[14:31:06] jsim[EMA]» http://gamefiles.blueyonder.co.uk/bluey ... railer.avi
[14:31:06] <jsim[EMA]> http://gamefiles.blueyonder.co.uk/bluey ... railer.avi [Download]

or

[15:08:56] Freezah» http://irc-galleria.net/view.php?nick=S ... &navi=true
[15:08:56] <Freezah> http://irc-galleria.net/view.php?nick=S ... &navi=true

So basically every message that has "http://" comes double :)

other thing is that I get this all the time after adding the .avi and things:

) Unknown command
-
) Unknown command
-

That comes all the time...but it comes to status window so it doesnt matter :)

But after all!! Very nice script, I'm happy with it this way, no matter with the double posts...
cyre
Kuski
Posts: 180
Joined: 1 Aug 2002, 11:41
Location: Finland

Post by cyre »

BarTek wrote:just wondering...

anybody still uses my silly battle sounds in battles?

8O
Never used them in the first place. I liked my own batel sounds better :wink:

But now i don't use any sounds although they're useful when you don't want to miss a battle, it's just too annoying to switch sounds on/off all the time in case your watching some movie, playing something, have friends visiting etc etc... There's million and one reasons for why you don't want to hear "Battle started!" "Battle finished!" etc sounds 50 times a day.. So now i just have them switched off completely.

Btw nice work with the script jaytea. :)
"Fool me seven times, shame on you. Fool me eight or more times, shame on me."
User avatar
petsen
Meetsen
Posts: 2044
Joined: 29 May 2002, 01:27
Location: Aarhus S, Denmark or nearest DEM

Post by petsen »

zworqy wrote:
petsen wrote:when i save that file it gets saved as a txt file... and i cant load it... help plz ?!
then rename it to .mrc, u noob :P

btw, great script

lol :> well i tried.. didnt work... i aint no newb ;)

any other suggestions... `?
Proud Member Of RDK
User avatar
Zweq
34mins club
Posts: 4055
Joined: 28 Nov 2002, 15:54
Location: suo mesta

Post by Zweq »

fackin xiitor sounds and scripts. yuo play when u see battle and manually put to lev folder, NABS
Image
User avatar
Antz
Donator
Posts: 1168
Joined: 14 Sep 2002, 16:52
Team: Quack
Location: Espoo, Finland
Contact:

Post by Antz »

EYAH!"! ZWEQ IS KORRACT!!"!"




hmm, seems like a handy tool. would give you those few extra seconds in start of battle to secure your victory.. i might just give it a try.
Image
User avatar
jaytea
37mins club
Posts: 1015
Joined: 22 May 2004, 08:45

Post by jaytea »

Zweq wrote:fackin xiitor sounds and scripts. yuo play when u see battle and manually put to lev folder, NABS
some people, myself included, find this more convenient. no one is forcing you to download it
User avatar
jaytea
37mins club
Posts: 1015
Joined: 22 May 2004, 08:45

Post by jaytea »

edit: oops double post
User avatar
jaytea
37mins club
Posts: 1015
Joined: 22 May 2004, 08:45

Post by jaytea »

one nagual sorcerer wrote:Thanks jaytea, I did this and it works now! I have done some small scripting with my mirc and I guess your script is not associating fully with all my scriptings... I get some little "bugs" that other people probably dont get, like this:
youre seeing it double because you probably have another on *:text event inside another remote file which is also echoing a line to the chanel window. you should move that other on *:text event to the end of battle.mrc as both events will not execute in the same file
User avatar
Kopaka
39mins club
Posts: 6612
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

I got that double thing too, and it also highligted me :( Anyway I use webchat for IRCnet so no use =).
teajay
Donator duck
Posts: 10043
Joined: 3 Apr 2003, 17:53

Post by teajay »

wtf, you can't be serious about that. :lol:
User avatar
Kopaka
39mins club
Posts: 6612
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

Flat Tracker wrote:wtf, you can't be serious about that. :lol:
ehh what?...
teajay
Donator duck
Posts: 10043
Joined: 3 Apr 2003, 17:53

Post by teajay »

using webchat. 8O
User avatar
Kopaka
39mins club
Posts: 6612
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

Flat Tracker wrote:using webchat. 8O
I was ;( But now irc1.us.ircnet.net have become stable, so I can use normal IRC for IRCnet again =).
User avatar
ribot
Not banned
Posts: 2425
Joined: 19 May 2002, 16:20
Location: Miranda: the true state
Contact:

Post by ribot »

seems l33t script jaytea. how about making a settings window where you enter different file types and download locations? also you might want to save one type of file in different optional folders.
User avatar
petsen
Meetsen
Posts: 2044
Joined: 29 May 2002, 01:27
Location: Aarhus S, Denmark or nearest DEM

Post by petsen »

i still dont know how this works.. plz help :)
petsen wrote:
zworqy wrote:
petsen wrote:when i save that file it gets saved as a txt file... and i cant load it... help plz ?!
then rename it to .mrc, u noob :P

btw, great script

lol :> well i tried.. didnt work... i aint no newb ;)

any other suggestions... `?
Proud Member Of RDK
Zerox
Kuski
Posts: 159
Joined: 25 Jan 2004, 11:32
Location: Denmark

Post by Zerox »

write /write elma.mrc and save the text there, and then load it ;P
User avatar
petsen
Meetsen
Posts: 2044
Joined: 29 May 2002, 01:27
Location: Aarhus S, Denmark or nearest DEM

Post by petsen »

Zerox_cEp wrote:write /write elma.mrc and save the text there, and then load it ;P
in mirc?
Proud Member Of RDK
User avatar
Kopaka
39mins club
Posts: 6612
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

If we should help u, u kinda need to tell what you do, what happens, and if any fail messages comes.
User avatar
berhabdul
Banned
Posts: 1125
Joined: 18 Jul 2005, 17:09
Location: Warsaw, Poland
Contact:

Re: mIRC Battle Script (recommended for all battlers)

Post by berhabdul »

jaytea wrote:Here is an mirc script i made for myself but decided to share with the rest of you who use mIRC to battle. i was finding it tedious to keep double clicking on any .lev/.rec link I saw and then having to click "Save" and navigate to my C:\Program Files\Elma directory.

Now all I have to do is double click the blue link labeled "[Download]" next to every link and my script will download the file in the background to the appropriate folder so I can simply maximize Elastomania to play the newly downloaded level or watch the rec.

- Simply download the script from: http://www.mxb.dk/upload2/elma.mrc
- Save it to your mIRC folder
- Load it into mIRC using the command /load -rs elma.mrc
- Choose to run the initialization commands
- Let the script guide you from there

I haven't tested it extensively so let me know of any problems or possible improvements
Reupload plz!
User avatar
jaytea
37mins club
Posts: 1015
Joined: 22 May 2004, 08:45

Post by jaytea »

long gone. i dont even have it anymore, and if i recall.. the coding was n00b
User avatar
petsen
Meetsen
Posts: 2044
Joined: 29 May 2002, 01:27
Location: Aarhus S, Denmark or nearest DEM

Post by petsen »

worked fine for me :) until i fucked the code
Proud Member Of RDK
User avatar
Kopaka
39mins club
Posts: 6612
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

I found it in my mirc folder. http://zworqy.com/up/files/elma.zip
User avatar
berhabdul
Banned
Posts: 1125
Joined: 18 Jul 2005, 17:09
Location: Warsaw, Poland
Contact:

Post by berhabdul »

thx
User avatar
Kestas
Kuski
Posts: 576
Joined: 4 Mar 2005, 21:58
Location: Lithuania

Post by Kestas »

max tool for battlers that can even save a win sometimes
a must to have for all, so dmn convinient~
User avatar
berhabdul
Banned
Posts: 1125
Joined: 18 Jul 2005, 17:09
Location: Warsaw, Poland
Contact:

Post by berhabdul »

Ye, right kestas :)
User avatar
Jeppe
39mins club
Posts: 324
Joined: 25 Jun 2003, 17:37

123

Post by Jeppe »

wow ;o havnt tryed that script ;o probably gonna be cool ohhh wait there is no more battles ;(
User avatar
zworqy
Kuski
Posts: 3706
Joined: 19 May 2002, 23:17
Location: Lilla Edet, Sweden
Contact:

Post by zworqy »

no need for this crap anymore :D
<Fihlvein> another case of zworqy-is-always-right closed i guess
<yoosef> zworqy doesnt suck at anything
Post Reply