Pages: [1]   Go Down
  Print  
Author Topic: Automatic Topstats  (Read 631 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod
Posts: 26
Offline Offline
« on: August 20, 2010, 04:47:49 AM »

hello all

its possible to add automatic topstats ?

i' ll try to add in plugins adv at the same place @time and @nextmap
i add <ad>@topstats</ad>

but just write @topstats in console with no results...

thanks.
Logged


Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 179
Offline Offline
WWW
« Reply #1 on: August 20, 2010, 05:14:29 AM »

it needs to be coded into the adv plugin
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod
Posts: 26
Offline Offline
« Reply #2 on: August 20, 2010, 05:23:55 AM »

ok anyone coding for me?? Smiley


Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 179
Offline Offline
WWW
« Reply #3 on: August 20, 2010, 05:39:10 AM »

i think you would have to add this to onLoadConfig

self._adminPlugin = self.console.getPlugin('xlrstats')
Code: python
self._xlrstatsPlugin = self.console.getPlugin('xlrstats')

and this to def adv
Code: python
elif(ad == "@topstats"):
  ad = thread._xlrstatsPlugin.start_new_thread(self.doTopList, (data, client, cmd))

xlr8or edit: Had to correct the copied code a little...
« Last Edit: August 20, 2010, 01:04:24 PM by xlr8or » Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2005
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #4 on: August 20, 2010, 01:05:54 PM »

I'll add the code to the next release of B3. Thanks spoon.
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod
Posts: 26
Offline Offline
« Reply #5 on: August 20, 2010, 01:45:57 PM »

Thanks Spoon and xlr8or  Smiley

i try this week if its ok.

Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2005
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #6 on: August 20, 2010, 01:51:34 PM »

I've tried the supplied code, but there's more to it and this won't work just like this. Also need some changes to XLRstats plugin. Better wait for version 1.3.4 of B3.

It has an improved adv plugin that also can show headlines from your community site rss-feed.
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 179
Offline Offline
WWW
« Reply #7 on: August 20, 2010, 04:05:31 PM »

i was thinking xlrstats might need changed abit for it to work cuz def doTopList uses "cmd.sayLoudOrPM" i think it would need to be changed to "self.console.say"
Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #8 on: August 21, 2010, 03:47:04 AM »

Or maybe enhance the great Scheduler plugin to add the possibility to execute !commands ?

http://www.bigbrotherbot.net/forums/plugins-by-courgette/scheduler-plugin/
Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: cod
Posts: 26
Offline Offline
« Reply #9 on: August 22, 2010, 05:10:16 AM »

thanks all
i wait for  version 1.3.4 of B3.?
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2005
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #10 on: August 24, 2010, 01:58:33 AM »

yes.
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal