| View previous topic :: View next topic |
| Author |
Message |
FarCry Voice
Joined: 11 Jul 2007 Posts: 7
|
Posted: Wed Jul 11, 2007 2:35 pm Post subject: WOW version |
|
|
Hmm i have a question how to create TCL script use World of Warcraft game
to validate VERSION like that
type !wow -eu/na version
<WoWbot>World of Warcraft Europian/North America: Version x.x.x(2.1.3) xxxx(6666) Realease: Month date year(July 12 2007) |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Fri Jul 13, 2007 3:31 am Post subject: |
|
|
| Code: |
set ctcp-version "World of Warcraft Europian/North America: Version x.x.x(2.1.3) xxxx(6666) Release: Month date year(July 12 2007)"
|
You just have to edit the code so that it displays the date accordingly to everyday.
Something like this?
| Code: |
[clock format [clock seconds] -format "%a %d %b %Y at %I:%M:%S%p"]
|
Check: http://www.tcl.tk/man/tcl8.3/TclCmd/clock.htm for a more detailed info.
Btw, I'm a die hard fan of DOTA myself  _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
FarCry Voice
Joined: 11 Jul 2007 Posts: 7
|
Posted: Fri Jul 13, 2007 11:08 am Post subject: |
|
|
| awyeah wrote: | | Code: |
set ctcp-version "World of Warcraft Europian/North America: Version x.x.x(2.1.3) xxxx(6666) Release: Month date year(July 12 2007)"
|
You just have to edit the code so that it displays the date accordingly to everyday.
Something like this?
| Code: |
[clock format [clock seconds] -format "%a %d %b %Y at %I:%M:%S%p"]
|
Check: http://www.tcl.tk/man/tcl8.3/TclCmd/clock.htm for a more detailed info.
Btw, I'm a die hard fan of DOTA myself  |
Nope not this only date of release of this patch ) |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Sat Jul 14, 2007 2:23 pm Post subject: |
|
|
Well my dear, FarCry, either you have all the info stored as global variables in a script, or wherever you get them from: for the date of release, versions etc, you can add that in the ctcp version.
Here is an example:
| Code: |
set warcraft(version) "v4.25.b"
set warcraft(date) "1st January 2007"
set ctcp-version "Warcraft $::warcraft(version) - Released: $::warcraft(date)"
|
_________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
FarCry Voice
Joined: 11 Jul 2007 Posts: 7
|
Posted: Sun Jul 15, 2007 10:12 am Post subject: Ty |
|
|
| Thx |
|
| Back to top |
|
 |
|