KillFeed

Approved KillFeed 1.1.5

No permission to download

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,956
1,129
113
At your house.
github.com
ice cold submitted a new resource:

KillPopup - this plugin send a popup on the Atacker his screen



Read more about this resource...
Suggestions.

Python:
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite


class KillNotice:
    def On_PlayerKilled(self, DeathEvent):
        # Ensure that both the killer is a player and the victim is also a player
        # This is because the killer can be "world", "npc" too, and It would cause errors.
        if DeathEvent.VictimIsPlayer and DeathEvent.AttackerIsPlayer:
            DeathEvent.Attacker.Notice("☠", "You killed " + DeathEvent.Victim.Name)
 

ice cold

Active Member
Member
Oct 24, 2016
610
102
28
Canada
Suggestions.

Python:
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite


class KillNotice:
    def On_PlayerKilled(self, DeathEvent):
        # Ensure that both the killer is a player and the victim is also a player
        # This is because the killer can be "world", "npc" too, and It would cause errors.
        if DeathEvent.VictimIsPlayer and DeathEvent.AttackerIsPlayer:
            DeathEvent.Attacker.Notice("☠", "You killed " + DeathEvent.Victim.Name)
I'm i allowed to upload this one as update?
 

Mr. Bean ✅

New Member
Member
Mar 3, 2017
6
1
3
Estonia
Every time you get killed by a wolf or bear it shows this error message.

[1/22/2019 3:52:25 AM] [Error] [Error] Failed to invoke: KillFeed<Python>.On_PlayerKilled()
'Entity' object has no attribute 'SteamID'
System.Object GetError(System.Runtime.CompilerServices.CallSite, System.Object, IronPython.Runtime.CodeContext)
at IronPython.Runtime.Binding.PythonGetMemberBinder+FastErrorGet`1[System.Object].GetError (System.Runtime.CompilerServices.CallSite site, System.Object target, IronPython.Runtime.CodeContext context) [0x00000] in <filename unknown>:0
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[Object,CodeContext,Object] (System.Runtime.CompilerServices.CallSite site, System.Object arg0, IronPython.Runtime.CodeContext arg1) [0x00000] in <filename unknown>:0
at IronPython.Runtime.Binding.PythonGetMemberBinder+FastPropertyGet`1[System.Object].GetProperty (System.Runtime.CompilerServices.CallSite site, System.Object target, IronPython.Runtime.CodeContext context) [0x00000] in <filename unknown>:0
at Microsoft.Scripting.Interpreter.DynamicInstruction`3[System.Object,IronPython.Runtime.CodeContext,System.Object].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
Traceback (most recent call last):
File "<string>", line 44, in On_PlayerKilled
AttributeError: 'Entity' object has no attribute 'SteamID'
 
  • Like
Reactions: ice cold

ice cold

Active Member
Member
Oct 24, 2016
610
102
28
Canada
Every time you get killed by a wolf or bear it shows this error message.

[1/22/2019 3:52:25 AM] [Error] [Error] Failed to invoke: KillFeed<Python>.On_PlayerKilled()
'Entity' object has no attribute 'SteamID'
System.Object GetError(System.Runtime.CompilerServices.CallSite, System.Object, IronPython.Runtime.CodeContext)
at IronPython.Runtime.Binding.PythonGetMemberBinder+FastErrorGet`1[System.Object].GetError (System.Runtime.CompilerServices.CallSite site, System.Object target, IronPython.Runtime.CodeContext context) [0x00000] in <filename unknown>:0
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[Object,CodeContext,Object] (System.Runtime.CompilerServices.CallSite site, System.Object arg0, IronPython.Runtime.CodeContext arg1) [0x00000] in <filename unknown>:0
at IronPython.Runtime.Binding.PythonGetMemberBinder+FastPropertyGet`1[System.Object].GetProperty (System.Runtime.CompilerServices.CallSite site, System.Object target, IronPython.Runtime.CodeContext context) [0x00000] in <filename unknown>:0
at Microsoft.Scripting.Interpreter.DynamicInstruction`3[System.Object,IronPython.Runtime.CodeContext,System.Object].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
Traceback (most recent call last):
File "<string>", line 44, in On_PlayerKilled
AttributeError: 'Entity' object has no attribute 'SteamID'
oh yeah ahahha i totally forgot about this bug, thanks for reporting it again ;) i wil update soon
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,956
1,129
113
At your house.
github.com
Still doing the error every time I get killed by a bear.
Well...

Issue:
Python:
    def On_PlayerKilled(self, DeathEvent):
        if self.Enable == 1:
            if DataStore.Get("pop", DeathEvent.Attacker.SteamID):
                if DeathEvent.VictimIsPlayer and DeathEvent.AttackerIsPlayer:
                    DeathEvent.Attacker.Notice("☠", "You killed " + DeathEvent.Victim.Name)
If checks are at wrong place, nullchecks should also be there.
Python:
    def On_PlayerKilled(self, DeathEvent):
        if self.Enable == 1:
            if DeathEvent.VictimIsPlayer and DeathEvent.AttackerIsPlayer and DeathEvent.Victim is not None and DeathEvent.Attacker is not None:
                if DataStore.Get("pop", DeathEvent.Attacker.SteamID):
                    DeathEvent.Attacker.Notice("☠", "You killed " + DeathEvent.Victim.Name)
NPCKill fix:

Python:
    def On_NPCKilled(self, DeathEvent):
        if self.NpcKill == 1:
            if DeathEvent.Attacker is not None and DataStore.Get("pop", DeathEvent.Attacker.SteamID):
                DeathEvent.Attacker.Notice("☠", "You killed a " + DeathEvent.Victim.Name)
 

ice cold

Active Member
Member
Oct 24, 2016
610
102
28
Canada
Well...

Issue:
Python:
    def On_PlayerKilled(self, DeathEvent):
        if self.Enable == 1:
            if DataStore.Get("pop", DeathEvent.Attacker.SteamID):
                if DeathEvent.VictimIsPlayer and DeathEvent.AttackerIsPlayer:
                    DeathEvent.Attacker.Notice("☠", "You killed " + DeathEvent.Victim.Name)
If checks are at wrong place, nullchecks should also be there.
Python:
    def On_PlayerKilled(self, DeathEvent):
        if self.Enable == 1:
            if DeathEvent.VictimIsPlayer and DeathEvent.AttackerIsPlayer and DeathEvent.Victim is not None and DeathEvent.Attacker is not None:
                if DataStore.Get("pop", DeathEvent.Attacker.SteamID):
                    DeathEvent.Attacker.Notice("☠", "You killed " + DeathEvent.Victim.Name)
NPCKill fix:

Python:
    def On_NPCKilled(self, DeathEvent):
        if self.NpcKill == 1:
            if DeathEvent.Attacker is not None and DataStore.Get("pop", DeathEvent.Attacker.SteamID):
                DeathEvent.Attacker.Notice("☠", "You killed a " + DeathEvent.Victim.Name)
oh thanks now i see ahhahahah