Need help?
Create a topic in the appropriate section
Don't write everything in the chat!Take a look at the marketplace
There you can buy
everything related to game serversDon't want a ban?
Please read our rules
Don't disturb the order!Sell or buy?
Use services of the guarantor
We will make your deal safe



- 0
Sign in to follow this
Followers
0
Трейдер не снимает деньги у игрока из инвентаря
Asked by
victortreval
-
Our picks
Добрый день дорогие мне уже люди этого форума которые выручали меня не раз по самым тупым и не очень вопросам.
Сегодня столкнулся со следующей проблемой - прописано много трейдеров и все они работают
Но
Последние 2 трейдера при наличии денег у игрока дают ему возможность купить вещ но при этом не забирают у него деньги из инвентаря
Ситуация:
-у игрока в инвентаре лежит условно 5000
-игрок зашел во вкладку и выбрал товар
-нажимает кнопку купить и проигрывается звук монет
-игрок получает товар
-деньги как были в инвентаре (5000) так и лежат
-при попытке продать товар, товар продается но деньги не выдает в инвентарь к игроку
Вот строчки кода трейдера где такая ситуация:
TraderPlusGeneralConfig.json
{
"Id": 34,
"Name": "TraderPlusSign",
"GivenName": "Все для интерьера",
"Role": "Car Trader2",
"Position": [
3798.82,
311.3,
8842.35
],
"Orientation": [
54.0,
0.0,
0.0
],
"Clothes": []
},
TraderPlusIDsConfig.json
{
"Id": 34,
"Categories": [
"Мебель"
],
"LicencesRequired": [],
"CurrenciesAccepted": []
},
TraderPlusPriceConfig.json
{
"CategoryName": "Мебель",
"Products": [
"Bp2_Long_box,1,-1,0,4,1",
"Bp_tumba,1,-1,0,4,1",
"Bp_Shelf,1,-1,0,4,1",
"Bp_GunShelf,1,-1,0,4,1",
"Bp_Sofa_Gun_Rack_Kit,1,-1,0,4,1",
"Bp_Bowl,1,-1,0,4,1",
"Bp_Bowl_1,1,-1,0,4,1",
"Bp_Bowl_2,1,-1,0,4,1",
"Bp_Whell_Shelf_Kit,1,-1,0,4,1",
"Bp_Shelf_metal_Kit,1,-1,0,4,1",
"Bp_ShelfTool_Kit,1,-1,0,4,1",
"Bp_SM_Locker_Kit,1,-1,0,4,1",
"Bp_Wooden_Barrel,1,-1,0,4,1",
"Bp_table_s_kit,1,-1,0,4,1",
"Bp_ToolBox_G,1,-1,0,4,1",
"Bp_ToolBox_R,1,-1,0,4,1",
"Bp_ToolBox_B,1,-1,0,4,1",
"Bp_Couch_beige_Kit,1,-1,0,4,1",
"Bp_Couch_Kit,1,-1,0,4,1",
"Bp_bed,1,-1,0,4,1",
"Bp_Water_Collector_Kit,1,-1,0,4,1",
"Bp_Cooler_Zil,1,-1,0,4,1",
"Bp_FridgeBig,1,-1,0,4,1",
"Bp_GasLight,1,-1,0,4,1",
"Msp_MoskvaFridge_Blue_Kit,1,-1,0,4,1",
"Msp_MoskvaFridge_Cream_Kit,1,-1,0,4,1",
"Msp_MoskvaFridge_Red_Kit,1,-1,0,4,1",
"Msp_SovietOkaFridge_Kit,1,-1,0,4,1",
"Msp_SnowballFridge_Kit,1,-1,0,4,1",
"Msp_AmericanAppleCrate,1,-1,0,4,1",
"Msp_AppleCrate,1,-1,0,4,1",
"Msp_PlasticCrate,1,-1,0,4,1",
"Msp_Safe_Kit,1,-1,0,4,1",
"Msp_Bookcase_Kit,1,-1,0,4,1",
"Msp_Wardrobe_Brown_Kit,1,-1,0,4,1",
"Msp_Wardrobe_Green_Kit,1,-1,0,4,1",
"Msp_Wardrobe_White_Kit,1,-1,0,4,1",
"Msp_GunCabinet_Kit,1,-1,0,4,1",
"Msp_Gunwall_kit,1,-1,0,4,1",
"Msp_WoodenTable_kit,1,-1,0,4,1",
"Msp_WoodenChair_kit,1,-1,0,4,1",
"Msp_RoomDivider_kit,1,-1,0,4,1"
]
},
Share this post
Link to post
Share on other sites