Jump to content
metin2dev
Ekstasia2
.Elijah

c++ C++/Python Chest Drop View (My version)

Recommended Posts

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.

Image:
Imagine
https://gyazo.com/866f9c8b3cf7f495642139b61e01bf4f.gif

DL Link :

https://mega.nz/#!yUwxVSbZ!Kbo00sVG8suCK0PCtrcVAW9I63Xt98DNHAiKMAoqaOY

 

  • Like 3

Share this post


Link to post
Share on other sites

Probably. I think the GUI has fix slots, so if you are trying to open a box which contain more items it will cry.

But the idea isn't bad.

Share this post


Link to post
Share on other sites
Acum 48 minute, xP3NG3Rx a spus:

Probably. I think the GUI has fix slots, so if you are trying to open a box which contain more items it will cry.

But the idea isn't bad.

Anyway there is 75 slots , maybe i will make this auto adaptable.

How about that ? B)

Share this post


Link to post
Share on other sites

Lel, overflow in packet, in this system you only need list of vnum and count. For what you create page and slot, in client you can position it.

Share this post


Link to post
Share on other sites
Acum 20 minute, hachiwari a spus:

Lel, overflow in packet, in this system you only need list of vnum and count. For what you create page and slot, in client you can position it.

Easier from the server for me.

Share this post


Link to post
Share on other sites

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
  • Like 2

Share this post


Link to post
Share on other sites

I actually have a 512MB ram VPS and everything is working good.

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

 

Share this post


Link to post
Share on other sites
2 minuty temu, .Elijah napisał:

I actually have a 512MB ram VPS and everything is working good.

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

 

dont be negative about our comments, its not hate :/

  • Like 1

Share this post


Link to post
Share on other sites
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:

  • Thanks 1
  • Haha 3

Share this post


Link to post
Share on other sites
Acum 3 ore, martysama0134 a spus:

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

Maybe i am perfect like that , how about that ?

 

Share this post


Link to post
Share on other sites
vor 13 Stunden schrieb .Elijah:

Maybe i am perfect like that , how about that ?

 

I hereby call this bullshit.

"Reinstall the system if you  can't install just updare and yeah you are noob ."

A bit arrogant? :o

  • Like 1
  • Sad 1

Share this post


Link to post
Share on other sites
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 .

  • Thanks 1

Share this post


Link to post
Share on other sites
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();
		}

 

 

  • Like 1

Share this post


Link to post
Share on other sites
Dnia 8.11.2018 o 13:30, firewall napisał:

in class CSpecialItemGroup add

 


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

 

 

Thanks Brother! :)

 

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×