peakzinho
-
Posts
41 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by peakzinho
-
-
1 hour ago, filipw1 said:
I need tabs, no secondary money xD
-
Could someone give me a tutorial on how to create stores with multiple tabs?
-
-
Would it be possible in the refine_proto table to put in which npc we want the refinement to be done?
-
1 hour ago, edwardcrkz said:
Você poderia compartilhar characterwidown.py e cpp relacionado? se eu tiver um tempo livre vou olhar
Eu não olhei para o seu problema, mas se tiver algo a ver com o arquivo cpp, você pode jogá-lo fora.
-
-
4 hours ago, Kafa said:
dont remove //{ POINT_CONQUEROR_POINT, },
Okay, now I have 0 points xD
-
16 hours ago, Kafa said:
You forget something try search for substate, sub, sungma keywords check if you have everything
can you help me? xD
- 1
-
15 minutes ago, Kafa said:
You forget something try search for substate, sub, sungma keywords check if you have everything
can you add me in discord please? Kaylee#3362
39 minutes ago, Kafa said:You forget something try search for substate, sub, sungma keywords check if you have everything
I'm just remove in contants.cpp // POINT_CONQUEROR_POINT because if I leave it gives error to compile
#ifdef ENABLE_CONQUEROR_LEVEL
{ POINT_SUNGMA_STR, },
{ POINT_SUNGMA_HP, },
{ POINT_SUNGMA_MOVE, },
{ POINT_SUNGMA_INMUNE, },
//{ POINT_CONQUEROR_POINT, },
#endif- 3
- 2
-
3 minutes ago, Kafa said:
O nome do jogador é preto porque você colocou a condição if para a cor do nome no lugar errado. (Tutorial i errado) na mesma função na parte inferior existem alguns if ... return name shit, você precisa colocar a condição lá. Em seguida, o nome do jogador preto é fixo bro im no smartphone.
editar: estou falando sobre InstanceBaseEffect
cpp
GetNameColorIndex
okay, I go test thank you
33 minutes ago, Kafa said:The players name is black because you put the if condition for the name color in the wrong place. (Tutorial i wrong) in the same function at the bottom there are a couple of if ... return name shit you need to put the condition there. Then the black player name is fixed bro im on smartphone.
edit: im talking about InstanceBaseEffect
cpp
GetNameColorIndex
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
Do you have fix?- 3
- 1
- 1
- 1
- 2
-
On 12/30/2020 at 12:44 AM, Kafa said:
You did something wrong, for me everything works perfect.
I have your problem...
if I kill mobs on the map, the new skill stops working and in addition the level is only temporary and the player's name is black -
-
First is this or the skills?
-
char_skill.cpp:3686:39: error: excess elements in array initializer
-
5 minutes ago, Sar0 said:
you can make a refine that has the item like your stone and put some yang when you upgrade it then you search in item_proto for the item = stone and look for refine and put the code id at the item.
but i already did it xD
-
1 hour ago, Vaynz said:
If you bought that talk with @.plechito' sure he will help you.
But that is not the problem. Anything I put on gives this error, but with another clear name.
-
0128 02:29:16508 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/plechito/weapons/steampunkarmor/armor.mse) Error
0128 02:29:16508 :: CInstanceBase::RegisterEffect(eEftType=259, c_szEftAttachBone=Bip01, c_szEftName=d:/ymir work/effect/plechito/weapons/steampunkarmor/armor.mse, isCache=0) - Error- 1
-
-
When I add something that has an effect, the system is functional but the effect is not. It does not report any error.
I give an example, I installed the item buffs system, it was functional, but the effect didn't show.
I don't know what can make this happen, please, I appreciate everyone's help.
-
On 11/28/2020 at 9:15 AM, Mali61 said:
When placing the system basically all maps will change correct? Would it be possible to put time to change only in cities?
- 3
- 2
- 1
-
6 hours ago, Finnis said:
Replace: if (GuildID != 0) _snprintf(szBufName, sizeof(szBufName), "Name: %s - Guild: %s", CPythonPlayer::Instance().GetName(), &GuildName); else _snprintf(szBufName, sizeof(szBufName), "Name: %s", CPythonPlayer::Instance().GetName()); With this: if (GuildID != 0) _snprintf(szBufName, sizeof(szBufName), "Name: %s - Guild: %s", CPythonPlayer::Instance().GetName(), GuildName.c_str()); else _snprintf(szBufName, sizeof(szBufName), "Name: %s", CPythonPlayer::Instance().GetName()); char szLevel[256]; _snprintf(szLevel, sizeof(szLevel), "Level: %u", CPythonPlayer::Instance().GetStatus(POINT_LEVEL)); strcat(szBufName, szLevel);
Thank you
-
up
thanks all -
12 hours ago, Finnis said:
Regarding the discord RPC, you could try something like this:
#include "InstanceBase.h" #include "PythonCharacterManager.h" CInstanceBase* pkMainInstance = CPythonCharacterManager::Instance().GetMainInstancePtr(); char info[32 + 1]; snprintf(info, sizeof(info), "Level: %u", pkMainInstance->GetLevel()); activity.SetDetails(info); /* You can get other player's informations such as player name, empire id, duel state, alignment, race, etc using the same object 'pkMainInstance', you can get a list of these functions from InstanceBase.h. */
#ifdef ENABLE_DISCORD_RPC
#include "discord_rpc.h"
#ifdef _DEBUG
#pragma comment(lib, "discord_rpc_d.lib")
#else
#pragma comment(lib, "discord_rpc_r.lib")
#endif
static int64_t StartTime;
static constexpr auto DiscordClientID = "758991963747516459";
auto szSiteName = "Website: <Em Construção>";
auto szIconName = "image1";
void CPythonNetworkStream::Discord_Start()
{
StartTime = time(0);
DiscordEventHandlers handlers;
memset(&handlers, 0, sizeof(handlers));
Discord_Initialize(DiscordClientID, &handlers, 1, nullptr);
Discord_Update(true, false, false);
}
void CPythonNetworkStream::Discord_Update(const bool login, const bool select, const bool loading)
{
DiscordRichPresence discordPresence;
memset(&discordPresence, 0, sizeof(discordPresence));
char szBufName[256+1];
char szBufWarp[256+1];
char szEmpireId[256+1];
char szEmpireName[256+1];
char szRaceName[256+1];
CInstanceBase* pInstance = CPythonCharacterManager::Instance().GetMainInstancePtr();
if (login)
{
discordPresence.details = "On Login";
discordPresence.state = szSiteName;
discordPresence.largeImageKey = szIconName;
discordPresence.largeImageText = szSiteName;
}
else if (select)
{
discordPresence.details = "On Select";
discordPresence.state = szSiteName;
discordPresence.largeImageKey = szIconName;
discordPresence.largeImageText = szSiteName;
}
else if (loading)
{
discordPresence.details = "On Loading";
discordPresence.state = szSiteName;
discordPresence.largeImageKey = szIconName;
discordPresence.largeImageText = szSiteName;
}
else
{
std::string GuildName;
DWORD GuildID = CPythonPlayer::Instance().GetGuildID();
CPythonGuild::Instance().GetGuildName(GuildID, &GuildName);
if (GuildID != 0)
_snprintf(szBufName, sizeof(szBufName), "Name: %s - Guild: %s", CPythonPlayer::Instance().GetName(), &GuildName);
else
_snprintf(szBufName, sizeof(szBufName), "Name: %s", CPythonPlayer::Instance().GetName());
_snprintf(szBufWarp, sizeof(szBufWarp), "Location: %s", CPythonBackground::Instance().GetMapName());
_snprintf(szEmpireId, sizeof(szEmpireId), "%s", GetEmpireIcon());
_snprintf(szEmpireName, sizeof(szEmpireName), "Empire: %s", GetEmpireName());
_snprintf(szRaceName, sizeof(szRaceName), "Race: %s", GetRaceName());
std::string szName = pInstance->GetNameString();
if (pInstance->IsGameMaster())
{
discordPresence.details = GetStaffRank();
discordPresence.state = szBufName;
}
else if (szName.find("[VET]") != std::string::npos)
{
discordPresence.details = "Rank: Veteran";
discordPresence.state = szBufName;
}
else if (szName.find("[GFX]") != std::string::npos)
{
discordPresence.details = "Rank: Graphic Designer";
discordPresence.state = szBufName;
}
else if (szName.find("[PM]") != std::string::npos)
{
discordPresence.details = "Rank: Promoter";
discordPresence.state = szBufName;
}
else
{
discordPresence.details = szBufName;
discordPresence.state = szBufWarp;
}
discordPresence.largeImageKey = GetRaceIcon();
discordPresence.largeImageText = szRaceName;
discordPresence.smallImageKey = GetEmpireIcon();
discordPresence.smallImageText = szEmpireName;
}
discordPresence.startTimestamp = StartTime;
Discord_UpdatePresence(&discordPresence);
}
void CPythonNetworkStream::Discord_Close()
{
Discord_Shutdown();
}const char * CPythonNetworkStream::GetStaffRank()
{
CInstanceBase* pInstance = CPythonCharacterManager::Instance().GetMainInstancePtr();
std::string szName = pInstance->GetNameString();
if (szName.find("[SA]") != std::string::npos)
return "Rank: Server Admin";
else if (szName.find("[TM]") != std::string::npos)
return "Rank: Team Manager";
else if (szName.find("[GA]") != std::string::npos)
return "Rank: Game Admin";
else if (szName.find("[GM]") != std::string::npos)
return "Rank: Game Master";
else if (szName.find("[H]") != std::string::npos)
return "Rank: Helper";
else if (szName.find("[MID]") != std::string::npos)
return "Rank: Middleman";
else
return szSiteName;
}const char * CPythonNetworkStream::GetRaceIcon()
{
CInstanceBase* pInstance = CPythonCharacterManager::Instance().GetMainInstancePtr();
int raceId = pInstance->GetRace();
if (raceId == 0)
return "warrior_m";
else if (raceId == 1)
return "ninja_w";
else if (raceId == 2)
return "sura_m";
else if (raceId == 3)
return "shaman_w";
else if (raceId == 4)
return "warrior_w";
else if (raceId == 5)
return "ninja_m";
else if (raceId == 6)
return "sura_w";
else if (raceId == 7)
return "shaman_m";
else
return szIconName;
}const char * CPythonNetworkStream::GetRaceName()
{
CInstanceBase* pInstance = CPythonCharacterManager::Instance().GetMainInstancePtr();
int raceId = pInstance->GetRace();
if (raceId == 0 || raceId == 4)
return "Warrior";
else if (raceId == 1 || raceId == 5)
return "Ninja";
else if (raceId == 2 || raceId == 6)
return "Sura";
else if (raceId == 3 || raceId == 7)
return "Shaman";
else
return szSiteName;
}const char * CPythonNetworkStream::GetEmpireIcon()
{
CInstanceBase* pInstance = CPythonCharacterManager::Instance().GetMainInstancePtr();
int empireId = pInstance->GetEmpireID();
if (empireId == 1)
return "empire_a";
else if (empireId == 2)
return "empire_b";
else if (empireId == 3)
return "empire_c";
else
return szIconName;
}const char * CPythonNetworkStream::GetEmpireName()
{
CInstanceBase* pInstance = CPythonCharacterManager::Instance().GetMainInstancePtr();
int empireId = pInstance->GetEmpireID();
if (empireId == 1)
return "Shinsoo (Red)";
else if (empireId == 2)
return "Chunjo (Yellow)";
else if (empireId == 3)
return "Jinno (Blue)";
else
return szSiteName;
}
#endif
Can help bro? -
58 minutes ago, WeedHex said:
2: POINT_LEVEL
can you add no discord please? s1mple#8696
Center Position
in Community Support - Questions & Answers
Posted · Edited by Metin2 Dev
Core X - External 2 Internal
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
how do I center the position of the text at the top?