1. beans54321

    beans54321 Naked Wanderer

    I want to make a simple plugin i have read the docs but its not that much help and since reign of kings is kind of a small game does anyone have a idea on coding a plugin in c# that makes it so if the player does /teamspeak it then sends them the ts ip. thanks!
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You can handle this as a universal plugin or a RoK only plugin. Here's an example for universal:
    Code (C#):
    using Oxide.Core.Libraries.Covalence;

    namespace Oxide.Plugins
    {
        [Info("CommandReply", "Wulf/lukespragg", "0.0.1")]
        [Description("Shows a reply on command usage")]

        class CommandReply : CovalencePlugin
        {
            [Command("teamspeak")]
            void TeamSpeakCommand(IPlayer player, string command, string[] args)
            {
                player.Reply("The TeamSpeak server IP is: 8.8.8.8");
            }
        }
    }
     
  3. beans54321

    beans54321 Naked Wanderer

    thanks!!! also do you have any ideas for me. i want to start to code plugins in c# but im confused where to start
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I started by just tinkering with plugins and getting familiar with the language. There are plenty of good tutorials to be found around the net on C# though.
     
  5. beans54321

    beans54321 Naked Wanderer

    what do i save it as?
    also how do i load it i did /reload (plugin name) and it did not work
    --- Double Post Merged, Dec 10, 2016 ---
    do you think you can link me to one
     
  6. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    CommandReply.cs
     
  7. beans54321

    beans54321 Naked Wanderer

    thanks i looked up how to code a reign of kings plugin in C# and nothing shows up thats relevent
    how come i try to save it and it still says the ip is 8.8.8.8 when i edited it .

    not working so i made my own uploaded it to here and it still does not work. says did not reload (plugin name)
    can u post me a tutorial link?
     
    Last edited by a moderator: Dec 10, 2016
  8. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I was referring to C# tutorials, not step by step instructions on how to make plugins for this specific game.

    I'd need to see the errors you are getting to actually help you.
     
  9. beans54321

    beans54321 Naked Wanderer

    its fine. can u pls send me a link for how to code a universial plugin. thx
     
  10. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I gave you an example above. I'd suggest learning a bit of C# first.
     
  11. beans54321

    beans54321 Naked Wanderer

    do u think you could join my teamspeak its beanzgamingts3.ddns.net i need help pls.
    --- Double Post Merged, Dec 10, 2016 ---
    wulf what happens is i put it in file then i do /load (plugin name)
    nothing happens then i do /reload (plugin) it says (pluginname) was not loaded
     
  12. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Plugins are loaded automatically when under the right location. I'd need to know exactly what you use and see though.
     
    Last edited: Dec 10, 2016
  13. beans54321

    beans54321 Naked Wanderer

    i have a ftp client on my server if you join my ts i will give u a user and pass pls help.
     
  14. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I can help you here, I just need you to provide me the errors you are seeing. You can find them in RCON or your oxide/logs.
     
  15. beans54321

    beans54321 Naked Wanderer

    confused pls join ts