Jump to content
  • 0

Costumes Bonus BUG in shop (NPC)



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)




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



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



Edited by Frozenjoghurthi (see edit history)
Link to post

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 post
  • 0
  • Honorable Member

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

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

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


no paid service

use at least c++11 and VS19, otherwise I won't help.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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