Jump to content
×
×
  • Create New...
  • 0

Costumes Bonus BUG in shop (NPC)


Frozenjoghurthi

Question

Hi I have a problem with the costume and the bonuses.

 

If I have a costume which was generated with the GM Code /i it have a Bonus (1-3 Bonuses)

e8994cf54258821a7c734d39e2948c8e.png
https://gyazo.com/e8994cf54258821a7c734d39e2948c8e

 

 

When I put the same item in a shop (npc) and buy it - it don't have a bonus

d0641b2aae08f980e2fd66570060e573.png
https://gyazo.com/d0641b2aae08f980e2fd66570060e573

 

does anyone else have the problem ? and knows a solution?

 

 

Edited by Frozenjoghurthi
Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

you have not understood the problem, if the  item will created by gm code = bonus on the item - if i buy the same item from npc shop = no bonus

 

btw. your comment makes no sense, there is no item which can add a bonus on a costume. just "reset" the bonus (to a maximum of 3 bonuses). but to use this reset item, you need a bonus on it (official like)

Link to comment
Share on other sites

  • 0
  • Honorable Member

shop.cpp/int CShop::Buy(LPCHARACTER ch, BYTE pos)

//Find
		if (quest::CQuestManager::instance().GetEventFlag("hivalue_item_sell") == 0)
		{
			//Гає№АЗ ±ёЅЅ && ёёівЗСГ¶ АМєҐЖ® 
			if (item->GetVnum() == 70024 || item->GetVnum() == 70035)
			{
				return SHOP_SUBHEADER_GC_END;
			}
		}

//Add
		if (item->GetType() == ITEM_COSTUME) {
			TItemTable* table = ITEM_MANAGER::instance().GetTable(item->GetVnum());
			if (table && number(1, 100) <= table->bAlterToMagicItemPct)
				item->AlterToMagicItem();
		}

 

Link to comment
Share on other sites

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


  • Activity

    1. 0

      Looking for Someone to create the queries etc for armors and weapons

    2. 13

      Official Private Shop Search

    3. 944

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 79

      GUI Teleport System

    5. 0

      inventory slot marking system cant compile

    6. 8

      Inventory Bug

    7. 63

      Metin2 Dev - Changelogs

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