Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

[Answer How TO]


Dalyn

Question

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

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 4

      problem Dargon Soul Changre Attribute

    2. 41

      Global Chat

    3. 4

      problem Dargon Soul Changre Attribute

    4. 2

      Startup Loading Window Library

    5. 28

      Ludus2: metin2 fan project

    6. 44

      Inbuild GR2 Animation

    7. 6

      Minimap Mob proto

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.