Jump to content

Restrict god blessing from quickslots


Recommended Posts

Hello , i m trying to restrict the 6 item named "god blessing" from the quick slot
vnum : 71027, 71028, 71029, 71030, 71044, 71045
I m trying to change it in : char_quickslot.cpp

void CHARACTER::ChainQuickslotItem(LPITEM pItem, BYTE bType, BYTE bOldPos)
{
    if (pItem->IsDragonSoul() || pItem->GetVnum() == 71028 || pItem->GetVnum() == 71029 || pItem->GetVnum() == 71030 || pItem->GetVnum() == 71027 || pItem->GetVnum() == 71045 || pItem->GetVnum() == 71044)
        return;

But still no result, i get no error while compiling, but i still can use the items on the quickslot.

Does any1 know how to block using the quickslot after teleport or login? to avoid the usage of bugs like damage bug

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Honorable Member

UserInterface/PythonItemModule.cpp

PyObject * itemCanAddToQuickSlotItem(PyObject * poSelf, PyObject * poArgs):

//Find
	if (!pItemData)
		return Py_BuildException("Can't find select item data");

///Add
	static const auto block = { 71027, 71028, 71029, 71030, 71044, 71045 };
	if (std::find(block.begin(), block.end(), static_cast<decltype(block)::value_type>(pItemData->GetIndex())) != block.end())
		return Py_BuildValue("i", FALSE);

 

 

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



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