Compare SkinID via tradeSolved

Hello, I've listed two regular items (SkinID 0, the player is giving them away) in the store for an identical item with a custom SkinID. The first exchange works fine, but during the second exchange, the plugin swaps one item with SkinID 0 and one item with a custom SkinID for one item with a custom SkinID.

In short, can you compare the SkinID of items taken from the player inventory with SkinID of "Cost" items? Thanks a lot ;)

sorry for offtop, may be you can adaptive plugin for IQEconomic of multiple economics via HOOKS for balance in config? <3

I can address this issue, but it may need to be something you explicitly configure, or else it will be a backwards incompatible change for existing users. The reason it works this way (skin is compared only when the currency is configured with a specific skin) is that the server owner could setup a vending machine that allows players to trade in their extra guns (which could have many different skins) for scrap, and the skin of the gun should ideally not be relevant in that case.

Given your special circumstances where the same base item is being used for the merchandise and the currency, I could special-case the logic to avoid taking currency of the same skin as the merchandise (i.e., accept any skin except the merchandise skin), or just force the unskinned version to be required. This approach would make it so you don't need to configure this (which would be great for anybody else trying to do something similar) and would minimize impact to existing users.

hkOpCii8nnqPa1k.jpg aimacak

sorry for offtop, may be you can adaptive plugin for IQEconomic of multiple economics via HOOKS for balance in config? <3

I don't understand this request. Are you simply asking that the IQEconomic plugin be supported, similar to how the Economics plugin is supported?
NKXTQs24ExGTuL8.jpg WhiteThunder

I can address this issue, but it may need to be something you explicitly configure, or else it will be a backwards incompatible change for existing users. The reason it works this way (skin is compared only when the currency is configured with a specific skin) is that the server owner could setup a vending machine that allows players to trade in their extra guns (which could have many different skins) for scrap, and the skin of the gun should ideally not be relevant in that case.

Given your special circumstances where the same base item is being used for the merchandise and the currency, I could special-case the logic to avoid taking currency of the same skin as the merchandise (i.e., accept any skin except the merchandise skin), or just force the unskinned version to be required. This approach would make it so you don't need to configure this (which would be great for anybody else trying to do something similar) and would minimize impact to existing users.

I just want my weird idea in the video to work correctly :) I'd be happy to see any implementation that's convenient for you and existing users, thanks.
I'd also be grateful if you could make it so that in the current situation I could buy more than one item per exchange <3

 

NKXTQs24ExGTuL8.jpg WhiteThunder

I don't understand this request. Are you simply asking that the IQEconomic plugin be supported, similar to how the Economics plugin is supported?

Yeah, exactly)

 

I've pushed a change to the plugin's GitHub repository so that you can beta test it. This just makes the plugin explicitly search for items with SkinID 0 if the currency item doesn't have a specific skin and the the merchandise and currency are both of the same item type.

https://github.com/WheteThunger/CustomVendingSetup

Wow, thank you very much, I checked, now the exchange works correctly: it takes 2 items without a skin and gives 1 item with a skin. What do you say about the amount of goods per 1 exchange, is it possible to make more than 1 in my situation? :(

That isn't possible, due to client side limitations.

oh, okey.. thanks a lot again ;)

Locked automatically