I'm looking for a plugin that will allow anyone to craft anything at anytime, without needing the items in their inventory.
Rust Craft any item at anytime
Discussion in 'Plugin Requests' started by FTM, Nov 19, 2016.
-
I'm talking about deployables.
To give players the ability to craft a gun, without gears. -
-
-
Those guys do have some cool custom plugins I don't think there are any current plugins that do that.
Other than just allowing players to use F1 spawn menu to get what they want. (AdminSpawn plugin), but that's not crafting themLast edited by a moderator: Nov 26, 2016 -
Sounds more like hacked the game extremely...
[DOUBLEPOST=1479615717][/DOUBLEPOST]
Thats the only possible way they got done it...
[DOUBLEPOST=1479616186][/DOUBLEPOST]
[DOUBLEPOST=1479617298][/DOUBLEPOST]And it is like i said: its not possible to craft everything WITHOUT having resources!!!
If you would have watched the things corretly on their sandbox servers, then you would have seen then you have 50k of resources added hidden to your inventory when you login -
-
Intoxicated gives you 50k of everything on login, so there's nothing very special behind and shows only, such functions "like craft all without resources" are only a trick..like I said -
-
-
Code:
void OnPlayerInit(BasePlayer player) { player.inventory.containerMain.capacity = 60; //add more slot to inventory player.inventory.containerMain.maxStackSize = 5000000; //set maxstacksize Item item = ItemManager.CreateByItemID(3655341, 500000); //wood item.MoveToContainer(player.inventory.containerMain, 59, true); //add item to last slot because 0-59 = 60 slots }
-
[DOUBLEPOST=1480012340][/DOUBLEPOST]Code:namespace Oxide.Plugins { [Info("CreativeCraft", "Sami37", 0.1)] [Description(".")] class CreativeCraft : RustPlugin { void OnPlayerInit(BasePlayer player) { player.inventory.containerMain.capacity = 60; //add more slot to inventory player.inventory.containerMain.maxStackSize = 5000000; //set maxstacksize Item item = ItemManager.CreateByItemID(3655341, 500000); //wood item.MoveToContainer(player.inventory.containerMain, 59, true); //add item to last slot because 0-59 = 60 slots } } }
-
I tested myself and it worked -
-
Probably need to send inventory snapshot after adding item
-
-
try this
Code:private void OnPlayerInit(BasePlayer player) { player.gameObject.AddComponent<PortalPlayerHandler>(); player.inventory.containerMain.capacity = 60; //add more slot to inventory player.inventory.containerMain.maxStackSize = 5000000; //set maxstacksize Item item = ItemManager.CreateByItemID(3655341, 500000); //wood item.MoveToContainer(player.inventory.containerMain, 59, true); //add item to last slot because 0-59 = 60 slots player.inventory.SendSnapshot(); }
-
-
Code:public void SendSnapshot() { using (TimeWarning timeWarning = TimeWarning.New("PlayerInventory.SendSnapshot", 0.1f)) { this.SendUpdatedInventory(PlayerInventory.Type.Main, this.containerMain, false); this.SendUpdatedInventory(PlayerInventory.Type.Belt, this.containerBelt, true); this.SendUpdatedInventory(PlayerInventory.Type.Wear, this.containerWear, true); } }