Jump to content

help

Closed 1.1.5

hi could I have some help at setting this up please am really struggling with it, I want it to give player automatic VIP when they buy a coin but I don't know where to start, every time i change something in the config it wont load the config back up, at this point I would literally pay you to set me a config file up and help me set it up so people can buy them, name the price??

 

Share this comment


Link to comment
28 minutes ago, dan owen said:

hi could I have some help at setting this up please am really struggling with it, I want it to give player automatic VIP when they buy a coin but I don't know where to start, every time i change something in the config it wont load the config back up, at this point I would literally pay you to set me a config file up and help me set it up so people can buy them, name the price??

 

Hey mate pop the details of what you are trying to do and your config in here and I can assist.

Share this comment


Link to comment

i just want it to automatically give them 30 days vip and give them a recycler when they donate to my patreon etc, i have two tiers, am very new to all this. i have a patreon set up and thats about as far as i have got, i will pay you what i paid for he plugin if you can set that up for me please? if i can't use my patreon i don't mind setting something else up, i just don't know what.

VIPToken (2).json

Share this comment


Link to comment
16 hours ago, dan owen said:

i just want it to automatically give them 30 days vip and give them a recycler when they donate to my patreon etc, i have two tiers, am very new to all this. i have a patreon set up and thats about as far as i have got, i will pay you what i paid for he plugin if you can set that up for me please? if i can't use my patreon i don't mind setting something else up, i just don't know what.

VIPToken (2).json 2.61 kB · 0 downloads

I have no idea how patreon functions. The video tutorial showcases how it works with Tebex. If you aren't sure how patreon works, just use Tebex.

What is the name of your VIP group in oxide?

Share this comment


Link to comment

i have done it your way sorry i didnt see that video massive help dude would it be passible for you to add me another line in my config for another automated vip kit please, as i can only use the one because every time i try to change something it won't load the config back up 

Share this comment


Link to comment

VIPToken (3).json am using vip1 at the minute for my package on tebex but i would like a vip2 and 3 but everytime i try to copy how you added extra ones on the video i break my config, i have the groups made already in game i just need to sort this part out and then link them to my tebex, can you help me add two more vip tokens please?

 

Share this comment


Link to comment

Tebex Donate] Queueing command 503254291 for deletion: addtoken danny 76561199233131364 elite i dont know why its doing this am just trying to get it to go to a different group so i can give them different perms to vip1

 

 

Share this comment


Link to comment

[Tebex Donate] Attempting to process commands in the queue...

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Tebex Donate] Processing online commands for 76561199233131364...

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Tebex Donate] Processed online command for 76561199233131364: addtoken danny 76561199233131364 elite

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[VIPToken] Token type elite does not exist in the config.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Tebex Donate] Processed online command for 76561199233131364: givejetpack danny 76561199233131364 elite

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Failed to call hook 'GiveCustomItemCommand' on plugin 'JetPack v1.0.8' (FormatException: Input string was not in a correct format.)

at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00057] in :0

at System.Number.ParseUInt64 (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) [0x00014] in :0

at System.UInt64.Parse (System.String s, System.IFormatProvider provider) [0x00008] in :0

at System.Convert.ToUInt64 (System.String value) [0x0000c] in :0

at Oxide.Plugins.JetPack.GiveCustomItemCommand (ConsoleSystem+Arg arg) [0x0002d] in <4d8e3fb204824e1eb56017f0a36c04a3>:0

at Oxide.Plugins.JetPack.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00705] in <4d8e3fb204824e1eb56017f0a36c04a3>:0

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

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

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Tebex Donate] Queueing command 503256304 for deletion: addtoken danny 76561199233131364 elite

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Tebex Donate] Queueing command 503256305 for deletion: givejetpack danny 76561199233131364 elite

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Tebex Donate] Successfully deleted all executed commands.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

77.111.250.147:52754/76561199236144554/nexescarrido81 disconnecting: closing

Share this comment


Link to comment

Here is an issue

"Date time format (case sensitive): dd == day. MM == month. yyyy == year": "26-05-2022",

The default values were setup correctly and shows the format of the date, allowing you to change the formatting based on your region.

Should be (case sensitive)

"Date time format (case sensitive): dd == day. MM == month. yyyy == year": "dd-MM-yyyy",


When creating a group, there are a few things you need to keep in mind. I will take it line by line.

    "vip1": {
      "name": "vip1",
      "time_type": "day",
      "time_to_add": 30,
      "vip_group": "vip",
      "vip_description": "30 days vip and all the benifits that come with it",
      "remove_tokens_on_wipe": false,
      "token_item": {
        "name": "VIP Token - 30 days",
        "skin": 2529344523,
        "item_shortname": "radiationresisttea.pure"
      },
      "_command": null
    },

 

    "vip1": {

This is the unique key in the dictionary. It needs to be uniquely named so the config doesn't mess up. Your config is probably messing up because you have 2 VIP packages with the dictionary key "vip2".
 

      "name": "vip1",

This is the name of the vip tier that is displayed in the menu.

      "time_type": "day",
      "time_to_add": 30,

This is the time info. time_type can be populated with day, hour, minute, second.

time_to_add is the units of the above type that it adds. IE 30 days or 30 minutes.

      "vip_group": "vip",

This is the actual group that the player is added to for their VIP. Your current config is adding the player to the same group, on all 3 packages.

      "vip_description": "30 days vip and all the benifits that come with it",

This is the description that is displayed in the wallet.

      "remove_tokens_on_wipe": false,

Responsible for whether the token should be removed from a players wallet on server wipe.

      "token_item": {
        "name": "VIP Token - 30 days",
        "skin": 2529344523,
        "item_shortname": "radiationresisttea.pure"
      },

Item information for token. It is essential that the skin is unique for EVERY token. The name and the shortname can be the same.

 

      "_command": null

or

      "_command": {
        "command": "inventory.giveto {id} scrap 1000",
        "message": "You received some scrap.",
        "public_message": "{name} has redeemed a token and give themselves some scrap. ID: {id}",
        "hook": true
      }

This can be left null or you can specify an optional command to run when a player consumes a token. Useful for giving an item to a player etc.

 

TL;DR: you need to make sure each dictionary key is unique, the date format config option needs to be fixed as per the default value, and you need to adjust the VIP group in your config for each tier of VIP if the groups are meant to be different.

  • Like 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.