Jump to content

Chest Item Info


Recommended Posts

  • 3 weeks later...
On 12/2/2021 at 5:19 AM, Owsap said:

Nice release, as a contribution, I added support for scrollbar in case anyone prefers it.

This is the hidden content, please


mOZztPF.gif    xQbunuL.gif

 

0127 22:41:11883 :: TypeError
0127 22:41:11883 :: : 
0127 22:41:11883 :: SetUp() takes exactly 2 arguments (3 given)
0127 22:41:11883 :: 
 

0127 22:41:11883 :: TypeError
0127 22:41:11883 :: : 
0127 22:41:11883 :: Open() takes exactly 2 arguments (3 given)
0127 22:41:11883 :: 
 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 5
  • Dislove 1
  • Good 1
  • Love 5
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

0412 04:34:04659 :: LZObject: not a valid data
0412 04:34:04659 :: LoadLocaleData - LoadChestDropInfo(locale/xx/chest_drop) Error
0412 04:34:04799 :: 
networkModule.py(line:192) SetSelectCharacterPhase
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
introSelect.py(line:22) <module>
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
interfaceModule.py(line:44) <module>
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
uiaverage_price.py(line:55) <module>

networkModule.SetSelectCharacterPhase - <type 'exceptions.RuntimeError'>:skill.GetSkillName - Failed to find skill by 1

0412 04:34:04799 :: ============================================================================================================
0412 04:34:04799 :: Abort!!!!

 

Oky. Fix

Edit : json open false -> true

Edited by EAkar
Link to comment
Share on other sites

My brother who coded this system, you are a marvel. I really admire you.

But I just want to see inside the chests.

How can I disable CTRL + LSHIFT. For example: How do I prevent the screen from turning on when I click Black Steel Armor? Thanks.

PyObject* itemHasDropInfo(PyObject* poSelf, PyObject* poArgs)
{
	int iItemIndex;
	if (!PyTuple_GetInteger(poArgs, 0, &iItemIndex))
		return Py_BadArgument();

	CItemManager::TChestDropItemInfoVec* vDropInfo = nullptr;

	vDropInfo = CItemManager::Instance().GetItemDropInfoVec(iItemIndex);

	return Py_BuildValue("b", (vDropInfo && !vDropInfo->empty()));
}


PyObject* itemGetDropInfo(PyObject* poSelf, PyObject* poArgs)
{
	int iItemIndex;
	if (!PyTuple_GetInteger(poArgs, 0, &iItemIndex))
		return Py_BadArgument();

	PyObject* poList = PyList_New(0);
	CItemManager::TChestDropItemInfoVec* vDropInfo = nullptr;

	vDropInfo = CItemManager::Instance().GetItemDropInfoVec(iItemIndex);

	return Py_BuildValue("iO", __CreateDropPage(vDropInfo, poList), poList);
}





	if app.__BL_CHEST_DROP_INFO__:
		def OpenChestDropWindow(self, itemVnum):
			if self.wndChestDropInfo:
				self.wndChestDropInfo.Open(itemVnum)


		if app.__BL_CHEST_DROP_INFO__:
			if app.IsPressed(app.DIK_LCONTROL):
				if item.HasDropInfo(ItemVNum) and self.interface:
					self.interface.OpenChestDropWindow(ItemVNum)
				return


	if app.__BL_CHEST_DROP_INFO__:
		def AppendChestDropInfo(self, itemVnum):
			hasinfo = item.HasDropInfo(itemVnum, True)
			if hasinfo:
				self.AppendSpace(5)
				self.AppendTextLine(localeInfo.CHEST_DROP_INFO, self.NORMAL_COLOR)

Ok. Fixed

Edited by EAkar
text edit
Link to comment
Share on other sites

  • 3 weeks later...
On 12/13/2021 at 2:55 AM, Ulthar said:

Hello, i have these errors when i try to compile the binary. (VS-2022)

4NRorEC.png

What i need to do? 😮 

 

Somebody fix this?i have the same errors.

 

EDIT : 

 

THE PROBLEM WAS FROM THE NEW DEFINE  __CHEST_DROP_USELZO__  from item_manager.cpp

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 1 month later...
  • Active+ Member
1 minute ago, Ciucciamelo said:

Without click !! Brain 👀

Why would you do that? You can't.. I mean even if you want to 'ctrl + x to open window' you have to first assign the 'useitem function' to control key. so when you press CTRL you actually 'right click'. I don't see why you'd do that. It's just "click + x" with extra steps..

spacer.png

Link to comment
Share on other sites

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