Duelist

Moved

Total Downloads: 2,050 - First Release: Jun 15, 2017 - Last Update: Jul 20, 2018

5/5, 19 likes
  1. I'm getting the same error as RockyRo, I suspect this is related to the Building 3.0 update released today.
     
    Last edited by a moderator: Dec 8, 2017
  2. nivex updated Duelist with a new update entry:

    1.1.5

     
  3. Thank you, nivex! It's working perfectly again.
    Edit: after about 5 matches and 20 minutes the console started printing this error:

    Code:
    Failed to call hook 'CanEntityTakeDamage' on plugin 'Duelist v1.1.5' (InvalidCastException: Cannot cast from source type to destination type.)
      at Oxide.Plugins.Duelist.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 
    The duels seem to be operating as intended still, but the console printed this error ~20 times in a short period. TruePVE is installed/running on this server.
     
    Last edited by a moderator: Dec 8, 2017
  4. Attention! After the last update, the plugin affects the game outside the duel! Players have no damage from falls and under water.
     
  5. With latest version player/s was spawned under the arena, and was able to swim away, put free items in a box, and suicided. At least you need to check, if a player leaves duelling area to prevent him from getting free items
     
  6. In the Duel GrTeleport help to get free weapon and armor. Players just type /go C6, or any other index on map G, and he is teleport out of the duel full armored. How to block use hook on the duel? I block use command "/go" in Duel:

    if (arg.Args.Contains("/go"))
    {
    DuelPlayer dueller = arg.Player()?.GetComponent<DuelPlayer>();
    if (dueller == null) return null;
    if (dueller.canDoSomeThings) return null;
    SendReply(arg.Player(), cantTp);
    return false;
    }

    And command /go not work, but if write /go C6 - its work... How to block all greed index on map when player on duel?
     
  7. Just add /go to a "Blacklisted Chat Commands" in a config.
     
  8. No config. I configure plugin Duel in .cs. Need function to block use GrTeleport, when tou on duels
     
  9. Use ctrl+f in a Duelist.json, there is "Blacklisted Chat Commands"
     
  10. I not use Duelist plugin. Jost buy private plugin, ho may low bags, but config is not present with him. Only .cs. My plugin is similar in functionality and even code, just a little modified, and without the config.
     
  11. This is a Duelist plugin discussion thread.

    Btw i remember, once there was a situation, when you somehow got teleported from arena but the duel wasn't finished and i just had to wait till the timelimit of duel. So i guess, that checking if a player has left the duelling area and cancelling the duel, might prevent these, and future possible bugs/dupes as well.
     
  12. Failed to call hook 'OnEntityTakeDamage' on plugin 'Duelist v1.1.5' (NullReferenceException: )

    at (wrapper managed-to-native) UnityEngine.Component:get_transform ()

    at Oxide.Plugins.Duelist.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.Duelist.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  13. Hey, i have question..
    Why can not 2 admins / clan / friends make a duel with another? It seems that then "godmode" is attached
     
  14. seems like the whitelist command option is not working. ./ warp to XXX works anyway. so players just warp out of duels and steal the kits.
     
  15. Is it possible to use an own arena with walls and stuff? i'd preferably spawn this high up in the air.
    Or does it always create high walls?
     
  16. Seems like betting doesnt work, Ive found my winnings once after like 5 minutes of the duel ended, The other time i didnt recieve it at all?
    I did,
    /duel bet gp 500 [name]
    /duel [name]
    Am i doing something wrong here?

    Post can be deleted i whas stupid enough to not use /bet claim.

    This plugin works like a charm i love it.
     
    Last edited by a moderator: Feb 23, 2018
  17. can this be used in an arena building made by me? like i don't need no walls to be created, only deathmatch with betting, is it possible or this doesnt do that? the plugin seems complex af
     
  18. | Failed to call hook 'OnEntityTakeDamage' on plugin 'Duelist v1.1.5' (NullReferenceException: )

    at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)

    at Oxide.Plugins.Duelist.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitInfo) [0x0085d] in <5fc6e06d57134d15aa9c26034582bf71>:0

    at Oxide.Plugins.Duelist.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005a1] in <5fc6e06d57134d15aa9c26034582bf71>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <b918fd1a0b65418e85c0cd454ff00f08>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c4760460410a4a11809c1c757af3728a>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c4760460410a4a11809c1c757af3728a>:0
     
  19. is there any way to clean the plugin code smaler ?
    is it possible that this plugin do laggspikes on the server ?
     
  20. nivex updated Duelist with a new update entry:

    1.1.6