Ranking
Original Post
[REQ] In-game win counter
I was wondering if anyone was able to make a win counter script that counted all wins from all players when activated for however long the script is on. It would also need to store these win totals along with full usernames somewhere.

Not sure if it can be done or not in such a way that the name and total number of wins is logged and also stored in a list from greatest to least. But if it is possible, let me know?
Pushing powder down my musket so I may smite another opp.
I put a switch and a beam on my blunderbuss, your hood is not safe.
Been there, done that.

You'll need to unload the script (i.e.: /ls unloadscripts.lua) in order for it to write to the file.

I'll add the sorting if it's really that important/I find the time to do it.
Last edited by box; Jun 4, 2014 at 06:52 AM.
[23:23:53] <AndChat|700625> Blue eyes ultimate dragon best card
[23:24:29] <AndChat|700625> You know the one with 3 heads
[23:24:39] <~Lightningkid> just like my dick



[11:35:40] <box> Hampa suck
[11:36:21] <hampa> not the first to tell me that today
o ok, does it collect the results anywhere? Sorting would be ideal if you have time.
Pushing powder down my musket so I may smite another opp.
I put a switch and a beam on my blunderbuss, your hood is not safe.
Yes. "winlog.txt" in your scripts directory.
[23:23:53] <AndChat|700625> Blue eyes ultimate dragon best card
[23:24:29] <AndChat|700625> You know the one with 3 heads
[23:24:39] <~Lightningkid> just like my dick



[11:35:40] <box> Hampa suck
[11:36:21] <hampa> not the first to tell me that today
nevermind, tested
Last edited by mWah; Jun 4, 2014 at 08:19 AM.
Pushing powder down my musket so I may smite another opp.
I put a switch and a beam on my blunderbuss, your hood is not safe.
Okay, here is an updated version that adds a timestamp to the end of the filename just to differentiate it from previous ones. Also, sorts it. Should work. Report bugs as necessary.
Attached Files
wincounter.lua (1.9 KB, 90 views)
[23:23:53] <AndChat|700625> Blue eyes ultimate dragon best card
[23:24:29] <AndChat|700625> You know the one with 3 heads
[23:24:39] <~Lightningkid> just like my dick



[11:35:40] <box> Hampa suck
[11:36:21] <hampa> not the first to tell me that today