[Mini Rls][PYTHON]Shop Buy Count System

10/15/2015 17:35 kralcocuk#1
Hi.

How to use:
Gif :
[Only registered and activated users can see links. Click Here To Register...]
Example video:

How To:
Unpack root.epk&eix and change uipickmoney.py
Unpack uiscript.epk&eix and change pickmoneydialog.py

Files: [Only registered and activated users can see links. Click Here To Register...]

Unpack root, open uishop.py:

Find
Code:
import ui
Add
Code:
import uiPickMoney
[Only registered and activated users can see links. Click Here To Register...]

Find
Code:
def LoadDialog(self
Find
Code:
self.Refresh()
Add
Code:
		itemal = uiPickMoney.PickMoneyDialog()
		itemal.LoadDialog()
		itemal.Hide()
		self.itemal = itemal
[Only registered and activated users can see links. Click Here To Register...]

Find
Code:
def Destroy(self)
Add
Code:
		self.itemal.Destroy()
		self.itemal = 0
[Only registered and activated users can see links. Click Here To Register...]

Find
Code:
def UnselectItemSlot(
Delete code block

Add
Code:
	def UnselectItemSlot(self, selectedSlotPos):
		if shop.IsPrivateShop():
			self.AskBuyItem(selectedSlotPos)
		else:
			#net.SendShopBuyPacket(selectedSlotPos)
			itemIndex = shop.GetItemID(selectedSlotPos)
			item.SelectItem(itemIndex)
			itemName = item.GetItemName()
			curMax = 200
			self.itemal.SetTitleName(itemName)
			self.itemal.SetAcceptEvent(ui.__mem_func__(self.OnItC))
			self.itemal.Open(curMax)
			self.itemal.SetMax(3) 
			self.cek = selectedSlotPos
[Only registered and activated users can see links. Click Here To Register...]

2x[ENTER]
Add
Code:
	def OnItC(self, adet):
		n = 0
		cek = self.cek
		while n < adet:
			net.SendShopBuyPacket(cek)
			n = n + 1

Finish.
10/15/2015 19:45 Metin2 Team#2
a buying hack?

flag ITEM_FLAG_STACKABLE
10/15/2015 23:05 Noa_#3
u can buy with right mouse button
10/16/2015 01:57 kralcocuk#4
Quote:
Originally Posted by Metin2 Team View Post
a buying hack?

flag ITEM_FLAG_STACKABLE
No. not hack or bug
Quote:
Originally Posted by Noa_ View Post
u can buy with right mouse button
really?
:facepalm:
10/16/2015 02:05 Noa_#5
i think its better than create some gui or "Count System" with same function, savvy?
10/16/2015 02:08 worldend#6
Your link is off :/ LoL
10/16/2015 04:11 kralcocuk#7
Quote:
Originally Posted by worldend View Post
Your link is off :/ LoL
Sorry
[Only registered and activated users can see links. Click Here To Register...]
10/16/2015 08:24 DerZynx#8
I think it's nice and useful. Thanks for that.
10/16/2015 12:06 Back7#9
link plz
10/16/2015 12:33 kralcocuk#10
Quote:
Originally Posted by Back7 View Post
link plz
[Only registered and activated users can see links. Click Here To Register...]
01/11/2016 14:29 Pisti16#11
Thanks, good sysem :D
01/11/2016 14:39 Shaytan #12
Its great thanks for this release.
05/24/2016 15:07 vamvamvam#13
Can u reupload pleas ? :)
05/24/2016 19:23 kralcocuk#14
Quote:
Originally Posted by vamvamvam View Post
Can u reupload pleas ? :)
Why ? :)
link is working
[Only registered and activated users can see links. Click Here To Register...]
05/27/2016 08:57 AmerigoMendosa#15
nice, thank you