Jump to content

Recommended Posts

Hello Metin2Dev , I need help becouse I don"t understand much ...

 

I use Vegas Tittles System and I need to the premium tittles have more bonus for example : 

Spoiler

int pTitleBonus_1[] = {POINT_MAX_HP, 5000};
int pTitleBonus_2[] = {POINT_CRITICAL_PCT, 20};
int pTitleBonus_3[] = {POINT_ATTBONUS_WARRIOR, 15};

 

Now is how Vegas have his system.. but the question is how I can add more bonus?

I search the function for the pTitleBonus_3

Spoiler

* [Premium Title III]
*/        
    if (!strcmp(valueAffect, "send_premium_3"))
    {
        if (ch->CountSpecifyItem(sPotionVnum[2]))
        {        
                ch->AddAffect(get_affect_premium[2], pTitleBonus_3[0], pTitleBonus_3[1], 0, sTimeDuratingBonus[0], 0, true);
                ch->RemoveSpecifyItem(sPotionVnum[2], 1);    
                UpdateTitle(ch, sTitle[19], 0);
        }        
        else    
            ch->ChatPacket(CHAT_TYPE_NOTICE, title_translate[11]);
            return;    
    }    
}

 

That is from Premium Title III

And i do that I add : 

Spoiler

* [Premium Title III]
*/        
    if (!strcmp(valueAffect, "send_premium_3"))
    {
        if (ch->CountSpecifyItem(sPotionVnum[2]))
        {        
                ch->AddAffect(get_affect_premium[2], pTitleBonus_3[0], pTitleBonus_3[1], 0, sTimeDuratingBonus[0], 0, true);
                ch->AddAffect(get_affect_premium[2], pTitleBonus_4[0], pTitleBonus_4[2], 0, sTimeDuratingBonus[0], 0, true);
                ch->AddAffect(get_affect_premium[2], pTitleBonus_5[0], pTitleBonus_5[3], 0, sTimeDuratingBonus[0], 0, true);
                ch->AddAffect(get_affect_premium[2], pTitleBonus_6[0], pTitleBonus_6[4], 0, sTimeDuratingBonus[0], 0, true);
                ch->RemoveSpecifyItem(sPotionVnum[2], 1);    
                UpdateTitle(ch, sTitle[19], 0);
        }        
        else    
            ch->ChatPacket(CHAT_TYPE_NOTICE, title_translate[11]);
            return;    
    }    
}

And after i add that :

Spoiler

int pTitleBonus_1[] = {POINT_MAX_HP, 5000};
int pTitleBonus_2[] = {POINT_CRITICAL_PCT, 20};
int pTitleBonus_3[] = {POINT_ATTBONUS_WARRIOR, 15};
int pTitleBonus_4[] = {POINT_ATTBONUS_ASSASSIN, 15};
int pTitleBonus_5[] = {POINT_ATTBONUS_SURA, 15};
int pTitleBonus_6[] = {POINT_ATTBONUS_SHAMAN, 15};

Dont give me errors , but in the game when I active the III premium title , only get me POINT_ATTBONUS_SHAMAN , the others nope , how i can solve that for works?

 

I dont find more function about the bonus :S 

 

Thanks :P 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.