egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BF3 APi stats display (Nov 4, 2o11)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Nov 05, 2011 12:51 am    Post subject: BF3 APi stats display (Nov 4, 2o11) Reply with quote

A friend on efnet for the last year or so, has been asking for a battlefield stats display script. So an ongoing joke with him, has been, to just tell him "soon". Without ever really giving him a date. Well, after a years worth of telling him "it's almost ready" and "dude, it'll be done tomorrow!". Guess what? It is done, and here it is for all of you here as well. If you like it, praise mafaioz. His non-stop assault to get it done resulted in this. If you hate it, well, show some of that hate to mafaioz too.. Razz

Quote:
<speechles> !bf3 mafaioz
<sp33chy> Mafaioz (of Norway) - (ps3) Rank: Corporal 3 star (12); Played: 13:07:48; Score: 165,739; Score/Minute: 210.38; Next Rank: Sergeant (in 4,261); Accuracy: 7.6%; Longest Headshot: 300.38m | Kills: 454; Deaths: 314; Assists: 127; K/D Ratio: 1.44585 | Wins: 27; Losses: 33; W/L Ratio: 0.81818 @ http://bf3stats.com/stats_ps3/Mafaioz#ps3

<speechles> !bf3 -360 mafaioz
<sp33chy> Sorry, no search results were found for "mafaioz" on 360.

<speechles> !bf3 mafaioz -pc
<sp33chy> Sorry, no search results were found for "mafaioz" on pc.

Code:
#---------------------------------------------------------------#
# incith:bf3                                               v1.0 #
#                                                               #
# This script basically scrapes battlefield 3's api and such.   #
#                                                               #
# Usage:                                                        #
#   .chanset #channel +bf3                                      #
#   !bf3 [-<platform>] <name to search for>                     #
#                                                               #
# ChangeLog:                                                    #
#    v1.0 - first release, enjoy.. :)                           #
#                                                               #
#    Requested by Mafaioz: If you like this script, then you    #
#    owe this guy your respect. Bow before him. Now! Do it!     #
#                                                               #
#    - - - Mafaioz, um.. like here's your BF3 script yo! :P     #
#                                                               #
#                                                               #
# TODO:                                                         #
#   - Suggestions/Thanks/Bugs, e-mail at bottom of header.      #
#                                                               #
# LICENSE:                                                      #
#   This code comes with ABSOLUTELY NO WARRANTY.                #
#                                                               #
#   This program is free software; you can redistribute it      #
#   and/or modify it under the terms of the GNU General Public  #
#   License as published by the Free Software Foundation;       #
#   either version 2 of the License, or (at your option) any    #
#   later version.                                              #
#                                                               #
#   This program is distributed in the hope that it will be     #
#   useful, but WITHOUT ANY WARRANTY; without even the implied  #
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR     #
#   PURPOSE.  See the GNU General Public License for more       #
#   details. (http://www.gnu.org/copyleft/library.txt)          #
#                                                               #
# Portions of the script, and the name of this script are       #
# property of: Copyright (C) 2005, Jordan - google@woota.net    #
#                                                               #
# Everything else:                                              #
# Copyleft (C) 2011, speechles                                  #
# imspeechless@gmail.com                                        #
#---------------------------------------------------------------#
package require http 2.3
setudef flag bf3

# 0 will typically disable an option, otherwise a value 1 or
# above will enable it.
#
namespace eval incith {
  namespace eval bf3 {
    # set this to the command character you want to use for the binds
    variable command_char "!"

    # set these to your preferred binds ("one two three etc etc")
    variable binds "bf3 b3"

    # set this to your default section if the user doesn't give one
    # pc / 360 / ps3
    variable section "ps3"

    # if you want to allow users to search via /msg, enable this
    variable private_messages 1

    # ** this is not an optional setting, if a string is too long to send, it won't be sent! **
    # It should be set to the max amount of characters that will be received in a public
    #   message by your IRC server.  If you find you aren't receiving results, try lowering this.
    variable split_length 403

    # number of minute(s) to ignore flooders, 0 to disable flood protection
    variable ignore 1

    # how many requests in how many seconds is considered flooding?
    # by default, this allows 3 queries in 10 seconds, the 4th being ignored
    #   and ignoring the flooder for 'variable ignore' minutes
    variable flood 4:10
  }
}


Incith:BF3 v1.0: Battlefield 3 APi stats display script

Enjoys Smile
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
tmyoungjr
Voice


Joined: 24 Aug 2007
Posts: 14

PostPosted: Mon Nov 07, 2011 2:13 pm    Post subject: Reply with quote

hah thank you!

I had been waiting for the bf3stats api to get released and then i stopped checking!

saw this before I had checked their site again!

thanks!
Back to top
View user's profile Send private message
squish102
Voice


Joined: 21 Jan 2011
Posts: 1

PostPosted: Sat Nov 12, 2011 9:59 am    Post subject: Reply with quote

Thanks that is great. Do you have to have an account on bf3stats to get your result?

Ok looks like you don't... Is there any way to get the playerupdate feature working? They have added it to the api
Back to top
View user's profile Send private message
seeN
Voice


Joined: 16 Nov 2011
Posts: 2
Location: Interwebz

PostPosted: Wed Nov 16, 2011 10:13 pm    Post subject: Reply with quote

I just wanted to thank you for your great work. I started on writing one myself but then i found this well coded script which saves me a lot of time and effort. Big THX Very Happy
Back to top
View user's profile Send private message
Mafaioz
Voice


Joined: 07 Dec 2011
Posts: 1

PostPosted: Wed Dec 07, 2011 1:16 pm    Post subject: Reply with quote

I havent gotn a single thanks on EFnet yet Razz i WORKED every day for this to be made Razz haha thanks speechy Razz
Back to top
View user's profile Send private message
inittab
Voice


Joined: 11 Jan 2012
Posts: 5

PostPosted: Wed Jan 11, 2012 8:05 pm    Post subject: Reply with quote

hi, been using this for awhile and it seems bf3stats.com queues updates on the page now when you access it, the script doesn't seem to ever trigger this update, so unless you access your stats on the website directly the stats never update. Any idea's on how to get around this?
Back to top
View user's profile Send private message
Sebastien
Voice


Joined: 13 Oct 2011
Posts: 2
Location: Behind you

PostPosted: Wed Feb 08, 2012 5:47 pm    Post subject: There is a problem Reply with quote

My name has a space in it. "Doouble Tap" (yes, double "o")
here is a screenshot of the error HERE
and as you can see here I have an account and the url in your script is correct.

Thank you for the fix Smile
i can't wait to see my stats in my channel Smile
_________________
-First, solve the problem. Then, write the code.-
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Sebastien
Voice


Joined: 13 Oct 2011
Posts: 2
Location: Behind you

PostPosted: Mon Feb 13, 2012 1:48 am    Post subject: Reply with quote

Still no fix Sad
i wish i knew something about tcl scripts :/
_________________
-First, solve the problem. Then, write the code.-
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Tommyken
Voice


Joined: 09 Apr 2008
Posts: 11

PostPosted: Sat Jan 05, 2013 5:59 am    Post subject: Reply with quote

i got this error
[10:40:54] <SVG> [10:46:45] Tcl error [incith::bf3::public_message]: can't read "type": no such variable
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber