1. I have little to no experience to coding i've been wanting to start but now that i have time i want to learn VERY badly i looked at the Oxide API. Theres a few things i can't figure out like how it would spawn in Base.Player into the world and the where i'm standing or looking and how to bind a command to that I guess i not as good as i thought :p
    [DOUBLEPOST=1470959177][/DOUBLEPOST]Also attaching inventories to it/making it swing.
     
  2. Wulf

    Wulf Community Admin

    I'd recommend taking a look at a few of the many threads on how to get started in this forum section.
     
  3. I've taken a peek at a few and i'm still confused feel a bit like an idiot.
     
  4. Wulf

    Wulf Community Admin

  5. This all is a bit overwhelming but i'm determined...... most of the time i understand whats going on but now i don't......... don't really know what to do with any of the things i know what i want but not how i can get there......
     
  6. Wulf

    Wulf Community Admin

    Just start small, tinker with a server and some existing plugins if you aren't familiar with C#.
     
  7. This is what i've started with and i'm driving my self insane and when i set a goal i like to think i get it done...... I know this isn't "Small"

    using System;
    using System.Collections.Generic;
    using Oxide.Core;
    using Oxide.Core.Plugins;
    using Rust;
    using UnityEngine;

    namespace Oxide.Plugins
    {
    [Info("Gather's", "Mayday72", 0.1)]
    [Description("Have npc's gather stuff")]

    class Gathers : RustPlugin
    {

    }
    [DOUBLEPOST=1470961948][/DOUBLEPOST]How do i start with this I'm thinking i need to start with commands but how do i put that in??? Just Hit enter a couple times and put


    namespace Oxide.Plugins
    {
    [Info("Gather's", "Mayday72", 0.1)]
    [Description("Spawns Gather")]

    class EpicPlugin : CovalencePlugin
    {
    [Command("Recruit")]
    void TestCommand(IPlayer player, string command, string[] args)
    {
    player.Reply("Spawned your gather!");
    }
    }
    }
     
  8. An example :
    Code:
      [ChatCommand("kdr")]
      void cmdKdr(BasePlayer player, string command, string[] args)
      {
      GetCurrentStats(player);
      }
    
    The GetCurrentStats is another function that has the stats in it. And I just call that function onto my command, and it will work.
     
  9. @Wulf How do i use API from other plugins? Furthermore how would i spawn in an player_model on where i look/stand and attach it to a command, i'm confused on how to Spawn in a selected box
     
  10. Wulf

    Wulf Community Admin

    There's information on how to call another plugin in the Docs link at the top of the page. For spawning an item, you'd need to dig around in Rust's Assembly-CSharp.dll or other plugins such as the Build plugin.
     
  11. You didn't answer the part where i asked about binding a comand to a creating a entity <3