MsRazoRR 3 Posted August 29, 2021 Share Posted August 29, 2021 (edited) 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! Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
arlinamid 1130 Posted August 29, 2021 Share Posted August 29, 2021 (edited) @VegaS™ may help for you, but first read the rules. Edited August 29, 2021 by arlinamid Best regards, Arlinamid Link to comment Share on other sites More sharing options...
Premium Crystal™ 25 Posted August 30, 2021 Premium Share Posted August 30, 2021 (edited) On 8/29/2021 at 11:13 AM, MsRazoRR said: make_pair to std::make_pair Edited April 13, 2022 by Crystal™ Link to comment Share on other sites More sharing options...
Premium imWelly 26 Posted September 3, 2021 Premium Share Posted September 3, 2021 he will gladly help you out @ VegaS™ ofc if you did buy it from him 1 Link to comment Share on other sites More sharing options...
Jimmermania 27 Posted September 3, 2021 Share Posted September 3, 2021 Hello, upload your title.cpp. Link to comment Share on other sites More sharing options...
MsRazoRR 3 Posted September 5, 2021 Author Share Posted September 5, 2021 On 9/3/2021 at 1:19 PM, Jimmermania said: Hello, upload your title.cpp. Hi! Here you go https://pastebin.com/41v8kNFf Link to comment Share on other sites More sharing options...
Jimmermania 27 Posted September 6, 2021 Share Posted September 6, 2021 (edited) 5 hours ago, MsRazoRR said: Hi! Here you go https://pastebin.com/41v8kNFf 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 September 6, 2021 by Jimmermania Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now