[Tibia Auto] Open Next BP


Recommended Posts

era pra  funcionar,mas nem sei pq n funfa...

 

class ModuleNextBackpackOpener:BPID = range (0xb25,0xb38+1);#contains ID's for ALL BP and bagsBPID+= [0x1726,0x1727,0x173d,0x173e,0x1CAE,0x1CAF];def getName(self):return "Next Backpack Opener"def getVersion(self):return "1.0";def getFunDef(self,nr):if (nr==0): return (0,5000,self.open);return ();def getConfigParam(self,nr):#Can't figure out the number of the BP you have open? Check the auto looter to see which ones are open.if (nr==0): return ('backpackNumber','Def:All; Integer:Only does this for BP# (first=1)')return ();def open(self,params):totCont = 16;for contNr in range(totCont):#check each open containercont=tareader.readContainer(contNr);if cont['flagOnOff']:#if container is opentry: bpNum = int(params['backpackNumber'])-1;except: bpNum = -1;print bpNum,contNr;if (bpNum == -1 or contNr == bpNum) and cont['itemsInside'] >= cont['size']:for itemNr in range(cont['itemsInside']-1,-1,-1):#Go backwards through itemsitem=tareader.readContainerItem(contNr,itemNr);if self.BPID.count(item['objectId']) !=0:#if items is a backpacktasender.openContainerFromContainer (item['objectId'],0x40+contNr,itemNr,contNr);return();return();tibiaauto.registerPlugin(ModuleNextBackpackOpener);
Link to comment
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...