Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 06:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



'GET_ITEM_DROP' Problem

Discussion on 'GET_ITEM_DROP' Problem within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1


 
シスイ's Avatar
 
elite*gold: 537
The Black Market: 134/0/0
Join Date: Mar 2015
Posts: 1,041
Received Thanks: 126
'GET_ITEM_DROP' Problem

Guten Abend ^-^

Ich habe leztens den Achievementshop von Lord iRemix eingefügt.
Und irgendwo musste man die
Code:
def SelectEmptySlot
Funktion durch eine andere ersetzen.

Normal
Code:
	def SelectEmptySlot(self, selectedSlotPos):
		if constInfo.GET_ITEM_QUESTION_DIALOG_STATUS() == 1:
			return

		selectedSlotPos = self.__InventoryLocalSlotPosToGlobalSlotPos(selectedSlotPos)

		if mouseModule.mouseController.isAttached():

			attachedSlotType = mouseModule.mouseController.GetAttachedType()
			attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
			attachedItemCount = mouseModule.mouseController.GetAttachedItemCount()
			attachedItemIndex = mouseModule.mouseController.GetAttachedItemIndex()

			if player.SLOT_TYPE_INVENTORY == attachedSlotType:
				itemCount = player.GetItemCount(attachedSlotPos)
				attachedCount = mouseModule.mouseController.GetAttachedItemCount()
				self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, attachedCount)

				if item.IsRefineScroll(attachedItemIndex):
					self.wndItem.SetUseMode(False)

			elif player.SLOT_TYPE_PRIVATE_SHOP == attachedSlotType:
				mouseModule.mouseController.RunCallBack("INVENTORY")

			elif player.SLOT_TYPE_SHOP == attachedSlotType:
				net.SendShopBuyPacket(attachedSlotPos)

			elif player.SLOT_TYPE_SAFEBOX == attachedSlotType:

				if player.ITEM_MONEY == attachedItemIndex:
					net.SendSafeboxWithdrawMoneyPacket(mouseModule.mouseController.GetAttachedItemCount())
					snd.PlaySound("sound/ui/money.wav")

				else:
					net.SendSafeboxCheckoutPacket(attachedSlotPos, selectedSlotPos)
					
			elif player.SLOT_TYPE_GUILD_SAFEBOX == attachedSlotType:
				if player.ITEM_MONEY == attachedItemIndex:
					net.SendGuildSafeboxTakeGoldPacket(mouseModule.mouseController.GetAttachedItemCount())
					snd.PlaySound("sound/ui/money.wav")

				else:
					net.SendGuildSafeboxCheckoutPacket(attachedSlotPos, selectedSlotPos)

			elif player.SLOT_TYPE_MALL == attachedSlotType:
				net.SendMallCheckoutPacket(attachedSlotPos, selectedSlotPos)

			mouseModule.mouseController.DeattachObject()
Die von Lord iRemix
Code:
	def SelectEmptySlot(self, selectedSlotPos):
		if constInfo.GET_ITEM_DROP_QUESTION_DIALOG_STATUS() == 1:
			return
 
		selectedSlotPos = self.__InventoryLocalSlotPosToGlobalSlotPos(selectedSlotPos)
 
		if mouseModule.mouseController.isAttached():
 
			attachedSlotType = mouseModule.mouseController.GetAttachedType()
			attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
			attachedItemCount = mouseModule.mouseController.GetAttachedItemCount()
			attachedItemIndex = mouseModule.mouseController.GetAttachedItemIndex()
 
			if player.SLOT_TYPE_INVENTORY == attachedSlotType:
				itemCount = player.GetItemCount(attachedSlotPos)
				attachedCount = mouseModule.mouseController.GetAttachedItemCount()
				self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, attachedCount)
 
				if item.IsRefineScroll(attachedItemIndex):
					self.wndItem.SetUseMode(FALSE)
 
			elif player.SLOT_TYPE_PRIVATE_SHOP == attachedSlotType:
				mouseModule.mouseController.RunCallBack("INVENTORY")
 
			elif player.SLOT_TYPE_SHOP == attachedSlotType:
				if constInfo.IsItemShop == 0:
					net.SendShopBuyPacket(attachedSlotPos)
				else:
					import uiShop
					self.wndShop = uiShop.ShopDialog()
					self.wndShop.BuyFromIS(attachedSlotPos)
 
			elif player.SLOT_TYPE_SAFEBOX == attachedSlotType:
 
				if player.ITEM_MONEY == attachedItemIndex:
					net.SendSafeboxWithdrawMoneyPacket(mouseModule.mouseController.GetAttachedItemCount())
					snd.PlaySound("sound/ui/money.wav")
 
				else:
					net.SendSafeboxCheckoutPacket(attachedSlotPos, selectedSlotPos)
 
			elif player.SLOT_TYPE_MALL == attachedSlotType:
				net.SendMallCheckoutPacket(attachedSlotPos, selectedSlotPos)
				mouseModule.mouseController.DeattachObject()
syserr Fehler:
Code:
0610 00:54:32361 :: Traceback (most recent call last):

0610 00:54:32361 ::   File "ui.py", line 1458, in OnSelectEmptySlot

0610 00:54:32361 ::   File "ui.py", line 87, in __call__

0610 00:54:32362 ::   File "ui.py", line 78, in __call__

0610 00:54:32362 ::   File "uiInventory.py", line 656, in SelectEmptySlot

0610 00:54:32362 :: AttributeError
0610 00:54:32362 :: : 
0610 00:54:32362 :: 'module' object has no attribute 'GET_ITEM_DROP_QUESTION_DIALOG_STATUS'
0610 00:54:32362 ::
Mein Problem ist jetzt dass ich Items in Inventar zwar ancklicken kann,
jedoch kann ich die dann nicht irgendwo anders ablegen.
Könnte mir jemand vielleicht behilfhlich sein?
シスイ is offline  
Old 06/11/2015, 07:30   #2


 
シスイ's Avatar
 
elite*gold: 537
The Black Market: 134/0/0
Join Date: Mar 2015
Posts: 1,041
Received Thanks: 126
Suche immer noch nach Hilfe :s
シスイ is offline  
Old 06/11/2015, 07:44   #3
 
elite*gold: 2785
Join Date: Dec 2014
Posts: 403
Received Thanks: 1,354
Code:
	def SelectEmptySlot(self, selectedSlotPos):
		if constInfo.GET_ITEM_QUESTION_DIALOG_STATUS() == 1:
			return
 
		selectedSlotPos = self.__InventoryLocalSlotPosToGlobalSlotPos(selectedSlotPos)
 
		if mouseModule.mouseController.isAttached():
 
			attachedSlotType = mouseModule.mouseController.GetAttachedType()
			attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
			attachedItemCount = mouseModule.mouseController.GetAttachedItemCount()
			attachedItemIndex = mouseModule.mouseController.GetAttachedItemIndex()
 
			if player.SLOT_TYPE_INVENTORY == attachedSlotType:
				itemCount = player.GetItemCount(attachedSlotPos)
				attachedCount = mouseModule.mouseController.GetAttachedItemCount()
				self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, attachedCount)
 
				if item.IsRefineScroll(attachedItemIndex):
					self.wndItem.SetUseMode(FALSE)
 
			elif player.SLOT_TYPE_PRIVATE_SHOP == attachedSlotType:
				mouseModule.mouseController.RunCallBack("INVENTORY")
 
			elif player.SLOT_TYPE_SHOP == attachedSlotType:
				if constInfo.IsItemShop == 0:
					net.SendShopBuyPacket(attachedSlotPos)
				else:
					import uiShop
					self.wndShop = uiShop.ShopDialog()
					self.wndShop.BuyFromIS(attachedSlotPos)
 
			elif player.SLOT_TYPE_SAFEBOX == attachedSlotType:
 
				if player.ITEM_MONEY == attachedItemIndex:
					net.SendSafeboxWithdrawMoneyPacket(mouseModule.mouseController.GetAttachedItemCount())
					snd.PlaySound("sound/ui/money.wav")
 
				else:
					net.SendSafeboxCheckoutPacket(attachedSlotPos, selectedSlotPos)
 
			elif player.SLOT_TYPE_MALL == attachedSlotType:
				net.SendMallCheckoutPacket(attachedSlotPos, selectedSlotPos)
				mouseModule.mouseController.DeattachObject()

.Kori
.K0rí is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



All times are GMT +1. The time now is 06:30.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.