Jump to content

Hunger

Premium
  • Posts

    356
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Posts posted by Hunger

  1. The system is working great on Martysama's source. I had the problem with the inventory pages at first.

    A hint: do not use the edits on the comparable files he is just giving an example of how the files should look like.

    https://metin2.download/picture/7fe60CcxRzbkgSG7J2ZZcFuP6t3uD26r/.gif

     

    @HUNgarocel1

     

    spacer.png

     

    Check edits on uiinventory.py.

     

    • Metin2 Dev 2
    • Confused 1
    • Good 2
    • Love 3
  2. On 8/6/2018 at 7:38 AM, Helia01 said:

     

     

    it's easy:
    open file: 
    uitaskbar.py

    find string:
    if constInfo.IS_AUTO_POTION(itemIndex):
    and past this code under block

     

    Example:

      Hide contents

    rNMq1kO.png

     


     

    
    elif itemIndex >= 53001 and itemVnum <= 53005:
    	metinSocket = [player.GetItemMetinSocket(Position, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
    							
    	isActivated = 0 != metinSocket[1]
    							
    	if isActivated:
    		slot.ActivateSlot(slotNumber)
    	else:
    		slot.DeactivateSlot(slotNumber)

    Actually, itemVnum is not defined. So:

    Find:

    					## 자동물약 (#72723, #72724) 특수처리 - 아이템인데도 슬롯에 활성화/비활성화 표시를 위한 작업임 - [hyo]
    					if constInfo.IS_AUTO_POTION(itemIndex):

    Add above:

    itemVnum = player.GetItemIndex(Position)

    Find:

    					## 자동물약 (#72723, #72724) 특수처리 - 아이템인데도 슬롯에 활성화/비활성화 표시를 위한 작업임 - [hyo]
    					if constInfo.IS_AUTO_POTION(itemIndex):
    						# metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량
    						metinSocket = [player.GetItemMetinSocket(Position, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
    
    						if 0 != int(metinSocket[0]):
    							slot.ActivateSlot(slotNumber)
    						else:
    							slot.DeactivateSlot(slotNumber)

    Add after:

    					elif itemVnum >= 53001 and itemVnum <= 53256:
    						metinSocket = [player.GetItemMetinSocket(Position, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
    												
    						isActivated = 0 != metinSocket[1]
    												
    						if isActivated:
    							slot.ActivateSlot(slotNumber)
    						else:
    							slot.DeactivateSlot(slotNumber)

     

    Demo:

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

    • Metin2 Dev 2
    • Love 3
  3. Anybody has this installed on marty source 4.9? I get :

    Oct 19 10:40:53 :: Drake: USE_ITEM Cufãr Beran-Setaou (inven 1, cell: 35)
    Oct 19 10:40:53 :: UseItemEx: Unknown type Cufãr Beran-Setaou 37

    Item type was done already, only the game part was missing. Any ideas?

     

    Solved.

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