Jump to content

Enchant & Transform Costume


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
Link to comment
Share on other sites

  • 3 months later...
  • 3 months later...

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
Link to comment
Share on other sites

  • 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

Link to comment
Share on other sites

  • 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
Link to comment
Share on other sites

  • 10 months later...
  • 1 month later...
  • 4 months later...

Announcements



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