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): .....
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






