Jump to content

Recommended Posts

Hello M2dev.

I want to ask you something and i hope you can help me.

When a person creat a guild, the guild is Lv 1 Then. How can i do it (Source) that the guild will be by creat lv 20, und the guild members also can skill the Guild skills?

Sorry for my bad english

 

Link to comment
https://metin2.dev/topic/10755-sourc/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Premium

guild.cpp at CGuild::CGuild(TGuildCreateParameter & cp)

find:

    std::auto_ptr<SQLMsg> pmsg (DBManager::instance().DirectQuery(
                "INSERT INTO guild%s(name, master, sp, level, exp, skill_point, skill) "
                "VALUES('%s', %u, 1000, 1, 0, 0, '\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0')",
                get_table_postfix(), m_data.name, m_data.master_pid));

Change it with like:

    std::auto_ptr<SQLMsg> pmsg (DBManager::instance().DirectQuery(
                "INSERT INTO guild%s(name, master, sp, level, exp, skill_point, skill) "
                "VALUES('%s', %u, 1000, 20, 0, 0, '\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\19\\0')",
                get_table_postfix(), m_data.name, m_data.master_pid));

 

Where 20 = default level and 19= skill points. Not tested but should work fine

Link to comment
https://metin2.dev/topic/10755-sourc/#findComment-63242
Share on other sites

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.