Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)looking for First Blood plugin
Pages: [1]   Go Down
  Print  
Author Topic: looking for First Blood plugin  (Read 1279 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« on: September 06, 2010, 02:37:59 AM »

Hi,

can sumone tell me where i can download first blood plugin for Urt..
don't say it does not exit .. coz i saw it on few urt servers.. it display in bigtext when sumone make first kill and then console says.. "player 1 killed player 2" sumthing like that ...

tnx in advance
Logged

Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« Reply #1 on: September 07, 2010, 08:10:49 AM »

30 views but no one replyed Sad
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #2 on: September 07, 2010, 09:10:11 AM »

I'm not aware of such a plugin here...
Logged

Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« Reply #3 on: September 09, 2010, 09:11:18 AM »

tnx xlr8or, may be sum1 created it for there servers.. only Sad
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #4 on: September 09, 2010, 09:39:25 AM »

I've seen it too. Perhaps the knifer plugin comes close to it? The exact plugin as you described is not in our repository I suppose, well, at least I couldn't find it.
Logged

Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« Reply #5 on: September 09, 2010, 01:50:42 PM »

tnx again..
is there any way to modify knife plugin to make it work as first blood?
Logged
B3 Contrib/Support
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 133
Offline Offline
WWW
« Reply #6 on: September 17, 2010, 03:30:10 AM »

a simple plugin

something like that

firstkill.py

Code:
import b3
import b3.events



class FirstkillPlugin(b3.plugin.Plugin):
   
    _kill = 0
    _tk = 0

    def onStartup(self):
       
        self.registerEvent(b3.events.EVT_CLIENT_KILL)
        self.registerEvent(b3.events.EVT_CLIENT_KILL_TEAM)
        self.registerEvent(b3.events.EVT_GAME_ROUND_END)

        self._tkonoff = self.config.get('settings', 'tkonoff')


    def onLoadConfig(self):

        self._adminPlugin = self.console.getPlugin('admin')
       
        if not self._adminPlugin:

            self.error('Could not find admin plugin')
            return False
   
    def onEvent(self, event):
       
        if event.type == b3.events.EVT_GAME_ROUND_END:
   
            self._kill =0
            self._tk =0

        if event.type == b3.events.EVT_CLIENT_KILL:
           
            self._kill += 1
           
            client = event.client
            target =event.target

            if self._kill == 1:      
                 
                self.console.write('bigtext "^2First Kill ^3:%s killed %s"' % (client.exactName, target.exactName))
                self.console.write('^2First Kill ^3:%s killed %s' % (client.exactName, target.exactName))

        if (event.type == b3.events.EVT_CLIENT_KILL_TEAM) and (self._tkonoff=="on"):
           
          self._tk += 1
           
            client = event.client
            target =event.target

       if self._tk == 1:
         
                self.console.write('bigtext "^1First TeamKill ^3:%s Teamkilled %s"' % (client.exactName, target.exactName))
                self.console.write('^1First TeamKill ^3:%s Teamkilled %s' % (client.exactName, target.exactName))
firstkill.xml

Code:
<configuration plugin="firstkill">
    <settings name="settings">

        <set name="tkonoff">on</set>

        </settings>
</configuration>

warning !!! not tested
« Last Edit: September 17, 2010, 03:41:52 AM by PtitBigorneau » Logged
Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« Reply #7 on: September 18, 2010, 09:48:47 AM »

thankyou PtitBigorneau.. i'm gona test it today!!
Logged
Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« Reply #8 on: September 18, 2010, 10:11:10 AM »

Nahh it does not worked for me..

i used notepad+ to save the first code as firstkill.py and second one as firstkill.xml and added this line to my b3.xml
<plugin config="@b3/extplugins/conf/firstkill.xml" name="firstkill" priority="16" /> and ofc i restarted b3.
 is there anything i'm doing wrong?
Logged
B3 Contrib/Support
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 133
Offline Offline
WWW
« Reply #9 on: September 18, 2010, 11:26:11 AM »

respect Python's indentation rules

firtkill.py in extplugins/
firtkill.xml in extplugins/conf/

<plugin config="@b3/extplugins/conf/firstkill.xml" name="firstkill"/> in b3.xml

I join fisrtkill.py file

[attachment deleted by maintenance]
Logged
Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« Reply #10 on: September 18, 2010, 11:48:04 AM »

tnx..

is there any difference between

<plugin config="@b3/extplugins/conf/firstkill.xml" name="firstkill" priority="16" />

and

<plugin config="@b3/extplugins/conf/firstkill.xml" name="firstkill"/> in b3.xml

coz all the plugin i've already have are listed like this (<plugin config="@b3/extplugins/conf/firstkill.xml" name="firstkill" priority="16" />)
Logged
B3 Contrib/Support
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 133
Offline Offline
WWW
« Reply #11 on: September 18, 2010, 11:51:48 AM »

The priority parameter is however no longer used, so you don't need it anymore for plugins.
Logged
Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« Reply #12 on: September 18, 2010, 12:12:55 PM »

thankyou so much PtitBigorneau for your time.. i think i don't have any luck.. Sad
Logged
B3 Contrib/Support
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 133
Offline Offline
WWW
« Reply #13 on: September 18, 2010, 12:29:25 PM »

error line 62  indentation rules
and remplace b3.events.EVT_GAME_ROUND_END by b3.events.EVT_GAME_ROUND_START

firstkill plugin tested -> Download
« Last Edit: September 18, 2010, 12:58:55 PM by PtitBigorneau » Logged
Jr. Member
**
OS: Linux
Type: Renting Server with B3
Gameservers: Urban Terror
Posts: 35
Offline Offline
« Reply #14 on: September 19, 2010, 07:49:08 AM »

tnx a lot  PtitBigorneau (i love you)

its working like a charm...
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal