Jump to content
  • 0

Soul stone in items issue.


Tado

Question

Hi, first i wanna thank you all guys for really good work on this forum, it help a lot for kind of newbies like me, who wanna learn some code stuff. :)

 

I've got a problem. I suspect that this is the result of the system that I already have to remove - fix the correction scroll. Now, when i wanna to put soulstone in a weapon / armor i cant. I can click multiple times and nothing happens. Can you help me, guys? I fix couple of errors by myself, but this is problematic for me.

Thanks and have a nice day!

SYSERR:

0301 07:48:00790 :: BGM/login_window.mp3
0301 07:49:06702 :: BGM/characterselect.mp3
0301 07:49:17632 :: BGM/enter_the_east.mp3
0301 07:49:22466 :: Traceback (most recent call last):

0301 07:49:22466 ::   File "ui.py", line 1505, in OnSelectItemSlot

0301 07:49:22466 ::   File "ui.py", line 87, in __call__

0301 07:49:22466 ::   File "ui.py", line 78, in __call__

0301 07:49:22467 ::   File "uiInventory.py", line 779, in SelectItemSlot

0301 07:49:22467 ::   File "uiInventory.py", line 837, in __DropSrcItemToDestItemInInventory

0301 07:49:22467 :: AttributeError
0301 07:49:22467 :: : 
0301 07:49:22467 :: 'InventoryWindow' object has no attribute 'AttachMetinToItem'
0301 07:49:22467 :: 

"AttachMetinToItem" is propably key to fix it, but i can't find it....

Link to post

2 answers to this question

Recommended Posts

  • 0
you cant find something what you dont have. add this before def OverOutItem(self):

	def AttachMetinToItem(self, metinSlotPos, targetSlotPos):
		metinIndex = player.GetItemIndex(metinSlotPos)
		targetIndex = player.GetItemIndex(targetSlotPos)

		item.SelectItem(metinIndex)
		itemName = item.GetItemName()

		result = player.CanAttachMetin(metinIndex, targetSlotPos)

		if player.ATTACH_METIN_NOT_MATCHABLE_ITEM == result:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_CAN_NOT_ATTACH(itemName))

		if player.ATTACH_METIN_NO_MATCHABLE_SOCKET == result:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_NO_SOCKET(itemName))

		elif player.ATTACH_METIN_NOT_EXIST_GOLD_SOCKET == result:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_NO_GOLD_SOCKET(itemName))

		elif player.ATTACH_METIN_CANT_ATTACH_TO_EQUIPMENT == result:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_EQUIP_ITEM)

		if player.ATTACH_METIN_OK != result:
			return

		self.attachMetinDialog.Open(metinSlotPos, targetSlotPos)

 

  • Love 1
Link to post
  • 0
6 hours ago, useless69 said:
you cant find something what you dont have. add this before def OverOutItem(self):

	def AttachMetinToItem(self, metinSlotPos, targetSlotPos):
		metinIndex = player.GetItemIndex(metinSlotPos)
		targetIndex = player.GetItemIndex(targetSlotPos)

		item.SelectItem(metinIndex)
		itemName = item.GetItemName()

		result = player.CanAttachMetin(metinIndex, targetSlotPos)

		if player.ATTACH_METIN_NOT_MATCHABLE_ITEM == result:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_CAN_NOT_ATTACH(itemName))

		if player.ATTACH_METIN_NO_MATCHABLE_SOCKET == result:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_NO_SOCKET(itemName))

		elif player.ATTACH_METIN_NOT_EXIST_GOLD_SOCKET == result:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_NO_GOLD_SOCKET(itemName))

		elif player.ATTACH_METIN_CANT_ATTACH_TO_EQUIPMENT == result:
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_EQUIP_ITEM)

		if player.ATTACH_METIN_OK != result:
			return

		self.attachMetinDialog.Open(metinSlotPos, targetSlotPos)

 

Holy wack i had it in uiinventory, all the same, but when i paste your code, now i can add soulstones in equipment. A lot of thanks to you, bro.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



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