Jump to content

Mustang

Member
  • Posts

    12
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Mustang

  1. Hi Ionut,

     

    JewelAccessoryInfos = [
    		# jewel		wrist	neck	ear
    		[ 50634,	14420,	16220,	17220 ],
    		[ 50635,	14500,	16500,	17500 ],
    		[ 50636,	14520,	16520,	17520 ],
    		[ 50637,	14540,	16540,	17540 ],
    		[ 50638,	14560,	16560,	17560 ],
    		[ 50639,	14570,	16570,	0 ],# 오광귀걸이는 없음(귀걸이는 수인관련)
    
    	]
    
    JewelAccessoryInfos2 = [
    		# jewel		wrist	neck	ear
    		[ 951004,	14000,	16000,	17000 ],
    		[ 951005,	14020,	16020,	17020 ],
    		[ 951006,	14040,	16040,	17040 ],
    		[ 951007,	14060,	16060,	17060 ],
    		[ 951008,	14080,	16080,	17080 ],
    		[ 951009,	14100,	16100,	176100 ],
    		[ 951010,	14120,	16120,	17120 ],
    		[ 951011,	14140,	16140,	17140 ],
    		[ 951012,	14160,	16160,	17160 ],
    		[ 951013,	14180,	16180,	17180 ],
    		[ 951014,	14200,	16200,	17200 ],
    		[ 951015,	14220,	16220,	17220 ], 
    		[ 951016,	14500,	16500,	17500 ],
    		[ 951017,	14520,	16520,	17520 ],
    		[ 951018,	14540,	16540,	17540 ],
    		[ 951019,	14560,	16560,	17560 ],
    	]
    
    def GET_ACCESSORY_MATERIAL_VNUM(vnum, subType):
    	ret = vnum
    	item_base = (vnum / 10) * 10
    
    	result = [None, None]
    
    	for info in JewelAccessoryInfos:
    		if item.ARMOR_WRIST == subType:
    			if info[1] == item_base:
    				result[0] = info[0]
    		elif item.ARMOR_NECK == subType:
    			if info[2] == item_base:
    				result[0] = info[0]
    		elif item.ARMOR_EAR == subType:
    			if info[3] == item_base:
    				result[0] = info[0]
    
    	for info2 in JewelAccessoryInfos2:
    		if item.ARMOR_WRIST == subType:
    			if info2[1] == item_base:
    				result[1] = info2[0]
    		elif item.ARMOR_NECK == subType:
    			if info2[2] == item_base:
    				result[1] = info2[0]
    		elif item.ARMOR_EAR == subType:
    			if info2[3] == item_base:
    				result[1] = info2[0]
        
    	return result #will be [info[0], info2[0]]
    
    	if item.ARMOR_WRIST == subType:
    		WRIST_ITEM_VNUM_BASE = 14000
    		ret -= WRIST_ITEM_VNUM_BASE
    	elif item.ARMOR_NECK == subType:
    		NECK_ITEM_VNUM_BASE = 16000
    		ret -= NECK_ITEM_VNUM_BASE
    	elif item.ARMOR_EAR == subType:
    		EAR_ITEM_VNUM_BASE = 17000
    		ret -= EAR_ITEM_VNUM_BASE
    
    	type = ret/20
    
    	if type<0 or type>=len(ACCESSORY_MATERIAL_LIST):
    		type = (ret-170) / 20
    		if type<0 or type>=len(ACCESSORY_MATERIAL_LIST):
    			return 0
    
    	return ACCESSORY_MATERIAL_LIST[type]

     

    in your code " return result it generates a syserr

     

    1016 10:14:05861 :: TypeError 1016 10:14:05861 :: : 1016 10:14:05861 :: an integer is required

     

    maybe in this way, he can't return 2 values ?

  2. Hello, 

     

    I recently add new Jewel (permanent)

    and I would like for example that on item 14500 we can add the 2 different accessories

     

    I test these code :

     

    JewelAccessoryInfos = [
    		# jewel		wrist	neck	ear
    		[ 50634,	14420,	16220,	17220 ],
    		[ 50635,	14500,	16500,	17500 ],
    		[ 50636,	14520,	16520,	17520 ],
    		[ 50637,	14540,	16540,	17540 ],
    		[ 50638,	14560,	16560,	17560 ],
    		[ 50639,	14570,	16570,	0 ],
    
    	]
    
    JewelAccessoryInfos2 = [
    		# jewel		wrist	neck	ear
    		[ 951004,	14000,	16000,	17000 ],
    		[ 951005,	14020,	16020,	17020 ],
    		[ 951006,	14040,	16040,	17040 ],
    		[ 951007,	14060,	16060,	17060 ],
    		[ 951008,	14080,	16080,	17080 ],
    		[ 951009,	14100,	16100,	176100 ],
    		[ 951010,	14120,	16120,	17120 ],
    		[ 951011,	14140,	16140,	17140 ],
    		[ 951012,	14160,	16160,	17160 ],
    		[ 951013,	14180,	16180,	17180 ],
    		[ 951014,	14200,	16200,	17200 ],
    		[ 951015,	14220,	16220,	17220 ], 
    		[ 951016,	14500,	16500,	17500 ],
    		[ 951017,	14520,	16520,	17520 ],
    		[ 951018,	14540,	16540,	17540 ],
    		[ 951019,	14560,	16560,	17560 ],
    	]
    
    def GET_ACCESSORY_MATERIAL_VNUM(vnum, subType):
    	ret = vnum
    	item_base = (vnum / 10) * 10
    
    	for info in JewelAccessoryInfos:
    		if item.ARMOR_WRIST == subType:
    			if info[1] == item_base:
    				return info[0]
    		elif item.ARMOR_NECK == subType:
    			if info[2] == item_base:
    				return info[0]
    		elif item.ARMOR_EAR == subType:
    			if info[3] == item_base:
    				return info[0]
    
    	for info2 in JewelAccessoryInfos2:
    		if item.ARMOR_WRIST == subType:
    			if info2[1] == item_base:
    				return info2[0]
    		elif item.ARMOR_NECK == subType:
    			if info2[2] == item_base:
    				return info2[0]
    		elif item.ARMOR_EAR == subType:
    			if info2[3] == item_base:
    				return info2[0]

    In thise case only first loop works and it not read second loop

     

    I test this too :

     

    JewelAccessoryInfos = [
    		# jewel		wrist	neck	ear
    		[ 50634,	14420,	16220,	17220 ],
    		[ 50635,	14500,	16500,	17500 ],
    		[ 50636,	14520,	16520,	17520 ],
    		[ 50637,	14540,	16540,	17540 ],
    		[ 50638,	14560,	16560,	17560 ],
    		[ 50639,	14570,	16570,	0 ],# 오광귀걸이는 없음(귀걸이는 수인관련)
    
    	]
    
    JewelAccessoryInfos2 = [
    		# jewel		wrist	neck	ear
    		[ 951004,	14000,	16000,	17000 ],
    		[ 951005,	14020,	16020,	17020 ],
    		[ 951006,	14040,	16040,	17040 ],
    		[ 951007,	14060,	16060,	17060 ],
    		[ 951008,	14080,	16080,	17080 ],
    		[ 951009,	14100,	16100,	176100 ],
    		[ 951010,	14120,	16120,	17120 ],
    		[ 951011,	14140,	16140,	17140 ],
    		[ 951012,	14160,	16160,	17160 ],
    		[ 951013,	14180,	16180,	17180 ],
    		[ 951014,	14200,	16200,	17200 ],
    		[ 951015,	14220,	16220,	17220 ], 
    		[ 951016,	14500,	16500,	17500 ],
    		[ 951017,	14520,	16520,	17520 ],
    		[ 951018,	14540,	16540,	17540 ],
    		[ 951019,	14560,	16560,	17560 ],
    	]
    
    def GET_ACCESSORY_MATERIAL_VNUM(vnum, subType):
    	ret = vnum
    	item_base = (vnum / 10) * 10
    
    	for info, info2 in zip(JewelAccessoryInfos, JewelAccessoryInfos2):
    		if item.ARMOR_WRIST == subType:
    			if info[1] == item_base or info2[1] == item_base:
    				return info[0] or info2[0]
    		elif item.ARMOR_NECK == subType:
    			if info[2] == item_base or info2[2] == item_base:
    				return info[0] or info2[0]
    		elif item.ARMOR_EAR == subType:
    			if info[3] == item_base or info2[3] == itembase: 
    				return info[0] or info2[0]

     

    This code don't work too

    I'm a fucking noob in python, someone have some advice ?

  3. M2 Download Center

    This is the hidden content, please
    ( Internal )

     

    Share content : Client / Files / VDI

    Brief description :

    • Official system
    • Official prototypes, identical subtype
    • No trash system added
    • Full bug fix
    • Ideal for learning the basics of metin2 emulation

    Download link : https://mega.nz/folder/RLw3TI5S#vgqsusRH8HJ6HrIterykVw

    • Metin2 Dev 63
    • kekw 2
    • Eyes 3
    • Angry 2
    • Not Good 1
    • Cry 2
    • Scream 4
    • Lmao 1
    • Good 44
    • Love 9
    • Love 53
  4. Good evening,

     

    I am sharing with you today a site currently in the last phase of Beta to mine a future cryptocurrency for free and without physical resources.

     

    Currently very promising, I got enlisted by a work colleague who is a cryptocurrency geek so I believe him on this one.

     

    The principle is simple, there is no investment to be made to have more tokens, everything is done under a sponsorship system, impossible to register without someone inviting you beforehand.

     

    It's mining only on the phone with the application from their official website officially downloaded from the App Store or Google Play, don't worry, it consumes nothing on the battery.

     

    If you are interested, I invite you to download their app from the official website and when they go to ask you for a validation code, you will provide mine: Mustang44

     

    Once it's done, if you want to have more Hash / token, refer people around you / friends with your own code once you have created your account.

     

    You have a somewhat detailed explanation on Youtube regarding this future currency.

     

    If you have any questions, you beep me on Discord: Mustang#1649

     

     

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