Jump to content

Talisman effect issue


Recommended Posts

Hi! I implemented this simple talisman system: 

This is the hidden content, please

The talisman has type 2 (armor) and subtype 7. So when I tried attaching a smoke effect to it, I did it like this (InstanceBase.cpp -> _GetRefinedEffect method): https://pastebin.com/niTDPkjL

ZiCCD0p.png

Can anybody help me?

! The effects work, I put "EFFECT_TALISMAN_RED" on the level 80 armor and it worked.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 4
  • Love 1
Link to comment
Share on other sites

5 minutes ago, Paikei said:

Hi! I implemented this simple talisman system: 

This is the hidden content, please

The talisman has type 2 (armor) and subtype 7. So when I tried attaching a smoke effect to it, I did it like this (InstanceBase.cpp -> _GetRefinedEffect method): https://pastebin.com/niTDPkjL

ZiCCD0p.png

I don't understand why it doesn't work ingame. Can anybody help me? :)

! The effects work, I put "EFFECT_TALISMAN_RED" on the level 80 armor and it worked.

I had this issue too, created a new costume slot (type 28, subtype X), and tried to add smoke effect, the thing is, you will need to create  other functions OR when you equip a talisman  you call that funcion in order to call that piece of code that gives you the smoke effect.

 

I'm not sure how it's done, i ended up installing another system for what i wanted and it did better than i expected, but you can check how the other effects are attached, where the functions is called, etc..

 

Sorry, can't help you much more ?

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 1
  • Love 1

It's all lies

Link to comment
Share on other sites

DWORD vnum = pItem->GetIndex();     
   if (pItem->GetSubType() == CItemData::ARMOR_PENDANT)
        {
           if (vnum == ITEMVNUM)

          {
            m_armorRefineEffect = EFFECT_REFINED+EFFECTXD;
            break;
          }   
        }


      maybe this way it can work but you must specify more details in the binary.
      

  • Love 1
Link to comment
Share on other sites

38 minutes ago, Paikei said:

Thank you for your responses! It would be very useful if I could somehow check if the player has a talisman equipped, but I can't for the love of god find out how to do that...

 

I was going to tell you to force the call to that function but it wouldn't work..

On binary i believe it's only on user interface, do a full search on that folder for: m_dwArmor

That is the effect that you get from your armor.

Try to replicate every single line, but instead of m_dwArmor make it something like m_dwTalisman

And then on instancebase.cpp you'll need to do something similiar to this:     SetArmor(c_rkCreateData.m_dwArmor);

And create your own function based on that.

Remember to change the name of the variable and the functions.

 

Let us know if you find any difficulties :D

 

Edit: I forgot to paste this, i did a full search on my source and came only on userinterface, here's what it found:

https://metin2.download/picture/zJ2OHjRhnmpJqA7ikVqyj6D0pNyL21oj/.png

(i can't paste images, don't know why  D:)

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 2

It's all lies

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Multi Language System

    2. 0

      [FREE DESIGN] Interface + Logo + Discord Banner and Avatar

    3. 4

      Feeding game source to LLM

    4. 0

      Quest 6/7 Problem

    5. 5

      Effect weapons

    6. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    7. 3

      Crystal Metinstone

    8. 4

      Feeding game source to LLM

    9. 113

      Ulthar SF V2 (TMP4 Base)

  • Recently Browsing

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