1. Any chance for more info on adding death messages to console?
     
  2. Is that really something you need? I didn't think many people even played legacy anymore.
     
  3. It would be nice to have. The admins don't sit in game. An option to only log to console would be nice. There are still players on Legacy :)
     
  4. Not worth the update to me as I no longer play:
    Just replace: rust.BroadcastChat(chatName, message); with Puts(message);
     
  5. Ok thanks. I don't fully understand the syntax of the line for Puts(message)
    Not much point in having this plugin for Oxide 2.0 Legacy without console writing.
     
  6. Puts("message") is the function to log to the server console.
     
  7. I noticed commented out lines of code. Are these where you already added this?

    var message = getDeathMessage("Suicide", tags.GetProperty("weapon").ToString(), tags);
    if (message != null)
    {
    rust.BroadcastChat(chatName, message);
    }
    //Puts((string)Death?.CallHook("GetDeathString", "Killer: {killer} {killerId} Killed: {killed} {killedId} Weapon: {weapon} BodyPart: {bodypart} Distance: {distance} DeathType: {deathType} Location: {location}", tags) ?? "Unknown");
     
  8. Those were just debug messages; feel free to comment them.
     
  9. Can we add you "You have killed Thurek" ?

    [​IMG]
     
    Last edited by a moderator: Jul 4, 2015
  10. This would need to be added for current version. Anyone wanna chime in on syntax for Oxide 2.0? This is from 1.18 DeathHandler.

    if(damage.victim.client and damage.attacker.client) then
    local isSamePlayer = (damage.victim.client == damage.attacker.client)
    tags.killed = damage.victim.client.netUser.displayName
    tags.killer = damage.attacker.client.netUser.displayName
    if not isSamePlayer then
    local dist = self:DistanceFromPlayers(damage.attacker.client.netUser.playerClient.lastKnownPosition,damage.victim.client.netUser.playerClient.lastKnownPosition)
    if self.Config.notifyKiller then
    rust.Notice(damage.attacker.client.netUser, "You killed " .. tags.killed)
     
  11. Does this plugin even work? I installed it and its not showing any messages...
     
  12. yes it's working.
     
  13. You could reference Renebs location plugin for the name of the location


    Code:
     static List<object[]> GetLocations()
            {
                var locationslist = new List<object[]>();
                locationslist.Add(new object[] { "Hacker Valley South", 5907, -1848 });
                locationslist.Add(new object[] { "Hacker Mountain South", 5268, -1961 });
                locationslist.Add(new object[] { "Hacker Valley Middle", 5268, -2700 });
                locationslist.Add(new object[] { "Hacker Mountain North", 4529, -2274 });
                locationslist.Add(new object[] { "Hacker Valley North", 4416, -2813 });
                locationslist.Add(new object[] { "Wasteland North", 3208, -4191 });
                locationslist.Add(new object[] { "Wasteland South", 6433, -2374 });
                locationslist.Add(new object[] { "Wasteland East", 4942, -2061 });
                locationslist.Add(new object[] { "Wasteland West", 3827, -5682 });
                locationslist.Add(new object[] { "Sweden", 3677, -4617 });
                locationslist.Add(new object[] { "Everust Mountain", 5005, -3226 });
                locationslist.Add(new object[] { "North Everust Mountain", 4316, -3439 });
                locationslist.Add(new object[] { "South Everust Mountain", 5907, -2700 });
                locationslist.Add(new object[] { "Metal Valley", 6825, -3038 });
                locationslist.Add(new object[] { "Metal Mountain", 7185, -3339 });
                locationslist.Add(new object[] { "Metal Hill", 5055, -5256 });
                locationslist.Add(new object[] { "Resource Mountain", 5268, -3665 });
                locationslist.Add(new object[] { "Resource Valley", 5531, -3552 });
                locationslist.Add(new object[] { "Resource Hole", 6942, -3502 });
                locationslist.Add(new object[] { "Resource Road", 6659, -3527 });
                locationslist.Add(new object[] { "Beach", 5494, -5770 });
                locationslist.Add(new object[] { "Beach Mountain", 5108, -5875 });
                locationslist.Add(new object[] { "Coast Valley", 5501, -5286 });
                locationslist.Add(new object[] { "Coast Mountain", 5750, -4677 });
                locationslist.Add(new object[] { "Coast Resource", 6120, -4930 });
                locationslist.Add(new object[] { "Secret Mountain", 6709, -4730 });
                locationslist.Add(new object[] { "Secret Valley", 7085, -4617 });
                locationslist.Add(new object[] { "Factory Radtown", 6446, -4667 });
                locationslist.Add(new object[] { "Small Radtown", 6120, -3452 });
                locationslist.Add(new object[] { "Big Radtown", 5218, -4800 });
                locationslist.Add(new object[] { "Hangar", 6809, -4304 });
                locationslist.Add(new object[] { "Tanks", 6859, -3865 });
                locationslist.Add(new object[] { "Civilian Forest", 6659, -4028 });
                locationslist.Add(new object[] { "Civilian Mountain", 6346, -4028 });
                locationslist.Add(new object[] { "Civilian Road", 6120, -4404 });
                locationslist.Add(new object[] { "Ballzack Mountain", 4316, -5682 });
                locationslist.Add(new object[] { "Ballzack Valley", 4720, -5660 });
                locationslist.Add(new object[] { "Spain Valley", 4742, -5143 });
                locationslist.Add(new object[] { "Portugal Mountain", 4203, -4570 });
                locationslist.Add(new object[] { "Portugal", 4579, -4637 });
                locationslist.Add(new object[] { "Lone Tree Mountain", 4842, -4354 });
                locationslist.Add(new object[] { "Forest", 5368, -4434 });
                locationslist.Add(new object[] { "Rad-Town Valley", 5907, -3400 });
                locationslist.Add(new object[] { "Next Valley", 4955, -3900 });
                locationslist.Add(new object[] { "Silk Valley", 5674, -4048 });
                locationslist.Add(new object[] { "French Valley", 5995, -3978 });
                locationslist.Add(new object[] { "Ecko Valley", 7085, -3815 });
                locationslist.Add(new object[] { "Ecko Mountain", 7348, -4100 });
                locationslist.Add(new object[] { "Zombie Hill", 6396, -3428 });
                return locationslist;
            }
     
    Last edited by a moderator: Aug 23, 2015
  14. I don't play legacy anymore, so I doubt I will take the time to update the plugin.
     
  15. yeah but I didn't play legacy for almost a year and here I am. "Oxide 2.0" new toy.
    It wouldn't take much to update that.. you should then it would be pretty complete..
     
  16. Hello this version that i modify works for your problem!
     

    Attached Files:

  17. the plugin dont work !!
     
  18. Wulf

    Wulf Community Admin

    Try the above version, else post details/logs.
     
  19. i tried the 2 versions !!
     
  20. check console or logs, what does it say?