No difference :/
Rust-Kits
Moved
Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
Wulf Community Admin
-
Fixed it for him @Wulf he was not an admin only a mod
-
Can anyone tell me the process for creating a one time welcome kit?
I have created a kit that can be called via "/kit WelcomePack" which only has one MaxUse, but looking at the AutoKit function it looks like i can generate this for my players without the need for them to run the command? is it possible?
Otherwise i'll have to add a message/advert in notifier which is a bit silly.
EXCELLENT mod! many thanks for all your hard work on this! -
-
/kit add "autokit"
/kit items max 1 cooldown false description "This is the Welcome/Starter kit" hide true
thanks -
/kit items description "This is the autokit" authlevel 2
/kit hide true
/kit max 1
run each with a new line -
The "/kit max 1" isnt taking affect (although there is a confirmation when i run the command that it's ok).
If i kill myself and respawn i get all the kit back. i need this to be a one time kit that never gets applied again.
thanks again -
You can try the below
/kit resetkits
/kit resetdata
Then remake the kit
/kit add "welcomepack"
/kit items description "This is the WelcomePack"
/kit max 1
Players can get them now when they join
You can also make this one to test first
/kit add "welcomepack"
/kit items description "This is the WelcomePack" authlevel 2
/kit max 1
if it does not auto give it after you have relogged then use the first one above. Make sure you remove all items on you before you relog
use this command first to delete the kit
/kit resetkits
/kit resetdataLast edited by a moderator: Apr 4, 2016 -
"/kit welcomepack" command and then they only get access to the one kit.
i'm tying to configure it so it's auto given to them (like the autokit) but only does this once.
before testing this all i downloaded the latest version(after deleting all previous files/folders).
i just tried again and both of those two methods have the same result (they act like normal kits that you need to manually claim)
[DOUBLEPOST=1459809279][/DOUBLEPOST]
Code:void OnPlayerRespawned(BasePlayer player) { if (!storedData.Kits.ContainsKey("autokit")) return; var thereturn = Interface.Oxide.CallHook("canRedeemKit", player); if (thereturn == null) { player.inventory.Strip(); GiveKit(player, "autokit"); } }
had a quick skip through the rest of the code and the validation is there for a normal kit redeem but the autokit function seems to bypass it all?
or is this all done in the var thereturn = Interface.Oxide.CallHook("canRedeemKit", player); line? if so, it's not working :/
Also, i don't know if it matters, but the Kits_Data.json file remains empty with only a "[]" in there. if i create a regular kit, then that get populated with data; both the autokit set and the newly created regular kit set. Editing the max value(within the Kits_Data.json file) on the regular kit section affects the kit allocation/availability, but editing the autokit section max value has no affect.Last edited by a moderator: Apr 5, 2016 -
I'm having a bit of issues with the Kit request coding because I'm a lot more familiar with RoK's but it's a lot different. I'd like a kit list under the following names..
- Starter Kit
- Donator Tier 1
- Donator Tier 2
- Donator Tier 3
-
Hey guys, I've had kits for a while and pretty much had a Blank GUI that was given by someone on here.
Im useless when it comes to this i dont understand it at all.
I just want a GUI where people can pick 4 options (hunter/builder/bandit/gatherer)
Bankit - revolver/pipe shotrun ammo/gun powder
builder - building plan/hammer/wood/lock/sleeping bag
Gatherer - stone hatchet/stone pickaxe/cloth
Hunter - spear/bow/ arrows.
I have no idea how to do it, been trying to research and trial and error for about a week. If anyone could help it would be much appreciated. -
Code:{ "NPC - GUI Kits": { "0": { "description": "Welcome on this server, Here is a list of free kits that you can get <color=red>only once each</color>\n\n <color=green>Enjoy your stay</color>", "kits": [ "admin", "sniper", "hunter", "elite", "moderator", "vip" ] }, "8753201223": { "description": "<color=red>VIPs Kits</color>", "kits": [ "kit1", "kit3" ] } } }
-
Hey Resistance, thank you very very much for the quick reply, im very grateful.
It worked i just checked the oxide/date-Kits.json and yeah it think i got it now.
Again thank you for quick response.
p.s to add items and eg. do i just change and edit these ?
"sniper": {
"name": "sniper",
"description": "Help for them raids, usable twice at 1hour interval",
"max": 0,
"cooldown": 3600.0,
"authlevel": 0,
"hide": false,
"npconly": false,
"permission": null,
"image": "http://cdn.akamai.steamstatic.com/s.../90ae5f49c7f2416b7eef3d55dde9f7fc6bb0ce80.jpg",
"items": [
{
"itemid": 106433500,
"bp": false,
"skinid": 0,
"container": "wear",
"amount": 1
},
{
"itemid": 2107229499,
"bp": false,
"skinid": 0,
"container": "wear",
"amount": 1
},
{
"itemid": -864578046,
"bp": false,
"skinid": 0,
"container": "wear",
"amount": 1
},
{
"itemid": -2128719593,
"bp": false,
"skinid": 0,
"container": "wear",
"amount": 1
},
{
"itemid": -1595790889,
"bp": false,
"skinid": 0,
"container": "wear",
"amount": 1
},
{
"itemid": -288010497,
"bp": false,
"skinid": 0,
"container": "wear",
"amount": 1
},
{
"itemid": 815896488,
"bp": false,
"skinid": 0,
"container": "main",
"amount": 100
},
{
"itemid": -55660037,
"bp": false,
"skinid": 0,
"container": "belt",
"amount": 1
},
{
"itemid": 586484018,
"bp": false,
"skinid": 0,
"container": "belt",
"amount": 3
},
{
"itemid": -789202811,
"bp": false,
"skinid": 0,
"container": "belt",
"amount": 2
},
{
"itemid": -337261910,
"bp": false,
"skinid": 0,
"container": "belt",
"amount": 3
}
]
},
[DOUBLEPOST=1459934347,1459925216][/DOUBLEPOST]Ok, sorry but im about to come an annoying person who asks you lots of questions. I uploaded the Kits, then upload a json cfg to the data folder.
When i type /kit in game it comes up with "hunter" "elite" "moderator" "vip". How do i edit those and add my own picture. -
-
After i've made the kit and it confirms me that it worked, i try to redeem it and it says "Kit Redeemed". But the items are not in my inventory, i can also not set any max usage of the kit or a cooldown. I've deleted the kits.cs file in the plugin folder, the two kits files in the data folder and the one in the config, even downloaded the kits.cs again and placed it again in the plugin folder (several times), still no change...any1 who can help?
-
You only made the kit names but not the items in the kit -
do you know by any chance which page explains the donator kits? cheers
-
-
So everything worked just fine, thx again! At least for a few hours.. After the automatic server restart the kits disapeared except for one kit. And now, whatever i do, for example: /kit add starter
/kit items description "This is the Welcome/Starter kit" hide true max 3 cooldown 3600, is not working either. nothing is working anymore. i've replaced everything, used /kit resetkits etc.. but nothing works anymore.. and my notifier gets overwritten every server start aswell. i have no idea what to do, it drives me crazy! do you have advise?