Jump to content

zeimpekis9

Inactive Member
  • Posts

    263
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by zeimpekis9

  1. 13 minutes ago, Denis said:

    I'm gonna put my pet system like official into my services in a few days, here's some proof(that's not the public one):

     

    https://metin2.download/picture/fIMBUxJvamoE7OfaTLa78LyUxldg8kho/.png

    https://metin2.download/picture/lm2XtVBH9ItsQe6N6xD98Bgeq7xbH9eO/.png

    https://metin2.download/picture/RVvdPa9tB27gBUUYJ7P55ctX7bf3aJi1/.png

     

    The price is 300 euros

    Im looking specific for this quest by BlackYuko

    What its so funny ? @Denis 

     

    • Love 1
  2. Hello guys, i've installed a system that i found that works like this:

    You open the shop, you select what item you want, and then you have a button which says "for trade". 

    like this: muKkdab.png

    So now, if i put 0 price, and click at this button, the shop has the item. 

    Like this:

    wExIeab.png

     

    I have 2 problems:

    1) When its 0 price, and you click OK, no shop comes up.

    2) When i put a price > 0, then the shop has the item, but above the item name it says "This item is for sale", which is wrong . It should have this text only if the price was 0. 

    Also, no shop comes up.

     

    Can anyone help me? is there at source any part that doesnt allow at the shop an item to have 0 price?

    I share with you my uitooltip and uiprivateshopbuilder and uishop.py.

     

    uitooltip (line 1354):https://pastebin.com/BvT1sbwy

    uishop :https://pastebin.com/nhF2REWt

    uiprivateshopbuilder: https://pastebin.com/RKGvuaUn

     

    Thanks in advance.

     

     

     

     

     

    • Metin2 Dev 1
  3. Hello community, i have this problem:

    0415 23:53:10421 :: Traceback (most recent call last):

    0415 23:53:10421 ::   File "ui.py", line 1400, in CallEvent

    0415 23:53:10421 ::   File "ui.py", line 88, in __call__

    0415 23:53:10422 ::   File "ui.py", line 70, in __call__

    0415 23:53:10422 ::   File "uiPrivateShopBuilder.py", line 321, in AcceptInputPrice

    0415 23:53:10422 ::   File "uiPrivateShopBuilder.py", line 210, in Refresh

    0415 23:53:10422 :: TypeError
    0415 23:53:10422 :: : 
    0415 23:53:10422 :: an integer is required
    0415 23:53:10422 :: 

     

     

    these are my parts:

    1)

    	def AcceptInputPrice(self):
    
    		if not self.priceInputBoard:
    			return True
    
    		text = self.priceInputBoard.GetText()
    
    		if not text:
    			return True
    
    		if not text.isdigit():
    			return True
    
    		if int(text) <= 0:
    			return True
    
    		attachedInvenType = self.priceInputBoard.sourceWindowType
    		sourceSlotPos = self.priceInputBoard.sourceSlotPos
    		targetSlotPos = self.priceInputBoard.targetSlotPos
    
    		for privatePos, (itemWindowType, itemSlotIndex) in self.itemStock.items():
    			if itemWindowType == attachedInvenType and itemSlotIndex == sourceSlotPos:
    				shop.DelPrivateShopItemStock(itemWindowType, itemSlotIndex)
    				del self.itemStock[privatePos]
    
    		price = int(self.priceInputBoard.GetText())
    
    		if IsPrivateShopItemPriceList():
    			SetPrivateShopItemPrice(self.priceInputBoard.itemVNum, price)
    
    		shop.AddPrivateShopItemStock(attachedInvenType, sourceSlotPos, targetSlotPos, price)
    		self.itemStock[targetSlotPos] = (attachedInvenType, sourceSlotPos)
    		snd.PlaySound("sound/ui/drop.wav")
    
    		self.Refresh()		
    
    		#####
    
    		self.priceInputBoard = None
    		return True

    2) 

    	def Refresh(self):
    		getitemVNum=player.GetItemIndex
    		getItemCount=player.GetItemCount
    		setitemVNum=self.itemSlot.SetItemSlot
    		delItem=self.itemSlot.ClearSlot
    
    		for i in xrange(shop.SHOP_SLOT_COUNT):
    
    			if not self.itemStock.has_key(i):
    				delItem(i)
    				continue
    
    			pos = self.itemStock[i]
    
    			itemCount = getItemCount(pos) 
    			if itemCount <= 1:
    				itemCount = 0
    			setitemVNum(i, getitemVNum(pos), itemCount)
    			if app.ENABLE_CHANGELOOK_SYSTEM:
    				itemTransmutedVnum = player.GetItemTransmutation(pos)
    				if itemTransmutedVnum:
    					self.itemSlot.DisableCoverButton(i)
    				else:
    					self.itemSlot.EnableCoverButton(i)
    
    		self.itemSlot.RefreshSlot()

    Thanks in advance...

  4. 17 minutes ago, xHeaven said:

    Use the file search on Windows, I'm pretty sure you have it.

    Btw, take a look on the bool CPythonSystem::LoadConfig() function in UserInterface\PythonSystem.cpp. It's pretty easy to make an FPS cap, just read the value of the key from the config file, and convert it to float via the atof() function.

    Example:

    else if (!stricmp(command, "FPS_LIMIT")) g_fGameFPS = atof(value);

    
    else if (!stricmp(command, "FPS_LIMIT"))
    	g_fGameFPS = atof(value);

     

    I really dont have it...

    maybe you could share it? (btw im compiling without problems and use martysama source)

     

     

  5. 1 hour ago, xHeaven said:

     

    Well, the client now eats more CPU and GPU, maybe that's the reason.

    You might need to set an FPS cap via the config file, so the 250 FPS is available, but only for those who actually want it.

    I dont have the file EterBase.cpp. Any idea?

    Also, it could be usefull to create this cap (i mean a guide) so we can use it. Maybe on python..

  6. Hello guys.

    I have a problem about stones on weapons-armors.

    Normally when one has a +0 to +4 stone on an armor or weapon, but goes on to put another same stone from +0 to +4, he is sent a message that he cannot put the same stone twice.
    The problem I have is that because I have +5 and +6 stones on my server, when someone has already placed a +0 to +4 stone it doesn't get the corresponding message for +5 and +6 stones. The problem is that one can have a +4 stone and a same +6 stone in one weapon.

     

    Thanks.

  7. 1 minute ago, HITRON said:

    You want to use the same section of cube items in multiple NPCs?

     

    like:

    
    section
    npc	20018
    npc2	20022
    item	50722	1
    reward	50802	1
    percent	100
    end

     

    No the same section. I want for example the npc 20022 to have armors.

    The npc 20091 to have weapons. 

    Npc 20084 to have stones.

     

    Different sections.

    5 minutes ago, HITRON said:

    You want to use the same section of cube items in multiple NPCs?

     

    like:

    
    section
    npc	20018
    npc2	20022
    item	50722	1
    reward	50802	1
    percent	100
    end

    or you want the same NPC to have more than 1 Cube Window with different items and not all in the same? I don't understand what do you want exactly.

    quest: https://pastebin.com/k6t9QN8y

    cube.txt https://pastebin.com/bpWbtESM

  8. 4 minutes ago, Ikarus_ said:

    Cube works really with a shit way..

    It uses the command string to answer to the request of "info".

    The command string have a buffer of static length, this mean you can without known it, override the max length of the buffer. 

    You should reduce the number of items into the npcs... Or you can code.again the answer using packet (dynamic packet)...

    Is it difficult to code again with dynamic packet?

  9. Hello community.

    Happy new year to everyone.

    I have this problem about cube. I made txt, and i put 4 different npc's.

    At the first npc cube works fine, but from second to fourth cube doesnt open. Any idea?

    I have this error at sysser: Cube_request_material_info: [CubeInfo] Too long material info. (NPC: 20022, requestStart: 14, requestCount: 1, length: 17)

     

    Thanks for your time...

  10. Hello guys,
    i created a starter, but im having a problem. My .exe has argument. For example: 

    if (strstr(lpCmdLine, "--binissafe") == 0)
    		return 0;

    What should i write to my  starter button, so it should open properly the .exe?

    I used process.start and system.diagnostics.process.start but when it asks me to run the .exe as admin or not after that nothing happens. It doesnt open the .exe.

    Anyone can help me?

    The code of my starter now:

            Process.Start("metin2client.exe", "--binissafe")
            Close()

     

    Thanks for your time.

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