i'm looking for some python commands

09/05/2012 23:09 tdr2010#1
hi,
I need the command to buy an item(whose vnum i know) from an opened shop window(NPC shop, not private shop).
I found this: "net.SendShopBuyPacket(Position)" in uiinventory.py (in root)

but how i get the position of an item whose vnum i know?

I use this to find an item in inventory
Code:
for i in xrange(player.INVENTORY_PAGE_SIZE *2):
	if player.GetItemIndex(i) in (27985, 27986, 27987):
		.....
But how I get all the items in the opened shop to use them in a "for" ?


Another question:
How I get all the mobs in range of my char and find its vnums to find out if a mob(whose vnum i know) is near me.

PS: Sorry for my english
09/08/2012 02:42 tdr2010#2
nobody can help me?
another question is about a python timer for metin....can someone give me an example or a tutorial about how to use a timer in python for metin?
01/24/2013 18:06 evasmoky#3
look here:[Only registered and activated users can see links. Click Here To Register...]