Jump to content

Recommended Posts

Hi everyone!
So recently i installed the Vegas Title System .The problem is that:

If i click to Change Title, the server kicks the character and i can't get into game just after restarting the server.If i manually put prestige for example "1" in the player.table the title shows up fine. Only problem is choosing title from the game. There is No Syserr both on clientside and serverside ( db,auth,ch1,game99 ) everything is clear. I've triplechecked if i placed everything into correct spot and everything seems fine (i'm not implementing this system for the first time,never had any issues like that one).
I have to mention that the serverfiles i'm using are from @TMP4 released a few weeks ago, i've just changed the interface to Illumina.. (40K) and these files use Clang9 for serverside compiling and VS2019 for clientside.I dont know that this could be the problem.When i was compiling the servercore (db,game) the error about "auto_ptr" that it was deprecated etc... i've replaced it with "unique_ptr" ( as it was released as a replacement for the auto_ptr function ) and it compiled fine, that function was related to buying potions...
Also i must have changed the make_pair to std::make_pair as VS2019 won't compile the binary (as far as i know i didn't used to do that, not sure about that ):

g_TitleNameMap.insert(std::make_pair(iIndex, c_szTitleName));

Thanks for any help! 
Yl2B7lT.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 2

Hello, upload your title.cpp. 

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

5 hours ago, MsRazoRR said:

So... 

bool TitleManager::TransformTitle(LPCHARACTER ch)

 add return true; before the last }

bool TitleManager::UpdateTitle(LPCHARACTER ch, int changeTitle, int changeMoney)

change to: 

void TitleManager::UpdateTitle(LPCHARACTER ch, int changeTitle, int changeMoney)


Also at title.h change :
 

bool UpdateTitle(LPCHARACTER ch, int changeTitle, int changeMoney);

to 
 

void    UpdateTitle(LPCHARACTER ch, int changeTitle, int changeMoney);

And last thing: bool TitleManager::SetTitle(LPCHARACTER ch, const char* pTitle) add after     

if (!strcmp(pTitle, "title19") && (GetTitlePremium(ch) == true))    
   	{
            SetAffect(ch, "send_premium_3");
    }

return true;

 

It should look like this:

title.cpp : https://pastebin.com/f9AsKers

Edited by Jimmermania
  • Metin2 Dev 1

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.