Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Skill Book


dukaibalu1

Question

hello metin2dev

A problem is that the skill books you can do together, you'll take the gray piece.
Looking around a bit source into the game, and I found one of these.

ITEM_MANAGER :: instance () RemoveItem (item).;
I deleted it, but took the books.
And I found the t-char_skill.cpp.
There are the texts may appear to be good or bad for learning.

Someone have any tips on how to abort a piece of the skill books?

Regards
dukaibalu1

Link to comment

10 answers to this question

Recommended Posts

  • 0

The problem is that I can not find it, which takes away the skill book.
Because it is not

ITEM_MANAGER :: instance () RemoveItem (item).;
command takes.
So I will swap out to no avail, he takes all the books in the same way.

Link to comment
  • 0

change

        if (true == LearnSkillByBook(dwVnum))
        {
            ITEM_MANAGER::instance().RemoveItem(item);
 
            int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
 
            if (distribution_test_server)
                iReadDelay /= 3;
 
            //Çѱ¹ º»¼·ÀÇ °æ¿ì¿¡´Â ½Ã°£À» 24½Ã°£ °íÁ¤
            if (LC_IsKorea())
                iReadDelay = 86400;
 
            SetSkillNextReadTime(dwVnum, get_global_time() + iReadDelay);
        }
    }
    break;

to

        if (true == LearnSkillByBook(dwVnum))
        {
            item->SetCount(item->GetCount()-1);
 
            int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX);
 
            if (distribution_test_server)
                iReadDelay /= 3;
 
            //Çѱ¹ º»¼·ÀÇ °æ¿ì¿¡´Â ½Ã°£À» 24½Ã°£ °íÁ¤
            if (LC_IsKorea())
                iReadDelay = 86400;
 
            SetSkillNextReadTime(dwVnum, get_global_time() + iReadDelay);
        }
    }
    break;
  • Love 1
Link to comment
  • 0

 

Someone can make a diff for this modification please ? 

 

I think it's impossible, because there aren't byte for write.

 

it actually is possible. you can do it  by following this tutorial (although it's in german)

https://www.youtube.com/watch?v=T5p5L5xObck

Link to comment
  • 0

 

 

Someone can make a diff for this modification please ? 

 

I think it's impossible, because there aren't byte for write.

 

it actually is possible. you can do it  by following this tutorial (although it's in german)

https://www.youtube.com/watch?v=T5p5L5xObck

 

Thank you verry mutch sir !

Link to comment
  • 0
  • Premium
open char_item.cpp
 
if (true == LearnSkillByBook(dwVnum))
{
ITEM_MANAGER::instance().RemoveItem(item);
 
replace with:
 
if (true == LearnSkillByBook(dwVnum))
{
item->SetCount(item->GetCount() - 1);
Link to comment

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 19

      Fix unknown header 100% server: 1k player online francec

    2. 19

      Fix unknown header 100% server: 1k player online francec

    3. 29

      Metin2 Project - How to create à Metin2 private server on virtual machine

    4. 40

      Changelogs

    5. 1

      I'm looking for a partner

    6. 5

      Help in implementing a switch bot

    7. 0

      Error FoxFS source install

    8. 5

      Help in implementing a switch bot

    9. 1

      I'm looking for a partner

  • Recently Browsing

    • No registered users viewing this page.

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.