Advanced Drop Discord

Advanced Drop Discord 1.3

GARAYEV

𝓗𝓔𝓘𝓢𝓔𝓝𝓑𝓔𝓡𝓖
Сообщения
264
Реакции
372
@oppa, Tell me how it looks on the screen when a client has a drop, are there sound or hud notifications or only in Discord? Can the other players see what has dropped?
в чате тоже показывает с подробной информацией и да, другие игроки тоже видят что выпало.
 

oppa

Участник
Сообщения
15
Реакции
7
  • Автор ресурса
  • #42
@oppa, Tell me how it looks on the screen when a client has a drop, are there sound or hud notifications or only in Discord? Can the other players see what has dropped?
1. HUD Notification Goes to the dropped player.
2. Drop writes detailed information in chat.
3. Drops are sent on Discord.
4. Drops are logged in a file.
 

HenryTownshand

Чел ты
Сообщения
255
Реакции
140
@oppa,
error:
L 11/03/2021 - 17:12:52: [technical\Discord\csgotr-advanced_drop.smx] [ Дроп Чек ] Not as we expected at DropForAllPlayersPatch, drop will not be available for all players.
 

crashzk

Участник
Сообщения
179
Реакции
33
@oppa, first thanks for this plugin, i'm testing here and so far everything ok.

I would just like to clear a doubt, players who do not have Prime Status on CSGO no longer receive drops. Do these players even without receiving drops receive the message that you dropped something for them?
 

oppa

Участник
Сообщения
15
Реакции
7
  • Автор ресурса
  • #45
@oppa, first thanks for this plugin, i'm testing here and so far everything ok.

I would just like to clear a doubt, players who do not have Prime Status on CSGO no longer receive drops. Do these players even without receiving drops receive the message that you dropped something for them?
Yes, it makes the non-prime ones look like they've been dropped. Since I don't know that many sourcepawn languages, I couldn't make a prime distinction. On the other hand, the prime discrimination codes on the internet could not distinguish between 21 level and prime people in the past.
 

pur4s

Участник
Сообщения
367
Реакции
92
Теперь вообще нихрена в коде не понятно. Убрать ненужные строчки в сообщение от вебхука труднее.
Наконец появился перевод, где можно сообщение в чате редактировать, а то надоело это тупое сообщение.
Кому вообще в голову пришло, чтобы оно в чат выводилось?

1636416862794.png


Есть тот, кто локализовал конфиг под русский язык, в последней на данный момент 1.3 версии?
 

crashzk

Участник
Сообщения
179
Реакции
33
Yes, it makes the non-prime ones look like they've been dropped. Since I don't know that many sourcepawn languages, I couldn't make a prime distinction. On the other hand, the prime discrimination codes on the internet could not distinguish between 21 level and prime people in the past.
First, thanks for the reply.

I understand, in the past many used this method to detect if the player had Status Prime or not.

C-подобный:
#pragma semicolon 1

#include <sourcemod>
#include <SteamWorks>
char g_sLogs[PLATFORM_MAX_PATH + 1];

public OnPluginStart()
{
   BuildPath(Path_SM, g_sLogs, sizeof(g_sLogs), "logs/free2bekicked.log");
}

public void OnClientPostAdminCheck(int client)
{
    if (CheckCommandAccess(client, "BypassPremiumCheck", ADMFLAG_ROOT, true))
    {
        return;
    }
    
    if (!SteamWorks_HasLicenseForApp(client, 624820))
    {
        //KickClient(client, "You need a paid CS:GO account to play on this server");
        LogToFile(g_sLogs, "%L doesn't have paid  CSGO.", client);
        return;
    }
    
    return;
}
I believe that this option would still be valid, since now the Status Prime only has to buy, there is no longer any way to get up to level 21.

I believe that all accounts before the upgrade that forced you to buy Status Prime should now have been migrated to prime like all the others.

Anyway, would it be possible to implement this same rule and not display the message to players that don't have prime status?
 

pur4s

Участник
Сообщения
367
Реакции
92
@oppa Why did you specify the archive of the latest version in #updates in versions 1.0, 1.1? Terrible patch 1.3 error:

C-подобный:
L 11/09/2021 - 21:01:34: [SM] Exception reported: [ 2DCS DROP ] Failed to get OS offset.
L 11/09/2021 - 21:01:34: [SM] Blaming: csgotr-advanced_drop.smx
L 11/09/2021 - 21:01:34: [SM] Call stack trace:
L 11/09/2021 - 21:01:34: [SM]   [0] SetFailState
L 11/09/2021 - 21:01:34: [SM]   [1] Line 43, D:\Pluginler\sourcemod-1.10.0-git6502-windows\addons\sourcemod\scripting\csgotr-advanced_drop.sp::OnPluginStart
L 11/09/2021 - 21:01:34: [SM] Unable to load plugin "csgotr-advanced_drop.smx": Error detected in plugin startup (see error logs)
 

crashzk

Участник
Сообщения
179
Реакции
33
@oppa, I noticed that some of the drops always come with the same image.


1640229670298.png


I realized that it would not be the correct image, as you can see:
C-подобный:
"20181"
    {
        "item_name"        "2021 Community Sticker Capsule"
        "item_name_lang"        "2021 Community Sticker Capsule"
        "image_url"        "https://steamcdn-a.akamaihd.net/apps/730/icons/econ/coupon/offer.2833a681e6fed26656302dd5fee013fcaa85d722.png"
    }
    "20182"
    {
        "item_name"        "Battlefield 2042 Sticker Capsule"
        "item_name_lang"        "Battlefield 2042 Sticker Capsule"
        "image_url"        "https://steamcdn-a.akamaihd.net/apps/730/icons/econ/coupon/offer.2833a681e6fed26656302dd5fee013fcaa85d722.png"
    }

It wouldn't be the images of the capsules.


Would it be correct, some way to fix? I've tried using the two commands in the plugin and still nothing.
 

oppa

Участник
Сообщения
15
Реакции
7
  • Автор ресурса
  • #50
@oppa, I noticed that some of the drops always come with the same image.


Посмотреть вложение 89254

I realized that it would not be the correct image, as you can see:
C-подобный:
"20181"
    {
        "item_name"        "2021 Community Sticker Capsule"
        "item_name_lang"        "2021 Community Sticker Capsule"
        "image_url"        "https://steamcdn-a.akamaihd.net/apps/730/icons/econ/coupon/offer.2833a681e6fed26656302dd5fee013fcaa85d722.png"
    }
    "20182"
    {
        "item_name"        "Battlefield 2042 Sticker Capsule"
        "item_name_lang"        "Battlefield 2042 Sticker Capsule"
        "image_url"        "https://steamcdn-a.akamaihd.net/apps/730/icons/econ/coupon/offer.2833a681e6fed26656302dd5fee013fcaa85d722.png"
    }

It wouldn't be the images of the capsules.


Would it be correct, some way to fix? I've tried using the two commands in the plugin and still nothing.
I pull this data with the api provided by steam. Steam provides the pictures itself.
 

crashzk

Участник
Сообщения
179
Реакции
33
@oppa, it would be possible to implement in future updates the option to hide the message when a player received a drop.

Having the same options as the sound, shows the drop message only for those who won and such.

This message in the case:
1640364721037.png


Something like:
C-подобный:
// show drop message [0 - no | 1 - just drop it | 2 - to everyone]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_show_drop_message_advanced_drop "1"
 

DJser

Участник
Сообщения
278
Реакции
15
Кто сталкивался?

C-подобный:
BAD REQUEST
DATA RECE: {"webhook_id": ["Value \"xxxxx\" is not snowflake."]}
DATA SENT: {"content": "**[ csgo-turkiye.com Advanced Drop ]** Drop Active.\n> **Hostname \u2605** `\u0422\u0435\u0445.\u0440\u0430\u0431.[OVERKILL] FUN PUBLIC [\u0411\u043e\u0435\u0432\u043e\u0439 \u043f\u0440\u043e\u043f\u0443\u0441\u043a]`\n> **Map Name \u2605** `de_mirage`"}
L 12/26/2021 - 22:03:41: [discord_api.smx] [DISCORD] Couldn't Send Webhook - Fail 0 400
 

crashzk

Участник
Сообщения
179
Реакции
33
@oppa would this be some BUG?

1643888768483.png

Even though I use the two commands you have to update the drop list
  • sm_updatedropitems
  • sm_updatedropallitems
The new case Dreams & Nightmares does not come with the marked price. Could it be because of the steam market price variation or something?
 

oppa

Участник
Сообщения
15
Реакции
7
  • Автор ресурса
  • #54
@oppa would this be some BUG?

Посмотреть вложение 91518
Even though I use the two commands you have to update the drop list
  • sm_updatedropitems
  • sm_updatedropallitems
The new case Dreams & Nightmares does not come with the marked price. Could it be because of the steam market price variation or something?
The reason is there is an "&" character in a drop case for the first time. It is enough to replace this character with %26 , while making a price query. If I don't forget in the evening, I add a replacement to the query part.
 

samec051

Участник
Сообщения
26
Реакции
3
Никто фикса для получения цены кейса "Dreams & Nightmares Case" не написал? Пробовал экранировать '&', через '%26', но у меня не вышло:(
Вроде цены всех остальных кейсов отлично парсястся, а нового - нет :(
 

crashzk

Участник
Сообщения
179
Реакции
33
The reason is there is an "&" character in a drop case for the first time. It is enough to replace this character with %26 , while making a price query. If I don't forget in the evening, I add a replacement to the query part.

Никто фикса для получения цены кейса "Dreams & Nightmares Case" не написал? Пробовал экранировать '&', через '%26', но у меня не вышло:(
Вроде цены всех остальных кейсов отлично парсястся, а нового - нет :(

I tried to change it too, without success.

It would be in one of these lines @oppa?

1648133048658.png
 

crashzk

Участник
Сообщения
179
Реакции
33
Has anyone managed to fix it?

1652642727495.png


I tried the change mentioned here:
The reason is there is an "&" character in a drop case for the first time. It is enough to replace this character with %26 , while making a price query. If I don't forget in the evening, I add a replacement to the query part.

But without success so far. I also noticed that the API that the plugin uses is offline.

 

oppa

Участник
Сообщения
15
Реакции
7
  • Автор ресурса
  • #58
Последнее редактирование:
Сверху Снизу