Jump to content
  • 0
Sign in to follow this  
dukaibalu1

Skill Book

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

Share this post


Link to post

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.

Share this post


Link to post
  • 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

Share this post


Link to post
  • 0

Someone can make a diff for this modification please ? 

Share this post


Link to post
  • 0

Someone can make a diff for this modification please ? 

 

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

Share this post


Link to post
  • 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

Share this post


Link to post
  • 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 !

Share this post


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

Share this post


Link to post

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
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

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