Jump to content

CantSt0p

Member
  • Posts

    49
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by CantSt0p

  1. I think title says it all.  Why this? Why not? 🤷‍♂️

    .gif

    Spoiler
    ## -- 1 -- ##
    Search in class CostumeWindow(ui.ScriptWindow): 
    
    	def Close(self):
    		self.Hide()
    
    Add after: 
    
    	def GetBasePosition(self):
    		x, y = self.wndInventory.GetGlobalPosition()
    		return x - 147, y
    
    	def AdjustPositionAndSize(self):
    		bx, by = self.GetBasePosition()
    
    		self.SetPosition(bx, by)
    		self.SetSize(self.GetWidth(), self.GetHeight())
    
    ## -- 2 -- ##
    Search in class InventoryWindow(ui.ScriptWindow): ## Probably you dont have "AdjustPositionAndSizeAE", so basically paste is right after "self.wndBelt.AdjustPositionAndSize()" ##
    
    	def OnMoveWindow(self, x, y):
    		if self.wndBelt:
    			if localeInfo.IsARABIC():
    				self.wndBelt.AdjustPositionAndSizeAE()
    			else:
    				self.wndBelt.AdjustPositionAndSize()
    
    Add after:
    
    		if self.wndCostume:
    			self.wndCostume.AdjustPositionAndSize()

     

     

    • Metin2 Dev 5
    • Good 2
  2. On 10/21/2023 at 3:01 PM, SussyFlore96 said:

    Guys, one small question. It seems that it's working only for B1 map (chunjo town), but not for other maps as well.
    Also it's being switched off and on wheter I'm using night more or not.

    Strange things 😄

    Is it possible that my other maps use other lamp objects rather than 'ob-b1-013-lamp02.gr2'?


    Yes it is. In c1 and a1 map, there is used "obj-0010.gr2" with "fire_obj-0010.mse" 

  3. They are called as group (the "g" at the begging of each line)

    Official metin2_map_a1 from r40k: boss.txt

    g	916	1023	100	100	0	0	1000s	100	1	317
    g	121	922	100	100	0	0	1100s	100	1	318
    g	284	137	100	100	0	0	1200s	100	1	317
    g	98	98	100	100	0	0	1300s	100	1	318
    g	895	903	100	100	0	0	1200s	100	1	139
    g	360	892	100	100	0	0	1200s	100	1	140
    g	315	322	100	100	0	0	1200s	100	1	141
    g	286	1100	100	100	0	0	1200s	100	1	142
    
    m	418	684	100	100	0	0	600s	100	1	151
    m	606	940	100	100	0	0	601s	100	1	151
    m	880	651	100	100	0	0	602s	100	1	151
    m	457	976	100	100	0	0	603s	100	1	152
    m	924	843	100	100	0	0	604s	100	1	152
    m	921	222	100	100	0	0	605s	100	1	152
    m	463	888	100	100	0	0	606s	100	1	153
    m	630	1028	100	100	0	0	607s	100	1	153
    m	224	531	100	100	0	0	608s	100	1	153
    m	660	99	100	100	0	0	609s	100	1	154
    m	892	925	100	100	0	0	610s	100	1	154
    m	350	1005	100	100	0	0	611s	100	1	154
    m	181	542	100	100	0	0	612s	100	1	155
    m	877	172	100	100	0	0	613s	100	1	155
    m	478	1100	100	100	0	0	614s	100	1	155
    m	626	40	10	10	0	0	3600s	100	1	191
    
    

    In group.txt you can find this:

    Group	L32_¿õ½Å(BOSS)-ÀúÁÖ¹ÞÀº_ºÒ°õ(S_KNIGHT)
    {
    	Leader	Bera	193
    	Vnum	141
    	1	"Verfl. Braunb?r"	142
    	2	"Verfl. Braunb?r"	142
    }

    So you need to find line in boss.txt ending with 141 - which is vnum of the group and edit as you wish.

    g	315	322	100	100	0	0	1200s	100	1	141

     

    Recommend to read this:

     

    • Love 1
  4. I know, that this topic isn't active since 2017.

     

    However for Safebox in uisafebox.py:

    Spoiler

    Search for: setItemID(i, getItemID(slotIndex), itemCount) in def RefreshOwnerSlot(self):
     

    		# SIGN_FOR_PLUS_ITEM
    			if app.SIGN_FOR_PLUS_ITEMS:
    				if item.GetItemName()[-1:] == "+":
    					self.wndItem.AppendPlusOnSlot(i, 12, -1)
    				else:
    					self.wndItem.AppendPlusOnSlot(i, 0, 0)
    		# END_SIGN_FOR_PLUS_ITEMS

     

    For Exchange in uiexchange.py:

    Spoiler

    Search for: self.OwnerSlot.SetItemSlot(i, itemIndex, itemCount) in def RefreshSafebox(self):

    add:

    			if app.SIGN_FOR_PLUS_ITEMS:
    				if item.GetItemName()[-1:] == "+":
    					self.OwnerSlot.AppendPlusOnSlot(i, 12, -1)
    				else:
    					self.OwnerSlot.AppendPlusOnSlot(i, 0, 0)
    			# END_SIGN_FOR_PLUS_ITEMS

    Search for: self.OwnerSlot.SetItemSlot(i, itemIndex, itemCount) in def RefreshTargetSlot(self):

    add:

    			# SIGN_FOR_PLUS_ITEM
    			if app.SIGN_FOR_PLUS_ITEMS:
    				if item.GetItemName()[-1:] == "+":
    					self.TargetSlot.AppendPlusOnSlot(i, 12, -1)
    				else:
    					self.TargetSlot.AppendPlusOnSlot(i, 0, 0)
    			# END_SIGN_FOR_PLUS_ITEMS

     

  5. Yes, you can.

     

    Spoiler

    search in battle.cpp for:

    			case WEAPON_CLAW:

    use define of just change the code like this:

    #ifdef ENABLE_CLAW_AS_DAGGER_RESIST
    				iDam = iDam * SumBreakBonus(pkAttacker, pkVictim, POINT_ATTBONUS_DAGGER, POINT_RESIST_DAGGER) / 100
    #else
    				iDam = iDam * SumBreakBonus(pkAttacker, pkVictim, POINT_ATTBONUS_CLAW, POINT_RESIST_CLAW) / 100
    #endif

     

     

  6. Hey,

     

    IDK if you resolved the error, but.. I had the same error and it was caused that I missed a part of code.

     

    uiprivateshopbuilder.py

    Spoiler
    def Destroy(self):
    	self.ClearDictionary()
    
        self.nameLine = None
        self.itemSlot = None
        self.btnOk = None
        self.btnClose = None
        self.titleBar = None
        self.priceInputBoard = None
        if app.WJ_ENABLE_TRADABLE_ICON:
            self.interface = None
            self.wndInventory = None
            self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}

     

     

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