Jump to content

Recommended Posts

  • 1 month later...

i dont understand why my system  dos'nt work for me  

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

 

i dont USE dump proto for server 

 

i have add it in Proto Reader 

 

but stell not working 

 

sorry ( bad english ):ph34r:

Edited by Metin2 Dev
Core X - External 2 Internal
  • 3 months later...
  • Active+ Member

Hey guys I did the @xP3NG3Rx's tut but there is one little problem about it. The items take effect at costumes without bonus (not the + ones). These costumes should not be affected by these items so if anybody has an if statement for the char_item.cpp it would be great :)

  • 3 months later...
  • Active+ Member

For @xP3NG3Rx's method:

Find:

Spoiler

                                    case USE_RESET_COSTUME_ATTR:
                                    {
                                        item2->ClearAttribute();

in char_item.cpp

Change to:

Spoiler

                                    case USE_RESET_COSTUME_ATTR:
                                    {
                                        if (item2->GetAttributeCount() == 0)
                                        {
                                            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Ί―°ζΗ ΌΣΌΊΐΜ Ύψ½ΐ΄Ο΄Ω."));
                                            return false;
                                        }

                                        item2->ClearAttribute();

Why? Because both items should work only on costumes with a + in the end of their name. The initial source given gives this check only for the USE_CHANGE_COSTUME_ATTR item but not for USE_RESET_COSTUME_ATTR. Just add this check in the other case too and the system should work official-like.

Hope I helped :)

Kind regards ~ Mind Rapist

  • Love 2
  • 2 months later...
  • 1 month later...

One more fix for this system

If u have sash/costume mount/costume weapon in your server u can add attributes to all of them.

just add this if statemant

if ( item2->GetType() == ITEM_COSTUME )
											if ( item2->GetSubType() != 0 || item2->GetSubType() != 1 )
											{
												ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ITEM_ISNT_COSTUME"));
												return false;
											}

regards, AKN

  • 3 years later...

can sameone help ? 

 

example when i make /i costume vnum the costume came with the normal bonus but when make one npc with custumes too sell and you buy it ther is no bonus o.O

 

exemple this is buy on NPC:

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

 

and this is with gm code /i 

https://metin2.download/picture/3JKluCY185tzlhj9oJ22SsWYm1xbMWp0/.png

 

help pleass 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
  • 10 months later...
  • 1 month later...
  • 4 months later...

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.