Jump to content

Chest Drop View


Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

This is the hidden content, please
( GitHub )

Informations about system : 

 

When you will open a chest with drop , will appear this window. In this window you can preview drop of chest and you can make a setting how many chests you want open.

 

Spoiler

285125bf1ec520277aefa6e8ec6d4e13af7ea6.j

https://metin2.download/picture/rJb9UDZNg3k93nDR9YOfwAPAGYV3AyZ6/.gif

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 205
  • kekw 1
  • Eyes 2
  • Dislove 2
  • Angry 3
  • Not Good 4
  • Sad 1
  • Smile Tear 2
  • Think 4
  • Confused 1
  • Scream 1
  • Good 72
  • Love 9
  • Love 150
Link to comment
Share on other sites

  • Honorable Member

The "Chest Drop Preview" as idea is interesting:

I don't think opening 200 boxes at once without delay would be as good as expected.

It would be better adding another sliderbar to specify the relative delay (e.g. from 0.0 to 1.0s). (you can simply move the for loop in the OnUpdate function to accomplish such a thing quite easily) (and by reclicking the OpenChestButtonMultiple, you stop the unboxing process)

Tips:

Instead of "if not self.chestDrop.has_key(self.currentChest):" you can simply do "if self.currentChest not in self.chestDrop:" (has_key is a thing of the past, pre 2.2)

Instead of "if 0 != self.tooltipItem:" you can simply do "if self.tooltipItem:" (python evalues as false even if it's 0 "" [] {} () set() None False)

Edited by martysama0134
  • Love 3
Link to comment
Share on other sites

  • Honorable Member
8 hours ago, .Elijah said:

The code can be improved. Now is working just fine. If you don't want to use it just don't use it.

I gave you some suggestions/tips, because I thought you were the creator of this script, but it seems not. :ph34r::ph34r::ph34r:

  • Love 5
Link to comment
Share on other sites

  • 6 months later...
  • Contributor
On 9/9/2018 at 1:37 PM, Morpheus™ said:

there is a small mistake, call me:

71036, try to summon it. :/

 

in item_proto change the ITEM_GIFTBOX to ITEM_USE with USE_SPECIAL as subtype .

  • Love 1

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • Premium
En 4/9/2018 a las 16:12, Kreciok dijo:

Hi even if i include grid.h i havent got pGroup->GetGroupSize() function, can someone share it? :(

in class CSpecialItemGroup add

 

		int GetGroupSize() const
		{
			return m_vecProbs.size();
		}

 

Justo ahora, firewall dijo:

in class CSpecialItemGroup add item_manager.h

 


		int GetGroupSize() const
		{
			return m_vecProbs.size();
		}

 

 

  • Love 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month 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.